/* ==========================================================================
   Jaku SPA — stylesheet
   Modern responsive design for a natural, water-based cosmetics laboratory
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root{
  --color-bg:            #f6faf9;
  --color-bg-alt:        #eaf5f4;
  --color-surface:       #ffffff;

  --color-teal-900:      #082b30;
  --color-teal-800:      #0c3b42;
  --color-teal-700:      #124f58;
  --color-teal-600:      #17707c;

  --color-check-green:   #2f9e57;
  --color-teal-500:      #1f909e;
  --color-aqua-400:      #5ec3ce;
  --color-aqua-300:      #9adde3;
  --color-aqua-200:      #c9edf0;
  --color-aqua-100:      #e9f8f9;

  --color-gold:          #c7a05f;
  --color-gold-soft:     #e7d6ae;

  --color-accent:        #6292a0;
  --color-accent-rgb:    98, 146, 160;

  --color-text:          #16292b;
  --color-text-muted:    #4c6467;
  --color-text-soft:     #6f8386;
  --color-hero-lede:     #354b4d;
  --color-on-dark:       #eef7f7;
  --color-on-dark-muted: #b7d3d4;

  --color-border:        #dde9e8;

  --shadow-sm:  0 2px 10px rgba(8, 43, 48, 0.07);
  --shadow-md:  0 14px 36px rgba(8, 43, 48, 0.12);
  --shadow-lg:  0 26px 70px rgba(8, 43, 48, 0.20);

  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  32px;
  --radius-pill: 999px;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1200px;
  --header-h: 84px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; height: auto; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4{
  font-family: var(--font-heading);
  color: var(--color-teal-900);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1.2em; }
strong{ color: var(--color-teal-800); font-weight: 650; }
button{ font-family: inherit; }

.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link{
  position: absolute;
  left: -999px; top: 0;
  background: var(--color-teal-900); color: #fff;
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------- Section rhythm ---------- */
.section{ padding: 96px 0; position: relative; }
.section--tight{ padding: 64px 0; }
.section--alt{ background: var(--color-bg-alt); }
.section--dark{ background: var(--color-teal-900); color: var(--color-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3{ color: #fff; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-teal-600);
  margin-bottom: 1em;
}
.eyebrow::before{
  content: "";
  width: 22px; height: 2px;
  background: var(--color-gold);
  display: inline-block;
}
.section--dark .eyebrow{ color: var(--color-aqua-300); }

.section-head{
  max-width: 760px;
  margin: 0 0 3rem;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
/* Use when a .section-lede is pulled out right below, so the head's own bottom margin doesn't double up */
.section-head--tight{ margin-bottom: .6em; }

/* A follow-up paragraph after section content, free to use the full container width */
.section-note{ margin-top: 2.2rem; }
/* A .lede that needs the full container width instead of the .section-head max-width - keep it OUTSIDE .section-head and pair with class="lede section-lede" */
.section-lede{ max-width: none; margin: 0 0 3rem; }

h2.section-title{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
.lede{ font-size: 1.15rem; color: var(--color-text-muted); }
.section--dark .lede{ color: var(--color-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--color-teal-600), var(--color-teal-500));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: inherit;
}
.btn-outline:hover{ background: rgba(255,255,255,.12); }
.btn-ghost{
  background: var(--color-aqua-100);
  color: var(--color-teal-700);
}
.btn-ghost:hover{ background: var(--color-aqua-200); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(8,43,48,.06);
}
/* Frosted-glass background lives on a pseudo-element rather than directly on
   .site-header: a backdrop-filter on the header itself would establish a new
   containing block for its position:fixed descendants (the mobile nav),
   breaking the viewport-relative "inset" it relies on to slide in on mobile. */
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 250, 249, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.brand .logo{
  height: 46px;
  width: auto;
  display: block;
}

.primary-nav{ display: flex; }
.nav-list{
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list > li{ position: relative; }
.nav-list > li > a{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 550;
  font-size: .95rem;
  color: var(--color-teal-800);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-list > li > a:hover,
.nav-list > li.current > a{
  background: var(--color-aqua-100);
  color: var(--color-teal-600);
}
.nav-list .caret{ width: 9px; height: 9px; transition: transform .2s var(--ease); }
.nav-list li.has-children:hover .caret,
.nav-list li.has-children.open .caret{ transform: rotate(180deg); }

.sub-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-list li.has-children:hover .sub-menu{
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu a{
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--color-text);
}
.sub-menu a:hover{ background: var(--color-aqua-100); color: var(--color-teal-600); }

.menu-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-aqua-100);
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.menu-toggle svg{ width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  color: var(--color-text);
  background: var(--color-accent);
  padding: 90px 0 78px;
  overflow: hidden;
}
.hero-bg{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(1.15);
}
.hero-bg::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--color-accent-rgb),.55) 0%, rgba(var(--color-accent-rgb),.65) 55%, rgba(var(--color-accent-rgb),.82) 100%);
}
.hero-content{ position: relative; max-width: 760px; }
.hero .eyebrow{ color: var(--color-teal-800); }
.hero h1{
  color: var(--color-teal-900);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.hero p.lede{ color: var(--color-hero-lede); max-width: 620px; }
.hero-crumb{
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.4em;
}
.hero-crumb a{ color: var(--color-teal-800); }
.hero-crumb a:hover{ text-decoration: underline; }

.hero--home{ padding: 120px 0 132px; }
.hero--home h1{ font-size: clamp(2.6rem, 7vw, 5rem); }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

.wave{
  position: absolute; left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.wave svg{ width: 100%; height: auto; display: block; }

/* ---------- Intro / two-column ---------- */
.split{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.split.reverse{ grid-template-columns: .9fr 1.1fr; }
.split.reverse .split-media{ order: 2; }
.split-media img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.split-media{ position: relative; }
.split-media::before{
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--color-aqua-300);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ---------- Stat highlight ---------- */
.stat-row{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 2.5rem 0;
}
.stat-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.stat-card .num{
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-teal-600);
  line-height: 1;
  display: block;
  margin-bottom: .3em;
}
.stat-card .label{ color: var(--color-text-muted); font-size: .95rem; }

/* ---------- Checklist ---------- */
.check-list{ display: grid; gap: 14px; }
.check-list li{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.check-list .ico{
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-aqua-100);
  display: flex; align-items: center; justify-content: center;
}
.check-list .ico svg{ width: 15px; height: 15px; color: var(--color-teal-600); }
.check-list--plain{ gap: 10px; }
.check-list--plain li{
  background: transparent; border: none; box-shadow: none;
  padding: 4px 0;
}

/* ---------- Card grid ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.card{
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .ico-wrap{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-aqua-200), var(--color-aqua-100));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .ico-wrap svg{ width: 24px; height: 24px; color: var(--color-teal-600); }
.card h3{ font-size: 1.15rem; margin-bottom: .5em; }
.card p{ color: var(--color-text-muted); font-size: .96rem; margin-bottom: 0; }

/* nav link cards (used on "cosa facciamo") */
.link-card{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.link-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-aqua-300);
}
.link-card .arrow{
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-teal-600); font-weight: 600; font-size: .9rem;
}
.link-card .arrow svg{ width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-card:hover .arrow svg{ transform: translateX(4px); }

/* ---------- Gallery ---------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery img{
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
  transition: transform .4s var(--ease);
}
.gallery a{ overflow: hidden; border-radius: var(--radius-md); display: block; }
.gallery a:hover img{ transform: scale(1.06); }
.gallery.cols-2{ grid-template-columns: repeat(2, 1fr); }
.gallery--sm{ max-width: 720px; gap: 14px; margin-top: 1.6rem; }
.gallery--sm img{ aspect-ratio: 4/3; }
.gallery a{ cursor: zoom-in; }

/* ---------- Lightbox ---------- */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: rgba(8, 20, 19, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.lightbox-overlay.is-open{ opacity: 1; visibility: visible; }
.lightbox-overlay img{
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface, #fff);
  transform: scale(.96);
  transition: transform .25s var(--ease);
}
.lightbox-overlay.is-open img{ transform: scale(1); }
.lightbox-close{
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.lightbox-close svg{ width: 20px; height: 20px; }
.lightbox-close:hover, .lightbox-close:focus-visible{ background: rgba(255,255,255,0.26); }

/* ---------- Quote ---------- */
.quote-block{
  position: relative;
  padding: 48px 56px;
  background: linear-gradient(135deg, var(--color-teal-800), var(--color-teal-700));
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.quote-block p{
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.45;
  margin: 0;
}
.quote-block .quote-mark{
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-gold-soft);
  opacity: .8;
  line-height: 0;
  display: block;
  margin-bottom: .3em;
}
.quote-block strong{ color: var(--color-aqua-200); }

/* ---------- Process checklist ---------- */
.process{
  display: grid;
  gap: 20px;
}
.process-step{
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 22px;
  padding: 6px 0;
}
.process-step .step-num{
  width: 26px; height: 26px;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.process-step .step-num::before{
  content: "";
  width: 100%; height: 100%;
  background: var(--color-check-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.process-step h3{ margin-bottom: .3em; font-size: 1.08rem; }
.process-step p{ color: var(--color-text-muted); margin-bottom: 0; }

/* ---------- Department blocks (produzione) ---------- */
.dept{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  margin-bottom: 2.4rem;
}
.dept .dept-index{
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-aqua-300);
  line-height: 1;
}
.dept h2{ margin-bottom: .8rem; }

.subsection{
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  margin-top: 28px;
}
.subsection h3{
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-teal-700);
}

/* ---------- Patent / certification badge ---------- */
.badge-row{
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 2rem 0 2.6rem;
}
.badge{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 260px;
}
.badge .ico-wrap{
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-600), var(--color-teal-500));
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.badge .ico-wrap svg{ width: 26px; height: 26px; color: #fff; }
.badge strong{ display: block; color: var(--color-teal-900); font-size: 1rem; }
.badge span{ color: var(--color-text-soft); font-size: .88rem; }

/* ---------- Contact page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.contact-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3{
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-teal-600);
  margin-bottom: 1.1em;
}
.contact-card address{ font-style: normal; color: var(--color-text-muted); line-height: 1.8; }
.contact-line{
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: .98rem;
}
.contact-line:last-child{ border-bottom: none; }
.contact-line svg{ width: 18px; height: 18px; color: var(--color-teal-600); flex: 0 0 auto; }
.contact-line a:hover{ color: var(--color-teal-600); }

.map-banner{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}
.map-banner img{ width: 100%; }

/* ---------- Legal content ---------- */
.legal-content{ max-width: 820px; }
.legal-content .legal-intro{ margin-bottom: 2.6rem; color: var(--color-text-muted); }
.legal-block{ padding: 2rem 0; border-bottom: 1px solid var(--color-border); }
.legal-block:first-of-type{ padding-top: 0; }
.legal-block:last-of-type{ border-bottom: none; padding-bottom: 0; }
.legal-block h2{ font-size: 1.25rem; color: var(--color-teal-700); }
.legal-block p{ color: var(--color-text); }
.legal-block ul{ list-style: disc; padding-left: 1.3em; margin: 0 0 1.2em; }
.legal-block ul li{ margin-bottom: .5em; }
.legal-block ul.check-list{ list-style: "\2714\00a0\00a0"; }
.legal-block ul.check-list li::marker{ color: var(--color-teal-700); }
.legal-meta{ margin-top: 2.4rem; font-size: .9rem; color: var(--color-text-soft); }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--color-teal-900), var(--color-teal-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2{ color: #fff; margin-bottom: .3em; }
.cta-band p{ color: var(--color-on-dark-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--color-teal-900);
  color: var(--color-on-dark-muted);
  padding: 70px 0 26px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand{
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.footer-brand .brand .logo{ height: 38px; }
.footer-brand p{ font-size: .92rem; color: var(--color-on-dark-muted); }
.footer-col h4{
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.2em;
}
.footer-col address, .footer-col p{ font-style: normal; font-size: .92rem; margin-bottom: .6em; }
.footer-col a{ display: inline-block; font-size: .92rem; margin-bottom: .6em; }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: .82rem;
  color: rgba(238,247,247,.55);
}
.footer-bottom a:hover{ color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .split, .split.reverse{ grid-template-columns: 1fr; }
  .split.reverse .split-media{ order: 0; }
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .gallery--sm.cols-2{ grid-template-columns: repeat(2, 1fr); }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 800px){
  .primary-nav{
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-surface);
    padding: 20px 28px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
  }
  .primary-nav.open{ transform: translateX(0); }
  .nav-list{ flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a{ padding: 14px 12px; border-radius: 10px; }
  .sub-menu{
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; display: none; padding: 4px 4px 4px 18px;
    background: transparent;
  }
  li.has-children.open .sub-menu{ display: block; }
  .menu-toggle{ display: flex; }
  .cta-band{ padding: 40px 30px; }
}

@media (max-width: 640px){
  .brand .logo{ height: 36px; }
  .section{ padding: 64px 0; }
  .hero{ padding: 78px 0 54px; }
  .hero--home{ padding: 90px 0 84px; }
  .card-grid, .card-grid.cols-2{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .gallery--sm.cols-2{ grid-template-columns: 1fr; }
  .stat-row{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap: 30px; }
  .quote-block{ padding: 34px 26px; }
  .process-step{ gap: 16px; }
}
