/* ==========================================================================
   SUPERIOR FINISH LLC — styles.css
   Mobile-first stylesheet. Brand colors live in :root.
   Palette taken from the official Superior Finish LLC logo (navy, royal blue, gold).
   ========================================================================== */

/* Self-hosted variable font (Manrope, SIL OFL 1.1). Latin subset covers English + Spanish. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  /* Brand palette (provisional — derive from official logo) */
  --ink: #0B2A57;        /* logo navy (headings, header, footer) */
  --ink-2: #14397A;
  --paint: #0B3D7E;      /* logo blue — hero paint stripe */
  --paint-2: #1352A8;
  --gold: #EDB314;       /* logo gold — accent / primary CTA */
  --gold-2: #F7C933;
  --gold-d: #8A6100;     /* accent text on light backgrounds */
  --wall: #F7F4EF;       /* warm "fresh wall" background */
  --wall-2: #EFEAE2;
  --paper: #FFFFFF;
  --text: #1B2333;
  --muted: #566070;
  --line: #E4DED3;
  --ok: #1E7A4F;
  --err: #B42318;

  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .08);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, .16);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paint-2); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; color: var(--ink); letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.05rem, 4.3vw, 3.55rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 200; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section { padding: clamp(60px, 9vw, 108px) 0; }
.section-alt { background: var(--wall); }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); margin-bottom: .8rem; }
.lead { font-size: 1.13rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.55rem; border-radius: 999px; border: 2px solid transparent;
  font: 800 .93rem/1 var(--font); letter-spacing: .05em; text-decoration: none; text-transform: uppercase;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(237, 179, 20, .35); }
.btn-primary:hover { background: var(--gold-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .75); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-wa { background: #1E8E4E; color: #fff; }
.btn-wa:hover { background: #18773F; }
.header-wa { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #1E8E4E; color: #fff; flex: none; }
.header-wa svg { width: 22px; height: 22px; }
.header-wa:hover { background: #18773F; }
.wa-side { margin-top: 12px; width: 100%; }
/* both lines (English / Spanish) with call + WhatsApp */
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.line-lab { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 64px; }
.wa-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: .88rem; color: #1E8E4E !important; text-decoration: none; }
.wa-link svg { width: 18px; height: 18px; }
.site-footer .line-lab { color: rgba(255,255,255,.6); }
.site-footer .wa-link { color: #6FD39A !important; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 14px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.header-cta { white-space: nowrap; }
.site-nav a:hover { color: var(--gold-d); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .78rem; font-weight: 800; }
.lang-switch a, .lang-switch span { padding: 7px 11px; color: var(--muted); text-decoration: none; line-height: 1; }
.lang-switch [aria-current] { background: var(--ink); color: #fff; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 20px; height: 20px; color: var(--gold-d); }
.header-cta { min-height: 44px; padding: 0 1.1rem; font-size: .8rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 18px; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-cta { display: none; }
}
@media (max-width: 480px) {
  .header-phone { display: none; }   /* the call button stays in the fixed bottom bar */
}
@media (max-width: 420px) {
  .brand img { height: 34px; }
  .lang-switch a, .lang-switch span { padding: 7px 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(52px, 7vw, 92px); background: linear-gradient(180deg, var(--wall) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--muted); max-width: 36ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.trust-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list svg { width: 20px; height: 20px; color: var(--ok); flex: none; }

.hero-visual { position: relative; }
/* The painted "wall". Fixed aspect-ratio = no layout shift (CLS). */
.wall {
  --k: 1;                                   /* animation speed multiplier */
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, #fff 0%, rgba(255,255,255,0) 60%),
    repeating-linear-gradient(0deg, rgba(20,33,61,.012) 0 2px, transparent 2px 5px),
    #F4F0E8;
  box-shadow: var(--shadow-lg); container-type: inline-size; isolation: isolate;
}
.wall::after { /* baseboard */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7%;
  background: linear-gradient(180deg, #fff, #EEE9E0); border-top: 2px solid #E2DCD1;
}
.stripe {
  position: absolute; left: 5%; right: 5%; height: 30%; border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center; padding: 0 6%; overflow: hidden;
}
.stripe-1 {
  top: 13%; color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, var(--paint-2), var(--paint));
}
.stripe-2 {
  top: 52%; color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, var(--gold-2), var(--gold));
}
.stripe-brand { font-weight: 800; letter-spacing: .06em; white-space: nowrap; font-size: clamp(1.1rem, 3.4vw, 2.6rem); font-size: 6.1cqw; }
.stripe-title { font-weight: 800; line-height: 1.12; font-size: clamp(.95rem, 2vw, 1.55rem); font-size: 4.2cqw; }
.stripe-sub { font-weight: 700; opacity: .82; margin-top: .35em; font-size: clamp(.7rem, 1.3vw, .98rem); font-size: 2.6cqw; }

.roller-track { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; }
.roller { position: absolute; top: 0; left: 0; height: 55%; width: auto; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); }

/* Animation only runs when JS is present (html.js) and the wall has .run */
.js .wall.run .stripe-1 { animation: sfRevealRight calc(1.15s * var(--k)) ease-in-out calc(.25s * var(--k)) both; }
.js .wall.run .stripe-2 { animation: sfRevealLeft calc(1.2s * var(--k)) ease-in-out calc(1.6s * var(--k)) both; }
.js .wall.run .roller-track { animation: sfRoll calc(2.9s * var(--k)) ease-in-out both; }
@keyframes sfRevealRight { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sfRevealLeft  { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes sfRoll {
  0%    { opacity: 0; transform: translate(-14%, 9%); }
  8.6%  { opacity: 1; transform: translate(-8%, 9%); }
  48.3% { transform: translate(86%, 9%); }
  55.2% { transform: translate(86%, 48%); }
  96.6% { opacity: 1; transform: translate(-8%, 48%); }
  100%  { opacity: 0; transform: translate(-12%, 48%); }
}

.hero-badge {
  position: absolute; left: -14px; bottom: 22px; z-index: 3; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: .9rem;
}
.hero-badge svg { width: 26px; height: 26px; color: var(--gold-d); }
.hero-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 .8rem var(--font); cursor: pointer;
}
.chip svg { width: 16px; height: 16px; }
.chip[hidden] { display: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wall { --k: .7; aspect-ratio: 16 / 10; }   /* lighter, shorter on mobile */
  .hero-badge { display: none; } /* same message is already in the trust list */
  .hero-badge svg { width: 20px; height: 20px; }
}
@media (max-width: 520px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- Value strip ---------- */
.value-strip { background: var(--ink); color: #fff; padding: clamp(36px, 5vw, 56px) 0; }
.value-tagline { text-align: center; font-weight: 800; letter-spacing: .22em; font-size: .8rem; color: var(--gold-2); margin-bottom: 26px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item svg { width: 34px; height: 34px; color: var(--gold-2); flex: none; }
.value-item h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .25em; letter-spacing: 0; }
.value-item p { margin: 0; color: rgba(255,255,255,.8); font-size: .95rem; }
.value-item a { color: #fff; font-weight: 800; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--c1, #EFEAE2); display: grid; place-items: center; overflow: hidden; }
.card-media::before { /* brush stroke */
  content: ""; position: absolute; left: -10%; right: 30%; top: 58%; height: 26%; border-radius: 40px; background: var(--c2, #D8CFC2); transform: rotate(-6deg); opacity: .9;
}
.card-media svg { position: relative; width: 58px; height: 58px; color: var(--ink); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-link { font-weight: 800; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.card-link:hover { color: var(--gold-d); }
.card-link svg { width: 18px; height: 18px; }
.card-cta { background: var(--ink); color: #fff; border-color: var(--ink); justify-content: center; padding: 28px; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255,255,255,.82); }

/* ---------- Service categories (painting / cleaning / maintenance / exterior) ---------- */
h4 { font-size: 1.1rem; font-weight: 800; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; margin: 0 0 .45em; }
.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: calc(-1 * clamp(10px, 2vw, 24px)) 0 clamp(26px, 4vw, 40px); }
.svc-nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; font-size: .92rem; text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.svc-nav a svg { width: 20px; height: 20px; color: var(--gold-d); flex: none; }
.svc-nav a:hover { border-color: var(--gold); background: #FFF9EE; }
.svc-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.svc-group + .svc-group { margin-top: clamp(48px, 7vw, 84px); padding-top: clamp(48px, 7vw, 84px); border-top: 1px solid var(--line); }
.svc-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4.5vw, 60px); align-items: center; }
.svc-intro.flip .scene-lg { order: 2; }
.scene-lg { box-shadow: var(--shadow-lg); }
.svc-num { display: block; font-weight: 800; font-size: .82rem; letter-spacing: .18em; color: var(--gold-d); margin-bottom: .5rem; }
.svc-h { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .45em; }
.svc-text .btn { margin-top: 8px; }
.svc-points { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 14px; }
.svc-points li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.svc-points svg { width: 26px; height: 26px; color: var(--gold-d); flex: none; margin-top: 2px; }
.svc-points h4 { margin-bottom: .2em; }
.svc-points p { margin: 0; color: var(--muted); font-size: .95rem; }
.svc-group > .cards { margin-top: clamp(26px, 4vw, 40px); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card-media.is-scene { aspect-ratio: 4 / 3; display: block; background: var(--wall); }
.card-media.is-scene::before { display: none; }
.card-media.is-scene .scene { border-radius: 0; height: 100%; }
.card-media.is-scene svg { width: 100%; height: 100%; color: inherit; }
.svc-help {
  margin-top: clamp(48px, 7vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px) clamp(22px, 4vw, 44px);
}
.svc-help h3 { color: #fff; margin-bottom: .25em; }
.svc-help p { color: rgba(255,255,255,.82); margin: 0; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .svc-intro { grid-template-columns: 1fr; }
  .svc-intro.flip .scene-lg { order: 0; }
}
@media (max-width: 600px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .svc-nav { gap: 8px; }
  .svc-nav a { font-size: .86rem; padding: 0 12px 0 10px; }
  .svc-help .btn { width: 100%; }
  .card-media:not(.is-scene) { aspect-ratio: 5 / 2; }
}

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; list-style: none; padding: 0; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.why-item svg { width: 30px; height: 30px; color: var(--gold-d); }
.why-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--wall); margin-bottom: 12px; overflow: hidden; }
/* animated icons: only while the list is on screen (.is-on) */
.js .anim-zone.is-on .why-search svg { animation: sfScan 3s ease-in-out infinite; }
.js .anim-zone.is-on .why-clipboard svg path:last-child { stroke-dasharray: 12; animation: sfDraw 2.6s ease-in-out infinite; }
.js .anim-zone.is-on .why-home svg { animation: sfNest 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.js .anim-zone.is-on .why-eye svg { animation: sfBlink 3.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes sfScan { 0%, 100% { transform: translate(-3px, 2px); } 25% { transform: translate(3px, -2px); } 50% { transform: translate(4px, 3px); } 75% { transform: translate(-2px, -3px); } }
@keyframes sfDraw { 0% { stroke-dashoffset: 12; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 12; } }
@keyframes sfNest { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-3px) scale(1.06); } 60% { transform: translateY(0) scale(1); } }
@keyframes sfBlink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
/* color samples are "painted in" the first time they appear */
.js .swatches.anim-zone .swatch-color { clip-path: inset(0 100% 0 0); }
.js .swatches.anim-zone.is-on .swatch-color { animation: sfRevealRight 1.1s ease-in-out both; }
.js .swatches.anim-zone.is-on .swatch:nth-child(2) .swatch-color { animation-delay: .15s; }
.js .swatches.anim-zone.is-on .swatch:nth-child(3) .swatch-color { animation-delay: .3s; }
.js .swatches.anim-zone.is-on .swatch:nth-child(4) .swatch-color { animation-delay: .45s; }
.js .swatches.anim-zone.is-on .swatch:nth-child(5) .swatch-color { animation-delay: .6s; }
.js .swatches.anim-zone.is-on .swatch:nth-child(6) .swatch-color { animation-delay: .75s; }
.why-item p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- Small italic notes (illustrations, colors) ---------- */
.ba-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; font-style: italic; }

/* ---------- Process (each step is an animated scene) ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.step-scene { border-radius: 0; }
.step-body { position: relative; padding: 20px 22px 24px; }
.step-num { position: absolute; top: 16px; right: 20px; font-weight: 800; font-size: 2rem; color: var(--wall-2); line-height: 1; }
.step h3 { padding-right: 44px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1060px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery (color ideas until real project photos exist) ---------- */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.swatch { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.swatch-color { position: relative; aspect-ratio: 4 / 3; background: var(--c); }
.swatch-color::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: #fff; border-top: 3px solid rgba(0,0,0,.06); }
.swatch-body { padding: 14px 18px 18px; }
.swatch-body h3 { margin: 0 0 .15em; font-size: 1.02rem; }
.swatch-body p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .swatches { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .swatches { grid-template-columns: 1fr; } }

/* ---------- Conversion band ---------- */
.convert { background: linear-gradient(120deg, var(--ink) 0%, var(--paint) 100%); color: #fff; text-align: center; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.convert::before { content: ""; position: absolute; left: -5%; right: -5%; top: 0; height: 10px; background: var(--gold); }
.convert h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.convert p { font-size: 1.15rem; color: rgba(255,255,255,.85); }
.convert .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Service area ---------- */
.area-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.area-card .area-actions { display: flex; flex-direction: column; gap: 12px; }
.ph { background: #FFF4D6; color: #14213D; padding: 0 .25em; border-radius: 4px; } /* highlights pending placeholders */
@media (max-width: 760px) { .area-card { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 800; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-d); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq .faq-a p { margin: 0; }

/* ---------- Estimate form ---------- */
.estimate-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.next-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.next-list li { display: flex; gap: 12px; align-items: flex-start; }
.next-list svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 3px; }
.call-box { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.call-box svg { width: 30px; height: 30px; color: var(--gold-d); }
.call-box a { font-size: 1.25rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.call-box small { display: block; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: 500 16px var(--font); color: var(--text); background: #fff; border: 1.5px solid #D6D0C4; border-radius: 12px;
  min-height: 50px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200,150,62,.35); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; font-weight: 700; min-height: 0; margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--ink); }
.req-note { font-size: .82rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; font-size: .95rem; }
.form-status.is-error { color: var(--err); }
.form-status a { color: inherit; }
@media (max-width: 860px) { .estimate-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.contact-card svg { width: 30px; height: 30px; color: var(--gold-d); margin-bottom: 10px; }
.contact-card h3 { margin-bottom: .3em; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-card .lines a:not(.wa-link) { font-size: 1.05rem; }
.contact-card a, .contact-card p { font-size: 1.12rem; font-weight: 800; color: var(--ink); text-decoration: none; margin: 0; word-break: break-word; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 12px 16px; margin-bottom: 16px; }
.footer-brand img { width: 200px; height: auto; }
.site-footer h2 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1.1fr 1.3fr; gap: 6px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(20,33,61,.08);
  }
  .mobile-bar .btn { min-height: 48px; font-size: .74rem; padding: 0 .5rem; gap: .35rem; letter-spacing: .02em; }
  .mobile-bar .btn svg { width: 18px; height: 18px; }
  body { padding-bottom: 72px; }
}

/* ---------- Simple pages (thank-you, legal, 404) ---------- */
.page-hero { background: var(--wall); padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); }
.legal { max-width: 800px; margin-inline: auto; padding: clamp(36px, 6vw, 64px) 0; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal p, .legal li { color: #333B4A; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal .updated { color: var(--muted); font-size: .92rem; }
.ty-card { max-width: 720px; margin: clamp(36px, 6vw, 70px) auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow-lg); text-align: center; }
.ty-icon { width: 72px; height: 72px; border-radius: 50%; background: #E7F4EC; color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.ty-icon svg { width: 38px; height: 38px; }
.ty-card .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.ty-steps { text-align: left; max-width: 480px; margin: 18px auto 0; color: var(--muted); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion: show final state, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .wall.run .stripe-1, .js .wall.run .stripe-2, .js .wall.run .roller-track { animation: none; }
  .roller-track { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .svc-nav a { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ==========================================================================
   ANIMATED SERVICE SCENES (inline SVG generated by src/scenes.py)
   - Joint rotations are baked into each SVG's own <style> (@keyframes).
   - Here: shared timing, play/pause, small effects (sparkle, dust, foam…).
   - Static state = finished composition (reduced motion / no JS).
   ========================================================================== */
.scene { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--wall); contain: paint; }
.scene-svg { display: block; width: 100%; height: 100%; }
.scene-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; background: rgba(255,255,255,.88); color: var(--muted);
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; pointer-events: none;
}
/* Animations exist only with JS, and only run while the scene is on screen (.is-on) */
.js .scene .an { animation-duration: var(--d); animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; animation-play-state: paused; }
.js .scene .an.gait { animation-duration: var(--gait); }
.js .scene .an.spin { animation-duration: var(--spin); }
.js .scene .fx.tw    { animation: sfTwinkle 2.4s ease-in-out infinite both paused; }
.js .scene .fx.dust  { animation: sfDust var(--d) ease-out infinite both paused; }
.js .scene .fx.bub   { animation: sfBubble 1.4s ease-in-out infinite both paused; }
.js .scene .fx.sheen { animation: sfSheen 3.2s ease-in-out infinite both paused; }
.js .scene .fx.wet   { stroke-dasharray: 100 100; animation: sfWet 4s ease-in-out infinite both paused; }
.js .scene .fx.clip  { animation: sfClip .9s ease-out infinite both paused; }
.js .scene.is-on .an, .js .scene.is-on .fx { animation-play-state: running; }
.scene .fx { transform-box: view-box; }

@keyframes sfTwinkle { 0%, 100% { opacity: .15; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
@keyframes sfDust { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(26px, -14px) scale(1.4); } }
@keyframes sfBubble { 0%, 100% { opacity: .2; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes sfSheen { 0%, 100% { opacity: .25; transform: scaleX(.8); } 50% { opacity: .7; transform: scaleX(1); } }
@keyframes sfWet { 0% { stroke-dashoffset: 100; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sfClip { 0% { opacity: 0; transform: translate(0, 0) rotate(0deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-16px, -12px) rotate(-70deg); } }

.js .scene .fx.fall  { animation: sfFall 1.6s ease-in infinite both paused; }
.js .scene .fx.steam { animation: sfSteam 1.8s ease-out infinite both paused; }
.js .scene.is-on .fx { animation-play-state: running; }
@keyframes sfFall { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(-4px, 70px); } }
@keyframes sfSteam { 0% { opacity: 0; transform: translateY(4px) scaleY(.6); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-14px) scaleY(1.1); } }

@media (prefers-reduced-motion: reduce) {
  .scene .an, .scene .fx { animation: none !important; }
  .anim-zone *, .anim-zone .swatch-color { animation: none !important; clip-path: none !important; }
}
