/* Driftwood Hydrovac Services — landing page styles
   Design system per master build package §2. Mobile-first. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
}

:root {
  --primary: #F6BA4F;      /* Driftwood amber — CTA fills, accents */
  --secondary: #DD971A;    /* deep gold — hover states */
  --body: #515151;         /* body text on light backgrounds */
  --sub-hero: #2B3A3A;     /* dark teal — hero + bundle section bg */
  --dark-bg: #485858;      /* supporting dark surface */
  --dark-stroke: #768282;  /* strokes/dividers on dark */
  --footer-top: #253333;
  --footer-btm: #1E2929;   /* darkest ink — text on amber buttons */
  --light-bg: #EDEDED;     /* alternating light section bg */
  --white: #FFFFFF;
  /* Eyebrow text on light backgrounds: --secondary (#DD971A) is only ~2.5:1
     on white, which fails the spec's hard WCAG AA rule (§2.1/§10). This
     darker gold keeps the same hue family and passes ≥4.5:1 on both white
     and --light-bg. --secondary remains untouched for hovers and icons. */
  --eyebrow-on-light: #8A5E09;
}

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 { margin: 0 0 24px; font-weight: 500; }

p { margin: 0 0 16px; }

a { color: inherit; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding-top: 64px;
  padding-bottom: 64px;
}

h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.375rem; line-height: 1.3; margin-bottom: 12px; }

.eyebrow,
.eyebrow-dark {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09375rem;
  color: var(--eyebrow-on-light);
  margin: 0 0 16px;
}

.eyebrow-dark { color: var(--primary); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 0;
  transition: background-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--footer-btm);
}

.btn-primary:hover { background: var(--secondary); }

.btn-secondary-dark {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 14px 30px; /* keep 48px+ height with the 2px border */
}

.btn-secondary-dark:hover {
  background: var(--white);
  color: var(--sub-hero);
}

.btn-secondary-light {
  background: transparent;
  border: 2px solid var(--sub-hero);
  color: var(--sub-hero);
  padding: 14px 30px;
}

.btn-secondary-light:hover {
  background: var(--sub-hero);
  color: var(--white);
}

.btn-block { display: block; width: 100%; }

.btn[disabled] { opacity: 0.7; cursor: default; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sub-hero);
  border-bottom: 1px solid rgba(118, 130, 130, 0.3); /* --dark-stroke @ 30% */
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.brand-logo { height: 28px; width: auto; }

.brand-sub {
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.09375rem;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-quote {
  padding: 8px 12px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.header-cta {
  padding: 10px 14px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.phone-label-full { display: none; }
.phone-label-short { display: inline; }

@media (min-width: 560px) {
  .phone-label-full { display: inline; }
  .phone-label-short { display: none; }
  .header-quote { padding: 10px 16px; font-size: 0.875rem; }
  .header-cta { padding: 12px 18px; font-size: 0.875rem; }
}

@media (min-width: 768px) {
  .brand-logo { height: 36px; }
  .brand-sub { font-size: 0.75rem; }
  .header-actions { gap: 12px; }
  .header-quote { padding: 12px 20px; font-size: 1rem; }
  .header-cta { padding: 12px 24px; font-size: 1rem; }
}

/* ---------- Utility line motif (hero + winter) ---------- */

/* Shallow band pinned to the section bottom — must stay inside the section's
   bottom padding so the lines never run behind buttons or chips. */
.utility-motif {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 84px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .utility-motif { height: 116px; }
}

.motif-line { stroke: var(--dark-stroke); opacity: 0.4; }
.motif-line-amber { stroke: var(--primary); opacity: 0.6; }
.motif-node { stroke: var(--dark-stroke); opacity: 0.4; }
.motif-node-amber { stroke: var(--primary); opacity: 0.6; }
.motif-line-ice, .motif-node-ice { stroke: #D8EAFC; opacity: 0.25; }

/* ---------- 5.2 Hero ---------- */

.hero {
  position: relative;
  background: var(--sub-hero);
  color: var(--white);
  padding-top: 32px;
  padding-bottom: 96px;
  overflow: hidden;
}

.hero .eyebrow-dark { margin-bottom: 12px; }

.hero-content {
  position: relative;
  max-width: calc(780px + 48px);
  text-align: left;
}

.hero h1 { color: var(--white); margin-bottom: 12px; }

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Phone CTA first on mobile */
.cta-row .hero-call { order: -1; }

.trust-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chips li {
  font-size: 0.875rem;
  color: var(--white);
  border: 1px solid var(--dark-stroke);
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hero { padding-top: 96px; padding-bottom: 128px; }
  .hero .eyebrow-dark { margin-bottom: 16px; }
  .hero-content { text-align: center; }
  .hero h1 { margin-bottom: 24px; }
  .hero-sub { font-size: 1.375rem; line-height: 1.7; margin-bottom: 32px; }
  .cta-row { margin-bottom: 24px; }
  .cta-row {
    flex-direction: row;
    justify-content: center;
  }
  .cta-row .hero-call { order: 0; }
  .trust-chips { justify-content: center; }
}

/* Hero photo carousel */
.hero-art {
  max-width: 460px;
  margin: 40px auto 0;
}

.hero-carousel {
  position: relative;
  aspect-ratio: 1400 / 788;
  border-radius: 8px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 600ms ease;
}

.carousel-slide.is-active { opacity: 1; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

/* 26px hit area with a 10px visual dot — meets touch-target minimums */
.carousel-dot {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.carousel-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 150ms ease;
}

.carousel-dot.is-active::before { background: var(--primary); }

.carousel-dot:hover::before { background: rgba(255, 255, 255, 0.75); }

@media (min-width: 768px) {
  .hero-art { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}

/* Split hero: copy left, photo right */
@media (min-width: 1024px) {
  .hero { padding-top: 72px; padding-bottom: 104px; }
  .hero-content {
    max-width: 1140px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 56px;
    align-items: center;
    text-align: left;
  }
  .hero h1 { font-size: 3rem; }
  .hero-sub { font-size: 1.1875rem; }
  .cta-row { justify-content: flex-start; }
  .trust-chips { justify-content: flex-start; }
  .hero-art { max-width: none; margin: 0; }
  /* Taller 4:3 crop gives the photo real presence beside the copy */
  .hero-carousel { aspect-ratio: 4 / 3; }
}

@media (min-width: 1200px) {
  .hero-content { grid-template-columns: minmax(0, 1fr) 540px; }
}

/* ---------- Equipment / fleet ---------- */

.equipment { background: var(--white); }

.equipment-eyebrow,
.equipment-heading { text-align: center; }

.equipment-heading { margin-bottom: 48px; }

.equip-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 56px;
}

.equip-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.equip-copy h3 { font-size: 1.75rem; margin-bottom: 12px; }

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tick-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--secondary);
  border-bottom: 3px solid var(--secondary);
  transform: rotate(-45deg);
}

.equipment-cta { text-align: center; }

@media (min-width: 900px) {
  .equip-row {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 64px;
    margin-bottom: 72px;
  }
  .equip-row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
  .equip-row--flip .equip-art { order: 2; }
  .equip-row--flip .equip-copy { order: 1; }
}

/* Closing scene above the footer */
.closing-art {
  background: var(--sub-hero);
  padding-top: 48px;
  padding-bottom: 0;
}

.closing-art-inner {
  max-width: 460px;
  margin: 0 auto;
}

.closing-art-inner svg { width: 100%; height: auto; display: block; }

@media (min-width: 768px) {
  .closing-art { padding-top: 64px; padding-bottom: 0; }
  .closing-art-inner { max-width: 640px; }
}

.winter-art {
  max-width: 560px;
  margin: 8px auto 32px;
}

.winter-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ---------- 5.3 Trust bar ---------- */

.trust-bar {
  background: var(--white);
  padding-top: 48px;
  padding-bottom: 48px;
  text-align: center;
}

.trust-bar .eyebrow { margin-bottom: 8px; }
.trust-line { margin: 0; color: var(--body); }

/* ---------- 5.4 Services grid ---------- */

.services { background: var(--white); padding-top: 0; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--white);
  border: 1px solid #D7DBE0;
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(30, 41, 41, 0.10);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.card-icon svg { width: 32px; height: 32px; display: block; }

.card p { font-size: 1rem; margin: 0; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 5.5 Bundle block ---------- */

.bundle {
  background: var(--sub-hero);
  color: var(--white);
}

.bundle-inner {
  max-width: calc(880px + 48px);
  text-align: center;
}

.bundle h2 { color: var(--white); }

.bundle-body {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--footer-btm);
  font-weight: 700;
  font-size: 1.125rem;
}

.step-label {
  font-weight: 700;
  color: var(--white);
}

.step-line {
  background: var(--dark-stroke);
  width: 1.5px;
  height: 32px;
  margin: 8px 0;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
  .step-line {
    width: auto;
    flex: 1;
    max-width: 160px;
    height: 1.5px;
    margin: 24px 0 0; /* aligns with circle centre (48px circle / 2) */
  }
}

/* ---------- 5.6 Why Driftwood ---------- */

.why { background: var(--light-bg); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.why-item p { margin: 0; }

.why-item strong {
  font-weight: 700;
  color: var(--sub-hero);
}

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
}

/* ---------- 5.7 How it works ---------- */

.how { background: var(--white); }

.how-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.how-step p { margin: 0; }

.how-step strong { font-weight: 700; color: var(--sub-hero); }

.how-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--footer-btm);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* ---------- 5.8 Winter block ---------- */

.winter {
  position: relative;
  background: #2B3A44;
  color: var(--white);
  overflow: hidden;
  padding-bottom: 150px;
}

@media (min-width: 768px) {
  .winter { padding-bottom: 190px; }
}

.winter-inner {
  position: relative;
  max-width: calc(780px + 48px);
  text-align: center;
}

.winter h2 { color: var(--white); }

.winter-body {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

/* ---------- 5.9 Service area ---------- */

.area {
  background: var(--white);
  text-align: center;
}

.area-list {
  max-width: 720px;
  margin: 0 auto 16px;
}

.area-note {
  font-size: 0.875rem;
  color: var(--body);
  margin: 0;
}

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

.faq { background: var(--light-bg); }

.faq .eyebrow,
.faq h2 { text-align: center; }

.faq-list {
  max-width: 780px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #D7DBE0;
  border-radius: 8px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 16px 24px;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--sub-hero);
  cursor: pointer;
  list-style: none;
}

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

.faq-indicator {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.faq-indicator::before,
.faq-indicator::after {
  content: "";
  position: absolute;
  background: var(--secondary);
}

.faq-indicator::before {
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
}

.faq-indicator::after {
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
}

.faq-item[open] .faq-indicator::after { display: none; }

.faq-answer { padding: 0 24px 20px; }

.faq-answer p { margin: 0; }

.faq-answer a { color: var(--body); }

/* ---------- 5.11 Quote form ---------- */

.quote {
  background: var(--sub-hero);
  color: var(--white);
}

.quote-heading {
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}

.quote-subline {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 32px;
}

.form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
  color: var(--body);
}

@media (min-width: 768px) {
  .form-card { padding: 40px; }
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-weight: 500;
  color: var(--sub-hero);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  font-family: inherit;
  font-size: 1rem; /* 16px — prevents iOS zoom */
  color: var(--body);
  background: var(--white);
  border: 1px solid #D7DBE0;
  border-radius: 4px;
  padding: 10px 14px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #B3261E;
}

.field-error {
  color: #B3261E;
  font-size: 0.875rem;
  margin: 6px 0 0;
  min-height: 0;
}

.field-error:empty { margin: 0; }

.form-error {
  color: #B3261E;
  font-size: 0.875rem;
  margin: 0 0 12px;
}

.form-error:empty { margin: 0; }

.form-error a { color: #B3261E; font-weight: 700; }

.form-footnote {
  font-size: 0.875rem;
  color: var(--body);
  text-align: center;
  margin: 16px 0 0;
}

.form-footnote a { color: var(--body); font-weight: 700; }

/* Honeypot — visually hidden, still in the accessibility-safe flow for bots */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Success state */
.form-success { text-align: center; }

.form-success h3 {
  font-size: 1.5rem;
  color: var(--sub-hero);
  margin-bottom: 12px;
}

.form-success p { margin: 0; }

.form-success a { color: var(--body); font-weight: 700; }

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

.site-footer {
  background: linear-gradient(to bottom, var(--footer-top), var(--footer-btm));
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  text-align: center;
  padding: 48px 0;
}

.site-footer p { margin: 0 0 8px; }

.site-footer p:last-of-type { margin-bottom: 0; }

.site-footer strong { font-weight: 700; color: rgba(255, 255, 255, 0.9); }

.site-footer a { color: rgba(255, 255, 255, 0.8); }

/* ---------- 5.13 Sticky mobile action bar ---------- */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--footer-btm);
}

.sticky-bar.is-hidden { display: none; }

.sticky-btn {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.sticky-call {
  background: var(--primary);
  color: var(--footer-btm);
}

.sticky-call:hover { background: var(--secondary); }

.sticky-quote {
  background: var(--sub-hero);
  color: var(--white);
}

@media (max-width: 767.98px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) {
  .sticky-bar { display: none; }
}

/* ---------- Desktop type & spacing scale ---------- */

@media (min-width: 768px) {
  body { font-size: 1.125rem; }

  .container { padding-left: 32px; padding-right: 32px; }

  section { padding-top: 96px; padding-bottom: 96px; }

  .trust-bar { padding-top: 48px; padding-bottom: 48px; }
  .services { padding-top: 0; }

  h1 { font-size: 4.375rem; }
  h2 { font-size: 3rem; }
}

/* ---------- Motion: fade-up on first scroll into view ---------- */

@media (prefers-reduced-motion: no-preference) {
  .fade-target {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
    transition-delay: var(--stagger-delay, 0ms);
  }

  .fade-target.is-visible {
    opacity: 1;
    transform: none;
  }
}

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

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  .card:hover { transform: none; }
}
