/* ============================================
   Ortopedia Aurora — design system
   Palette: blu logo + neutri freddi
   Type: Hanken Grotesk
   ============================================ */

:root {
  --ink: oklch(0.24 0.025 255);
  --ink-soft: oklch(0.47 0.025 255);
  --ink-faint: oklch(0.60 0.02 255);
  --bg: oklch(0.982 0.004 250);
  --surface: oklch(0.998 0.002 250);
  --blue: oklch(0.47 0.165 259);
  --blue-deep: oklch(0.30 0.09 259);
  --blue-bright: oklch(0.56 0.17 259);
  --blue-tint: oklch(0.955 0.022 259);
  --blue-tint-2: oklch(0.93 0.035 259);
  --line: oklch(0.905 0.008 250);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px oklch(0.24 0.025 255 / 0.06), 0 2px 8px oklch(0.24 0.025 255 / 0.05);
  --shadow-md: 0 2px 6px oklch(0.24 0.025 255 / 0.07), 0 12px 32px oklch(0.24 0.025 255 / 0.10);
  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--blue); }

::selection { background: var(--blue-tint-2); }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Page transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.page-exit { animation: page-out 0.22s ease both; }
}
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { will-change: opacity, transform; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.998 0.002 250 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px oklch(0.24 0.025 255 / 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-mark svg { width: 20px; height: 20px; fill: white; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: 11.5px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.10em; text-transform: uppercase; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-drop > button {
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 99px;
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav > a:hover, .nav-drop > button:hover { color: var(--blue); background: var(--blue-tint); }
.main-nav > a[aria-current="page"], .nav-drop.has-current > button { color: var(--blue); background: var(--blue-tint); }

.nav-drop { position: relative; }
.nav-drop .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s ease; }
.nav-drop.open .caret { transform: rotate(225deg) translateY(-1px); }
.drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-drop.open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 9px;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.drop-menu a:hover { background: var(--blue-tint); color: var(--blue); padding-left: 19px; }
.drop-menu a span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-faint); }
.drop-menu a[aria-current="page"] { color: var(--blue); }

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 99px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 4px 14px oklch(0.47 0.165 259 / 0.30); }
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 8px 22px oklch(0.47 0.165 259 / 0.35); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.btn-light { background: white; color: var(--blue-deep); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }

/* ---------- Hero (home) ---------- */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-card {
  position: absolute;
  left: -28px;
  bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-card .num { font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1; }
.hero-card .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px 0;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item .dot {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-tint);
  display: grid;
  place-items: center;
}
.trust-item .dot svg { width: 18px; height: 18px; fill: var(--blue); }
.trust-item b { display: block; font-size: 15.5px; }
.trust-item small { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-tint-2); }
.cat-card .cat-media { aspect-ratio: 16 / 9.5; overflow: hidden; }
.cat-card .cat-media img, .cat-card .cat-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cat-card:hover .cat-media img, .cat-card:hover .cat-media .ph { transform: scale(1.05); }
.cat-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-body h3 { font-size: 21px; margin: 0; }
.cat-body p { font-size: 15px; color: var(--ink-soft); margin: 0; flex: 1; }
.cat-link {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cat-link .arrow { transition: transform 0.25s var(--ease); }
.cat-card:hover .cat-link .arrow { transform: translateX(5px); }

/* placeholder imagery */
.ph {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, oklch(0.95 0.012 255), oklch(0.95 0.012 255) 10px, oklch(0.925 0.018 255) 10px, oklch(0.925 0.018 255) 20px);
  color: var(--ink-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media img, .split-media .ph {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.split h2 { font-size: clamp(26px, 3vw, 36px); }
.split p { color: var(--ink-soft); }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.check-list li { display: flex; align-items: baseline; gap: 12px; font-weight: 500; }
.check-list li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--blue);
  transform: rotate(45deg) translateY(-1px);
}

/* ---------- Brands ---------- */
.brands { text-align: center; }
.brand-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.brand-chip {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 22px;
  transition: transform 0.25s var(--ease), color 0.2s, border-color 0.2s;
}
.brand-chip:hover { transform: translateY(-3px); color: var(--blue); border-color: var(--blue-tint-2); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-card .mark { font-size: 56px; font-weight: 800; color: var(--blue-tint-2); line-height: 0.6; display: block; margin-bottom: 18px; }
.quote-card blockquote { margin: 0 0 20px; font-size: 16.5px; color: var(--ink); }
.quote-card figcaption { font-size: 14.5px; font-weight: 700; }
.quote-card figcaption span { display: block; font-weight: 500; color: var(--ink-faint); font-size: 13px; }
.stars { color: var(--blue); letter-spacing: 3px; font-size: 14px; margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.07);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); color: white; }
.cta-band p { color: oklch(0.93 0.02 259); margin: 0; font-size: 17.5px; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.cta-band .tel {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.cta-band .tel:hover { text-decoration: underline; }

/* ---------- Page hero (immagine + overlay sfumato a destra) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 13vh, 132px) 0;
  background-color: var(--blue-deep);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, oklch(0.18 0.05 259 / 0) 0%, oklch(0.18 0.05 259 / 0.34) 40%, oklch(0.16 0.05 259 / 0.74) 78%, oklch(0.14 0.05 259 / 0.9) 100%),
    linear-gradient(0deg, oklch(0.14 0.05 259 / 0.42), oklch(0.14 0.05 259 / 0.12));
}
.page-hero .container { display: flex; }
.page-hero-content {
  margin-right: auto;
  max-width: 660px;
  text-align: left;
  color: white;
}
.page-hero.hero-home { padding: clamp(118px, 24vh, 210px) 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: oklch(1 0 0 / 0.72);
  margin-bottom: 20px;
}
.breadcrumb a { color: oklch(1 0 0 / 0.72); text-decoration: none; transition: color 0.2s ease; }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { opacity: 0.5; }

.page-hero .eyebrow { color: oklch(0.84 0.10 259); }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { font-size: clamp(33px, 4.3vw, 56px); max-width: 22ch; margin-right: auto; color: white; }
.page-hero .lede { font-size: 18.5px; color: oklch(1 0 0 / 0.88); max-width: 60ch; margin: 0 auto 0 0; }
.page-hero .hero-actions { margin-top: 30px; justify-content: flex-start; }
.page-hero .btn-ghost { color: white; box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.45); }
.page-hero .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px white; color: white; background: oklch(1 0 0 / 0.10); }

/* ---------- Gallery (reparti) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 186px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img, .gallery-item .g-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img, .gallery-item:hover .g-ph { transform: scale(1.06); }
.g-ph {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(150deg, var(--blue-tint), var(--blue-tint-2));
  color: var(--blue-deep);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 26px 18px 14px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: linear-gradient(0deg, oklch(0.16 0.05 259 / 0.82), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }

/* ---------- Prose / info blocks ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 20px; }
.info-card p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease), border-color 0.2s;
}
a.contact-row:hover { transform: translateX(4px); border-color: var(--blue-tint-2); }
.contact-row .dot { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); display: grid; place-items: center; }
.contact-row .dot svg { width: 19px; height: 19px; fill: var(--blue); }
.contact-row b { display: block; font-size: 16px; }
.contact-row span { font-size: 15px; color: var(--ink-soft); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { display: none; font-size: 13px; color: oklch(0.55 0.19 25); margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: oklch(0.55 0.19 25); }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--ink-faint); margin: 14px 0 0; }
.form-success {
  display: none;
  background: oklch(0.95 0.04 155);
  border: 1px solid oklch(0.85 0.07 155);
  color: oklch(0.35 0.09 155);
  border-radius: 11px;
  padding: 16px 20px;
  font-weight: 600;
  margin-top: 18px;
}
.form-success.show { display: block; animation: success-in 0.4s var(--ease) both; }
@keyframes success-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-error {
  display: none;
  background: oklch(0.96 0.025 25);
  border: 1px solid oklch(0.87 0.06 25);
  color: oklch(0.45 0.16 25);
  border-radius: 11px;
  padding: 16px 20px;
  font-weight: 600;
  margin-top: 18px;
}
.form-error.show { display: block; animation: success-in 0.4s var(--ease) both; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: oklch(0.88 0.02 259);
  margin-top: 96px;
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.site-footer .brand { color: white; margin-bottom: 16px; }
.site-footer .brand-sub { color: oklch(0.75 0.04 259); }
.site-footer p { font-size: 15px; color: oklch(0.80 0.03 259); max-width: 38ch; }
.footer-col h4 { color: white; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: oklch(0.84 0.03 259); text-decoration: none; font-size: 15px; transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: white; padding-left: 4px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13.5px;
  color: oklch(0.72 0.03 259);
}
.footer-legal a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > .split-media { order: 0; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .hero-card { left: 12px; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .gallery { grid-auto-rows: 160px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .container { width: calc(100% - 40px); }
  .cat-grid, .quote-grid, .info-grid { grid-template-columns: 1fr; }
  .check-list.cols-2 { grid-template-columns: 1fr; }
  .page-hero-content { max-width: 100%; }
  .page-hero { padding: 52px 0; }
  .page-hero.hero-home { padding: 60px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery-item figcaption { opacity: 1; transform: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a, .nav-drop > button { width: 100%; border-radius: 11px; font-size: 17px; padding: 13px 16px; justify-content: space-between; }
  .nav-drop .drop-menu {
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    background: var(--blue-tint);
    border-radius: 11px;
    margin: 4px 0 8px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-drop.open .drop-menu { display: flex; }
  .hero { padding: 40px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-card { padding: 28px 24px; }
  .hero-card { padding: 12px 16px; bottom: 16px; }
}
