﻿/* ==========================================================================
   COSTA LVM HOME SERVICE
   Dark editorial system. Poppins for headings, Inter for running text.
   Gold accent taken from the client's own logo gradient.
   ========================================================================== */

/* ---------- fonts ---------- */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* the highlighted words inside a heading — same family as the heading itself,
   so the contrast comes from weight and slant rather than a second typeface */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-300-italic-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  /* ground */
  --bg: #0a0908;
  --surface: #131110;
  --surface-grad-end: #100e0d;
  --surface-2: #1b1817;
  --surface-3: #221e1c;
  --input-bg: #0c0a09;

  --border: #2a2523;
  --border-soft: rgba(255, 255, 255, 0.075);
  --border-gold: rgba(229, 167, 63, 0.38);

  /* translucent fills that have to flip with the ground */
  --fill-subtle: rgba(255, 255, 255, 0.045);
  --fill-subtle-hover: rgba(255, 255, 255, 0.08);
  --chip-bg: rgba(10, 9, 8, 0.82);
  --chip-fg: #f6f3ee;
  --glow: rgba(229, 167, 63, 0.22);

  /* the logo gradient, extended into a usable ramp */
  --gold-100: #f7e0ae;
  --gold-200: #efc176;
  --gold-300: #e5a73f;
  --gold-400: #c98a24;
  --gold-ink: #efc176;
  --gold-glow: rgba(229, 167, 63, 0.3);

  /* the logo's own champagne → gold sweep, for the highlighted words */
  --gold-grad-a: #f9e6bd;
  --gold-grad-b: #d99f34;

  /* text */
  --text: #f6f3ee;
  --text-mut: #a8a199;
  --text-dim: #857d75; /* #6f6862 measured 3.63:1 in the footer — below AA */
  --on-gold: #1a1206;

  /* feedback */
  --err: #ef8f7d;
  --err-bg: rgba(239, 143, 125, 0.12);
  --ok: #93c48b;
  --ok-bg: rgba(147, 196, 139, 0.12);

  /* type scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.05rem, 1rem + 0.24vw, 1.2rem);
  --fs-lg: clamp(1.25rem, 1.12rem + 0.6vw, 1.6rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-2xl: clamp(2.1rem, 1.55rem + 2.5vw, 3.4rem);
  --fs-3xl: clamp(2.3rem, 1.85rem + 2.3vw, 3.65rem);

  /* space */
  --sp-1: 0.4rem;
  --sp-2: 0.75rem;
  --sp-3: 1.15rem;
  --sp-4: 1.75rem;
  --sp-5: 2.5rem;
  --sp-6: 3.5rem;
  --section-y: clamp(4rem, 8vw, 7rem);

  --container: 1220px;
  --measure: 62ch;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

/* ---------- reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
  /* Title Case on display type only. Running copy keeps sentence case —
     capitalising every word of an English paragraph reads as a typo. */
  text-transform: capitalize;
}

/* The rest of the display type: buttons, nav, filters and form labels. */
.btn,
.nav a,
.field label,
.filter-btn,
.slide__more,
.service-index a {
  text-transform: capitalize;
}

/* Capitalize would rewrite these: an address is not a title, the FAQ
   questions are sentences, and the legal pages are read as prose. */
.faq h3,
.legal-page h2,
.legal-page h3,
address,
address * {
  text-transform: none;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

/* ---------- light folds ----------
   Every component reads its colours from tokens, so flipping the ground is a
   token swap on the section rather than a second copy of each component. */

.section--light {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --surface-grad-end: #fbfaf7;
  --surface-2: #f1ede6;
  --surface-3: #eae5db;
  --input-bg: #ffffff;

  --border: #e3ddd3;
  --border-soft: rgba(20, 17, 15, 0.1);
  --border-gold: rgba(160, 116, 28, 0.45);

  --fill-subtle: rgba(20, 17, 15, 0.04);
  --fill-subtle-hover: rgba(20, 17, 15, 0.07);
  --chip-bg: rgba(255, 255, 255, 0.92);
  --chip-fg: #14110f;
  --glow: rgba(201, 138, 36, 0.16);

  --text: #14110f;
  --text-mut: #5b544c;
  --text-dim: #6b635b; /* #8b8279 measured 3.49:1 on the light ground — below AA */
  --gold-ink: #7d5a10; /* deep bronze: keeps the gold reading while clearing AA on white */
  --gold-grad-a: #96690f;
  --gold-grad-b: #6b4b0c;

  background: var(--bg);
  color: var(--text);
}

/* the select chevron is a data URI, so it cannot inherit currentColor */
.section--light .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b544c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- photo texture on the dark folds ---------- */

.section--texture {
  isolation: isolate;
}

.section--texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--texture);
  background-size: cover;
  background-position: center;
  /* 30% weaker than the previous 0.07, at the client's request (2026-09-01). */
  opacity: 0.049;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 9%,
    #000 91%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 9%,
    #000 91%,
    transparent 100%
  );
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 300;
  background: var(--gold-300);
  color: var(--on-gold);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 1px solid var(--border-gold);
  background: rgba(229, 167, 63, 0.07);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  margin: 0 0 var(--sp-3);
}

.eyebrow--plain {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text-dim);
  letter-spacing: 0.22em;
}

.h-hero {
  font-size: var(--fs-3xl);
}
.h-section {
  font-size: var(--fs-2xl);
}
.h-card {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Highlighted words inside a heading: same Poppins, but light and italic
   against the surrounding 700, filled with the logo's champagne-to-gold sweep.
   No optical size fix needed — identical metrics to the rest of the heading. */
.gold {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-ink); /* fallback wherever background-clip is unavailable */
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .gold {
    background-image: linear-gradient(
      96deg,
      var(--gold-grad-a) 0%,
      var(--gold-grad-b) 78%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.lede {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-mut);
  max-width: 52ch;
}

/* No orphans in subs. `balance` is capped at ~6 lines by the spec and is
   meant for headings; `pretty` is the one that only fixes the last line,
   which is exactly the orphan case. Both degrade to normal wrapping. */
.lede,
.hero__sub,
.slide__body p,
.reason p,
.step p,
.prose p,
.gallery figcaption,
.contact-map figcaption,
.form-note {
  text-wrap: pretty;
}

.prose {
  max-width: var(--measure);
  color: var(--text-mut);
}

.prose p + p {
  margin-top: 1em;
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--sp-6);
}

.section-head .h-section {
  margin-bottom: var(--sp-3);
}

/* Centred heads carry longer display lines than the left-aligned ones, so they
   get more room. The lede keeps its own 52ch cap, so only the heading widens. */
.section-head--center {
  max-width: 64rem;
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: "Inter", sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), filter 0.18s var(--ease);
}

.btn__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  transition: transform 0.24s var(--ease);
}

.btn__badge svg {
  width: 15px;
  height: 15px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover .btn__badge {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-image: linear-gradient(
    100deg,
    var(--gold-100) 0%,
    var(--gold-200) 42%,
    var(--gold-300) 100%
  );
  color: var(--on-gold);
  box-shadow: 0 10px 34px -6px var(--gold-glow);
}

.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 42px -6px rgba(229, 167, 63, 0.42);
}

.btn--primary .btn__badge {
  background: rgba(26, 18, 6, 0.16);
}

.btn--ghost {
  background: var(--fill-subtle);
  border-color: var(--border-soft);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: var(--fill-subtle-hover);
}

.btn--ghost .btn__badge {
  background: rgba(255, 255, 255, 0.09);
}

.btn--wide {
  width: 100%;
  justify-content: space-between;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.btn-row--center {
  justify-content: center;
}

/* ---------- header: floating pill ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding-top: clamp(0.75rem, 1.6vw, 1.25rem);
  pointer-events: none;
}

.site-header__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 66px;
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  border-radius: var(--r-pill);
  background: rgba(17, 15, 14, 0.72);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-stuck .site-header__pill {
  background: rgba(12, 11, 10, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  height: 38px;
  width: auto; /* the width attribute would otherwise squash the mark */
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.9vw, 1.9rem);
  list-style: none;
  margin-inline: auto;
}

.nav a {
  display: inline-block;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-mut);
  padding: 0.5rem 0;
  transition: color 0.16s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.header-cta {
  flex: 0 0 auto;
}

.header-cta .btn {
  min-height: 46px;
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  font-size: var(--fs-xs);
}

.header-cta .btn__badge {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex: 0 0 auto;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__nav {
    position: absolute;
    left: clamp(1.15rem, 4vw, 2.5rem);
    right: clamp(1.15rem, 4vw, 2.5rem);
    top: calc(100% + 0.6rem);
    background: rgba(14, 12, 11, 0.97);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: var(--sp-2) var(--sp-4) var(--sp-4);
    display: none;
    pointer-events: auto;
  }

  .site-header__nav.is-open {
    display: block;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  .nav li + li {
    border-top: 1px solid var(--border-soft);
  }

  .nav a {
    display: block;
    padding: 0.9rem 0;
    font-size: var(--fs-base);
    color: var(--text);
  }

  .header-cta {
    display: none;
  }
}

@media (min-width: 1001px) {
  .site-header__nav {
    display: block !important;
    margin-inline: auto;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(100vh, 1040px);
  display: flex;
  align-items: flex-end;
  padding-top: 9.5rem;
  padding-bottom: clamp(2.5rem, 4.5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media picture,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.hero__video.is-ready {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* dark enough on the left to carry the headline, clear on the right so the
     video is actually visible */
  /* holds full strength across the text column, then falls away fast so the
     right third of the frame reads as video */
  background: linear-gradient(
      100deg,
      rgba(10, 9, 8, 0.96) 0%,
      rgba(10, 9, 8, 0.93) 30%,
      rgba(10, 9, 8, 0.87) 50%,
      rgba(10, 9, 8, 0.45) 66%,
      rgba(10, 9, 8, 0.08) 81%,
      rgba(10, 9, 8, 0) 92%
    ),
    linear-gradient(180deg, rgba(10, 9, 8, 0.6) 0%, rgba(10, 9, 8, 0) 20%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 9, 8, 0) 20%);
}

/* insurance against the brightest frames of the loop */
.hero h1,
.hero__sub {
  text-shadow: 0 2px 26px rgba(10, 9, 8, 0.6);
}

/* stacked layout: the copy sits over the middle of the frame, so the scrim has
   to work vertically instead */
@media (max-width: 900px) {
  .hero__scrim {
    background: linear-gradient(
        180deg,
        rgba(10, 9, 8, 0.8) 0%,
        rgba(10, 9, 8, 0.5) 22%,
        rgba(10, 9, 8, 0.82) 62%,
        rgba(10, 9, 8, 0.95) 100%
      ),
      linear-gradient(0deg, var(--bg) 0%, rgba(10, 9, 8, 0) 14%);
  }
}

.hero__copy {
  max-width: 47rem;
}

.hero h1 {
  margin-bottom: var(--sp-3);
}

.hero__sub {
  font-size: var(--fs-md);
  line-height: 1.6;
  /* lighter than --text-mut: over the brightest frames of the loop that token
     measured 4.34:1, just under AA for body copy */
  color: #b9b3ab;
  max-width: 40rem;
  margin-bottom: var(--sp-4);
}

.hero .btn-row {
  margin-bottom: var(--sp-5);
}

/* ---------- trust band, directly under the hero ---------- */

.trust-band {
  background: #f7f7f7;
  color: #14110f;
  border-bottom: 1px solid #e6e4e0;
}

.trust-band__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: var(--sp-3) clamp(1.25rem, 2.5vw, 2.25rem);
  padding-block: clamp(1.4rem, 3vw, 2.1rem);
}

.trust-band__list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.trust-band__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 138, 36, 0.13);
  color: #7d5a10;
}

.trust-band__icon svg {
  width: 22px;
  height: 22px;
}

/* page-load choreography */

.hero__copy > * {
  animation: rise 0.6s var(--ease) both;
}
.hero__copy > *:nth-child(1) { animation-delay: 0.1s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.18s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.26s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.34s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.42s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__copy > * {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- card primitive ---------- */

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-grad-end));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}

.card--glow {
  border-color: var(--border-gold);
  box-shadow: 0 0 0 1px rgba(229, 167, 63, 0.06),
    0 24px 60px -30px rgba(229, 167, 63, 0.4);
}

/* ---------- services carousel ----------
   Built on scroll-snap so touch swipe, momentum and keyboard scrolling are
   native; JS only drives the arrows, the dots and the active state. */

.carousel {
  position: relative;
  --slide-w: min(920px, 74vw);
}

.carousel__track {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* the padding is what lets the neighbours peek while the active card centres */
  padding-inline: calc((100% - var(--slide-w)) / 2);
  padding-block: 0.5rem 1.25rem;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 4px;
  border-radius: var(--r-lg);
}

.slide {
  flex: 0 0 var(--slide-w);
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-grad-end));
  opacity: 0.4;
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.slide.is-active {
  opacity: 1;
  border-color: var(--border-gold);
  box-shadow: 0 0 0 1px rgba(229, 167, 63, 0.1),
    0 30px 80px -40px rgba(229, 167, 63, 0.55);
}

.slide__inner {
  display: grid;
  align-items: stretch;
  min-height: 100%;
}

@media (min-width: 780px) {
  .slide__inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.slide__media {
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
}

.slide__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.slide__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
}

.slide__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}

.slide__title {
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem);
}

.slide__claim {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: var(--sp-1);
}

.slide__check {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-image: linear-gradient(100deg, var(--gold-100), var(--gold-300));
  color: var(--on-gold);
  margin-top: 0.1rem;
}

.slide__check svg {
  width: 17px;
  height: 17px;
}

.slide__claim p {
  color: var(--text-mut);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.slide__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.slide__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-mut);
}

.slide__list svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 0.3em;
  color: var(--gold-ink);
}

.slide__more {
  margin-top: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.slide__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.24s var(--ease);
}

.slide__more:hover svg {
  transform: translateX(4px);
}

/* ---------- carousel controls ---------- */

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-image: linear-gradient(100deg, var(--gold-100), var(--gold-300));
  color: var(--on-gold);
  box-shadow: 0 8px 26px -8px var(--gold-glow);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease),
    opacity 0.18s var(--ease);
}

.carousel__nav:hover {
  filter: brightness(1.08);
  transform: translateY(-50%) scale(1.06);
}

.carousel__nav[disabled] {
  opacity: 0.3;
  cursor: default;
  filter: grayscale(0.4);
}

.carousel__nav svg {
  width: 19px;
  height: 19px;
}

.carousel__nav--prev {
  left: calc((100% - var(--slide-w)) / 2 - 23px);
}

.carousel__nav--next {
  right: calc((100% - var(--slide-w)) / 2 - 23px);
}

@media (max-width: 820px) {
  .carousel__nav--prev {
    left: 0.35rem;
  }
  .carousel__nav--next {
    right: 0.35rem;
  }
}

.carousel__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.carousel__play {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--fill-subtle);
  color: var(--text-mut);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.carousel__play:hover {
  color: var(--gold-ink);
  border-color: var(--border-gold);
  background: var(--fill-subtle-hover);
}

.carousel__play svg {
  width: 13px;
  height: 13px;
}

.carousel__play .icon-play {
  display: none;
}

.carousel__play.is-paused .icon-pause {
  display: none;
}

.carousel__play.is-paused .icon-play {
  display: block;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  /* --border disappeared against the textured fold; dots are controls and owe
     3:1 non-text contrast, so they take the dim text token instead */
  background: var(--text-dim);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.carousel__dot:hover {
  background: var(--text-mut);
}

.carousel__dot[aria-current="true"] {
  width: 26px;
  background-image: linear-gradient(100deg, var(--gold-100), var(--gold-300));
}

/* the dots are 8px tall, so give them a real hit area without moving them */
.carousel__dot::before {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

.carousel__dot {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    scroll-behavior: auto;
  }
}

/* ---------- reasons ---------- */

/* Explicit columns rather than auto-fit: with four cards, auto-fit lands on
   three at container width and orphans the fourth. 1 → 2×2 → 4. */
.reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 620px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .reasons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.reason {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reason__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(229, 167, 63, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-ink);
  margin-bottom: var(--sp-1);
}

.reason__icon svg {
  width: 20px;
  height: 20px;
}

.reason p {
  font-size: var(--fs-sm);
  color: var(--text-mut);
  line-height: 1.65;
}

/* ---------- steps: ghost numeral, copy tucked under it, arrow to the next ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5) var(--sp-4);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  flex-direction: column;
}

.step__rail {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.step__num {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 5.5vw, 5.2rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: rgba(229, 167, 63, 0.2);
  font-variant-numeric: tabular-nums;
}

/* the connecting track only makes sense while all four sit on one row */
.step__track {
  display: none;
}

@media (min-width: 1040px) {
  .step__track {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-gold), rgba(229, 167, 63, 0.05));
  }

  .step:last-child .step__track {
    display: none;
  }
}

.step__track svg {
  width: 14px;
  height: 14px;
  color: var(--gold-ink);
  margin-right: -1px;
}

/* pull the copy up so it overlaps the foot of the numeral, as in the reference */
.step__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: -0.75rem;
  position: relative;
}

.step p {
  font-size: var(--fs-sm);
  color: var(--text-mut);
  line-height: 1.65;
  margin-top: 0.55rem;
}

/* ---------- gallery ---------- */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-3);
}

.gallery-count {
  display: block;
  text-align: center;
  margin-bottom: var(--sp-4);
}

.filter-btn {
  background: var(--fill-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-mut);
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-gold);
}

.filter-btn[aria-pressed="true"] {
  background-image: linear-gradient(100deg, var(--gold-100), var(--gold-300));
  border-color: transparent;
  color: var(--on-gold);
}

.gallery {
  columns: 4 250px;
  column-gap: var(--sp-3);
}

.gallery figure {
  margin: 0 0 var(--sp-3);
  break-inside: avoid;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.gallery img {
  width: 100%;
}

.gallery figcaption {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--chip-bg);
  backdrop-filter: blur(6px);
  color: var(--gold-ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-pill);
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-4);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 54rem;
  display: grid;
  gap: var(--sp-2);
}

.faq details {
  background: linear-gradient(180deg, var(--surface), var(--surface-grad-end));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.faq details[open] {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-family: "Inter", sans-serif;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  margin-left: auto;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--fill-subtle);
  position: relative;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--text-mut);
  transition: transform 0.24s var(--ease), background-color 0.2s var(--ease);
}

.faq__icon::before {
  width: 12px;
  height: 1.5px;
}

.faq__icon::after {
  width: 1.5px;
  height: 12px;
}

.faq details[open] .faq__icon {
  border-color: var(--border-gold);
  background: rgba(229, 167, 63, 0.12);
}

.faq details[open] .faq__icon::before,
.faq details[open] .faq__icon::after {
  background: var(--gold-ink);
}

.faq details[open] .faq__icon::before {
  transform: rotate(45deg);
}

.faq details[open] .faq__icon::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 var(--sp-4) var(--sp-4);
  color: var(--text-mut);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: var(--measure);
}

/* ---------- contact block ---------- */

.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-grad-end));
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -160px;
  width: 520px;
  height: 420px;
  background: radial-gradient(
    ellipse at center,
    var(--glow),
    rgba(229, 167, 63, 0) 68%
  );
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  /* the about fold leads with a long headline, so it wants an even split */
  .contact-grid--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* ---------- about: photo left, copy right, both the same height ---------- */

.about-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: stretch;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }
}

.about-grid__media {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-grid__media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.about-grid__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
}

/* ---------- service-area map ---------- */

.contact-map {
  margin: var(--sp-4) 0 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(240px, 34vh, 360px);
  border: 0;
}

.contact-map figcaption {
  padding: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-mut);
}

/* ---------- form ---------- */

.field-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}

.field .req {
  color: var(--gold-ink);
}

.field input,
.field select,
.field textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.85rem 0.95rem;
  min-height: 50px;
  color: var(--text);
  width: 100%;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a199' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(229, 167, 63, 0.16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--err);
}

.field__error {
  font-size: var(--fs-sm);
  color: var(--err);
}

.field__error:empty {
  display: none;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: var(--sp-2);
  max-width: 34ch;
}

.form-status {
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  font-size: var(--fs-sm);
  margin-top: var(--sp-3);
}

.form-status[data-state="error"] {
  background: var(--err-bg);
  color: var(--err);
  border: 1px solid rgba(239, 143, 125, 0.4);
}

.form-status[data-state="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(147, 196, 139, 0.4);
}

.form-status:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-6) var(--sp-4);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.footer-grid h3 {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--sp-3);
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-grid address {
  font-style: normal;
}

.footer-grid a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--text-mut);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-grid a:hover {
  color: var(--gold-ink);
}

.footer-logo img {
  height: 44px;
  width: auto;
  margin-bottom: var(--sp-3);
}

.footer-grid p {
  color: var(--text-mut);
  max-width: 34ch;
}

.footer-bottom {
  padding-top: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--sp-4);
  justify-content: space-between;
  color: var(--text-dim);
  font-size: var(--fs-xs);
}

/* ---------- sticky mobile bar ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  display: none;
  gap: 0.6rem;
  background: rgba(10, 9, 8, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
}

.mobile-bar .btn {
  flex: 1;
  min-height: 48px;
  padding-left: 1rem;
  font-size: var(--fs-xs);
  justify-content: center;
}

.mobile-bar .btn__badge {
  display: none;
}

@media (max-width: 1000px) {
  .mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: calc(4.8rem + env(safe-area-inset-bottom));
  }
}

/* ---------- inner pages ---------- */

.page-hero {
  padding-top: 10rem;
  padding-bottom: var(--sp-6);
  background: radial-gradient(
      ellipse 70% 100% at 15% 0%,
      rgba(229, 167, 63, 0.1),
      rgba(229, 167, 63, 0) 70%
    ),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero--compact {
  padding-bottom: var(--sp-5);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-bottom: var(--sp-3);
}

.breadcrumb a {
  color: var(--text-mut);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-ink);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--text-dim);
}

.service-index {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--sp-2);
}

.service-index a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, var(--surface), var(--surface-grad-end));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.service-index a:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.service-index .num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--gold-ink);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.service-detail {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  /* stretch, not center: the photo matches the height of the copy column
     beside it instead of floating in the middle of it. */
  align-items: stretch;
}

/* Each service is now its own fold, alternating light and dark like the
   home. The change of ground is the divider, so the old border-top and the
   article's own padding-block would both double up. */
.service-fold {
  padding-block: var(--section-y);
}

@media (min-width: 900px) {
  .service-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .service-detail:nth-of-type(even) .service-detail__figure {
    order: -1;
  }
}

.service-detail__figure {
  display: flex;
  margin: 0;
}

.service-detail__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

@media (min-width: 900px) {
  /* Same height as the copy column. aspect-ratio stays as the floor, so a
     short block still gets a 4:3 photo instead of a letterbox sliver. */
  .service-detail__figure img {
    height: 100%;
    min-height: 100%;
  }
}

.service-detail h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}

.service-detail p {
  color: var(--text-mut);
  max-width: var(--measure);
}

.service-detail p + p {
  margin-top: 0.9em;
}

.service-detail ul {
  list-style: none;
  margin-top: var(--sp-3);
  display: grid;
  gap: 0.55rem;
}

.service-detail ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-mut);
}

.service-detail ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-300);
  flex: 0 0 5px;
  margin-top: 0.62em;
}

.service-detail__cta {
  margin-top: var(--sp-4);
}

/* ---------- final CTA band ---------- */

.cta-band {
  text-align: center;
  background: radial-gradient(
      ellipse 60% 130% at 50% 100%,
      rgba(229, 167, 63, 0.14),
      rgba(229, 167, 63, 0) 70%
    ),
    var(--bg);
  border-top: 1px solid var(--border);
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.centered-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 10rem;
  padding-bottom: var(--section-y);
}

.centered-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.contact-card--narrow {
  max-width: 880px;
  margin-inline: auto;
}

.estimate-page {
  padding-top: var(--sp-6);
}

.legal-content {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-5);
}

.legal-content section {
  display: grid;
  gap: var(--sp-2);
}

.legal-content h2 {
  font-size: var(--fs-md);
  color: var(--text);
}

.legal-content p {
  color: var(--text-mut);
  line-height: 1.75;
}

.legal-content a {
  color: var(--gold-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* ---------- redirect link hub ---------- */

.redirect-page {
  min-height: 100vh;
  background: #090807;
  color: #fff;
}

@media (max-width: 1000px) {
  body:has(.redirect-page) {
    padding-bottom: 0;
  }
}

.redirect-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) 1rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.redirect-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.56), rgba(4, 4, 4, 0.88)),
    url("../video/hero-poster-desktop-v2.webp") center / cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.04);
}

.redirect-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 50% 35%, rgba(229, 167, 63, 0.18), transparent 62%);
}

.redirect-card {
  width: min(100%, 600px);
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  background: rgba(15, 14, 13, 0.92);
  border: 1px solid var(--gold-400);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.redirect-card img {
  width: min(330px, 78vw);
  height: auto;
}

/* This page is the Instagram bio link, so it opens inside the in-app
   browser, which eats a bar at the top and another at the bottom. All five
   buttons have to be reachable without scrolling: at 360x740 the card
   overflowed by 46px and cut off "Website". Tightened on short viewports
   rather than by dropping any of the content. */
@media (max-height: 820px), (max-width: 400px) {
  .redirect-card {
    gap: 0.7rem;
    padding: clamp(1.25rem, 4vw, 2rem);
  }

  .redirect-card img {
    width: min(230px, 58vw);
  }

  .redirect-card h1 {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
  }

  .redirect-card p {
    font-size: var(--fs-sm);
    line-height: 1.45;
  }

  .redirect-actions {
    gap: 0.55rem;
  }

  .redirect-btn {
    /* 48px keeps this well above the 24px WCAG 2.5.8 floor and still reads
       as a comfortable thumb target. */
    min-height: 48px;
    padding: 0.55rem 1rem;
    font-size: 1rem;
  }
}

/* Second tier, for SE-class and older Android screens (360x640 and down),
   where even the tightened card still cut off the last button.

   The supporting line used to be hidden here. That was wrong: the Instagram
   in-app browser leaves roughly 530-600px of usable height, so the hidden
   state was the COMMON case, not the edge case — the page arrived with a
   logo, a headline and five buttons and no reason at all to trust it. The
   line was shortened instead, so it now fits and always shows. */
@media (max-height: 680px) {
  .redirect-card {
    gap: 0.6rem;
    padding: 1rem;
  }

  .redirect-card img {
    width: min(190px, 50vw);
  }

  .redirect-card h1 {
    font-size: 1.05rem;
  }
}

/* Third tier: the Instagram in-app browser on a smaller phone leaves around
   600px. Measured at 375x600 the fifth button fell below the fold, so the
   logo and the headline give up a little more room. Everything still shows;
   nothing is hidden. */
@media (max-height: 620px) {
  .redirect-card {
    gap: 0.5rem;
    padding: 0.85rem;
  }

  .redirect-card img {
    width: min(150px, 42vw);
  }

  .redirect-card h1 {
    font-size: 0.98rem;
    line-height: 1.15;
  }

  .redirect-card p {
    font-size: 0.82rem;
  }

  .redirect-btn {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .redirect-actions {
    gap: 0.45rem;
  }
}

.redirect-card h1 {
  max-width: 13em;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  line-height: 1.1;
}

.redirect-card p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.redirect-actions {
  width: min(100%, 380px);
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.redirect-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  /* The logo gold, in the same champagne-to-gold sweep the site's primary
     button uses. The orange gradient here came from the TopGutter page this
     layout was modelled on — it is that company's brand, not this one's. */
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  color: #14110f;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: capitalize;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(201, 138, 36, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.redirect-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 36px rgba(201, 138, 36, 0.36);
}

.redirect-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Centred page hero — used by /estimate/, where the page is one form and a
   centred head reads as a form title rather than as an article opening. */
.page-hero--center .container {
  text-align: center;
}

.page-hero--center .lede {
  margin-inline: auto;
}

.page-hero--center .breadcrumb {
  justify-content: center;
}

/* =========================================================================
   ENTRANCE ANIMATION — added 2026-09-01
   Everything is visible by default. JS stamps .js-reveal on <html>, and only
   then does anything hide itself — so a JS failure or a crawler sees the
   full page, never a blank one. Only opacity and transform animate, so this
   costs no layout and cannot introduce CLS.
   ========================================================================= */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Children of a revealed group cascade, so a fold assembles instead of
   snapping in as one block. Six steps is enough for any group we have. */
.js-reveal [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(16px);
}

.js-reveal [data-reveal-group].is-in > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal [data-reveal-group].is-in > *:nth-child(1) { transition-delay: 0ms; }
.js-reveal [data-reveal-group].is-in > *:nth-child(2) { transition-delay: 70ms; }
.js-reveal [data-reveal-group].is-in > *:nth-child(3) { transition-delay: 140ms; }
.js-reveal [data-reveal-group].is-in > *:nth-child(4) { transition-delay: 210ms; }
.js-reveal [data-reveal-group].is-in > *:nth-child(5) { transition-delay: 280ms; }
.js-reveal [data-reveal-group].is-in > *:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal],
  .js-reveal [data-reveal-group] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================================
   HOVER — added 2026-09-01
   Pointer-only: `hover: hover` keeps a phone from latching a hover state on
   tap and leaving a card stuck lifted.
   ========================================================================= */

@media (hover: hover) {
  .reason,
  .faq details,
  .service-index a {
    transition:
      transform 0.28s ease,
      border-color 0.28s ease,
      box-shadow 0.28s ease;
  }

  .reason:hover,
  .faq details:hover,
  .service-index a:hover {
    transform: translateY(-3px);
    border-color: var(--gold-400);
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55);
  }

  /* Gallery: the frame holds still and only the photo scales inside it, so
     nothing around it moves. */
  .gallery figure {
    overflow: hidden;
    transition: box-shadow 0.28s ease;
  }

  .gallery figure img {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .gallery figure:hover img {
    transform: scale(1.045);
  }

  .gallery figure:hover {
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  }

  .slide__more {
    transition: gap 0.24s ease, color 0.24s ease;
  }

  .slide__more:hover svg {
    transform: translateX(3px);
  }

  .slide__more svg {
    transition: transform 0.24s ease;
  }

  .btn {
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      background-color 0.22s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .btn:active {
    transform: translateY(0);
  }

  .site-footer a:not(.btn) {
    background-image: linear-gradient(var(--gold-400), var(--gold-400));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size 0.3s ease, color 0.3s ease;
  }

  .site-footer a:not(.btn):hover {
    background-size: 100% 1px;
    color: var(--gold-100);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reason,
  .faq details,
  .service-index a,
  .gallery figure img,
  .btn,
  .site-footer a:not(.btn) {
    transition: none;
  }
  .reason:hover,
  .faq details:hover,
  .service-index a:hover,
  .btn:hover,
  .gallery figure:hover img {
    transform: none;
  }
}

/* =========================================================================
   LIGHTBOX — added 2026-09-01
   Built on <dialog>, so the browser owns the top layer, the focus trap, the
   backdrop and Esc. Far less to get wrong than a hand-rolled modal.
   ========================================================================= */

.lightbox {
  width: min(94vw, 1200px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(8, 7, 6, 0.88);
  backdrop-filter: blur(3px);
}

.lightbox__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.lightbox__img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--r-md);
  background: #0a0908;
}

.lightbox__caption {
  color: #d9d3ca;
  font-size: var(--fs-sm);
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 17, 15, 0.72);
  color: #fff;
  cursor: pointer;
}

.lightbox__close {
  top: -14px;
  right: -8px;
}

.lightbox__nav--prev { left: -8px; top: calc(39vh - 22px); }
.lightbox__nav--next { right: -8px; top: calc(39vh - 22px); }

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--gold-400);
  color: var(--gold-100);
}

.lightbox__nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* The gallery figure becomes a real button, so it must look and behave
   like one for keyboard users too. */
.gallery figure button.gallery__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

@media (max-width: 620px) {
  .lightbox__nav--prev { left: 2px; }
  .lightbox__nav--next { right: 2px; }
  .lightbox__close { right: 2px; top: -50px; }
}

/* =========================================================================
   MOBILE — added 2026-09-01
   ========================================================================= */

@media (max-width: 760px) {
  /* Centre the reading column. Deliberately excluded below: form fields
     (a centred label floating over a left-aligned input reads as broken),
     the legal pages, where the text is long-form prose, and the inside of
     cards — see the block after this one. */
  .section-head,
  .hero__copy,
  .lede,
  .hero__sub,
  .trust-item,
  .step,
  .gallery-head,
  .about-grid__copy {
    text-align: center;
  }

  .section-head,
  .lede,
  .hero__sub {
    margin-inline: auto;
  }

  .trust-item,
  .step {
    align-items: center;
  }

  /* Buttons follow the text. A centred heading over a left-hugging button
     is the mismatch that made the mobile layout look unfinished. */
  .btn-row {
    justify-content: center;
  }

  /* Icons and badges that sat at the start of a left-aligned block have to
     come to the middle too, or the centring looks accidental. */
  .trust-item svg,
  .eyebrow {
    margin-inline: auto;
  }

  .estimate-page .page-hero,
  .estimate-page .h-hero,
  .estimate-page .lede {
    text-align: center;
    margin-inline: auto;
  }

  /* Card interiors stay left-aligned: a card is a block of reading, and its
     bullet lists and paragraphs are far easier to scan ragged-right. The
     card's own button stays with its text rather than following the
     centred page rhythm. */
  .slide__body,
  .slide__body p,
  .slide__body ul,
  .slide__body li,
  .reason,
  .reason p,
  .faq details,
  .faq summary,
  .faq details p,
  .faq details li,
  .service-detail__copy,
  .service-detail__copy p,
  .service-detail__copy li {
    text-align: left;
  }

  .slide__body,
  .reason,
  .service-detail__copy {
    align-items: flex-start;
  }

  .slide__body .btn-row,
  .reason .btn-row,
  .service-detail__cta {
    justify-content: flex-start;
  }

  .reason svg {
    margin-inline: 0;
  }

  /* Footer: everything centred, including the logo, the column headings,
     the link lists and the address. */
  .site-footer,
  .footer-grid,
  .footer-grid h3,
  .footer-grid ul,
  .footer-grid li,
  .footer-grid p,
  .footer-grid address,
  .footer-bottom {
    text-align: center;
  }

  .footer-grid {
    justify-items: center;
  }

  .footer-logo,
  .footer-logo img {
    margin-inline: auto;
  }

  .footer-bottom {
    justify-content: center;
  }

  /* Form stays left-aligned — see note above. */
  .field label,
  .field input,
  .field select,
  .field textarea,
  .field__error,
  .legal-page,
  .legal-page p,
  .legal-page li {
    text-align: left;
  }
}

@media (max-width: 600px) {
  /* Wider service cards: 74vw left a 239px column of text on a 390px
     screen. 88vw buys back 53px of reading width; the neighbour still
     peeks, just less. */
  .carousel {
    --slide-w: min(920px, 88vw);
  }

  /* Smaller arrows, but the tap target stays ≥24px (WCAG 2.5.8) because
     the padding is what shrinks, not the hit area. */
  .carousel__nav {
    width: 34px;
    height: 34px;
  }

  .carousel__nav svg {
    width: 15px;
    height: 15px;
  }

  .carousel__nav--prev { left: 2px; }
  .carousel__nav--next { right: 2px; }
}

/* How it works, mobile: a real vertical timeline. The desktop track only
   exists at ≥1040px, so below that the steps had no visual sequence at all
   — just four numerals stacked. */
@media (max-width: 1039px) {
  .steps {
    position: relative;
    gap: 0;
  }

  .step {
    position: relative;
    padding-block: var(--sp-4);
    padding-inline: var(--sp-3);
  }

  /* The connector runs between steps, never past the last one. */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: var(--sp-4);
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      var(--gold-400),
      rgba(201, 138, 36, 0)
    );
  }

  .step__num {
    display: block;
    margin-inline: auto;
    line-height: 0.9;
  }

  .step h3 {
    margin-top: calc(var(--sp-2) * -1);
  }
}
