/* ==========================================================================
   Max Flooring Co — landing page  ·  mobile-first
   ========================================================================== */

/* ---------- Self-hosted fonts (OFL) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); }

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --bg-3: #1a1a1d;
  --paper: #f6f3ef;
  --paper-2: #ffffff;
  --ink: #121212;
  --text-dark: #3a3632;
  --muted-dark: #6b645e;
  --text-light: #ecebe8;
  --muted-light: #a8a39d;
  --stroke-dark: rgba(255, 255, 255, .1);
  --stroke-light: #e4ddd4;
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(20, 20, 22, .55);

  --brand: #e1251b;
  --brand-hover: #c81e15;
  --brand-bright: #ff4136;
  --gold: #fbbc04;
  --success: #1f8a4c;
  --danger: #c4261d;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08);
  --shadow-float: 0 30px 80px rgba(0, 0, 0, .45);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  --topbar-h: 30px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; overflow-x: clip;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--text-light); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: 72px; /* room for mobile bar */
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted-dark); }
.text-brand { color: var(--brand-bright); }
.light .text-brand { color: var(--brand); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: .95; letter-spacing: -.005em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
  font: 700 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--brand-bright);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.light .eyebrow { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.35rem;
  font: 600 1rem/1.2 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd); border-radius: 999px;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.btn svg.i-fill, svg.i-fill { fill: currentColor; stroke: none; }
.btn:hover svg:not(.i-fill) { transform: translateX(3px); }
.btn-primary { --bg: var(--brand); --fg: #fff; box-shadow: 0 10px 30px -8px rgba(225, 37, 27, .65); }
.btn-primary:hover { --bg: var(--brand-hover); box-shadow: 0 14px 36px -8px rgba(225, 37, 27, .8); }
.btn-glass {
  --bg: rgba(255, 255, 255, .08); --fg: #fff; --bd: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-glass:hover { --bg: rgba(255, 255, 255, .16); --bd: rgba(255, 255, 255, .35); }
.btn-outline { --fg: var(--ink); --bd: var(--ink); }
.btn-outline:hover { --bg: var(--ink); --fg: #fff; }
.btn-sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.magnetic { will-change: transform; }
.text-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
}
.pill-glass { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stars { color: var(--gold); letter-spacing: 1.5px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header: red trust bar + solid black bar ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .4s var(--ease-out);
}
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--topbar-h))); }
.topbar { height: var(--topbar-h); background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600; }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.topbar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .stars { color: #fff; letter-spacing: 1px; margin-right: .25rem; }
.tb-more, .tb-right { display: none; }
.header-bar {
  position: relative; background: #0c0c0d; border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .3s;
}
.site-header.is-scrolled .header-bar { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 40px; width: auto; }

.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; padding: 8px var(--gutter) 18px;
  background: #0c0c0d; border-bottom: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav a { padding: .95rem 0; color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.site-nav a:last-child { border-bottom: 0; }

.header-cta { display: flex; align-items: center; gap: .5rem; }
.header-phone {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  color: #fff; text-decoration: none; background: var(--brand);
}
.header-phone svg { width: 18px; height: 18px; fill: #fff; }
.hp-text { display: none; }
.header-estimate { display: none; min-height: 46px; padding: .6rem 1.3rem; border-radius: 10px; font-weight: 700; }
.nav-toggle { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--topbar-h) + var(--header-h) + 40px) 0 72px; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; transform-origin: center; animation: kenburns 18s var(--ease-out) both; will-change: transform; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, .6) 0%, rgba(10, 10, 11, .78) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, .75), rgba(10, 10, 11, .2));
}
.hero-glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 37, 27, .35), transparent 70%); filter: blur(10px);
  animation: drift 14s ease-in-out infinite alternate; pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero h1 { margin: 1.1rem 0 1.2rem; }
.h1-kicker { display: block; margin-bottom: .8rem; font: 700 .85rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-bright); }
.h1-line { display: block; font: 800 clamp(2.6rem, 10.5vw, 4.9rem)/.92 var(--font-display); text-transform: uppercase; color: #fff; letter-spacing: -.01em; }
.h1-line em { font-style: italic; color: transparent; background: linear-gradient(100deg, var(--brand-bright), #ff8a5c 60%, var(--brand-bright)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: shine 6s linear infinite; padding-right: .06em; }
.hero-lead { font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: rgba(255, 255, 255, .8); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.6rem; }
.hero-actions .btn { flex: 1 1 100%; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.hero-trust strong { color: #fff; font: 800 1.25rem/1 var(--font-display); margin-right: .2rem; }

/* Hero entrance — pure CSS so it never waits for JS (good for LCP) */
.hero-in { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }

.hero-form { position: relative; }
.float-chip {
  position: absolute; z-index: 2; display: none; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
  background: rgba(20, 20, 22, .6); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: float 6s ease-in-out infinite;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.chip-a { top: -18px; right: 24px; }
.chip-b { top: -18px; left: 24px; animation-delay: -3s; }

.scroll-cue { display: none; position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease-out) infinite; }

/* ---------- Form card ---------- */
.form-card {
  position: relative; color: var(--text-dark); background: var(--paper-2);
  border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-float);
}
.form-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 65, 54, .9), rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .05) 60%, rgba(255, 65, 54, .6));
}
.form-head h2 { font: 800 2rem/1 var(--font-display); text-transform: uppercase; color: var(--ink); margin-bottom: .35rem; }
.form-head p { color: var(--muted-dark); font-size: .95rem; margin-bottom: 1.2rem; }
.form-progress { height: 4px; border-radius: 4px; background: #eee9e3; overflow: hidden; }
.form-progress span { display: block; height: 100%; width: 33.34%; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); border-radius: inherit; transition: width .5s var(--ease-out); }
.step-count { margin: .5rem 0 1.1rem; font-size: .8rem; font-weight: 600; color: var(--muted-dark); }
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step.is-active { animation: stepIn .45s var(--ease-out) both; }
.form-step.is-back { animation-name: stepBack; }
.step-title { display: block; padding: 0; margin-bottom: .9rem; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.1rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: 12px 14px;
  border-radius: 14px; border: 1.5px solid #ece6df; background: #f9f7f4;
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.choice b { font-size: .95rem; color: var(--ink); line-height: 1.25; }
.choice small { font-size: .78rem; color: var(--muted-dark); }
.choice:hover span { border-color: #d9d0c6; transform: translateY(-1px); }
.choice input:checked + span { border-color: var(--brand); background: #fff5f4; box-shadow: 0 0 0 3px rgba(225, 37, 27, .12); }
.choice input:checked + span b { color: var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.step-nav { display: flex; gap: 10px; align-items: center; margin-top: .4rem; }
.step-nav .btn-primary { flex: 1; }
.btn-ghost-dark { --fg: var(--ink); --bg: #f2eee9; min-height: 56px; padding-inline: 1.2rem; }
.btn-ghost-dark:hover { --bg: #e7e1da; }

.field { margin-bottom: .85rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: .7rem; }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--muted-dark); }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: #f7f5f2; border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b645e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9d968f; }
.field input:not([type="radio"]):focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18, 18, 18, .08);
}
.field.has-error input { border-color: var(--danger); background: #fff6f5; }
.field-error { display: block; font-size: .82rem; color: var(--danger); margin-top: .25rem; }
.field-error:empty { display: none; }
.pref { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.pref legend { width: 100%; }
.pref label { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; font-weight: 500; font-size: .95rem; cursor: pointer; margin: 0; }
.pref input { width: 18px; height: 18px; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: .75; }
.form-status { margin: .6rem 0 0; font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-legal { margin: .8rem 0 0; font-size: .72rem; line-height: 1.5; color: var(--muted-dark); }
#estimate-form.is-sent { display: none; }
.form-success { text-align: center; padding: 1.5rem .25rem; outline: none; animation: rise .6s var(--ease-out) both; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(31, 138, 76, .12); display: grid; place-items: center; }
.success-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--success); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease-out) forwards; }
.form-success h2 { font: 800 2.2rem/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--brand); color: #fff; padding: 14px 0; transform: rotate(-1.2deg) scale(1.02); margin: -8px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; }
.marquee li { font: 800 1.35rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; padding: 0 1.4rem; display: flex; align-items: center; gap: 2.8rem; white-space: nowrap; }
.marquee li::after { content: "✦"; font-size: .9rem; opacity: .75; margin-left: 1.4rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 12vw, 140px) 0; }
.dark { background: var(--bg); color: var(--text-light); }
.dark .section-head > p:last-child { color: var(--muted-light); }
.light { background: var(--paper); color: var(--text-dark); }
.light.alt { background: var(--paper-2); }
.light h2, .light h3 { color: var(--ink); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head > p:last-child { font-size: 1.08rem; color: var(--muted-dark); margin: 0; }
.section-head .btn { margin-top: 1.6rem; }

/* Glass card + cursor spotlight */
.glass-card {
  position: relative; border-radius: var(--radius); padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--stroke-dark);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.spotlight { overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 65, 54, .16), transparent 45%);
}
.spotlight:hover::before { opacity: 1; }

/* ---------- Problems ---------- */
.problem-grid { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 14px; }
.problem-grid li { transition: transform .5s var(--ease-out), border-color .4s; }
.problem-grid li:hover { transform: translateY(-6px); border-color: rgba(255, 65, 54, .35); }
.p-num { display: block; font: 800 2.4rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); margin-bottom: 1rem; }
.problem-grid h3 { color: #fff; }
.problem-grid p { margin: 0; color: var(--muted-light); font-size: .95rem; }
.solution {
  display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start;
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(225, 37, 27, .22), rgba(225, 37, 27, .05));
  border: 1px solid rgba(255, 65, 54, .3);
}
.solution-text { margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.4rem); color: #fff; line-height: 1.45; }

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.svc-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--paper-2); border: 1px solid var(--stroke-light);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .3); border-color: transparent; }
.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-media .tag { position: absolute; top: 14px; left: 14px; margin: 0; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.svc-body h3 { font: 800 1.65rem/1 var(--font-display); text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.svc-body p { color: var(--muted-dark); font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.tag { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tile-link { display: inline-flex; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--brand); }
.tile-link span { transition: transform .3s var(--ease-out); }
.tile-link:hover span { transform: translateX(4px); }
.tile-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(225, 37, 27, .1); display: grid; place-items: center; }
.tile-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.svc-also { display: grid; gap: 12px; margin-top: 16px; }
.svc-also-label { margin: 8px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.svc-mini {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--stroke-light); text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.svc-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: rgba(225, 37, 27, .35); }
.svc-mini b { display: block; font-size: 1.02rem; }
.svc-mini small { display: block; color: var(--muted-dark); font-size: .88rem; }
.svc-arrow { margin-left: auto; color: var(--brand); font-weight: 700; font-size: 1.2rem; transition: transform .3s var(--ease-out); }
.svc-mini:hover .svc-arrow { transform: translateX(4px); }

/* ---------- Before / after ---------- */
.ba-layout { display: grid; gap: 36px; align-items: center; }
.ba-copy > p { color: var(--muted-light); font-size: 1.08rem; }
.ba-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.ba-tabs button {
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  font: 600 .95rem/1 var(--font-body); color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-dark);
  transition: all .3s var(--ease-out);
}
.ba-tabs button:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.ba-tabs button[aria-selected="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3 / 4; width: 100%; max-width: 560px; justify-self: center;
  background: var(--bg-3); box-shadow: var(--shadow-float); user-select: none; touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease-out); }
.ba.is-switching img { opacity: 0; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 16px rgba(0, 0, 0, .4); }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255, 255, 255, .2); border: 2px solid #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid #fff; border-width: 0 0 2px 2px; margin-top: -4px; }
.ba-handle span::before { left: 12px; transform: rotate(45deg); }
.ba-handle span::after { right: 12px; transform: rotate(-135deg); }
.ba-tag { position: absolute; top: 14px; padding: .3rem .7rem; border-radius: 999px; pointer-events: none; font: 700 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: var(--brand); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:focus-within .ba-handle span { outline: 3px solid var(--brand-bright); outline-offset: 3px; }

/* ---------- Stats ---------- */
.stats { background: var(--brand); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 90px); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; position: relative; }
.stat strong { display: block; font: 800 clamp(2.8rem, 9vw, 4.4rem)/1 var(--font-display); letter-spacing: -.01em; }
.stat span { font-size: .92rem; opacity: .9; }
.stat strong span { font-size: inherit; opacity: 1; }

/* ---------- Gallery (horizontal) ---------- */
.gallery-section { padding-bottom: clamp(72px, 10vw, 110px); overflow: hidden; }
.gallery-head { margin-bottom: 36px; }
.gallery-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; }
.gallery-track li { scroll-snap-align: start; flex: none; width: min(76vw, 360px); }
.gallery-track figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--bg-3); }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery-track figure:hover img { transform: scale(1.06); }
.gallery-track figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: .4rem .8rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.gallery-end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; padding: 28px; border-radius: var(--radius-lg); border: 1px dashed rgba(255, 255, 255, .2); }
.gallery-end p { font: 800 2.4rem/1 var(--font-display); text-transform: uppercase; color: #fff; margin: 0; }
.gallery-end .text-link { color: var(--brand-bright); }

/* ---------- Reviews (Google) ---------- */
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rv-head .display { margin: 0; }
.rv-summary {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 20px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-dark); transition: border-color .3s, background-color .3s;
}
.rv-summary:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.g-logo { width: 34px; height: 34px; grid-row: span 2; }
.rv-score { display: flex; align-items: center; gap: .5rem; }
.rv-score b { font: 800 1.6rem/1 var(--font-display); }
.rv-count { font-size: .85rem; color: var(--muted-light); }

.rv-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.rv-card {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--stroke-dark);
  transition: border-color .35s, transform .5s var(--ease-out);
}
.rv-card:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-4px); }
.rv-card.is-featured { border-color: rgba(255, 65, 54, .55); box-shadow: 0 0 0 1px rgba(255, 65, 54, .15), 0 20px 50px -20px rgba(225, 37, 27, .35); }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .9rem; font-size: .88rem; color: var(--muted-light); }
.rv-top .stars { font-size: 1rem; }
.rv-text {
  flex: 1; margin: 0 0 1.2rem; color: var(--text-light); font-size: 1rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.rv-text { max-height: 9.6em; }
.rv-card.is-open .rv-text { -webkit-line-clamp: unset; display: block; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.rv-more { align-self: flex-start; margin: -0.8rem 0 1rem; padding: 0; border: 0; background: none; color: var(--brand-bright); font: 600 .88rem/1.4 var(--font-body); cursor: pointer; }
.rv-foot { display: flex; align-items: center; gap: 10px; }
.rv-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem; color: #fff; background: hsl(var(--h, 4), 55%, 42%);
}
.rv-avatar { position: relative; }
.rv-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-name { font-weight: 700; color: #fff; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-src { margin-left: auto; flex: none; color: var(--muted-light); font-size: .88rem; font-weight: 600; text-decoration: none; transition: color .25s; }
.rv-src:hover, .rv-card.is-featured .rv-src { color: var(--brand-bright); }
.rv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 32px; }
.rv-actions .text-link { color: var(--brand-bright); }
.rv-attrib { font-size: .82rem; color: var(--muted-light); }

/* ---------- Process timeline ---------- */
.process-layout { display: grid; gap: 40px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 28px; }
.timeline-line { position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--stroke-light); }
.timeline-line span { display: block; width: 100%; height: 100%; background: var(--brand); transform-origin: top; transform: scaleY(1); }
.t-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.t-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 1.4rem/1 var(--font-display); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper-2); }
.t-step h3 { margin-top: .6rem; }
.t-step p { color: var(--muted-dark); margin: 0; }

/* ---------- FAQ + areas ---------- */
.faq-layout { display: grid; gap: 40px; }
.areas { padding: 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--stroke-light); }
.areas h3 { font-size: 1.05rem; }
.areas ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: .4rem .8rem; border-radius: 999px; background: var(--paper); font-size: .9rem; font-weight: 500; color: var(--ink); }
.areas .muted { margin: 0; font-size: .92rem; }
.areas a { color: var(--brand); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--stroke-light); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 1.3rem 3rem 1.3rem 0;
  font-weight: 650; font-size: 1.06rem; color: var(--ink); transition: color .25s;
}
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23121212' stroke-width='2'/%3E%3C/svg%3E") center no-repeat;
  border: 1px solid var(--stroke-light); transition: transform .4s var(--ease-out), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); border-color: var(--brand); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--muted-dark); padding-bottom: 1.3rem; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); padding: clamp(90px, 14vw, 170px) 0; text-align: center; }
.final-glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: 90vmax; height: 90vmax; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(225, 37, 27, .4), transparent 70%); animation: pulse 8s ease-in-out infinite; }
.final-cta h2 { color: #fff; max-width: 14ch; margin-inline: auto; font-size: clamp(2.8rem, 10vw, 6rem); }
.final-cta p { color: rgba(255, 255, 255, .75); font-size: 1.12rem; margin: 0 auto 2.2rem; max-width: 36rem; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.final-actions .btn { flex: 1 1 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #050505; color: rgba(255, 255, 255, .6); padding: 64px 0 28px; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; gap: 32px; }
.footer-about { margin-top: 1rem; max-width: 34ch; }
.footer-social { display: flex; gap: 1.2rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer strong { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--brand-bright); }
.site-footer nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Mobile bar ---------- */
.mobile-bar {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease-out);
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 50px; border-radius: 14px; font-weight: 600; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .08); }
.mobile-bar svg { width: 20px; height: 20px; color: var(--brand-bright); }
.mobile-bar a.is-primary { background: var(--brand); }

/* ---------- Scroll reveal (only when JS + GSAP run; content stays visible otherwise) ---------- */
.anim-ready [data-reveal]:not(.is-revealed) { opacity: 0; }

/* ---------- Keyframes ---------- */
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1.04); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(12vmax, 8vmax); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Breakpoints (mobile-first)
   ========================================================================== */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .hero-actions .btn, .final-actions .btn { flex: 0 1 auto; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-also { grid-template-columns: 1fr 1fr; }
  .svc-also-label { grid-column: 1 / -1; }
  .form-card { padding: 30px 28px; }
  .solution { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; }
}

@media (min-width: 768px) {
  .tb-more { display: inline; }
  .topbar-inner { justify-content: space-between; }
  .tb-right { display: block; }
  .header-estimate { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .gallery-track li { width: 360px; }
  .rv-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; --topbar-h: 34px; --gutter: 32px; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .site-nav {
    position: static; flex-direction: row; gap: 2.1rem; padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .site-nav a { padding: .4rem 0; border: 0; font-size: .96rem; font-weight: 600; color: rgba(255, 255, 255, .85); position: relative; }
  .logo img { height: 50px; }
  .header-phone { width: auto; height: auto; padding: 0; background: none; border-radius: 0; display: inline-flex; align-items: center; gap: .6rem; margin-right: .6rem; }
  .header-phone svg { width: 20px; height: 20px; fill: var(--brand-bright); }
  .hp-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
  .hp-text small { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
  .hp-text b { font-size: 1.12rem; font-weight: 700; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand-bright); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
  .site-nav a:hover { color: #fff; }
  .site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-toggle { display: none; }

  .hero { padding-top: calc(var(--topbar-h) + var(--header-h) + 56px); padding-bottom: 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .float-chip { display: inline-flex; }
  .scroll-cue { display: block; }

  .problem-grid { grid-template-columns: repeat(5, 1fr); }
  .problem-grid li:nth-child(even) { margin-top: 28px; }

  .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .svc-media { aspect-ratio: 4 / 4.4; }
  .svc-also { grid-template-columns: auto 1fr 1fr; align-items: center; gap: 20px; margin-top: 24px; }
  .svc-also-label { grid-column: auto; margin: 0 12px 0 0; }

  .ba-layout { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .ba { max-width: none; aspect-ratio: 4 / 4.6; }

  .process-layout { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .process-layout .section-head { position: sticky; top: calc(var(--header-h) + 60px); }

  .faq-layout { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
  .rv-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .rv-attrib { margin-left: auto; }
  .faq-layout > div:first-child { position: sticky; top: calc(var(--header-h) + 60px); }

  /* Horizontal pinned gallery (JS sets .is-pinned when motion is allowed) */
  .gallery-section.is-pinned { padding: 0; }
  .gallery-section.is-pinned .gallery-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .gallery-section.is-pinned .gallery-viewport { overflow: visible; scroll-snap-type: none; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
  .gallery-section.is-pinned .gallery-track li { width: min(30vw, 400px); }
  .gallery-section.is-pinned .gallery-track figure { aspect-ratio: 4 / 5; max-height: 62vh; }
}

@media (min-width: 1280px) {
  .h1-line { font-size: 5.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto !important; }
  .anim-ready [data-reveal] { opacity: 1; }
  .marquee-track { animation: none !important; }
  .float-chip, .hero-glow, .final-glow { animation: none !important; }
}

/* Live reviews fade in once loaded */
.rv-live { animation: rise .7s var(--ease-out) both; }
