/* ==========================================================================
   The Human Crew — Design System v3
   --------------------------------------------------------------------------
   Brand colors extracted from the logo source image (dominant flat values):
   navy #001B36, yellow #F7CA13.

   Visual language: blueprint grid texture on dark bands, hazard-stripe
   dividers, hard offset shadows (blocky, built-by-hand feel that matches
   the logo), Archivo Black display type over Archivo UI type over Inter.
   ========================================================================== */

:root {
  /* Brand palette — exact values from logo */
  --color-navy: #001b36;
  --color-yellow: #f7ca13;

  /* Derived / supporting */
  --color-navy-dark: #000f1f;
  --color-navy-2: #06294a;
  --color-off-white: #f6f5ef;
  --color-paper: #ffffff;
  --color-text: #202b36;
  --color-text-inverse: #ffffff;

  /* Typography */
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-sub: "Archivo", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  /* Back-compat alias (older rules referenced --font-heading) */
  --font-heading: var(--font-display);

  /* Layout */
  --max-width: 1100px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --radius: 12px;

  /* Effects */
  --shadow-card: 8px 8px 0 rgba(0, 27, 54, 0.08);
  --shadow-card-hover: 11px 11px 0 rgba(247, 202, 19, 0.45);
  --stripe: repeating-linear-gradient(
    -45deg,
    var(--color-yellow) 0 10px,
    var(--color-navy) 10px 20px
  );
}

/* --- Reset / base ------------------------------------------------------- */

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

/* Author display rules (e.g. .btn) must never resurrect [hidden] elements */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(1100px 380px at 88% -120px, rgba(247, 202, 19, 0.07), transparent 70%),
    linear-gradient(180deg, #fbfaf5 0%, var(--color-off-white) 340px);
  background-color: var(--color-off-white);
}

::selection {
  background: var(--color-yellow);
  color: var(--color-navy);
}

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

/* --- Typography ---------------------------------------------------------- */

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black is a single heavy weight */
  line-height: 1.12;
  color: var(--color-navy);
  margin: 0 0 var(--space-2);
}

h3,
legend {
  font-family: var(--font-sub);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

/* Yellow keel under section headings */
main h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 5px;
  margin-top: 0.55rem;
  background: var(--color-yellow);
  border-radius: 2px;
}

a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: rgba(247, 202, 19, 0.95);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--color-navy-dark);
  background: rgba(247, 202, 19, 0.28);
}

:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

ul {
  padding-left: 1.2rem;
}

main li::marker {
  color: var(--color-yellow);
  content: "▪  ";
}

.eyebrow {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin: 0 0 var(--space-2);
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-navy);
  border-top: 4px solid var(--color-yellow);
  box-shadow: 0 4px 18px rgba(0, 15, 31, 0.3);
  padding: 0.85rem var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-yellow);
  text-decoration: none;
}

.site-header .brand:hover,
.site-header .brand:focus-visible {
  background: none;
  color: var(--color-yellow);
}

.brand-mark {
  width: 34px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-nav a {
  position: relative;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding-bottom: 4px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: none;
  color: var(--color-yellow);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--color-yellow);
}

/* --- Dark bands: hero + page heads ---------------------------------------- */

.home-hero,
.page-head {
  position: relative;
  color: var(--color-text-inverse);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(900px 320px at 108% 130%, rgba(247, 202, 19, 0.18), transparent 65%),
    linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 55%, var(--color-navy-2) 100%);
}

/* Hazard-stripe base line */
.home-hero::after,
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--stripe);
}

/* Tool-mark watermark in the hero corner */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/logo-icon.svg") no-repeat right -70px bottom -90px / 430px auto;
  opacity: 0.06;
  pointer-events: none;
}

.home-hero {
  text-align: center;
  padding: clamp(3.2rem, 9vw, 6rem) var(--space-3) clamp(3rem, 8vw, 5rem);
}

.home-hero-inner {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
}

.home-hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 var(--space-2);
}

.home-hero .hl {
  color: var(--color-yellow);
}

.home-tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 42rem;
  margin: 0 auto var(--space-3);
}

.hero-ctas {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem var(--space-4);
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-stats span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--color-yellow);
  transform: rotate(45deg);
}

/* Staggered entrance (disabled under reduced motion) */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero .eyebrow      { animation: rise 0.5s ease 0.05s backwards; }
.home-hero h1            { animation: rise 0.5s ease 0.14s backwards; }
.home-hero .home-tagline { animation: rise 0.5s ease 0.23s backwards; }
.home-hero .hero-ctas    { animation: rise 0.5s ease 0.32s backwards; }
.home-hero .hero-stats   { animation: rise 0.5s ease 0.45s backwards; }

.page-head {
  padding: clamp(2.6rem, 6vw, 4rem) var(--space-3);
}

.page-head-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-head h1 {
  color: #ffffff;
  margin: 0 0 var(--space-2);
}

.page-head .page-intro {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  max-width: 46rem;
  margin: 0;
}

.page-head .page-intro a {
  color: var(--color-yellow);
}

.page-head .page-intro a:hover,
.page-head .page-intro a:focus-visible {
  background: none;
  color: #ffffff;
}

/* --- Layout --------------------------------------------------------------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) var(--space-6);
}

.page-intro {
  font-size: 1.1rem;
  max-width: 46rem;
  margin-bottom: var(--space-4);
}

section + section {
  margin-top: var(--space-5);
}

/* --- Buttons: hard offset shadow, built-by-hand ---------------------------- */

.btn {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-navy);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--color-navy);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, color 0.12s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-yellow);
  color: var(--color-navy);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-navy);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-navy);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 4px 4px 0 var(--color-navy);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(0, 27, 54, 0.06);
  color: var(--color-navy);
}

/* Buttons on dark bands */
.home-hero .btn,
.page-head .btn {
  border-color: var(--color-navy-dark);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.home-hero .btn:hover,
.home-hero .btn:focus-visible {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  box-shadow: 4px 4px 0 rgba(247, 202, 19, 0.5);
}

.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
  background: #ffffff;
  color: var(--color-navy);
  box-shadow: 6px 6px 0 rgba(247, 202, 19, 0.5);
}

/* --- Cards ------------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.card {
  background: var(--color-paper);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-card-hover);
}

.card p {
  margin: 0;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.price {
  margin: 0;
}

.price-label {
  display: block;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 27, 54, 0.55);
}

.price-figure {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  line-height: 1.1;
  color: var(--color-navy);
}

/* Fallback where .price has no inner spans (e.g. dormant wizard) */
.price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-navy);
}

/* --- Content components ------------------------------------------------------ */

.service-list {
  columns: 2;
  column-gap: var(--space-4);
  padding-left: 1.2rem;
  margin: var(--space-3) 0;
  max-width: 52rem;
}

.service-list li {
  margin-bottom: 0.45rem;
  break-inside: avoid;
}

.placeholder-block {
  border: 3px dashed rgba(0, 27, 54, 0.4);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: rgba(247, 202, 19, 0.08);
  color: var(--color-navy);
}

.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;
}

/* Standard pricing — ledger-style flat-rate table */
.price-table {
  width: 100%;
  max-width: 46rem;
  border-collapse: collapse;
  margin: var(--space-3) 0;
  background: var(--color-paper);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.price-table thead th {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--color-yellow);
  background: var(--color-navy);
  padding: 0.7rem var(--space-3);
}

.price-table thead th:last-child {
  text-align: right;
}

.price-table tbody th,
.price-table tbody td {
  padding: 0.7rem var(--space-3);
  border-top: 1px solid rgba(0, 27, 54, 0.12);
  vertical-align: baseline;
}

.price-table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
}

.price-table tbody td {
  text-align: right;
  font-family: var(--font-sub);
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.price-table tbody tr:nth-child(even) {
  background: rgba(0, 27, 54, 0.03);
}

.price-note {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(0, 27, 54, 0.6);
  white-space: normal;
}

.price-disclaimer {
  max-width: 46rem;
  font-size: 0.95rem;
  color: rgba(0, 27, 54, 0.75);
  border-left: 4px solid var(--color-yellow);
  padding-left: var(--space-2);
}

@media (max-width: 520px) {
  .price-table thead th,
  .price-table tbody th,
  .price-table tbody td {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.contact-phone {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-decoration: none;
}

.contact-phone:hover,
.contact-phone:focus-visible {
  background: none;
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 3px;
}

/* Compliance facts — ledger style */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 var(--space-4);
  margin: var(--space-3) 0;
  border-top: 2px solid var(--color-navy);
  max-width: 52rem;
}

.facts dt {
  font-family: var(--font-sub);
  font-weight: 700;
  color: var(--color-navy);
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(0, 27, 54, 0.3);
}

.facts dd {
  margin: 0;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(0, 27, 54, 0.3);
}

/* FAQ */
.faq {
  max-width: 46rem;
  margin-top: var(--space-6);
  border-top: 2px solid var(--color-navy);
  padding-top: var(--space-4);
}

.faq h3 {
  margin-top: var(--space-4);
  font-size: 1.05rem;
  border-left: 4px solid var(--color-yellow);
  padding-left: var(--space-2);
}

/* --- Homepage hub navigation -------------------------------------------------
   Pure HTML/CSS: every spoke is a real <a href>, no JavaScript involved. */

.hub-eyebrow {
  text-align: center;
}

.hub {
  position: relative;
  width: min(660px, 94vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hub-line {
  stroke: var(--color-navy);
  stroke-opacity: 0.25;
  stroke-width: 0.8;
}

.hub:has(.hub-node--services:hover, .hub-node--services:focus-visible) .hub-line--services,
.hub:has(.hub-node--estimator:hover, .hub-node--estimator:focus-visible) .hub-line--estimator,
.hub:has(.hub-node--gallery:hover, .hub-node--gallery:focus-visible) .hub-line--gallery,
.hub:has(.hub-node--contact:hover, .hub-node--contact:focus-visible) .hub-line--contact,
.hub:has(.hub-node--ventz:hover, .hub-node--ventz:focus-visible) .hub-line--ventz,
.hub:has(.hub-node--about:hover, .hub-node--about:focus-visible) .hub-line--about {
  stroke-opacity: 1;
  stroke-width: 1.6;
}

.hub-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36%;
  aspect-ratio: 1 / 1;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 18px 50px rgba(0, 27, 54, 0.45),
    0 0 0 6px rgba(247, 202, 19, 0.14);
}

.hub-center::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 27, 54, 0.2);
  animation: hub-spin 60s linear infinite;
}

@keyframes hub-spin {
  to {
    transform: rotate(360deg);
  }
}

.hub-center img {
  width: 80%;
  height: auto;
}

.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 3px solid var(--color-yellow);
  color: var(--color-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 27, 54, 0.22);
  transition: transform 0.15s ease, background 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}

.hub-node:hover,
.hub-node:focus-visible {
  background: var(--color-yellow);
  color: var(--color-navy);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 27, 54, 0.34),
    0 0 0 6px rgba(247, 202, 19, 0.25);
  outline: none;
}

.hub-node .soon-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* Hexagon vertex positions (pointy-top), radius 42% from center */
.hub-node--services  { left: 50%;   top: 8%;  }
.hub-node--estimator { left: 82.9%; top: 31%; }
.hub-node--gallery   { left: 82.9%; top: 69%; }
.hub-node--contact   { left: 50%;   top: 92%; }
.hub-node--ventz     { left: 17.1%; top: 69%; }
.hub-node--about     { left: 17.1%; top: 31%; }

/* --- Gallery ------------------------------------------------------------------ */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.filter-btn {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--color-paper);
  border: 2px solid var(--color-navy);
  border-radius: 8px;
  padding: 0.5rem 1.05rem;
  box-shadow: 3px 3px 0 rgba(0, 27, 54, 0.16);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, color 0.12s ease;
}

.filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(0, 27, 54, 0.2);
}

.filter-btn.is-active {
  background: var(--color-navy);
  color: var(--color-yellow);
  box-shadow: 3px 3px 0 rgba(247, 202, 19, 0.55);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
  margin: 0;
  background: var(--color-paper);
  border: 1px solid rgba(0, 27, 54, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-link:hover,
.gallery-link:focus-visible {
  background: none;
}

.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-link:hover img,
.gallery-link:focus-visible img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  padding: var(--space-2);
  font-size: 0.95rem;
}

.gallery-cat {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-navy);
  color: var(--color-yellow);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
}

/* Lightbox */
.lightbox {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(92vw, 1100px);
  background: var(--color-navy);
}

.lightbox::backdrop {
  background: rgba(0, 15, 31, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.lightbox-caption {
  color: var(--color-text-inverse);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-navy);
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

/* --- Estimator wizard (dormant, kept for relaunch) --------------------------- */

.wizard {
  max-width: 44rem;
}

.wizard-progress {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 27, 54, 0.6);
  min-height: 1.4em;
  margin: 0 0 var(--space-2);
}

.step {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-3);
}

.step legend,
.step h2 {
  font-size: 1.3rem;
  padding: 0;
  margin-bottom: var(--space-2);
}

.optional-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(0, 27, 54, 0.6);
}

.option-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-paper);
  border: 2px solid rgba(0, 27, 54, 0.25);
  border-radius: 10px;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.option-card:hover {
  border-color: var(--color-navy);
}

.option-card:has(input:checked) {
  border-color: var(--color-navy);
  background: rgba(247, 202, 19, 0.15);
  box-shadow: 3px 3px 0 rgba(247, 202, 19, 0.5);
}

.option-card input {
  accent-color: var(--color-navy);
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.wizard textarea {
  width: 100%;
  border: 2px solid rgba(0, 27, 54, 0.25);
  border-radius: 10px;
  padding: var(--space-2);
  font-family: var(--font-body);
  font-size: 1rem;
}

.wizard textarea:focus-visible {
  outline: none;
  border-color: var(--color-navy);
}

.wizard-nav {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.price-message {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--color-navy);
  background: rgba(247, 202, 19, 0.2);
  border-left: 6px solid var(--color-yellow);
  border-radius: 0 10px 10px 0;
  padding: var(--space-2) var(--space-3);
  max-width: 52rem;
}

.summary-box {
  background: var(--color-paper);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  margin: var(--space-3) 0;
}

.summary-box dl {
  margin: 0 0 var(--space-2);
}

.summary-box dt {
  font-family: var(--font-sub);
  font-weight: 700;
  color: var(--color-navy);
  margin-top: var(--space-2);
}

.summary-box dd {
  margin: 0;
}

.copy-feedback {
  display: inline-block;
  margin-left: var(--space-2);
  font-size: 0.9rem;
  color: var(--color-navy);
}

.quote-handoff h3 {
  margin-top: 0;
}

/* --- Footer -------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-text-inverse);
  padding: calc(var(--space-5) + 6px) var(--space-3) var(--space-3);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--stripe);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto var(--space-4);
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: var(--space-4);
  align-items: start;
}

.footer-brand img {
  width: 84px;
  height: auto;
  margin-bottom: var(--space-2);
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 26rem;
}

.site-footer .nap {
  margin: 0;
  line-height: 1.9;
}

.site-footer .nap-name {
  font-family: var(--font-display);
  color: var(--color-yellow);
}

.footer-nav {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.footer-nav a {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: none;
  color: var(--color-yellow);
  text-decoration: underline;
  text-decoration-color: var(--color-yellow);
}

.footer-legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  text-align: center;
}

/* --- Responsive ------------------------------------------------------------------ */

@media (max-width: 767px) {
  /* Hub collapses to a tappable card grid */
  .hub {
    width: 100%;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .hub-lines {
    display: none;
  }

  .hub-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1 / -1;
    width: 190px;
    margin: 0 auto var(--space-2);
  }

  .hub-node {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    min-height: 64px;
    border-radius: 12px;
    padding: var(--space-2);
  }

  .hub-node:hover,
  .hub-node:focus-visible {
    transform: none;
  }

  /* The wrapped two-row header is too tall to pin on small screens */
  .site-header {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

@media (max-width: 600px) {
  .service-list {
    columns: 1;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* --- Motion preferences ------------------------------------------------------------ */

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

  .home-hero .eyebrow,
  .home-hero h1,
  .home-hero .home-tagline,
  .home-hero .hero-ctas,
  .home-hero .hero-stats {
    animation: none;
  }

  .hub-center::after {
    animation: none;
  }

  .btn,
  .card,
  .gallery-item,
  .gallery-link img,
  .filter-btn,
  .hub-node,
  .option-card,
  .site-nav a::after {
    transition: none;
  }
}
