/* ============================================================
   Central Air Comfort Inc — "Cool Confidence" design system
   Palette: #0B3C5D primary · #1CA9C9 secondary · #F7FBFD bg
            #FF6B35 CTA only · #3CB878 eco (sparing) · #1B2A33 text
   Type:    Sora (headings) · Inter (body)
   Motion:  micro-interactions + scroll reveals, all gated behind
            prefers-reduced-motion.
   ============================================================ */

:root {
  --primary: #0B3C5D;
  --primary-deep: #082C45;     /* darker shade of primary for footer depth */
  --primary-soft: rgba(11, 60, 93, .08);
  --secondary: #1CA9C9;
  --secondary-deep: #0E7A94;   /* darker secondary for accessible link text */
  --secondary-soft: rgba(28, 169, 201, .12);
  --bg: #F7FBFD;
  --cta: #FF6B35;
  --cta-deep: #E8531A;
  --eco: #3CB878;
  --text: #1B2A33;
  --text-soft: #46586A;
  --line: rgba(11, 60, 93, .14);
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 12px rgba(11, 60, 93, .07);
  --shadow-lift: 0 14px 34px rgba(11, 60, 93, .16);
  --shadow-lg: 0 10px 34px rgba(11, 60, 93, .18);
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Sora", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0313rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.16;
  color: var(--primary);
  margin: 0 0 .55em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(1.9rem, 5.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 4vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--secondary-deep); transition: color .15s var(--ease); }
a:hover { color: var(--secondary); }
ul { padding-left: 1.25rem; }
li { margin-bottom: .4em; }
::selection { background: var(--secondary); color: #fff; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--tint { background: linear-gradient(180deg, rgba(28,169,201,.06), rgba(11,60,93,.05)); }
.section--navy { background: linear-gradient(150deg, var(--primary-deep), var(--primary) 70%); color: #dcecf6; }
.section--navy h2 { color: var(--white); }
.section-lead { max-width: 46rem; color: var(--text-soft); font-size: 1.07rem; }
.section--navy .section-lead { color: #b6cfe1; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.kicker {
  font-family: var(--font-head);
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--secondary-deep); margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--secondary); border-radius: 2px; }
.center .kicker { justify-content: center; }
.section--navy .kicker, .on-dark .kicker { color: var(--secondary); }

/* ================= Scroll reveals ================= */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-rv="left"]  { transform: translateX(-32px); }
.reveal[data-rv="right"] { transform: translateX(32px); }
.reveal[data-rv="scale"] { transform: scale(.94); }
.reveal.in[data-rv] { transform: none; }
/* stagger children */
.stagger > * { opacity: 0; transform: translateY(22px); }
.stagger.in > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.stagger.in > *:nth-child(5) { transition-delay: .32s; }
.stagger.in > *:nth-child(6) { transition-delay: .4s; }
.stagger.in > *:nth-child(7) { transition-delay: .48s; }
.stagger.in > *:nth-child(8) { transition-delay: .56s; }
.stagger.in > *:nth-child(9) { transition-delay: .64s; }

/* Page fade transitions */
body { opacity: 1; transition: opacity .28s ease; }
body.page-leave { opacity: 0; }
@keyframes pageIn { from { opacity: 0 } to { opacity: 1 } }
body.page-enter { animation: pageIn .35s ease; }

/* ================= Buttons ================= */
.btn {
  font-family: var(--font-head);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1.02rem;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .06s; }
.btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.btn--cta {
  background: linear-gradient(180deg, var(--cta), var(--cta-deep));
  color: var(--white) !important;
  box-shadow: 0 6px 18px rgba(255, 107, 53, .35);
}
.btn--cta:hover { box-shadow: 0 10px 26px rgba(255, 107, 53, .45); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--white) !important; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.btn--blue { background: var(--primary); color: var(--white) !important; box-shadow: var(--shadow); }
.btn--blue:hover { background: #0d476e; box-shadow: var(--shadow-lift); }
.btn--soft { background: var(--secondary-soft); color: var(--primary) !important; }
.btn--soft:hover { background: rgba(28,169,201,.2); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.1rem; border-radius: 12px; }

/* ================= Skip link ================= */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip-link:focus { left: 0; }

/* ================= Header (transforming) ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.solid, .site-header.scrolled {
  background: rgba(247, 251, 253, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(11,60,93,.07);
}
/* Full-bleed header: logo flush left, CTA flush right (small edge padding only) */
.header-inner {
  display: flex; align-items: center; gap: 1rem; min-height: 72px;
  max-width: none;
  padding: 0 clamp(.9rem, 2vw, 1.6rem);
}
.header-cta { white-space: nowrap; padding: .72rem 1.25rem; font-size: .98rem; }

.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--primary);
  font-family: var(--font-head); font-weight: 800; font-size: 1.06rem; line-height: 1.12;
  margin-right: auto; white-space: nowrap;
}
.brand svg { width: 38px; height: 38px; flex: none; color: var(--secondary); transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(90deg); }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .66rem; color: var(--text-soft); letter-spacing: .03em; white-space: normal; }
/* over-hero (transparent) state */
.site-header.overlay:not(.scrolled) .brand { color: #fff; }
.site-header.overlay:not(.scrolled) .brand small { color: rgba(255,255,255,.75); }
.site-header.overlay:not(.scrolled) .main-nav > a { color: rgba(255,255,255,.92); }
.site-header.overlay:not(.scrolled) .header-phone { color: #fff; }
.site-header.overlay:not(.scrolled) .nav-toggle { border-color: rgba(255,255,255,.4); }
.site-header.overlay:not(.scrolled) .nav-toggle svg { stroke: #fff; }

.main-nav { display: none; }
.main-nav > a {
  position: relative;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem;
  padding: .4rem 0;
}
.main-nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2.5px;
  background: var(--secondary); border-radius: 2px;
  transition: right .25s var(--ease);
}
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after { right: 0; }
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--secondary-deep); }
.site-header.overlay:not(.scrolled) .main-nav > a:hover { color: #fff; }

.header-phone { display: none; text-decoration: none; font-weight: 800; color: var(--primary); white-space: nowrap; font-family: var(--font-head); }
.header-phone span { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 700; color: var(--cta); text-transform: uppercase; letter-spacing: .07em; }

.header-cta { display: none; }
.header-call-mobile {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(180deg, var(--cta), var(--cta-deep));
  color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  padding: .55rem .9rem; border-radius: 9px;
  box-shadow: 0 4px 14px rgba(255,107,53,.35);
  transition: transform .15s var(--ease);
  white-space: nowrap;
}
.header-call-mobile:active { transform: scale(.95); }
.header-call-mobile svg { width: 15px; height: 15px; }

.nav-toggle { background: none; border: 1.5px solid var(--line); border-radius: 9px; padding: .5rem .6rem; cursor: pointer; line-height: 0; transition: border-color .2s; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--primary); }

.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
  background: rgba(247,251,253,.97);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(11,60,93,.12);
}
.mobile-nav > div { min-height: 0; }
.mobile-nav.open { grid-template-rows: 1fr; }
.mobile-nav a {
  display: block; padding: .72rem 1.4rem;
  text-decoration: none; color: var(--primary); font-weight: 600;
  border-bottom: 1px solid rgba(11,60,93,.06);
}
.mobile-nav a:active { background: var(--secondary-soft); }
.mobile-nav .mn-cta { padding: 1rem 1.4rem 1.3rem; border: 0; }

@media (min-width: 980px) {
  .nav-toggle, .mobile-nav, .header-call-mobile { display: none; }
  .main-nav { display: flex; gap: 1.3rem; align-items: center; }
  .header-phone { display: block; }
  .header-cta { display: inline-flex; }
}

/* ================= Hero ================= */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(28,169,201,.35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(28,169,201,.22), transparent 55%),
    linear-gradient(152deg, var(--primary-deep) 0%, var(--primary) 55%, #10517c 100%);
  background-size: 160% 160%, 160% 160%, 100% 100%;
  animation: heroShift 18s ease-in-out infinite alternate;
  color: #e6f2f9;
  padding: 9.5rem 0 4.5rem;   /* clears fixed header */
  overflow: hidden;
}
@keyframes heroShift {
  from { background-position: 0% 0%, 100% 100%, 0 0; }
  to   { background-position: 60% 40%, 40% 60%, 0 0; }
}
.page-hero {
  position: relative;
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(28,169,201,.3), transparent 60%),
    linear-gradient(150deg, var(--primary-deep), var(--primary) 75%);
  color: #cfe3f1; padding: 8.5rem 0 3.2rem; overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 46em; color: #bcd6e8; margin-bottom: 0; }

/* floating snowflakes (decorative) */
.flakes { position: absolute; inset: 0; pointer-events: none; }
.flakes svg {
  position: absolute; color: rgba(255,255,255,.14); width: 30px; height: 30px;
  animation: floatFlake 12s ease-in-out infinite;
}
.flakes svg:nth-child(1) { top: 16%; left: 7%;  width: 26px; animation-delay: 0s; }
.flakes svg:nth-child(2) { top: 62%; left: 14%; width: 40px; animation-delay: -3s; }
.flakes svg:nth-child(3) { top: 22%; left: 78%; width: 52px; animation-delay: -6s; color: rgba(255,255,255,.1); }
.flakes svg:nth-child(4) { top: 70%; left: 86%; width: 30px; animation-delay: -9s; }
.flakes svg:nth-child(5) { top: 40%; left: 46%; width: 22px; animation-delay: -5s; color: rgba(255,255,255,.08); }
@keyframes floatFlake {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(28deg); }
}

.hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }

/* Hero text + photo layout */
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero-media {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(4, 20, 33, .5);
  aspect-ratio: 4 / 3; background: rgba(255,255,255,.06);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .float-badge {
  position: absolute; left: .9rem; bottom: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(8, 44, 69, .82); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
}
.hero-media .float-badge svg { width: 17px; height: 17px; color: var(--eco); }

/* Photo cards / grids (real photos, hover zoom) */
.photo-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 960px) { .photo-grid--4 { grid-template-columns: repeat(4, 1fr); } .photo-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.photo-card {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.photo-card:hover img { transform: scale(1.07); }
.photo-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .85rem .7rem;
  background: linear-gradient(transparent, rgba(8,44,69,.85));
  color: #fff; font-size: .82rem; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.photo-card:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .photo-card figcaption { opacity: 1; transform: none; } }

/* Side image inside content sections */
.media-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lift); margin: 0;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame figcaption { font-size: .84rem; color: var(--text-soft); padding: .55rem .8rem; background: var(--white); border-top: 1px solid var(--line); }
.hero h1 { color: var(--white); max-width: 16.5em; }
.hero .sub { font-size: 1.16rem; max-width: 33em; color: #c9dfee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.7rem 0 .9rem; align-items: center; }
.hero-phone {
  color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.35rem;
  font-family: var(--font-head);
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
}
.hero-phone svg { width: 1.15em; height: 1.15em; flex: none; color: var(--secondary); }
.hero-phone:hover { color: var(--secondary); }
.hero-note { font-size: .9rem; color: #9dbdd4; }
.inline-icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.18em; }

/* ================= Trust bar ================= */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.trust-items { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; padding: 1.2rem 0; }
.trust-item { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; line-height: 1.35; }
.trust-item svg { width: 28px; height: 28px; flex: none; color: var(--secondary); }
.trust-item strong { display: block; color: var(--primary); font-family: var(--font-head); font-size: .95rem; }
.trust-item span { color: var(--text-soft); }
@media (min-width: 760px) { .trust-items { grid-template-columns: repeat(4, 1fr); } }

/* ================= Grids & cards ================= */
.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--2, .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.45rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(28,169,201,.45); }
.card h3 a { color: var(--primary); text-decoration: none; }
.card h3 a:hover { color: var(--secondary-deep); }
.card p { color: var(--text-soft); font-size: .95rem; flex: 1; }
.card .card-link { font-weight: 700; text-decoration: none; font-size: .93rem; }
.card-icon { width: 44px; height: 44px; color: var(--secondary); margin-bottom: .85rem; transition: transform .3s var(--ease); }
.card:hover .card-icon { transform: translateY(-3px) scale(1.08); color: var(--secondary-deep); }

/* ---- Interactive flip service cards ---- */
.svc-flip { perspective: 1200px; min-height: 240px; }
.svc-flip-inner {
  position: relative; width: 100%; height: 100%; min-height: 240px;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.svc-flip:hover .svc-flip-inner,
.svc-flip:focus-within .svc-flip-inner,
.svc-flip.flipped .svc-flip-inner { transform: rotateY(180deg); }
.svc-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.svc-front {
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  align-items: flex-start;
}
.svc-front .card-icon { margin-bottom: 1rem; }
.svc-front h3 { margin-bottom: .3rem; }
.svc-front .svc-hint { font-size: .82rem; color: var(--text-soft); display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; }
.svc-front .svc-hint::after { content: "↻"; color: var(--secondary); font-size: 1rem; }
.svc-back {
  background: linear-gradient(155deg, var(--primary), #10517c);
  color: #dcecf6; transform: rotateY(180deg);
  box-shadow: var(--shadow-lift);
}
.svc-back p { color: #c5dcec; font-size: .93rem; }
.svc-back a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--secondary); padding-bottom: 1px; }
.svc-back a:hover { color: var(--secondary); }

/* Area chips */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.chip-row li { margin: 0; }
.chip {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: var(--white); color: var(--primary);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .55rem 1.15rem;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s var(--ease), background .2s;
}
.chip:hover { transform: translateY(-3px); border-color: var(--secondary); box-shadow: var(--shadow-lift); background: var(--secondary-soft); color: var(--primary); }

/* ================= Checklist / steps ================= */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: .6em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 1.1rem; height: 1.1rem;
  background: var(--eco);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat;
}

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.15rem 3.5rem; position: relative; box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1.05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: linear-gradient(160deg, var(--secondary), var(--secondary-deep));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--primary); font-family: var(--font-head); }
@media (min-width: 860px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }

/* ================= Stats counters ================= */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.4rem .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.stat .num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 2.9rem);
  color: #fff; line-height: 1;
}
.stat .num .suffix { color: var(--secondary); }
.stat .lbl { margin-top: .45rem; font-size: .88rem; color: #b6cfe1; }

/* ================= Tabs ================= */
.tabs { }
.tab-list { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 2px solid var(--line); padding-bottom: 0; margin-bottom: 1.4rem; }
.tab-btn {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  background: none; border: none; cursor: pointer; color: var(--text-soft);
  padding: .7rem 1.1rem; border-radius: 9px 9px 0 0; position: relative;
  transition: color .2s, background .2s;
}
.tab-btn:hover { color: var(--primary); background: var(--secondary-soft); }
.tab-btn::after {
  content: ""; position: absolute; left: 12%; right: 88%; bottom: -2px; height: 3px;
  background: var(--secondary); border-radius: 2px; transition: right .3s var(--ease);
}
.tab-btn[aria-selected="true"] { color: var(--primary); }
.tab-btn[aria-selected="true"]::after { right: 12%; }
.tab-panel { animation: tabIn .35s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ================= FAQ accordions ================= */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: .7rem; box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.faq details:hover { box-shadow: var(--shadow-lift); }
.faq details[open] { border-color: rgba(28,169,201,.5); }
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--primary);
  padding: 1rem 1.2rem; list-style: none; position: relative; padding-right: 2.8rem;
  transition: background .2s;
}
.faq summary:hover { background: var(--secondary-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.15rem; top: 50%;
  width: 12px; height: 12px; transform: translateY(-50%);
  border-right: 2.5px solid var(--secondary); border-bottom: 2.5px solid var(--secondary);
  rotate: 45deg;
  transition: rotate .3s var(--ease), margin-top .3s;
  margin-top: -3px;
}
.faq details[open] summary::after { rotate: 225deg; margin-top: 3px; }
.faq .faq-a { padding: 0 1.2rem 1.05rem; color: var(--text-soft); }
.faq .faq-a p:last-child { margin-bottom: 0; }
/* smooth open */
.faq .faq-a { animation: tabIn .3s var(--ease); }

/* ================= Reviews / carousel ================= */
.review-embed {
  background: var(--white); border: 1.5px dashed var(--secondary); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
}
.stars { color: #F5A623; letter-spacing: .14em; font-size: 1.3rem; }

.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .55s var(--ease); }
.carousel-slide { flex: 0 0 100%; padding: .4rem .3rem; }
.carousel-slide .card { height: 100%; }
@media (min-width: 820px) { .carousel-slide { flex-basis: 50%; } }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.2rem; }
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.15rem;
  transition: transform .18s var(--ease), border-color .2s, background .2s;
  box-shadow: var(--shadow);
}
.carousel-btn:hover { transform: scale(1.1); border-color: var(--secondary); background: var(--secondary-soft); }
.carousel-dots { display: flex; gap: .45rem; }
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--line); transition: background .2s, transform .2s;
}
.carousel-dot[aria-current="true"] { background: var(--secondary); transform: scale(1.3); }

/* ================= Before/After comparator ================= */
.ba-compare {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; user-select: none; touch-action: none;
  background: var(--white);
}
.ba-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-compare .ba-top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px;
  background: var(--white); box-shadow: 0 0 12px rgba(11,60,93,.5);
  transform: translateX(-50%); pointer-events: none;
}
.ba-handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow-lg);
}
.ba-tag {
  position: absolute; top: .7rem; z-index: 2;
  font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  padding: .3rem .7rem; border-radius: 999px; color: #fff; background: rgba(11,60,93,.75);
  backdrop-filter: blur(4px);
}
.ba-tag--before { left: .7rem; }
.ba-tag--after { right: .7rem; background: rgba(28,169,201,.85); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-caption { font-size: .88rem; color: var(--text-soft); margin-top: .5rem; }

/* legacy side-by-side (kept for fallback contexts) */
.ba-pair { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.ba-figure { margin: 0; }
.ba-figure figcaption { font-size: .85rem; color: var(--text-soft); margin-top: .35rem; }
.ph-img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: auto; }

/* ================= Quote form (multi-step) ================= */
.quote-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-lg); color: var(--text);
  position: relative;
}
.quote-panel h3 { margin-top: 0; }
.qsteps-progress { display: flex; gap: .4rem; margin: 1rem 0 1.3rem; }
.qsteps-progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s var(--ease); }
.qsteps-progress span.done { background: var(--secondary); }
.qstep { animation: tabIn .35s var(--ease); }
.qstep[hidden] { display: none; }
.qstep-label { font-family: var(--font-head); font-weight: 700; color: var(--primary); margin-bottom: .8rem; font-size: 1.05rem; }
.qstep-nav { display: flex; gap: .7rem; margin-top: 1.1rem; }
.qstep-nav .btn { flex: 1; }
.qstep-back { background: var(--secondary-soft); color: var(--primary) !important; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .65rem .8rem; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--text);
  transition: border-color .18s, background .18s, transform .18s var(--ease);
  background: var(--white);
}
.choice:hover { border-color: var(--secondary); transform: translateY(-2px); }
.choice input { accent-color: var(--secondary-deep); }
.choice:has(input:checked) { border-color: var(--secondary-deep); background: var(--secondary-soft); }

.form-row { margin-bottom: .95rem; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--primary); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--secondary);
  box-shadow: 0 0 0 3px var(--secondary-soft);
}
.form-note { font-size: .84rem; color: var(--text-soft); margin-top: .7rem; }
.form-status { font-weight: 600; margin-top: .8rem; }
.form-status.ok { color: var(--eco); }
.form-status.err { color: #C0392B; }

.split { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.12fr .88fr; } }

/* ================= CTA band ================= */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% -30%, rgba(28,169,201,.35), transparent 60%),
    linear-gradient(135deg, var(--primary-deep), var(--primary));
  position: relative; overflow: hidden;
}
.cta-band .inner { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; padding: 2.8rem 0; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #bfd8ea; margin: 0; max-width: 38em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (min-width: 860px) { .cta-band .inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ================= Footer ================= */
.site-footer { background: linear-gradient(180deg, var(--primary-deep), #061F31); color: #a9c4d8; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; padding: 3.2rem 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: .98rem; margin-bottom: .75rem; }
.site-footer a { color: #c5dcec; text-decoration: none; transition: color .15s, padding-left .2s var(--ease); }
.site-footer a:hover { color: var(--secondary); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .45em; }
.footer-list a:hover { padding-left: 4px; }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.09); align-items: center; justify-content: center;
  transition: background .2s, transform .2s var(--ease);
}
.footer-social a:hover { background: var(--secondary); transform: translateY(-3px); padding-left: 0; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.15rem 0 5.6rem;
  font-size: .85rem; color: #7fa0b8;
}
@media (min-width: 980px) { .footer-bottom { padding-bottom: 1.15rem; } }

/* ================= Sticky mobile CTA ================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(11,60,93,.14);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: filter .15s;
}
.sticky-cta a:active { filter: brightness(.9); }
.sticky-cta svg { width: 18px; height: 18px; }
.sticky-cta .call { background: linear-gradient(180deg, var(--cta), var(--cta-deep)); color: #fff; }
.sticky-cta .quote { background: var(--primary); color: #fff; }
@media (min-width: 980px) { .sticky-cta { display: none; } }

/* ================= Breadcrumbs ================= */
.crumbs { font-size: .88rem; color: var(--text-soft); padding: 5.6rem 0 0; background: transparent; }
.crumbs + main .page-hero, .crumbs + main .hero { padding-top: 3rem; }
/* crumbs sit under fixed header; interior pages use dark hero right after, so give them a light strip */
.crumbs { background: var(--bg); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: .4rem 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--line); }
.crumbs a { text-decoration: none; }

/* ================= Blog / prose ================= */
.post-meta { font-size: .88rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.1rem; }
.prose h3 { margin-top: 1.5rem; }

/* ================= Utility ================= */
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.small { font-size: .88rem; color: var(--text-soft); }
.badge {
  display: inline-block; background: var(--secondary-soft); color: var(--secondary-deep);
  font-family: var(--font-head);
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: .3rem .85rem; margin-bottom: .9rem;
}
.badge--eco { background: rgba(60,184,120,.14); color: #22713F; }
.hero .badge, .section--navy .badge { background: rgba(255,255,255,.12); color: #cfe4f6; backdrop-filter: blur(4px); }

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .hero { animation: none; }
  .flakes { display: none; }
}
