/* ============================================================
   FRIDGE DOCTOR — Design System
   Navy #0B2545 + Orange #F97316 · Manrope + Source Sans 3
   Mobile-first · Cloudflare Pages static
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Primary navy scale */
  --navy-50:  #F0F4FA;
  --navy-100: #DCE6F2;
  --navy-200: #B7CBE4;
  --navy-300: #8AA5CC;
  --navy-400: #5879AE;
  --navy-500: #35588F;
  --navy-600: #1E3D6E;
  --navy-700: #123058;
  --navy-800: #0B2545;
  --navy-900: #06182E;

  /* Accent */
  --accent:      #F97316;
  --accent-dark: #EA580C;
  --accent-deep: #C2410C;
  --accent-soft: #FFF3E8;
  --accent-glow: rgba(249, 115, 22, 0.38);

  /* Surfaces */
  --white:    #FFFFFF;
  --offwhite: #F8FAFC;
  --dark:     #081426;
  --border:   #E2E8F0;
  --border-strong: #CBD5E1;

  /* Text */
  --text:        #1E293B;
  --text-muted:  #5B6B82;
  --text-on-dark:#DCE6F2;
  --text-faint:  #93A5BE;

  /* Type */
  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  /* Shape & depth */
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, 0.08), 0 12px 32px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 8px 24px rgba(11, 37, 69, 0.12), 0 24px 64px rgba(11, 37, 69, 0.16);
  --shadow-glow: 0 6px 20px var(--accent-glow), 0 2px 6px rgba(194, 65, 12, 0.25);

  /* Layout */
  --container: 1200px;
  --section-pad-y: 64px;
  --header-h: 72px;
}

@media (min-width: 1024px) {
  :root { --section-pad-y: 112px; }
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.125rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent); color: #fff; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--navy-800);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem); margin-bottom: 0.5em; }

p { margin-bottom: 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15em; color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--accent-light, #FDBA74); }

ul.tick { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.tick li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.6em;
  max-width: 68ch;
}
ul.tick li::before {
  content: "";
  position: absolute; left: 0; top: 0.32em;
  width: 1.15rem; height: 1.15rem;
  background: var(--navy-50);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 0.7rem;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- 4. Utilities ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.section { padding-block: var(--section-pad-y); position: relative; }
.section--white    { background: var(--white); }
.section--offwhite { background: var(--offwhite); }
.section--tint     { background: var(--navy-50); }
.section--dark     { background: var(--dark); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p, .section--dark li { color: var(--text-on-dark); }
.section--dark a { color: #FDBA74; }

.section-head { max-width: 760px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p.intro { color: var(--text-muted); font-size: 1.1em; }
.section--dark .section-head p.intro { color: var(--text-faint); }

/* Buttons — pill, min 44px targets */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 28px var(--accent-glow); }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-200);
}
.btn-outline:hover { border-color: var(--navy-800); color: var(--navy-800); transform: translateY(-2px); }
.btn-light {
  background: #fff; color: var(--navy-800);
}
.btn-light:hover { transform: translateY(-2px); color: var(--navy-800); }
.btn-block { width: 100%; }

/* Skip link + focus */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-800); color: #fff;
  padding: 0.8rem 1.4rem; border-radius: 0 0 12px 0;
  z-index: 200; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img, .brand svg { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy-800); letter-spacing: -0.02em; line-height: 1.1; }
.brand-name small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

.nav-desktop { display: none; align-items: center; gap: 1.6rem; }
.nav-desktop a { font-weight: 600; font-size: 0.98rem; color: var(--navy-800); text-decoration: none; }
.nav-desktop a:hover { color: var(--accent-deep); }
.nav-desktop .btn { min-height: 46px; padding: 0.65rem 1.4rem; font-size: 0.95rem; }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--navy-50); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer;
}
.hamburger svg { width: 24px; height: 24px; stroke: var(--navy-800); }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-open { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

.mobile-panel {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--navy-900);
  z-index: 99;
  padding: 2rem 1.5rem 5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  visibility: hidden;
}
.mobile-panel.open { transform: translateX(0); visibility: visible; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-panel nav a {
  color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-panel nav a:hover { color: #FDBA74; }
.mobile-panel .btn { margin-top: 1.5rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(249, 115, 22, 0.22), transparent 60%),
    radial-gradient(760px 560px at 88% 12%, rgba(53, 88, 143, 0.55), transparent 62%),
    radial-gradient(620px 620px at 55% 115%, rgba(18, 48, 88, 0.7), transparent 65%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%, var(--dark) 100%);
  color: #fff;
  padding: calc(var(--section-pad-y) + 8px) 0 var(--section-pad-y);
}
.hero::after { /* film grain */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 3rem;
  align-items: center;
}
.hero h1 { color: #fff; margin: 0.35em 0 0.5em; }
.hero .hl {
  background: linear-gradient(120deg, #FDBA74 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  white-space: nowrap;
}
.hero-sub { color: var(--text-on-dark); font-size: 1.12em; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.4rem; }
.hero-fineprint { font-size: 0.82rem; color: var(--text-faint); max-width: 60ch; }
.hero-fineprint a { color: var(--text-faint); }

.trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; list-style: none; padding: 0; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.86rem; font-weight: 600;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.trust-chips svg { width: 1em; height: 1em; stroke: var(--accent); }

.hero-art { position: relative; }
.hero-scene {
  width: min(420px, 82vw);
  margin-inline: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}
.glass-card {
  position: absolute;
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem; font-weight: 600; color: #fff;
  max-width: 220px;
  animation: floaty 5s ease-in-out infinite;
}
.glass-card .gicon {
  flex: none; width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 12px;
}
.glass-card .gicon svg { width: 20px; height: 20px; stroke: #FDBA74; }
.glass-card small { display: block; font-weight: 400; color: var(--text-faint); font-size: 0.78rem; }
.gc-1 { top: 4%; left: -2%; }
.gc-2 { top: 42%; right: -4%; animation-delay: 1.6s; }
.gc-3 { bottom: 2%; left: 6%; animation-delay: 3.1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Wave divider */
.wave { display: block; width: 100%; height: 56px; margin-bottom: -1px; }
.wave.flip { transform: scaleY(-1); }

/* ---------- 7. Bento grid ---------- */
.bento { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.bento-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; gap: 0.7rem;
  text-decoration: none;
  overflow: hidden;
}
a.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--navy-200); }
.bento-card h3 { margin: 0; font-size: 1.2rem; }
.bento-card h3 a { color: var(--navy-800); text-decoration: none; }
.bento-card p { font-size: 0.98rem; color: var(--text-muted); margin: 0; }
.bento-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: 14px;
}
.bento-icon svg { width: 26px; height: 26px; stroke: var(--navy-700); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bento-card.featured {
  background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-700) 100%);
  border-color: var(--navy-700);
  color: #fff;
}
.bento-card.featured h3, .bento-card.featured h3 a { color: #fff; }
.bento-card.featured p { color: var(--text-on-dark); }
.bento-card.featured .bento-icon { background: rgba(249,115,22,0.16); border-color: rgba(249,115,22,0.45); }
.bento-card.featured .bento-icon svg { stroke: #FDBA74; }
.bento-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  color: var(--accent-deep); text-decoration: none;
}
.bento-card.featured .bento-link { color: #FDBA74; }
.bento-link svg { width: 1.05em; height: 1.05em; transition: transform 0.18s ease; }
a.bento-card:hover .bento-link svg { transform: translateX(4px); }

/* ---------- 8. Generic cards ---------- */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { display: flex; align-items: center; gap: 0.7rem; }
.info-card .bento-icon { width: 44px; height: 44px; }

/* ---------- 9. Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.98rem; min-width: 560px; }
table.data caption { text-align: left; font-weight: 600; padding: 0.9rem 1.2rem; background: var(--navy-50); color: var(--navy-800); }
table.data th, table.data td { text-align: left; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); background: var(--offwhite); white-space: nowrap; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: none; }
table.data td a { font-weight: 600; }

/* ---------- 10. Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; position: relative; }
.process-step { position: relative; padding-left: 5.2rem; }
.process-num {
  position: absolute; left: 0; top: -0.35rem;
  font-family: var(--font-head); font-weight: 800;
  font-size: 4.2rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--navy-200);
}
.process-step h3 { margin-bottom: 0.35rem; }
.process-step p { color: var(--text-muted); margin: 0; max-width: 60ch; }

/* ---------- 11. Callouts ---------- */
.callout {
  display: flex; gap: 1rem;
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  margin: 1.6rem 0;
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy-500);
  background: var(--navy-50);
}
.callout.warning { border-left-color: var(--accent); background: var(--accent-soft); }
.callout svg { flex: none; width: 26px; height: 26px; margin-top: 0.15rem; }
.callout.protip svg { stroke: var(--navy-600); }
.callout.warning svg { stroke: var(--accent-deep); }
.callout strong { display: block; font-family: var(--font-head); margin-bottom: 0.25rem; }
.callout p { margin: 0; font-size: 0.99rem; }

/* ---------- 12. Split sections ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-art {
  background: linear-gradient(150deg, var(--navy-50), var(--navy-100));
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: grid; place-items: center;
}
.split-art svg { width: min(320px, 70vw); }

/* ---------- 13. Dark CTA band ---------- */
.cta-band {
  position: relative; overflow: clip;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(249, 115, 22, 0.28), transparent 65%),
    linear-gradient(165deg, var(--navy-800), var(--dark));
  border-radius: calc(var(--radius) + 8px);
  padding: 3.2rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute; inset: -40%;
  background: radial-gradient(closest-side, rgba(249,115,22,0.16), transparent);
  animation: glowpulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowpulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: var(--text-on-dark); max-width: 56ch; margin-inline: auto; }
.cta-phone {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 1.2rem + 5vw, 3.6rem);
  color: #fff;
  text-decoration: none;
  margin: 1.1rem 0 1.4rem;
  text-shadow: 0 0 34px rgba(249, 115, 22, 0.55);
}
.cta-phone:hover { color: #FDBA74; }

/* ---------- 14. FAQ accordion ---------- */
.faq-list { display: grid; gap: 0.85rem; max-width: 820px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item[open] { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--navy-800);
  list-style: none;
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex: none; width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--navy-50);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-plus svg { width: 16px; height: 16px; stroke: var(--navy-700); stroke-width: 2.6; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--accent-soft); }
.faq-item[open] .faq-plus svg { stroke: var(--accent-deep); }
.faq-body { padding: 0 1.35rem 1.35rem; color: var(--text-muted); }
.faq-body p { margin-bottom: 0.8em; }

/* ---------- 15. Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--border-strong); }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--dark); color: var(--text-on-dark); padding: 4rem 0 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.95rem; color: var(--text-faint); }
.site-footer h3 {
  color: #fff; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--text-on-dark); text-decoration: none; font-size: 0.96rem; }
.footer-links a:hover { color: #FDBA74; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.55rem; font-size: 0.96rem; }
.footer-contact a { color: #FDBA74; text-decoration: none; font-weight: 600; }
.footer-disclaimer { font-size: 0.82rem; color: var(--text-faint); border-top: 1px solid rgba(255,255,255,0.1); padding: 1.6rem 0; }
.footer-disclaimer p { max-width: none; font-size: 0.82rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.3rem 0 calc(1.3rem + env(safe-area-inset-bottom));
  font-size: 0.85rem; color: var(--text-faint);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between;
}

/* ---------- 17. Sticky mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(8, 20, 38, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.callbar .btn { flex: 1; min-height: 50px; }

/* ---------- 18. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 19. Media queries ---------- */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.featured { grid-column: span 2; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body { padding-bottom: 78px; } /* room for sticky call bar */
  .callbar { display: block; }
  .btn { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .glass-card { display: none; }
  .hero-scene { width: min(300px, 72vw); }
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > .split-copy { order: 2; }
  .process { gap: 2.4rem; }
  .cta-band { padding: 4.5rem 3rem; }
}

@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .hamburger { display: inline-flex; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: inline-flex; }
  .hamburger { display: none; }
  .mobile-panel { display: none; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-card.featured { grid-column: span 2; grid-row: span 2; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .process { grid-template-columns: repeat(4, 1fr); }
  .process-step { padding-left: 0; padding-top: 5rem; }
  .process-num { top: 0; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .glass-card, .cta-band::before { animation: none; }
}

/* ---------- 21. Service page layout: TOC + sticky call card ---------- */
.page-layout { display: grid; gap: 2rem; }
.page-body { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.toc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.toc h2 { font-size: 1.02rem; margin: 0 0 0.6rem; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; }
.toc li a { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.6rem; border-radius: 10px; font-size: 0.93rem; font-weight: 600; color: var(--navy-800); text-decoration: none; }
.toc li a:hover { background: var(--navy-50); }
.toc li a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-size: 0.72rem; font-weight: 800; color: var(--accent); }
.call-card { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); border: 1px solid var(--navy-700); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-md); }
.call-card h2 { color: #fff; font-size: 1.12rem; margin: 0 0 0.5rem; }
.call-card p { color: var(--text-faint); font-size: 0.93rem; margin: 0 0 1.1rem; }
.call-card .btn { width: 100%; }
.call-card small { display: block; margin-top: 0.8rem; color: var(--text-faint); font-size: 0.82rem; text-align: center; }
@media (min-width: 1024px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .page-body { grid-column: 1; grid-row: 1; }
  .sidebar { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h, 72px) + 20px); }
}


/* ---------- Callback form (contact page) ---------- */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-top: 1.5rem; padding: 1.75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.lead-form .field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.lead-form .field-wide { grid-column: 1 / -1; }
.lead-form label { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--navy-800); }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form select, .lead-form textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--offwhite); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
}
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form input:focus-visible, .lead-form select:focus-visible, .lead-form textarea:focus-visible,
.lead-form input[type="checkbox"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--navy-800); }
.lead-form .check { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.lead-form .check input { width: 22px; height: 22px; margin-top: 0.15rem; flex: none; accent-color: var(--accent-dark); }
.lead-form .check label { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { white-space: normal; }
.form-status { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #166534; }
.form-status.err { color: #B91C1C; }
.form-fallback { padding: 1.25rem 1.5rem; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); margin-top: 1.25rem; }
@media (max-width: 640px) { .lead-form { grid-template-columns: 1fr; padding: 1.25rem; } }
