/* ==========================================================================
   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);
}

/* --- 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) {
  /* 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;
  }

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


/* --- "Do we do that?" widget + partner network ---------------------------- */

.dwdt-sub {
  color: rgba(0, 27, 54, 0.7);
  margin: 0 0 var(--space-3);
}

.dwdt-chat {
  background: var(--color-paper);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  text-align: left;
  min-height: 120px;
  max-height: 440px;
  overflow-y: auto;
}

.dwdt-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  margin-bottom: 0.55rem;
  line-height: 1.45;
  font-size: 0.98rem;
}

.dwdt-bot {
  background: var(--color-navy);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.dwdt-bot a { color: var(--color-yellow); }

.dwdt-you {
  background: var(--color-yellow);
  color: var(--color-navy);
  margin-left: auto;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.dwdt-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.dwdt-input input {
  flex: 1;
  min-width: 0;
  border: 2px solid rgba(0, 27, 54, 0.25);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.dwdt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 0.4rem;
}

.dwdt-choice {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-navy);
  background: var(--color-paper);
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}

.dwdt-choice:hover { background: var(--color-yellow); }

.dwdt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

/* Partner network in the footer */
.footer-network {
  max-width: var(--max-width);
  margin: 0 auto var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.3rem;
  padding: 0.35rem 0.8rem;
  border: 1.5px solid rgba(247, 202, 19, 0.6);
  border-radius: 999px;
  color: var(--color-yellow);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
}

.net-badge:hover,
.net-badge:focus-visible {
  background: var(--color-yellow);
  color: var(--color-navy);
}

.about-credit {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(0,27,54,0.1);
  color: rgba(0,27,54,0.6);
  font-size: 0.9rem;
}
.about-credit strong { color: var(--color-navy); }

.partner-h2 { margin-bottom: var(--space-2); }
.partner-h2::after { display: none; }
.partner-logo {
  display: block;
  height: auto;
  max-height: 78px;
  max-width: 300px;
  width: auto;
}


/* --- Homepage hero v4: split layout, wash reveal, service rotator ------------ */

.home-main {
  max-width: none;
  padding: 0;
}

.hero-split {
  max-width: 40rem;
}

.hero-rotator {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 var(--space-2);
  animation: rise 0.5s ease 0.19s backwards;
}

.rot {
  display: inline-block;
  height: 1.3em;
  line-height: 1.3em;
  overflow: hidden;
  vertical-align: top;
  color: var(--color-yellow);
}

.rot-track {
  display: block;
  animation: rot-cycle 22s cubic-bezier(0.65, 0, 0.35, 1) 1.8s infinite;
}

.rot-track > span {
  display: block;
  white-space: nowrap;
}

@keyframes rot-cycle {
  0.00%, 10.25% { transform: translateY(-0.00em); }
  12.50%, 22.75% { transform: translateY(-1.30em); }
  25.00%, 35.25% { transform: translateY(-2.60em); }
  37.50%, 47.75% { transform: translateY(-3.90em); }
  50.00%, 60.25% { transform: translateY(-5.20em); }
  62.50%, 72.75% { transform: translateY(-6.50em); }
  75.00%, 85.25% { transform: translateY(-7.80em); }
  87.50%, 97.75% { transform: translateY(-9.10em); }
  100% { transform: translateY(-10.40em); }
}

/* One pressure-wash pass across the hero on load: a grime layer is
   stripped away left to right behind a bright spray edge. */
.hero-wash,
.hero-wash::before,
.hero-wash::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wash {
  overflow: hidden;
}

.hero-wash::after {
  content: "";
  background:
    radial-gradient(260px 140px at 18% 30%, rgba(92, 74, 38, 0.45), transparent 70%),
    radial-gradient(340px 180px at 62% 72%, rgba(80, 66, 34, 0.4), transparent 70%),
    radial-gradient(220px 120px at 88% 22%, rgba(96, 80, 44, 0.35), transparent 70%),
    rgba(6, 8, 6, 0.5);
  clip-path: inset(0 0 0 0);
  animation: wash-strip 1.5s cubic-bezier(0.55, 0, 0.3, 1) 0.15s forwards;
}

.hero-wash::before {
  content: "";
  z-index: 1;
  right: auto;
  width: 140px;
  left: -140px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.32) 88%,
    rgba(255, 255, 255, 0.7) 97%,
    transparent 100%);
  filter: blur(2px);
  animation: wash-spray 1.5s cubic-bezier(0.55, 0, 0.3, 1) 0.15s forwards;
}

@keyframes wash-strip {
  to { clip-path: inset(0 0 0 100%); }
}

@keyframes wash-spray {
  0%   { left: -140px; opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(100% - 20px); opacity: 0; }
}

/* Chat card sits in the hero */
.hero-chat {
  background: var(--color-paper);
  color: var(--color-text);
  text-align: left;
  border: 2px solid var(--color-navy-dark);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--color-yellow);
  padding: var(--space-3);
  margin-top: var(--space-4);
  animation: rise 0.55s ease 0.55s backwards;
}

.hero-chat .dwdt-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 0 0 0.3rem;
}

.hero-chat .dwdt-title::after {
  display: none;
}

.hero-chat .dwdt-sub {
  font-size: 0.95rem;
  margin: 0 0 var(--space-2);
}

.hero-chat .dwdt-chat {
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  max-height: 340px;
}

.hero-chat .btn {
  border-color: var(--color-navy);
  box-shadow: 4px 4px 0 var(--color-navy);
}

.hero-chat .btn:hover,
.hero-chat .btn:focus-visible {
  box-shadow: 6px 6px 0 var(--color-navy);
}

/* Phones/tablets: chat comes straight after the headline, before the long
   tagline, so it's on screen without scrolling. */
@media (max-width: 959px) {
  .hero-split {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    display: contents;
  }

  .hero-chat {
    order: 1;
    margin: var(--space-1) 0 var(--space-4);
  }

  .hero-split .home-tagline,
  .hero-split .hero-ctas,
  .hero-split .hero-stats {
    order: 2;
  }

  .rot {
    display: block;
  }
}

@media (min-width: 960px) {
  .home-hero {
    text-align: left;
  }

  .hero-split {
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-5);
    align-items: center;
  }

  .home-hero h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  }

  .hero-split .home-tagline {
    margin-left: 0;
  }

  .hero-split .hero-ctas,
  .hero-split .hero-stats {
    justify-content: flex-start;
  }

  .hero-split .hero-stats {
    gap: 0.7rem var(--space-3);
  }

  .hero-chat {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wash,
  .hero-rotator,
  .hero-chat {
    animation: none;
  }

  .hero-wash {
    display: none;
  }

  .rot-track {
    animation: none;
  }
}

/* Chat "checking…" dots while the endpoint answers */
.dwdt-typing {
  display: inline-flex;
  gap: 5px;
  padding: 0.75rem 0.9rem;
}

.dwdt-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-yellow);
  animation: dwdt-blink 1s ease-in-out infinite;
}

.dwdt-typing span:nth-child(2) { animation-delay: 0.15s; }
.dwdt-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dwdt-blink {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dwdt-typing span { animation: none; opacity: 0.7; }
}
