/* =========================================================
   Rynse Cleaning — marketing site
   Brand palette pulled from the Rynse flyer:
   charcoal #474747 · white · ice-blue #C9F8FF (+ sparkle motif).
   ========================================================= */

:root {
  /* Brand */
  --charcoal:    #474747;   /* brand base */
  --charcoal-2:  #333333;   /* deeper sections */
  --charcoal-3:  #242424;   /* footer / near-black */
  --ink:         #232323;   /* body text on light */
  --muted:       #5E5E5E;   /* secondary text (AA on white) */
  --ice:         #C9F8FF;   /* brand accent (sparkle / highlights on dark) */
  --ice-soft:    #E6FCFF;
  --accent:      #0E7385;   /* readable teal (links/accents on light) */
  --accent-dark: #0A5A69;
  --surface:     #FFFFFF;
  --panel:       #F2F4F4;   /* neutral light section bg */
  --panel-2:     #E7EBEC;
  --border:      #E0E3E4;
  --border-dark: rgba(255,255,255,.14);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,20,20,.05), 0 3px 10px rgba(20,20,20,.05);
  --shadow-md: 0 10px 30px rgba(20,20,20,.10);
  --shadow-lg: 0 28px 64px rgba(20,20,20,.22);
  --maxw: 1180px;

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

  --z-header: 100;
  --z-mobilebar: 90;
  --z-modal: 200;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.07; letter-spacing: -0.02em; text-wrap: balance; color: var(--charcoal-2); }
p { text-wrap: pretty; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 2rem + 7.5vw, 7rem); }

.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; background: var(--charcoal-2); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 999; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Sparkle motif (from the logo) ---------- */
.sparkle {
  --s: 28px;
  width: var(--s); height: var(--s); display: inline-block; flex: none;
  background: var(--ice);
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
}

/* ---------- Scroll-driven sparkle parallax layer (built in script.js) ---------- */
.scroll-sparkles {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.scroll-sparkles .ss {
  position: absolute; top: 0; left: 0;
  width: var(--ss-size, 18px); height: var(--ss-size, 18px);
  background: var(--ice);
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
  filter: drop-shadow(0 0 6px rgba(201,248,255,.55));
  opacity: var(--ss-opacity, .18);
  will-change: transform;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: .82rem 1.45rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, color .2s;
  text-align: center; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.02rem 1.85rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* charcoal primary (default, on light surfaces) */
.btn-primary { background: var(--charcoal-2); color: #fff; box-shadow: 0 8px 20px rgba(36,36,36,.22); }
.btn-primary:hover { background: #161616; color:#fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(36,36,36,.3); }

/* ice accent CTA (on dark surfaces) */
.hero-actions .btn-primary,
.site-footer .btn-primary { background: var(--ice); color: var(--charcoal-2); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.hero-actions .btn-primary:hover,
.site-footer .btn-primary:hover { background: #fff; color: var(--charcoal-2); }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.42); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color:#fff; }

.btn-light { background: var(--ice); color: var(--charcoal-2); }
.btn-light:hover { background: #fff; color: var(--charcoal-2); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color:#fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-footer .brand-logo { height: 46px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 1.65rem; list-style: none; padding: 0; }
.nav-list a { color: var(--ink); font-weight: 600; font-size: .98rem; position: relative; padding: .25rem 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .3s var(--ease-out); border-radius: 2px; }
.nav-list a:hover { color: var(--charcoal-2); }
.nav-list a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: .9rem; }
.call-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--charcoal-2); white-space: nowrap; }
.call-link:hover { color: var(--accent); }
.call-link svg { color: var(--accent); }
.nav-toggle { display: none; }

/* ---------- Hero (drenched charcoal, like the flyer) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(90% 120% at 88% -10%, rgba(201,248,255,.16) 0%, rgba(201,248,255,0) 45%),
    linear-gradient(160deg, #525252 0%, var(--charcoal) 45%, #2B2B2B 100%);
  padding-block: clamp(3.25rem, 2rem + 7vw, 6.5rem);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg .shine {
  position: absolute; top: -30%; right: -8%; width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,248,255,.14), transparent 62%);
  animation: drift 16s ease-in-out infinite alternate;
}
/* droplets repurposed as brand sparkles */
.droplet {
  position: absolute; background: var(--ice); opacity: .85;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
  filter: drop-shadow(0 0 10px rgba(201,248,255,.6));
}
.droplet.d1 { width: 42px; height: 42px; top: 16%; left: 7%; animation: twinkle 5s var(--ease-out) infinite; }
.droplet.d2 { width: 22px; height: 22px; top: 66%; left: 16%; animation: twinkle 6.5s var(--ease-out) infinite 1s; }
.droplet.d3 { width: 60px; height: 60px; bottom: 6%; right: 32%; opacity: .5; animation: twinkle 8s var(--ease-out) infinite .5s; }
.droplet.d4 { width: 16px; height: 16px; top: 30%; left: 30%; animation: twinkle 4.5s var(--ease-out) infinite .8s; }
.droplet.d5 { width: 30px; height: 30px; top: 10%; right: 42%; opacity: .7; animation: twinkle 7s var(--ease-out) infinite .3s; }
.droplet.d6 { width: 18px; height: 18px; bottom: 30%; left: 4%; animation: twinkle 5.5s var(--ease-out) infinite 1.4s; }
.droplet.d7 { width: 24px; height: 24px; top: 44%; left: 47%; opacity: .55; animation: twinkle 6s var(--ease-out) infinite 2s; }
.droplet.d8 { width: 36px; height: 36px; bottom: 14%; left: 24%; opacity: .6; animation: twinkle 7.5s var(--ease-out) infinite 1.1s; }
@keyframes twinkle { 0%,100% { transform: scale(.7) rotate(0deg); opacity: .35; } 50% { transform: scale(1) rotate(45deg); opacity: .9; } }
@keyframes drift { to { transform: translate(-26px, 26px) scale(1.08); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.55fr .8fr; gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); align-items: center; }
.hero-copy { max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ice); font-size: .92rem; letter-spacing: .02em; margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 16px; height: 16px; background: var(--ice); clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.45rem + 2.9vw, 3.7rem); font-weight: 800; letter-spacing: -.04em; text-wrap: pretty; }
.hero .lede { color: rgba(255,255,255,.86); font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); margin-top: 1.15rem; }

.hero-badges { list-style: none; padding: 0; margin: 1.7rem 0 0; display: grid; gap: .6rem; }
.hero-badges li { display: flex; align-items: center; gap: .65rem; font-weight: 600; color: rgba(255,255,255,.92); }
.hero-badges svg { color: var(--ice); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }

/* Quote card */
.quote-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); box-shadow: var(--shadow-lg);
}
.quote-card h2 { font-size: 1.55rem; }
.quote-sub { color: var(--muted); margin-top: .35rem; font-size: .98rem; }
.quote-form { margin-top: 1.25rem; display: grid; gap: .85rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .85rem; color: var(--charcoal-2); }
.field input, .field select {
  font: inherit; padding: .72rem .85rem; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #8a8a8a; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,115,133,.15); }
.form-note { font-weight: 600; color: var(--accent); min-height: 1.2em; font-size: .92rem; }
.form-note.error { color: #c0392b; }
.form-fine { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Intro ---------- */
.intro { background: var(--surface); padding-block: clamp(2.75rem, 1.5rem + 4vw, 4.25rem); }
.intro-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.intro-inner h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.intro-inner p { color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }

/* ---------- About / Meet the team ---------- */
.about { background: var(--panel); }
.about-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.25rem); align-items: center;
}
.about-photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  background-image: var(--img); background-size: cover; background-position: center;
}
.about-photo.is-placeholder {
  display: grid; place-items: center;
  background-image: none;
  background-color: var(--charcoal);
  background: linear-gradient(150deg, var(--charcoal) 0%, var(--charcoal-3) 100%);
}
.about-sparkle {
  display: none; width: 64px; height: 64px; background: var(--ice); opacity: .9;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
}
.about-photo.is-placeholder .about-sparkle { display: block; }
.about-intro h2 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.85rem); margin-top: .2rem; }
.about-lede { color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }
.about-team {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem;
  margin-top: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
}
.founder {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.85rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.founder:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--panel-2); }
.founder h3 { font-size: 1.35rem; }
.founder .role { color: var(--accent); font-weight: 700; font-size: .95rem; margin-top: .2rem; }
.founder p:last-child { color: var(--muted); margin-top: .7rem; }
@media (max-width: 760px) {
  .about-top { grid-template-columns: 1fr; }
  .about-team { grid-template-columns: 1fr; }
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.25rem, 1rem + 3vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.85rem); }
.section-head p { color: var(--muted); margin-top: .7rem; font-size: 1.12rem; }

/* ---------- Services ---------- */
.services { background: var(--panel); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.1rem 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--panel-2); }
.service-icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px;
  background: linear-gradient(150deg, var(--charcoal), var(--charcoal-3)); color: var(--ice); margin-bottom: 1.15rem;
}
.service-card h3 { font-size: 1.4rem; }
.service-card p { color: var(--muted); margin-top: .55rem; }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--accent); }
.card-link:hover { color: var(--accent-dark); }
.services-foot { text-align: center; margin-top: 2.1rem; color: var(--muted); }

/* ---------- Why / comparison ---------- */
.why { background: var(--surface); }
.compare { max-width: 920px; margin-inline: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.compare-row > span { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.compare-row > span:first-child { justify-content: flex-start; text-align: left; font-weight: 600; color: var(--charcoal-2); }
.compare-row:last-child > span { border-bottom: none; }
.compare-head { background: var(--charcoal-2); color: #fff; }
.compare-head > span { color: #fff; font-family: var(--font-display); font-weight: 700; border-bottom: none; padding-block: 1.1rem; }
.compare-head > span:first-child { color: #fff; }
.compare-head .col-rynse { color: var(--ice); }
.compare-logo { display: block; height: 38px; width: auto; margin: 0 auto; }
@media (max-width: 900px) { .compare-logo { height: 30px; } }
.col-rynse { background: rgba(14,115,133,.06); font-weight: 700; }
.compare-row:not(.compare-head) .col-rynse { box-shadow: inset 0 0 0 1px rgba(14,115,133,.12); }

/* Status icons = centered inline SVGs (uniform stroke, no magic offsets) */
.compare i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; }
.compare i svg { width: 17px; height: 17px; display: block; }
.compare i.yes { background: rgba(14,115,133,.14); color: var(--accent); }
.compare i.no { background: rgba(120,120,120,.18); color: #7c7c7c; }
.compare i.maybe { background: rgba(120,120,120,.18); color: #7c7c7c; }

/* ---------- Process ---------- */
.process { background: var(--panel); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 2.25rem 1.85rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; }
.step-num {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--charcoal-2); color: var(--ice);
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); margin-top: .5rem; }
.process-cta { text-align: center; margin-top: 2.6rem; }

/* ---------- Reviews — staggered testimonial carousel ---------- */
.reviews { background: var(--surface); }
.stagger { position: relative; width: 100%; height: 600px; overflow: hidden; }
.stagger-stage { position: absolute; inset: 0; }
.stag-card {
  position: absolute; left: 50%; top: 50%; box-sizing: border-box;
  border: 2px solid var(--border); background: #fff; color: var(--ink);
  padding: 2rem; cursor: pointer; backface-visibility: hidden;
  /* transform glides for LONGER than one rotate interval (linear), so the next
     step interrupts a card while it's still moving — it never comes to rest, so
     the fan reads as one unbroken, continuous slow turn (no stop-and-go). The
     highlight (color/bg/border/shadow) stays snappy so the center card lights up
     cleanly. */
  transition: transform 3.7s linear, opacity .6s var(--ease-out), background .45s var(--ease-out),
              color .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
  clip-path: polygon(50px 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, calc(100% - 50px) 100%, 50px 100%, 0 100%, 0 0);
}
.stag-card:hover { border-color: rgba(14,115,133,.5); }
.stag-card.is-center {
  z-index: 10; background: var(--charcoal-2); color: #fff; border-color: var(--charcoal-2);
  box-shadow: 0 8px 0 3px var(--ice); cursor: default;
}
/* diagonal notch accent line (was the rotated <span> in the React version) */
.stag-corner { position: absolute; right: -2px; top: 48px; width: 70.71px; height: 2px; background: var(--border); transform-origin: top right; transform: rotate(45deg); }
.is-center .stag-corner { background: var(--ice); }
.stag-avatar {
  display: grid; place-items: center; width: 48px; height: 56px; margin-bottom: 1rem;
  background: var(--panel-2); color: var(--charcoal-2);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: 3px 3px 0 var(--surface);
}
.is-center .stag-avatar { background: var(--ice); color: var(--charcoal-2); box-shadow: 3px 3px 0 var(--charcoal-3); }
.stag-stars { color: #E2A100; letter-spacing: 2px; font-size: 1rem; margin-bottom: .5rem; }
.is-center .stag-stars { color: var(--ice); }
.stag-quote { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.28; color: var(--ink); }
.is-center .stag-quote { color: #fff; }
.stag-by { position: absolute; bottom: 2rem; left: 2rem; right: 2rem; font-size: .85rem; font-style: italic; color: var(--muted); }
.is-center .stag-by { color: rgba(255,255,255,.82); }
.stagger-controls { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; z-index: 20; }
.stagger-btn {
  display: grid; place-items: center; width: 54px; height: 54px; padding: 0;
  background: #fff; border: 2px solid var(--border); color: var(--charcoal-2); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.stagger-btn:hover { background: var(--charcoal-2); color: var(--ice); border-color: var(--charcoal-2); }
.stagger-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .stagger { height: 520px; } }
@media (prefers-reduced-motion: reduce) { .stag-card { transition: none; } }

/* ---------- Gallery / before-after ---------- */
.gallery { background: var(--panel); }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-inline: auto; }
.gallery .container { width: min(100% - 2.5rem, 1380px); }
@media (max-width: 900px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-item { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ba-frame { position: relative; aspect-ratio: 4 / 3; background-image: var(--img); background-size: cover; background-position: center; }
.ba-frame.is-placeholder { background: linear-gradient(135deg, var(--panel-2), #d4dadb); }
.ba-frame.is-placeholder.ba-after { background: linear-gradient(135deg, #dff7fb, var(--ice)); }
.ba-frame + .ba-frame { border-top: 3px solid #fff; }
.ba-tag { position: absolute; top: .8rem; left: .8rem; background: rgba(36,36,36,.82); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; }
.ba-tag-after { background: var(--accent); }
.ba-item figcaption { padding: 1rem 1.2rem; font-weight: 600; color: var(--charcoal-2); }

/* ---------- Service area ---------- */
.area { background: var(--surface); }
.area-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,1rem+4vw,4rem); align-items: center; }
.area-copy h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.area-copy p { color: var(--muted); margin: 1rem 0 1.6rem; font-size: 1.1rem; }
.area-card {
  position: relative; min-height: 250px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--charcoal), var(--charcoal-3));
  display: grid; place-items: center; text-align: center; color: #fff; box-shadow: var(--shadow-md); overflow: hidden;
}
/* Bakersfield map sits subtly in the background... */
.area-card .area-map {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: grayscale(.4);
}
/* ...behind a semi-transparent gray overlay so the map reads faintly and the
   pin + text stay crisp and legible on top. */
.area-card .area-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(201,248,255,.16), transparent 55%),
    linear-gradient(150deg, rgba(40,40,40,.74), rgba(26,26,26,.86));
}
.area-card .area-content { position: relative; z-index: 2; }
.area-card p { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.area-card small { font-weight: 400; font-family: var(--font-body); opacity: .82; }
.pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--ice); transform: rotate(-45deg); margin: .6rem auto .9rem; box-shadow: 0 0 0 8px rgba(201,248,255,.18); }

/* ---------- FAQ ---------- */
.faq { background: var(--panel); }
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 700; color: var(--charcoal-2); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .3s var(--ease-out); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(90% 130% at 82% -10%, rgba(201,248,255,.16), transparent 50%),
    linear-gradient(150deg, var(--charcoal), var(--charcoal-3));
  padding-block: clamp(3.25rem, 2rem + 5vw, 5.25rem);
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; background: var(--ice); opacity: .5;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%); filter: drop-shadow(0 0 10px rgba(201,248,255,.5)); }
.cta-band::before { width: 46px; height: 46px; top: 18%; left: 9%; }
.cta-band::after { width: 26px; height: 26px; bottom: 22%; right: 12%; }
.cta-inner { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 3vw, 3rem); }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 1.2rem; margin-top: .8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-3); color: #b9bdbe; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: #9b9fa0; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: #b9bdbe; }
.footer-col a:hover { color: #fff; }
.footer-contact .btn { margin-top: 1.1rem; }
.footer-bar { border-top: 1px solid var(--border-dark); }
.footer-bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 1.3rem; font-size: .9rem; color: #8d9091; }

/* ---------- Mobile call bar ---------- */
.mobile-call {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-mobilebar);
  background: var(--ice); color: var(--charcoal-2); font-weight: 700; text-align: center;
  padding: .9rem; align-items: center; justify-content: center; gap: .5rem;
  box-shadow: 0 -4px 16px rgba(20,20,20,.22);
}
.mobile-call svg { color: var(--charcoal-2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .area-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px; position: relative;
  }
  .nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; width: 20px; height: 2.5px; background: var(--charcoal-2); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
  .nav-toggle .bar { left: 12px; }
  .nav-toggle .bar::before { top: -7px; left: 0; }
  .nav-toggle .bar::after { top: 7px; left: 0; }
  .nav-toggle[aria-expanded="true"] .bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-7px) rotate(-45deg); }

  .main-nav { margin-left: 0; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: .5rem 1.25rem 1rem; display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-list a::after { display: none; }

  .header-cta .call-link { display: none; }

  .compare { font-size: .9rem; }
  .compare-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .compare-row > span { padding: .8rem .4rem; }
  .compare-head > span { font-size: .82rem; }

  .mobile-call { display: flex; }
  .site-footer { padding-bottom: 56px; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn { padding: .65rem 1rem; font-size: .9rem; }
  .compare-row > span:first-child { font-size: .92rem; }
  .brand-logo { height: 34px; }
}

/* ---------- Leave-a-review CTA + modal ---------- */
.review-cta { text-align: center; margin-top: 2.4rem; }
.review-cta p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }

/* Overlay: hidden by default via the [hidden] attribute (toggled in JS). */
.review-modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.review-modal[hidden] { display: none; }
.review-backdrop {
  position: absolute; inset: 0;
  background: rgba(26,26,26,.62);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.review-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  max-height: calc(100vh - 2.5rem); overflow-y: auto;
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  animation: review-pop .28s var(--ease-out);
}
.review-card h2 { font-size: 1.5rem; padding-right: 2rem; }
.review-form { margin-top: 1.25rem; display: grid; gap: .85rem; }
.review-form textarea {
  font: inherit; padding: .72rem .85rem; border: 1.5px solid var(--border);
  border-radius: 10px; resize: vertical; min-height: 110px; color: var(--ink);
  background: #fff;
}
.review-form textarea::placeholder { color: #8a8a8a; }
.review-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,115,133,.15); }
.field-optional { font-weight: 400; color: var(--muted); font-size: .8rem; }

/* Close button */
.review-close {
  position: absolute; top: .85rem; right: .85rem;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid var(--border); background: #fff;
  color: var(--charcoal-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.review-close:hover { background: var(--charcoal-2); color: var(--ice); border-color: var(--charcoal-2); }

/* Star rating — radios styled as stars. Reverse DOM order (5→1) lets the
   sibling combinator light the checked star plus all lower-value stars. */
.rating-field { border: none; padding: 0; }
.rating-field legend { font-weight: 600; font-size: .85rem; color: var(--charcoal-2); padding: 0; margin-bottom: .15rem; }
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.star-rating input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.star-rating label {
  cursor: pointer; line-height: 1; color: var(--border);
  font-size: 2rem; transition: color .15s, transform .15s;
}
.star-rating label::before { content: "\2605"; } /* ★ */
.star-rating label:hover { transform: scale(1.12); }
/* Hover: highlight hovered star and all that come after it in the DOM
   (which are the lower-value stars, sitting to its left visually). */
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #F2B400; }
.star-rating input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@keyframes review-pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Lock background scroll while the modal is open */
body.no-scroll { overflow: hidden; }

/* =========================================================
   Visual polish pass (2026-06-23)
   - ice-tinted ambient glows + faint dot texture so the light
     sections stop reading as flat white
   - gentle angled dividers at the dark hero / CTA boundaries
   - button shine sweep + extra hover micro-interactions
   - interactive before/after drag sliders in the gallery
   These rules come after the originals on purpose (they override
   the plain section backgrounds + a couple of gallery rules).
   ========================================================= */

/* ---- Ambient ice glows on the light sections (alternating corners).
        Panel sections also get a barely-there dot grid for texture. ---- */
.services {
  background:
    radial-gradient(rgba(71,71,71,.045) 1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(42% 55% at 100% -5%, rgba(201,248,255,.50), transparent 60%),
    radial-gradient(38% 52% at -5% 105%, rgba(201,248,255,.34), transparent 60%),
    var(--panel);
}
.why {
  background:
    radial-gradient(46% 60% at -5% 0%, rgba(201,248,255,.30), transparent 60%),
    radial-gradient(40% 55% at 105% 100%, rgba(201,248,255,.22), transparent 60%),
    var(--surface);
}
.process {
  background:
    radial-gradient(rgba(71,71,71,.045) 1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(44% 58% at -5% -5%, rgba(201,248,255,.44), transparent 60%),
    radial-gradient(40% 54% at 105% 105%, rgba(201,248,255,.30), transparent 60%),
    var(--panel);
}
.reviews {
  background:
    radial-gradient(46% 60% at 105% 0%, rgba(201,248,255,.28), transparent 60%),
    radial-gradient(40% 55% at -5% 100%, rgba(201,248,255,.22), transparent 60%),
    var(--surface);
}
.gallery {
  background:
    radial-gradient(rgba(71,71,71,.045) 1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(44% 58% at 105% -5%, rgba(201,248,255,.46), transparent 60%),
    var(--panel);
}
.area {
  background:
    radial-gradient(46% 60% at -5% 0%, rgba(201,248,255,.30), transparent 60%),
    var(--surface);
}
.faq {
  background:
    radial-gradient(rgba(71,71,71,.045) 1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(44% 58% at -5% -5%, rgba(201,248,255,.42), transparent 60%),
    var(--panel);
}

/* ---- Button shine sweep (a soft light passes across on hover) ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .65s var(--ease-out);
}
.btn:hover::after { left: 150%; }

/* ---- Extra hover micro-interactions ---- */
.service-icon { transition: transform .35s var(--ease-out); }
.service-card:hover .service-icon { transform: rotate(-5deg) scale(1.07); }
.step { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.faq details { transition: box-shadow .25s, transform .25s var(--ease-out); }
.faq details:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---- Before / after drag slider ---- */
.ba-item { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.ba-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ba-slider {
  position: relative; aspect-ratio: 4 / 3.4; overflow: hidden;
  isolation: isolate; touch-action: pan-y; user-select: none; cursor: ew-resize;
}
.ba-slider .ba-frame {
  position: absolute; inset: 0; aspect-ratio: auto;
  background-image: var(--img); background-size: cover; background-position: center;
}
.ba-slider .ba-frame + .ba-frame { border-top: none; }
.ba-slider .ba-after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba-slider .ba-tag { z-index: 3; }
.ba-slider .ba-tag-after { left: auto; right: .8rem; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%);
  width: 3px; transform: translateX(-50%); z-index: 4; pointer-events: none;
  background: #fff; box-shadow: 0 0 0 1px rgba(36,36,36,.25), 0 0 12px rgba(20,20,20,.25);
}
.ba-grip {
  position: absolute; top: 50%; left: var(--ba-pos, 50%);
  width: 46px; height: 46px; transform: translate(-50%, -50%);
  z-index: 5; pointer-events: none; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--charcoal-2);
  border: 2px solid var(--ice); box-shadow: 0 6px 16px rgba(20,20,20,.40);
}
.ba-grip svg { width: 22px; height: 22px; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
  opacity: 0; cursor: ew-resize; z-index: 6;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; }
.ba-range::-moz-range-thumb { width: 46px; height: 100%; border: 0; background: transparent; }
.ba-range:focus-visible ~ .ba-grip { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-item:hover .ba-grip { box-shadow: 0 8px 22px rgba(20,20,20,.50); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-sparkles { display: none; }
  .hero-bg .shine, .droplet { animation: none; }
  .btn, .service-card, .nav-list a::after,
  .step, .ba-item, .faq details, .service-icon { transition: none; }
  .btn::after { display: none; }
  .review-card { animation: none; }
  .star-rating label { transition: none; }
  * { scroll-behavior: auto !important; }
}
