/* ==========================================================================
   1st4FencingUK — premium navy ground, warm white type, timber amber accent.
   Type: Bricolage Grotesque (display) + Archivo (UI/body).
   Radius: cards/media 16px, inputs 10px, buttons pill.
   Ported base + component mechanics from Evo-Heat-Website/css/style.css
   (buttons, nav pills, header condense, mobile menu, section-head/eyebrow,
   form-error, reveal, footer) — colours re-pointed at the tokens below.
   ========================================================================== */
:root {
  /* Foundations */
  --bg: #0A1628;             /* deep navy page ground */
  --bg-alt: #0E1D33;         /* alternate section */
  --surface: #13233D;        /* elevated card surface */
  --surface-raised: #182B4A; /* hover / raised card */
  /* Text */
  --text: #F4F1EA;
  --text-secondary: #C9C3B6;
  --text-muted: #96917F;
  /* Borders */
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.28);
  /* Brand accent — timber amber */
  --brand: #D9954A;
  --brand-bright: #E8AE63;
  --accent-hover: #C07F35;
  --on-brand: #17100A;       /* dark text on amber buttons */
  /* States */
  --error: #E06C55;
  --success: #6FBF73;
  /* System */
  --radius-card: 16px;
  --radius-input: 10px;
  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }

h3 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.icon { width: 1.05em; height: 1.05em; flex-shrink: 0; }

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  transform: translateY(-300%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Anchor targets clear the fixed header */
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Grain overlay (fixed, non-scrolling, cheap) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(217, 149, 74, 0.28);
}
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-lg { padding: 1em 2.1em; font-size: 1.02rem; }
.btn-wide { justify-content: center; width: 100%; }
/* Arrow micro-interaction: nudges right on hover, in from the parent so links/buttons both work */
.btn .btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--text);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled,
.site-header--solid {
  background: rgba(19, 35, 61, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.header-back { margin-left: auto; }
/* Nav links: bordered pills with a liquid rise-fill on hover
   (adapted from uiverse.io/cssbuttons-io/calm-tiger-42, MIT) */
.main-nav {
  display: flex;
  gap: 0.45rem;
  margin-left: auto;
  font-size: 0.9rem;
}
.main-nav a {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0.5em 1.1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: color 0.2s ease-in, border-color 0.2s ease-in;
}
.main-nav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 140%;
  height: 180%;
  border-radius: 50%;
  background: rgba(217, 149, 74, 0.25);
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
}
.main-nav a::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 55%;
  top: 180%;
  width: 160%;
  height: 190%;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--on-brand);
  border-color: var(--brand);
}
.main-nav a:hover::before,
.main-nav a.active::before {
  top: -35%;
  background: var(--brand);
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  top: -45%;
  background: var(--brand);
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}
.header-quote { font-size: 0.88rem; padding: 0.65em 1.35em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 11px;
  color: inherit;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 22, 40, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.mobile-menu .btn { margin-top: 1rem; font-size: 1rem; }

/* ===== Hero: full-bleed sliding backdrop ===== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vh, 5.5rem);
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.4s ease;
  will-change: transform, opacity;
}
.hero-bg img.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 9s linear; /* slow Ken Burns settle */
}
/* Navy scrim keeps warm-white copy legible over any backdrop */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 22, 40, 0.88) 0%, rgba(10, 22, 40, 0.38) 45%, rgba(10, 22, 40, 0.32) 100%),
    linear-gradient(100deg, rgba(10, 22, 40, 0.55) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.hero-copy { max-width: 44rem; color: var(--text); }
.hero .eyebrow { color: var(--brand-bright); }
.hero-title {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  color: var(--brand-bright);
  line-height: 1.1;
  padding-bottom: 0.06em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: block; }
.hero-sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
}
.hero-ctas {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-ctas .btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.hero-ctas .btn-ghost:hover { border-color: var(--brand-bright); color: var(--brand-bright); }
.hero-trust {
  margin-top: 1.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ===== Trust strip ===== */
.trust { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.6rem clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.trust-item { display: flex; flex-direction: column; gap: 0.3rem; }
.trust-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.trust-label { font-size: 0.88rem; color: var(--text-muted); max-width: 15rem; }

/* ===== Sections shared ===== */
section { position: relative; }
.section-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.2rem, 4vw, 3.5rem);
}
.section-head p:not(.eyebrow) { margin-top: 1rem; color: var(--text-secondary); max-width: 40rem; }
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Services ===== */
.services-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4.5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 149, 74, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
/* Cursor spotlight (desktop, driven by JS via --mx / --my) */
@media (hover: hover) and (pointer: fine) {
  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 174, 99, 0.08), transparent 65%);
    transition: opacity 0.35s ease;
  }
  .service-card:hover::before { opacity: 1; }
}
.service-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.service-card:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.service-body p { color: var(--text-muted); font-size: 0.94rem; }
.service-link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: gap 0.25s var(--ease-out), color 0.2s ease;
}
.service-link::after { content: "\2192"; transition: transform 0.25s var(--ease-out); }
.service-link:hover { color: var(--brand); gap: 0.6em; }
.service-link:hover::after { transform: translateX(2px); }

/* ===== Supplies / fence styles ===== */
.supplies { background: var(--bg-alt); }
.styles-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4.5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.style-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-card);
  padding: 1.7rem 1.6rem;
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.style-card:hover {
  background: var(--surface-raised);
  transform: translateY(-3px);
  border-color: rgba(217, 149, 74, 0.4);
  border-left-color: var(--brand-bright);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}
.style-card h3 { color: var(--text); }
.style-card p { margin-top: 0.7rem; color: var(--text-muted); font-size: 0.94rem; }

/* ===== Gallery: card fan carousel ===== */
.gallery { overflow: hidden; background: var(--bg); }
.fan-stage {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) clamp(4.5rem, 9vw, 8rem);
}
.fan-deck {
  position: relative;
  height: clamp(330px, 52vw, 470px);
  touch-action: pan-y;
}
.fan-card {
  --fan-w: clamp(190px, 24vw, 320px);
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--fan-w);
  margin-left: calc(var(--fan-w) / -2);
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  /* pivot well below the deck so cards fan like a hand of playing cards */
  transform-origin: 50% 165%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  will-change: transform;
}
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Cards behind the front one dim slightly so the active photo reads first */
.fan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  opacity: var(--fan-dim, 0);
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.fan-card.is-front { cursor: zoom-in; }
.fan-caption {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.5em;
}
.fan-nav {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.fan-nav button {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.fan-nav button:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.fan-nav .icon { width: 1.1rem; height: 1.1rem; }

/* ===== Testimonials ===== */
.testimonials {
  background:
    radial-gradient(800px 460px at 88% 80%, rgba(217, 149, 74, 0.08), transparent 60%),
    var(--surface);
  color: var(--text);
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}
.testimonial-stage {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-slides { position: relative; min-height: 12.5rem; transition: height 0.4s var(--ease-out); }
.testimonial {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  pointer-events: none;
}
.testimonial.active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.testimonial cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--brand-bright);
}
.testimonial-nav {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.testimonial-nav button {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.testimonial-nav button:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.testimonial-nav .icon { width: 1.1rem; height: 1.1rem; }

/* ===== Service areas ===== */
.areas { background: var(--bg-alt); padding-bottom: clamp(4.5rem, 9vw, 8rem); }
.area-cloud {
  list-style: none;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.area-cloud li {
  font-size: 0.92rem;
  padding: 0.5em 1.1em;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.area-cloud li:hover { border-color: var(--brand); color: var(--brand-bright); }
.area-cloud li:last-child {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
}

/* ===== Contact / CTA band ===== */
.contact {
  background: radial-gradient(1000px 560px at 92% 10%, rgba(217, 149, 74, 0.08), transparent 62%), var(--bg-alt);
}
.contact-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-inner h2 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.contact-inner > p:not(.eyebrow):not(.contact-address) { margin-top: 1.2rem; color: var(--text-secondary); }
.contact-ctas {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.contact-methods {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.contact-methods li { display: flex; align-items: center; }
.contact-methods li:not(:last-child)::after {
  content: "\2022";
  margin: 0 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.contact-methods a { transition: color 0.2s ease; }
.contact-methods a:hover { color: var(--brand-bright); }
.contact-address {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== Forms (shared with quote engine / future contact forms) ===== */
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label { font-size: 0.88rem; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--error); }
.form-error {
  font-size: 0.82rem;
  color: var(--error);
  min-height: 0;
}
.form-note { font-size: 0.88rem; color: var(--success); min-height: 1.2em; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 13, 24, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-stage {
  margin: 0;
  max-width: min(1100px, 88vw);
  text-align: center;
}
.lightbox-stage img {
  max-height: 78dvh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-card);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.lightbox-stage figcaption {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.lightbox-close, .lightbox-arrow {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: rgba(19, 35, 61, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.lightbox-close { position: absolute; top: 1.25rem; right: 1.25rem; }
.lightbox-close:hover, .lightbox-arrow:hover { border-color: var(--brand); color: var(--brand-bright); transform: translateY(-1px); }
.lightbox .icon { width: 1.15rem; height: 1.15rem; }
@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox-arrow {
    position: absolute;
    bottom: 1.25rem;
    top: auto;
  }
  .lightbox-prev { left: 1.25rem; }
  .lightbox-next { right: 1.25rem; }
  .lightbox-stage img { max-height: 66dvh; }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
}
.footer-logo { height: 34px; width: auto; object-fit: contain; }
.footer-brand p { margin-top: 0.9rem; color: var(--text-muted); font-size: 0.92rem; }
.footer-nav, .footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.footer-nav a:hover, .footer-meta a:hover { color: var(--brand-bright); }
.footer-copyright {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== Mobile sticky contact bar ===== */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: 0.7rem clamp(1rem, 4vw, 1.25rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(19, 35, 61, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  gap: 0.7rem;
  transform: translateY(0);
  transition: transform 0.35s var(--ease-out);
}
.mobile-cta.hidden, body.menu-open .mobile-cta { transform: translateY(110%); }
.mobile-cta .btn { flex: 1; justify-content: center; font-size: 0.92rem; padding: 0.8em 1em; }
.mobile-cta .btn-ghost { background: var(--surface-raised); }

/* ===== Reveal (JS adds .in) ===== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
}
@media (max-width: 900px) {
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .styles-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .header-quote { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88dvh; padding-top: calc(var(--header-h) + 1rem); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .testimonial-slides { min-height: 17rem; }
}
@media (min-width: 641px) {
  .nav-toggle { display: none; }
}
@media (max-width: 1024px) and (min-width: 641px) {
  .nav-toggle { display: flex; margin-left: auto; }
}
/* Mobile CTA bar: own breakpoint per spec (visible <768px, independent of the 640px nav collapse) */
@media (max-width: 767px) {
  .mobile-cta { display: flex; }
  /* Keep the last content clear of the fixed bar */
  .site-footer { padding-bottom: 4.6rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img { transform: none; }
}

/* ===== Quote page ===== */
.quote-page { min-height: 100vh; display: grid; place-items: start center; padding: calc(var(--header-h) + 2rem) 1.25rem 7rem; }
.quote-shell { width: min(680px, 100%); }
.quote-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.progress { height: 4px; background: var(--line); border-radius: 999px; margin-top: 1.5rem; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width 0.45s var(--ease-out); }

.step-track { position: relative; margin-top: 2.5rem; }
.qstep { display: none; }
.qstep.active { display: block; animation: stepIn 0.45s var(--ease-out); }
.qstep.leaving-back.active { animation: stepInBack 0.45s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qstep.active { animation: none; } }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem; margin-top: 1.5rem; }
.pick-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.4rem 1.2rem; text-align: left; color: var(--text); cursor: pointer;
  display: grid; gap: 0.35rem; transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.pick-card:hover { transform: translateY(-3px); background: var(--surface-raised); }
.pick-card.selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pick-title { font-weight: 600; font-size: 1.05rem; }
.pick-sub { color: var(--text-muted); font-size: 0.88rem; }

.seg-group { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg { border: 0; background: none; color: var(--text-secondary); padding: 0.5em 1.1em; border-radius: 999px; cursor: pointer; font: inherit; }
.seg.active, .seg.selected { background: var(--brand); color: var(--on-brand); font-weight: 600; }

.field-row { margin-top: 1.6rem; display: grid; gap: 0.6rem; }
.field-row > label, .field-row > .field-label { font-weight: 600; }
.length-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.length-controls input[type="number"] { width: 5.5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-input); color: var(--text); padding: 0.55em 0.7em; font: inherit; }
input[type="range"] { accent-color: var(--brand); flex: 1; min-width: 160px; }
.field-hint { color: var(--text-muted); font-size: 0.9rem; }

.toggle-list { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.toggle { display: flex; align-items: center; gap: 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-input); padding: 0.9rem 1rem; cursor: pointer; }
.toggle:has(input:checked) { border-color: var(--brand); }
.toggle input { accent-color: var(--brand); width: 1.15rem; height: 1.15rem; }

.stepper { display: inline-flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.5rem; }
.stepper button { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.stepper button:hover { background: var(--brand); color: var(--on-brand); }
.stepper span { min-width: 1.5rem; text-align: center; font-weight: 600; }

.summary-lines { margin: 1.6rem 0 0; display: grid; gap: 0.75rem; }
.summary-lines .row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
.summary-lines .row small { display: block; color: var(--text-muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.3rem; }
.summary-total strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--brand-bright); }
.summary-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.8rem; }

.field { display: grid; gap: 0.4rem; margin-top: 1.1rem; }
.field input, .field textarea { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-input); color: var(--text); padding: 0.7em 0.85em; font: inherit; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.hp { position: absolute; left: -9999px; }

.quote-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: rgba(10, 22, 40, 0.88); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 0.9rem clamp(1rem, 5vw, 3rem);
}
.mini-summary { display: grid; text-align: center; line-height: 1.25; }
.mini-summary span { color: var(--text-muted); font-size: 0.78rem; }
.mini-summary strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--brand-bright); transition: transform 0.2s var(--ease-out); }
.mini-summary strong.bump { transform: scale(1.12); }
