/* Exquisite Exteriors DMV — dusk-glass design system */
:root {
  --ink: oklch(0.17 0.04 255);
  --deep: oklch(0.23 0.05 252);
  --deeper: oklch(0.14 0.035 255);
  --sky: oklch(0.965 0.012 235);
  --sky-dim: oklch(0.93 0.018 235);
  --ink-on-sky: oklch(0.26 0.035 255);
  --slate-on-sky: oklch(0.42 0.03 250);
  --glass: oklch(0.87 0.06 225);
  --glass-dim: oklch(0.75 0.05 230);
  --amber: oklch(0.8 0.145 75);
  --amber-deep: oklch(0.72 0.15 70);
  --line-dark: oklch(0.32 0.04 250);
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 30;
  --z-stickybar: 40;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--sky);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: none; cursor: pointer;
  font: 700 1.02rem/1 var(--font); text-decoration: none;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-amber { background: var(--amber); color: var(--deeper); }
.btn-amber:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 14px 34px -14px oklch(0.72 0.15 70 / 0.55); }
.btn-glass { background: transparent; color: var(--sky); box-shadow: inset 0 0 0 1.5px var(--glass-dim); }
.btn-glass:hover { box-shadow: inset 0 0 0 1.5px var(--glass); transform: translateY(-2px); }
.on-sky .btn-glass { color: var(--ink-on-sky); box-shadow: inset 0 0 0 1.5px oklch(0.55 0.03 250); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-nav);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.scrolled { background: oklch(0.17 0.04 255 / 0.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 16px clamp(20px, 4vw, 40px); }
.brand { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; text-decoration: none; }
.brand small { display: block; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.18em; color: var(--glass-dim); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-phone { text-decoration: none; font-weight: 700; font-size: 0.96rem; color: var(--glass); }
.nav-phone:hover { color: var(--sky); }
.nav .btn { padding: 11px 22px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, oklch(0.14 0.035 255 / 0.96) 0%, oklch(0.14 0.035 255 / 0.55) 38%, oklch(0.14 0.035 255 / 0.18) 70%, oklch(0.14 0.035 255 / 0.45) 100%);
}
.hero-content { padding-block: clamp(70px, 10vh, 120px) clamp(56px, 8vh, 96px); max-width: 1140px; margin-inline: auto; width: 100%; padding-inline: clamp(20px, 4vw, 40px); }
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.6rem); font-weight: 800; max-width: 14ch; color: #fff;
}
.hero h1 .line { display: block; overflow: clip; }
.hero h1 .line > span { display: inline-block; }
html.js .hero h1 .line > span { transform: translateY(110%); animation: rise 0.9s var(--ease-out) forwards; }
html.js .hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub { margin: 22px 0 32px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; color: oklch(0.9 0.02 235); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 36px; font-size: 0.92rem; color: var(--glass); }
.hero-proof span { display: flex; align-items: center; gap: 8px; }
.hero-proof b { color: #fff; }
html.js .hero-sub, html.js .hero-actions, html.js .hero-proof { opacity: 0; translate: 0 18px; animation: fadeup 0.8s var(--ease-out) forwards; }
html.js .hero-sub { animation-delay: 0.35s; }
html.js .hero-actions { animation-delay: 0.5s; }
html.js .hero-proof { animation-delay: 0.65s; }
@keyframes fadeup { to { opacity: 1; translate: 0 0; } }

/* ---------- Reveal system (varied) ---------- */
html.js .rv.rv-init { opacity: 0; translate: 0 26px; transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out); }
html.js .rv.rv-init.in { opacity: 1; translate: 0 0; }
html.js .rv-img.rv-init { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out); }
html.js .rv-img.rv-init.in { clip-path: inset(0 0 0 0); }
html.js .rv-scale.rv-init { opacity: 0; scale: 0.96; transition: opacity 0.8s var(--ease-out), scale 0.8s var(--ease-out); }
html.js .rv-scale.rv-init.in { opacity: 1; scale: 1; }

/* ---------- Wipe (before/after) ---------- */
.wipe-section { background: var(--sky); color: var(--ink-on-sky); padding-block: clamp(72px, 10vw, 130px); }
.wipe-section h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.wipe-section .lede { color: var(--slate-on-sky); margin: 16px 0 40px; max-width: 56ch; font-size: 1.08rem; }
.wipe-stage {
  position: relative; border-radius: var(--radius); overflow: clip; aspect-ratio: 16 / 9;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  box-shadow: 0 30px 80px -30px oklch(0.26 0.035 255 / 0.45);
  --x: 12%;
}
.wipe-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wipe-before { filter: saturate(0.5) brightness(0.74) contrast(0.82) sepia(0.22); }
.wipe-grime { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wipe-after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.wipe-after img { filter: brightness(1.06) saturate(1.06); }
.wipe-handle {
  position: absolute; top: 0; bottom: 0; left: var(--x); translate: -50% 0; width: 4px;
  background: #fff; box-shadow: 0 0 24px oklch(0 0 0 / 0.4);
}
.wipe-grip {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 58px; height: 58px; border-radius: 50%; background: var(--amber); color: var(--deeper);
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.05em;
  box-shadow: 0 10px 30px -8px oklch(0 0 0 / 0.5);
}
.wipe-labels { position: absolute; inset: 18px 18px auto; display: flex; justify-content: space-between; pointer-events: none; }
.wipe-labels span { background: oklch(0.14 0.035 255 / 0.72); color: #fff; backdrop-filter: blur(6px); border-radius: 999px; padding: 7px 16px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; }
.wipe-hint { text-align: center; margin-top: 18px; color: var(--slate-on-sky); font-size: 0.92rem; }

/* ---------- Services (asymmetric rows) ---------- */
.services { background: var(--sky); color: var(--ink-on-sky); padding-block: 0 clamp(72px, 10vw, 120px); }
.svc-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid oklch(0.84 0.02 240); }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media { border-radius: var(--radius); overflow: clip; aspect-ratio: 4 / 3; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.svc-row:hover .svc-media img { scale: 1.04; }
.svc-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.svc-price { color: var(--amber-deep); font-weight: 800; margin-bottom: 16px; font-size: 1.05rem; }
.svc-body p { color: var(--slate-on-sky); max-width: 52ch; margin-bottom: 18px; }
.svc-points { list-style: none; color: var(--ink-on-sky); margin-bottom: 24px; }
.svc-points li { padding: 7px 0 7px 28px; position: relative; font-size: 0.98rem; }
.svc-points li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 2.5px; background: var(--amber-deep); border-radius: 2px; }

/* ---------- Process ---------- */
.process { background: var(--ink); padding-block: clamp(72px, 10vw, 130px); }
.process h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); color: #fff; margin-bottom: clamp(40px, 6vw, 70px); max-width: 18ch; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: n; }
.step { counter-increment: n; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.step::before { content: counter(n, decimal-leading-zero); font-weight: 200; font-size: 2.8rem; color: var(--glass-dim); display: block; margin-bottom: 12px; line-height: 1; }
.step h3 { font-size: 1.25rem; color: #fff; margin-bottom: 8px; }
.step p { color: var(--glass-dim); font-size: 0.98rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: clip; border-block: 1px solid var(--line-dark); padding-block: 22px; background: var(--deeper); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 36s linear infinite; }
.marquee-track span { font-weight: 700; font-size: 1.3rem; color: var(--glass-dim); white-space: nowrap; }
.marquee-track span i { font-style: normal; color: var(--amber); margin-right: 56px; }
@keyframes scroll { to { translate: -50% 0; } }

/* ---------- Guarantee ---------- */
.guarantee { background: var(--ink); padding-block: clamp(72px, 10vw, 120px); }
.guarantee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 48px); margin-top: clamp(36px, 5vw, 56px); }
.g-item h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.g-item p { color: var(--glass-dim); font-size: 0.97rem; }
.g-item .big { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--amber); line-height: 1; display: block; margin-bottom: 14px; }
.guarantee h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; }

/* ---------- FAQ ---------- */
.faq { background: var(--sky); color: var(--ink-on-sky); padding-block: clamp(72px, 10vw, 120px); }
.faq h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: clamp(30px, 4vw, 50px); }
.faq details { border-bottom: 1px solid oklch(0.82 0.02 240); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--amber-deep); transition: rotate 0.3s var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--slate-on-sky); padding-bottom: 22px; max-width: 65ch; }
.faq a { color: var(--amber-deep); }

/* ---------- Final CTA ---------- */
.final { background: var(--amber); color: var(--deeper); padding-block: clamp(80px, 11vw, 140px); text-align: center; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; max-width: 16ch; margin-inline: auto; }
.final p { margin: 20px auto 36px; max-width: 44ch; font-size: 1.12rem; color: oklch(0.32 0.06 70); }
.final .btn-ink { background: var(--deeper); color: var(--sky); }
.final .btn-ink:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px oklch(0.14 0.035 255 / 0.6); }
.final .btn-line { background: transparent; color: var(--deeper); box-shadow: inset 0 0 0 1.5px oklch(0.3 0.06 70 / 0.55); }
.final .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--deeper); transform: translateY(-2px); }
.final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { background: var(--deeper); padding: 56px 0 110px; color: var(--glass-dim); font-size: 0.94rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
footer a { color: var(--glass); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-fine { border-top: 1px solid var(--line-dark); padding-top: 24px; font-size: 0.8rem; }

/* ---------- Sticky mobile bar ---------- */
.stickybar {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: var(--z-stickybar);
  display: none; gap: 10px; padding: 10px; border-radius: 18px;
  background: oklch(0.14 0.035 255 / 0.88); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -12px oklch(0 0 0 / 0.55);
}
.stickybar .btn { flex: 1; justify-content: center; padding: 14px 10px; font-size: 0.95rem; }

/* ---------- Section heading shared ---------- */
.heading-pair { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.heading-pair .aside-note { color: var(--slate-on-sky); max-width: 30ch; font-size: 0.95rem; text-align: right; }
.process .aside-note, .guarantee .aside-note { color: var(--glass-dim); }

/* ---------- Calculator ---------- */
.calc-page { background: var(--sky); color: var(--ink-on-sky); min-height: 100vh; }
.calc-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 44px); align-items: start; padding-block: 130px 90px; }
.calc-layout h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 8px; }
.calc-panel { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: 0 24px 70px -40px oklch(0.26 0.035 255 / 0.4); }
.calc-panel .hint { color: var(--slate-on-sky); font-size: 0.93rem; margin: 4px 0 28px; }
.field { margin-bottom: 24px; }
.field > label { display: block; font-weight: 700; font-size: 0.97rem; margin-bottom: 10px; }
.field .sub { font-weight: 400; color: var(--slate-on-sky); font-size: 0.85rem; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 1.5px solid oklch(0.78 0.025 245); border-radius: 999px; padding: 10px 20px; cursor: pointer; font-size: 0.94rem; user-select: none; transition: all 0.18s var(--ease-out); }
.seg input:checked + label { background: var(--ink); color: var(--sky); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--amber-deep); outline-offset: 2px; }
.num-row { display: flex; align-items: center; gap: 16px; }
.num-row input[type="range"] { flex: 1; accent-color: var(--amber-deep); height: 32px; }
.num-out { font-weight: 800; font-size: 1.35rem; min-width: 60px; text-align: center; background: var(--sky-dim); border-radius: 12px; padding: 6px 10px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.check-row input { width: 19px; height: 19px; accent-color: var(--amber-deep); }
.check-row label { font-size: 0.97rem; }
.quote-box { background: var(--deep); color: var(--sky); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); position: sticky; top: 96px; box-shadow: 0 30px 80px -36px oklch(0.14 0.035 255 / 0.6); }
.quote-box h3 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glass-dim); font-weight: 700; }
.quote-amount { font-size: clamp(2.5rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 4px; color: #fff; }
.quote-meta { color: var(--glass-dim); font-size: 0.9rem; margin-bottom: 24px; }
.quote-lines { list-style: none; margin-bottom: 26px; font-size: 0.93rem; }
.quote-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line-dark); }
.quote-box .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.quote-fine { font-size: 0.78rem; color: var(--glass-dim); margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .svc-row { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .calc-layout { grid-template-columns: 1fr; padding-top: 110px; }
  .quote-box { position: static; }
  .heading-pair { grid-template-columns: 1fr; }
  .heading-pair .aside-note { text-align: left; }
}
@media (max-width: 720px) {
  .stickybar { display: flex; }
  .nav-phone { display: none; }
  footer { padding-bottom: 130px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .hero h1 .line > span { animation: none; transform: none; }
  html.js .hero-sub, html.js .hero-actions, html.js .hero-proof { animation: none; opacity: 1; translate: 0 0; }
  html.js .rv-init { opacity: 1; translate: 0 0; scale: 1; transition: none; clip-path: none; }
  .marquee-track { animation: none; }
  .svc-media img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Booking ---------- */
.book { background: var(--sky); color: var(--ink-on-sky); padding-block: clamp(72px, 10vw, 120px); border-top: 1px solid oklch(0.84 0.02 240); }
.book h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.book .lede { color: var(--slate-on-sky); margin: 16px 0 0; max-width: 56ch; font-size: 1.08rem; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: clamp(30px, 4vw, 48px); }
.book-form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: 0 24px 70px -40px oklch(0.26 0.035 255 / 0.4); }
.book-form label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; }
.book-form .sub { font-weight: 400; color: var(--slate-on-sky); font-size: 0.85rem; }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; margin-top: 8px; padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid oklch(0.78 0.025 245); background: #fff;
  font: 400 1rem/1.4 var(--font); color: var(--ink-on-sky);
}
.book-form input::placeholder, .book-form textarea::placeholder { color: oklch(0.45 0.025 250); }
.book-form input:focus-visible, .book-form select:focus-visible, .book-form textarea:focus-visible {
  outline: 2px solid var(--amber-deep); outline-offset: 1px; border-color: var(--amber-deep);
}
.book-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 700; font-size: 0.95rem; color: var(--ink-on-sky); min-height: 1.4em; }
.cal-wrap { background: #fff; border-radius: var(--radius); padding: 12px; min-height: 540px; box-shadow: 0 24px 70px -40px oklch(0.26 0.035 255 / 0.4); }
