/* ==========================================================================
   Z-Modular Machinery / Airzone Engineering
   Responsive stylesheet - mobile first (360px) -> tablet (768px) -> desktop
   ========================================================================== */

:root {
  --navy: #123a63;
  --navy-dark: #0d2b4a;
  --green: #1fa97a;
  --green-dark: #178a63;
  --orange: #f26522;
  --ink: #1b2733;
  --body: #4a5866;
  --muted: #6b7986;
  --line: #e2e8ee;
  --bg-soft: #f5f8fa;
  --white: #fff;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(18, 58, 99, .08);
  --shadow: 0 6px 22px rgba(18, 58, 99, .10);
  --shadow-lg: 0 14px 40px rgba(18, 58, 99, .16);
  --wrap: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover, a:focus-visible { color: var(--orange); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
.section { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 34px 0; }
.center { text-align: center; }
.lead { font-size: 1.06rem; color: var(--body); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 26px;
  border: 2px solid transparent; border-radius: 6px;
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--green-dark); color: #fff; }
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover, .btn--accent:focus-visible { background: #d5551a; color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--green); color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.topbar {
  display: none;
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
  font-size: .85rem;
}
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; justify-content: space-between; padding-block: 9px; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.topbar__list li { margin: 0; }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand__text { display: none; line-height: 1.15; }
.brand__name { display: block; font-weight: 800; color: var(--navy); font-size: 1rem; }
.brand__tag { display: block; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 42px; padding: 10px; margin-right: -6px;
  background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0 0 14px; }
.nav__list > li { margin: 0; border-top: 1px solid var(--line); }
.nav__list a {
  display: block; padding: 13px 2px; color: var(--ink);
  font-weight: 600; font-size: .97rem;
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--green-dark); }
.nav__cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(9, 30, 53, .92), rgba(9, 30, 53, .82)), #0d2b4a url("../images/gallery/workshop-01.jpg") center/cover no-repeat;
  color: #fff;
  padding: 60px 0 64px;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { color: rgba(255, 255, 255, .88); max-width: 58ch; font-size: 1.05rem; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px;
  background: rgba(31, 169, 122, .18); border: 1px solid rgba(31, 169, 122, .5); border-radius: 40px;
  color: #7ee6bd; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero .btn-row { margin-top: 26px; }

/* ---------- Page banner ---------- */
.page-head {
  background: linear-gradient(180deg, rgba(9, 30, 53, .94), rgba(9, 30, 53, .86)), var(--navy-dark);
  color: #fff; padding: 40px 0 42px;
}
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 62ch; }
.crumbs { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: rgba(255, 255, 255, .65); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a { color: rgba(255, 255, 255, .85); }

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin: 0 0 30px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__eyebrow {
  display: block; margin-bottom: 8px;
  color: var(--green-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.sec-head p { margin-bottom: 0; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfdae4; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--contain img { object-fit: contain; padding: 10px; background: #fff; }
.card__tag {
  position: absolute; left: 12px; top: 12px;
  background: rgba(18, 58, 99, .92); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
}
.card__body { padding: 20px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .4em; font-size: 1.12rem; }
.card__body p { font-size: .94rem; margin-bottom: 1em; }
.card__more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--green-dark); }
.card__more::after { content: " \2192"; }
.card:hover .card__more { color: var(--orange); }

.feature {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: 22px 20px; height: 100%;
}
.feature h3 { font-size: 1.08rem; }
.feature p { margin-bottom: 0; font-size: .94rem; }
.feature__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px;
  background: rgba(31, 169, 122, .12); color: var(--green-dark);
  border-radius: 8px; font-weight: 800;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.stat__num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat__label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Media split ---------- */
.split { display: grid; gap: 26px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
.split__figure { margin: 0; }
.split__figure figcaption { margin-top: 8px; font-size: .84rem; color: var(--muted); }

/* ---------- Spec table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .92rem; background: #fff; }
table.spec caption { caption-side: top; text-align: left; padding: 14px 16px 0; font-weight: 700; color: var(--ink); }
table.spec th, table.spec td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: var(--navy); color: #fff; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
table.spec tbody th { width: 42%; font-weight: 600; color: var(--ink); background: var(--bg-soft); }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 10px; font-size: .84rem; color: var(--muted); }

/* ---------- Product page layout ---------- */
.product-layout { display: grid; gap: 30px; }
.side-nav { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-nav h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav a { display: block; padding: 10px 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.side-nav a:hover { color: var(--green-dark); }
.side-nav a[aria-current="page"] { color: var(--green-dark); }
.side-nav a[aria-current="page"]::before { content: "\25B8 "; color: var(--orange); }

.side-cta { margin-top: 20px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 20px; }
.side-cta h4 { color: #fff; font-size: 1.05rem; }
.side-cta p { color: rgba(255, 255, 255, .82); font-size: .92rem; }
.side-cta a.phone { display: block; color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chip-list li {
  margin: 0; padding: 6px 13px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 40px; font-size: .84rem; font-weight: 600; color: var(--ink);
}

.check-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(-45deg); border-radius: 1px;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { padding: 12px 14px; font-size: .88rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 42px 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; }
.info-card h3 { font-size: 1.05rem; margin-bottom: .5em; }
.info-card p, .info-card address { font-style: normal; margin-bottom: 0; font-size: .95rem; }

.form-grid { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .87rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(31, 169, 122, .15); }
.field textarea { min-height: 130px; resize: vertical; }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .74); font-size: .93rem; padding: 44px 0 0; }
.site-footer h4 { color: #fff; font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 30px; }
.footer-logo { height: 46px; width: auto; margin-bottom: 14px; background: #fff; border-radius: 6px; padding: 6px 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .5em; }
.footer-bottom {
  margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, .13);
  padding: 18px 0 22px; font-size: .85rem; color: rgba(255, 255, 255, .6);
  display: grid; gap: 8px;
}
.credit { color: rgba(255, 255, 255, .62); }
.credit a { color: #7ee6bd; font-weight: 600; }
.credit a:hover { color: #fff; }

/* ---------- Floating call button (mobile) ---------- */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 40px;
  background: var(--green); color: #fff; font-weight: 700; font-size: .92rem;
  box-shadow: var(--shadow-lg);
}
.call-fab:hover, .call-fab:focus-visible { background: var(--green-dark); color: #fff; }

/* ==========================================================================
   Tablet - 640px and up
   ========================================================================== */
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 .field--full { grid-column: 1 / -1; }
  .brand__text { display: block; }
  .section { padding: 60px 0; }
  .hero { padding: 84px 0 88px; }
  .page-head { padding: 54px 0 56px; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* ==========================================================================
   Desktop - 992px and up
   ========================================================================== */
@media (min-width: 992px) {
  .topbar { display: block; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 46px; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .product-layout { grid-template-columns: 290px 1fr; gap: 44px; align-items: start; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .section { padding: 76px 0; }
  .hero { padding: 110px 0 116px; }
  .call-fab { display: none; }

  .nav-toggle { display: none; }
  .nav { display: block !important; }
  .nav__list { display: flex; align-items: center; gap: 4px; padding: 0; }
  .nav__list > li { border-top: 0; }
  .nav__list a { padding: 22px 14px; font-size: .93rem; }
  .nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); }
  .nav__cta { display: inline-flex; margin-left: 14px; padding: 11px 22px; }
  .side-nav, .side-cta { position: sticky; top: 88px; }
  .side-cta { position: static; }
}

@media (min-width: 1200px) {
  .nav__list a { padding: 22px 17px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .call-fab, .cta-band, .site-footer, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .section { padding: 12pt 0; }
}
