/* ==========================================================================
   American Earth Haulers LLC
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout
   5.  Buttons & links
   6.  Header
   7.  Hero
   8.  Cards
   9.  Sections
   10. Forms
   11. Footer
   12. Motion
   13. Utilities
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
  /* Palette - drawn from the brand mark: navy #112E42 + crimson #96132D on white.
     Contrast against white: navy 14.1:1, crimson 8.7:1.
     Crimson on navy is only 1.6:1, so anything red sitting on a dark surface uses
     --accent-bright (3.6:1 on navy) instead. Never put --accent on --ink.
     --accent-bright clears the 3:1 bar for large text, icons and rules but NOT the
     4.5:1 bar for small text, so small labels and link hovers on navy go white. */
  --ink:           #112E42;  /* brand navy - dark surfaces, headings */
  --ink-soft:      #17384F;
  --ink-line:      #23506D;
  --navy-mid:      #17364B;  /* raised navy panel - dark enough that map pins clear 3:1 */
  --navy-deep:     #0C2131;
  --accent:        #96132D;  /* brand crimson - on light backgrounds only */
  --accent-dark:   #7A0F24;  /* hover */
  --accent-bright: #E6454F;  /* true red for LARGE text, icons and rules on navy (3.6:1) */
  --accent-soft:   #FBEAEE;  /* tint background */
  --mist:          #F2F5F8;  /* cool off-white */
  --mist-dark:     #E2E8EF;
  --white:         #FFFFFF;
  --gray:          #546678;
  --gray-light:    #8B9AA8;

  /* Semantic */
  --bg:           var(--white);
  --bg-warm:      var(--mist);
  --text:         var(--ink);
  --text-muted:   var(--gray);
  --border:       rgba(17, 46, 66, 0.14);
  --border-soft:  rgba(17, 46, 66, 0.08);
  --border-dark:  rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii - industrial, not app-like */
  --radius-card: 12px;
  --radius-btn:  6px;
  --radius-sm:   4px;

  /* Rhythm */
  --container:   1320px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --section-y:   clamp(4rem, 8vw, 7.5rem);

  /* Elevation - kept minimal */
  --shadow-card: 0 1px 2px rgba(17, 46, 66, .04), 0 8px 24px rgba(17, 46, 66, .06);
  --shadow-lift: 0 2px 4px rgba(17, 46, 66, .06), 0 18px 40px rgba(17, 46, 66, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-h:         88px;
  --header-h-compact: 66px;
}

/* 2. Reset & base ========================================================== */

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

html {
  scroll-behavior: smooth;
  /* keep anchored headings clear of the sticky header */
  scroll-padding-top: calc(var(--header-h-compact) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Dark surfaces need a lighter focus ring. The header is white now, so it keeps
   the crimson ring (8.7:1); --accent-bright would only reach 2.9:1 there. */
.is-dark :focus-visible,
.site-footer :focus-visible,
.topbar :focus-visible {
  outline-color: var(--accent-bright);
}

::selection { background: var(--accent); color: var(--white); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 999;
  background: var(--accent);
  color: var(--white);
  padding: .75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* 3. Typography ============================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); text-transform: uppercase; letter-spacing: -0.015em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.1875rem; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

strong { font-weight: 600; }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Small uppercase label above a heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
/* .hero and .callout sit on dark photography but carry no .is-dark class, so they
   need the same light treatment or the crimson eyebrow disappears into the image. */
.is-dark .eyebrow,
.hero .eyebrow,
.callout .eyebrow { color: rgba(255, 255, 255, .82); }

/* Unfilled business detail */
.placeholder {
  background: repeating-linear-gradient(-45deg, var(--accent-soft), var(--accent-soft) 6px, #F6D6DD 6px, #F6D6DD 12px);
  color: #7A0F24;
  padding: 0 .35em;
  border-radius: var(--radius-sm);
  font-size: .95em;
  font-weight: 600;
  white-space: nowrap;
  box-decoration-break: clone;
}
.is-dark .placeholder {
  background: rgba(150, 19, 45, .16);
  color: #F0A3AE;
}

/* 4. Layout ================================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }
.container--mid    { max-width: 1080px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--warm  { background: var(--bg-warm); }
.section--dark  { background: var(--ink); color: var(--white); }
.section--navy{ background: var(--navy-mid); color: var(--white); }

.is-dark { color: var(--white); }
.is-dark h1, .is-dark h2, .is-dark h3 { color: var(--white); }
.is-dark .lede, .is-dark p { color: rgba(255, 255, 255, .76); }

.grid { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Section heading block */
.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 1.125rem; }

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}
.section-head--split > div:first-child { max-width: 62ch; }

/* 5. Buttons & links ======================================================= */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: 1rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .arrow { transition: transform .25s var(--ease); flex: none; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .34);
}
.btn--on-dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }

.btn--block { width: 100%; }
.btn--lg { padding: 1.15rem 2.25rem; font-size: .9375rem; }

/* Quiet text link with a moving arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: .3rem;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { color: var(--accent); gap: .8rem; }
.is-dark .link-arrow { color: var(--white); }
.is-dark .link-arrow:hover { color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

/* 6. Header ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* White, not navy. The hero and every page-hero below are dark, so a navy
     masthead merged straight into them. White also puts the wordmark back in
     the navy-and-crimson-on-white context the brand mark was drawn for. */
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(17, 46, 66, .15); }

/* Navy utility strip above the main bar: a second plane that makes the masthead
   read as a deliberate unit against the hero rather than a single flat band.
   Collapses on scroll so the sticky header stays compact. */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
  height: 40px;
  overflow: hidden;
  transition: height .3s var(--ease), opacity .25s var(--ease);
}
.site-header.is-stuck .topbar { height: 0; opacity: 0; }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 40px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.topbar__services { display: flex; align-items: center; gap: 1.1rem; list-style: none; }
.topbar__services li { display: flex; align-items: center; gap: 1.1rem; white-space: nowrap; }
.topbar__services li + li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex: none;
}
.topbar__services a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.topbar__services a:hover { color: var(--white); }
.topbar__note { white-space: nowrap; color: rgba(255, 255, 255, .52); }
.topbar__note a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.topbar__note a:hover { color: var(--white); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-stuck .header-inner { height: var(--header-h-compact); }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.logo-mark {
  width: 40px; height: 40px;
  flex: none;
  transition: width .3s var(--ease), height .3s var(--ease);
}
.site-header.is-stuck .logo-mark { width: 34px; height: 34px; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: font-size .3s var(--ease);
}
.site-header.is-stuck .logo-name { font-size: 1.25rem; }
.logo-sub {
  font-size: .5625rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: .3rem;
}
.site-header.is-stuck .logo-sub { opacity: 0; }
.logo-sub { transition: opacity .25s var(--ease); }

/* Primary nav */
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .9rem;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--accent); }

/* Dropdown */
.nav-item { position: relative; }
.nav-caret { transition: transform .25s var(--ease); }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }

.nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: .5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item:hover > .nav-drop,
.nav-item:focus-within > .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-drop a {
  display: block;
  padding: .7rem .9rem;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-drop a:hover { background: var(--mist); color: var(--accent-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .75rem; flex: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .5rem .25rem;
  transition: color .2s var(--ease);
}
.header-phone:hover { color: var(--accent); }

.header-actions .btn { padding: .8rem 1.35rem; white-space: nowrap; }

/* Swapped for a short label on narrow screens (see the 640px breakpoint) */
.btn-label-short { display: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: background .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .28s var(--ease), top .28s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--white);
  padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }

.mobile-nav ul { list-style: none; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--border); }

.mobile-nav a {
  display: block;
  padding: 1.05rem 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--accent); }

.mobile-nav .sub { padding: 0 0 .9rem .9rem; border-left: 2px solid var(--border); margin-left: .1rem; }
.mobile-nav .sub a {
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  text-transform: none;
  padding: .5rem 0;
  color: var(--gray);
}
.mobile-nav .mobile-actions { margin-top: 1.75rem; display: grid; gap: .75rem; }
/* The drawer styles every link as a big nav item; the buttons opt back out. */
.mobile-nav .mobile-actions .btn {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
}
.mobile-nav .mobile-actions .btn--ghost { color: var(--ink); }

body.nav-open { overflow: hidden; }

/* 7. Hero ================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 860px);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Dark, directional overlay so copy stays legible without flattening the photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(17, 46, 66, .93) 0%, rgba(17, 46, 66, .76) 42%, rgba(17, 46, 66, .34) 72%, rgba(17, 46, 66, .5) 100%),
    linear-gradient(to top, rgba(17, 46, 66, .75), transparent 45%);
}

.hero__inner { position: relative; padding-block: clamp(4.5rem, 9vw, 7rem); width: 100%; }
.hero__content { max-width: 56rem; }

.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--accent-bright); display: block; }

.hero__lede {
  margin-top: 1.75rem;
  max-width: 44rem;
  font-size: clamp(1.0625rem, 1.55vw, 1.3125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .84);
}

.hero .btn-row { margin-top: 2.25rem; }

.hero__trust {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 48rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

/* Compact hero for interior pages */
.page-hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(17, 46, 66, .95) 0%, rgba(17, 46, 66, .82) 48%, rgba(17, 46, 66, .55) 100%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.35rem, 5.4vw, 4.25rem); }
.page-hero .lede { color: rgba(255, 255, 255, .8); margin-top: 1.25rem; }
.page-hero__inner { max-width: 62rem; }
.page-hero--plain { padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-hero--plain::before { background: none; }

/* Breadcrumbs */
.crumbs { margin-bottom: 1.5rem; font-size: .8125rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; }
.crumbs a { color: rgba(255, 255, 255, .66); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs li[aria-current] { color: rgba(255, 255, 255, .95); }
.crumbs .sep { color: rgba(255, 255, 255, .34); }

/* 8. Cards ================================================================= */

/* Shared image frame with a subtle zoom on hover */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--mist-dark);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }

/* --- Service card --- */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.service-card:hover .media img { transform: scale(1.06); }

.service-card .media { border-radius: 0; aspect-ratio: 3 / 2; }
.service-card__body { padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: .6rem; text-transform: uppercase; }
.service-card p { color: var(--text-muted); font-size: .9375rem; margin-bottom: 1.4rem; }
.service-card .link-arrow { margin-top: auto; align-self: flex-start; }

.service-card__index {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .2rem .55rem;
  border-radius: var(--radius-sm);
}

/* --- Material card --- */
.material-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.material-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.material-card:hover img { transform: scale(1.07); }

.material-card .media { border-radius: 0; aspect-ratio: 5 / 4; }
.material-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 46, 66, .92) 0%, rgba(17, 46, 66, .55) 38%, rgba(17, 46, 66, .06) 72%);
  pointer-events: none;
}
.material-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.4rem;
  color: var(--white);
}
.material-card h3 { color: var(--white); text-transform: uppercase; font-size: 1.3125rem; }
.material-card p {
  margin-top: .45rem;
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  /* Reveal the description on hover, keep the name always visible */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), opacity .3s var(--ease), margin-top .4s var(--ease);
}
.material-card:hover p,
.material-card:focus-within p { max-height: 9rem; opacity: 1; }

/* --- Location card --- */
.location-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.location-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.location-card:hover .media img { transform: scale(1.06); }
.location-card .media { border-radius: 0; aspect-ratio: 16 / 9; }

.location-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.location-card h3 {
  display: flex; align-items: center; gap: .55rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.location-card h3 svg { color: var(--accent); flex: none; }

.service-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.35rem; list-style: none; }
.service-tags li {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-mid);
  background: rgba(17, 46, 66, .08);
  border: 1px solid rgba(17, 46, 66, .14);
  padding: .3rem .6rem;
  border-radius: var(--radius-sm);
}
.location-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* --- Industry card --- */
.industry-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.industry-card:hover img { transform: scale(1.08); }
.industry-card .media { border-radius: 0; aspect-ratio: 4 / 5; }
.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 46, 66, .9) 12%, rgba(17, 46, 66, .35) 52%, rgba(17, 46, 66, 0) 82%);
}
.industry-card__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.35rem; }
.industry-card h3 { color: var(--white); font-size: 1.1875rem; text-transform: uppercase; }
.industry-card p { font-size: .8125rem; color: rgba(255, 255, 255, .74); margin-top: .35rem; line-height: 1.45; }

/* --- Reason / feature tile --- */
.reason {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  height: 100%;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.reason:hover { transform: translateY(-4px); border-color: rgba(150, 19, 45, .4); box-shadow: var(--shadow-card); }
.reason__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-btn);
  margin-bottom: 1.15rem;
}
.reason h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: .5rem; }
.reason p { font-size: .9375rem; color: var(--text-muted); }

.section--dark .reason,
.section--navy .reason {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border-dark);
}
.section--dark .reason:hover,
.section--navy .reason:hover { background: rgba(255, 255, 255, .07); }
.section--dark .reason h3, .section--navy .reason h3 { color: var(--white); }
.section--dark .reason p, .section--navy .reason p { color: rgba(255, 255, 255, .72); }
.section--dark .reason__icon, .section--navy .reason__icon {
  background: rgba(150, 19, 45, .16);
  color: var(--accent-bright);
}

/* 9. Sections ============================================================== */

/* Two-column text + image */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
/* Long form beside a narrower sidebar */
.split--form { grid-template-columns: 1.55fr .85fr; align-items: start; }
.split__body { max-width: 34rem; }
.split__media .media { aspect-ratio: 4 / 3; }
.split__media:hover img { transform: scale(1.04); }

/* Stacked image pair for the intro section */
.media-stack { position: relative; }
.media-stack__main .media { aspect-ratio: 4 / 3; }
.media-stack__inset {
  position: absolute;
  right: -1.5rem;
  bottom: -2.5rem;
  width: 44%;
  border: 8px solid var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.section--warm .media-stack__inset { border-color: var(--mist); }
.media-stack__inset .media { border-radius: calc(var(--radius-card) - 4px); aspect-ratio: 1 / 1; }

/* Checklist */
.checklist { list-style: none; display: grid; gap: .75rem; margin-top: 1.75rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 500;
}
.checklist svg { color: var(--accent); flex: none; margin-top: .2rem; }
.checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; }

/* Feature list with headings */
.feature-list { list-style: none; display: grid; gap: 1.5rem; margin-top: 2rem; }
.feature-list li { padding-left: 1.5rem; border-left: 2px solid var(--accent); }
.feature-list h3 { font-size: 1.1875rem; text-transform: uppercase; margin-bottom: .35rem; }
.feature-list p { font-size: .9375rem; color: var(--text-muted); }
.is-dark .feature-list p { color: rgba(255, 255, 255, .72); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.step { position: relative; padding-top: 2.25rem; border-top: 2px solid var(--border); }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: .8;
  /* Was a near-invisible watermark tint (1.1:1). These numerals carry the step
     order, so they are brand-coloured and actually legible. */
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.section--dark .step { border-color: var(--ink-line); }
.section--dark .step__num { color: var(--accent-bright); }
.step h3 { text-transform: uppercase; margin-bottom: .6rem; }
.step p { color: var(--text-muted); font-size: .9375rem; }
.section--dark .step p { color: rgba(255, 255, 255, .72); }

/* Full-bleed feature band with a photo on one side */
.band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.band__media { position: relative; min-height: 380px; }
.band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__body { padding: clamp(2rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.band h2 { color: var(--white); }
.band p { color: rgba(255, 255, 255, .76); }
.band .btn-row { margin-top: 2rem; }

/* Storage / photo-backed callout */
.callout {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--white);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.75rem, 5vw, 4.5rem);
}
.callout__media { position: absolute; inset: 0; z-index: -2; }
.callout__media img { width: 100%; height: 100%; object-fit: cover; }
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(17, 46, 66, .93) 0%, rgba(17, 46, 66, .78) 46%, rgba(17, 46, 66, .42) 100%);
}
.callout__body { max-width: 40rem; }
.callout h2 { color: var(--white); }
.callout p { color: rgba(255, 255, 255, .82); margin-top: 1.25rem; }
.callout .btn-row { margin-top: 2rem; }

/* Locations map panel */
.locations-map {
  position: relative;
  background: var(--navy-mid);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.25rem);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.locations-map__art { position: relative; }
.locations-map__art svg { width: 100%; height: auto; }
.us-map-outline { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .34); stroke-width: 1.1; }
.us-map-pin { fill: var(--accent-bright); transform-box: fill-box; transform-origin: center; }
.us-map-pulse { fill: var(--accent-bright); opacity: .35; }

.note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: #6B1020;
}
.note svg { flex: none; margin-top: .2rem; color: var(--accent-dark); }
.is-dark .note {
  background: rgba(150, 19, 45, .12);
  color: rgba(255, 255, 255, .84);
  border-left-color: var(--accent-bright);
}
.is-dark .note svg { color: var(--accent-bright); }

/* Big conversion band.
   Crimson, not navy: this section is always preceded by a dark section on the home
   and service pages and always followed by the navy footer, so a navy band left the
   page ending in one undifferentiated dark mass. Crimson also puts the brand's
   strongest colour on the one moment that asks for a decision. */
.cta-band {
  background: var(--accent);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .88); margin-top: 1.25rem; max-width: 46ch; }
.cta-band .btn-row { justify-content: flex-end; }

/* On crimson, the accent-coloured eyebrow and the crimson primary button would both
   vanish, so both invert to white. */
.cta-band .eyebrow,
.is-dark.cta-band .eyebrow { color: rgba(255, 255, 255, .78); }

.cta-band .btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  border-color: var(--white);
}
.cta-band .btn:hover { background: var(--mist); color: var(--ink); border-color: var(--mist); }

.cta-band .btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .46);
}
.cta-band .btn--on-dark:hover { background: rgba(255, 255, 255, .12); color: var(--white); border-color: var(--white); }

.cta-band :focus-visible { outline-color: var(--white); }

/* Contact detail list */
.detail-list { list-style: none; display: grid; gap: 1.5rem; }
.detail-list li { display: flex; gap: 1rem; align-items: flex-start; }
.detail-list__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-btn);
}
.is-dark .detail-list__icon { background: rgba(150, 19, 45, .16); color: var(--accent-bright); }
.detail-list dt, .detail-list__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.is-dark .detail-list__label { color: rgba(255, 255, 255, .58); }
.detail-list__value { font-size: 1.0625rem; font-weight: 500; }
.detail-list a { text-decoration: none; }
.detail-list a:hover { color: var(--accent); }

/* Map placeholder */
.map-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--mist);
  aspect-ratio: 16 / 9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-placeholder svg { color: var(--accent); }

/* Long-form legal / prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.75rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 1.9rem; margin-bottom: .6rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.15em 1.25rem; padding-left: .5rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--accent-dark); }

/* Anchor list used on the services index */
.jump-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.jump-nav a {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--radius-btn);
  color: rgba(255, 255, 255, .85);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.jump-nav a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* 10. Forms ================================================================ */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-card);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field--full { grid-column: 1 / -1; }

.fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.fieldset:last-of-type { margin-bottom: 1.5rem; }
.fieldset__legend {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
}
.fieldset__legend .num {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: .8125rem;
  border-radius: var(--radius-sm);
  flex: none;
}

.field { display: flex; flex-direction: column; }
.field label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .5rem;
}
.field .req { color: var(--accent-dark); margin-left: .15rem; }
.field .hint { font-size: .8125rem; color: var(--text-muted); margin-top: .4rem; font-weight: 400; text-transform: none; letter-spacing: 0; }

.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 50px;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B706C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.input:hover, .select:hover, .textarea:hover { border-color: rgba(17, 46, 66, .28); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(150, 19, 45, .18);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-light); }

.field--error .input, .field--error .select, .field--error .textarea { border-color: #B3261E; }
.field-error {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 500;
  color: #B3261E;
  margin-top: .4rem;
}

/* Checkbox */
.checkbox { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.checkbox input {
  appearance: none;
  width: 22px; height: 22px;
  flex: none;
  margin-top: .1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.checkbox input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--accent);
}
.checkbox span {
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* Honeypot - hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts */
.alert {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-card);
  margin-bottom: 2rem;
  font-size: .9375rem;
}
.alert svg { flex: none; margin-top: .15rem; }
.alert--error { background: #FDECEA; color: #7A1C16; border: 1px solid #F2C4BF; }
.alert--error svg { color: #B3261E; }
.alert h3 { font-family: var(--font-body); font-size: .9375rem; font-weight: 700; margin-bottom: .3rem; }
.alert ul { margin: .35rem 0 0 1.1rem; }

/* Success panel */
.success {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.success__icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.75rem;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 50%;
  animation: pop .5s var(--ease) both;
}
.success h2 { margin-bottom: 1rem; }
.success p { color: var(--text-muted); max-width: 50ch; margin-inline: auto; }
.success .btn-row { justify-content: center; margin-top: 2.25rem; }

@keyframes pop {
  0%   { transform: scale(.7); opacity: 0; }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* Sticky sidebar next to a long form */
.form-aside { position: sticky; top: calc(var(--header-h-compact) + 2rem); align-self: start; }

/* 11. Footer =============================================================== */

/* Deeper than --ink so the page ends on a real three-step: navy section ->
   crimson CTA -> darkest navy footer. Crimson and navy have almost the same
   luminance, so without this step the boundary reads as hue alone. */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); }

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.25rem, 6vw, 5rem);
}

.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand p { font-size: .9375rem; max-width: 34ch; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: grid; gap: .7rem; }
.footer-col a {
  font-size: .9375rem;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-col a:hover { color: var(--white); padding-left: .3rem; }

.footer-contact { display: grid; gap: 1rem; list-style: none; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; }
.footer-contact svg { flex: none; margin-top: .25rem; color: var(--accent-bright); }
.footer-contact a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .54);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; }
.footer-bottom a { color: rgba(255, 255, 255, .54); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }


/* Back to top */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s var(--ease);
  box-shadow: var(--shadow-lift);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); }

/* 12. Motion =============================================================== */

/* Scroll reveal - the JS adds .is-in when the element enters the viewport.
   Without JS the content stays visible, so nothing is ever hidden by default
   for a crawler or a reader with scripting off. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Stagger children of a grid */
.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-group.is-in > * { opacity: 1; transform: none; }
.no-js .reveal-group > * { opacity: 1; transform: none; }

/* Hero copy settles in on load */
.hero__content > * { animation: rise .8s var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .15s; }
.hero__content > *:nth-child(3) { animation-delay: .25s; }
.hero__content > *:nth-child(4) { animation-delay: .35s; }
.hero__content > *:nth-child(5) { animation-delay: .45s; }

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

/* Very slow hero drift - well short of a parallax effect */
.hero__media img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.11); }
}

@keyframes pulse-ring {
  0%   { transform: scale(.6); opacity: .55; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
.us-map-pulse { animation: pulse-ring 2.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.us-map-pulse:nth-of-type(2) { animation-delay: .9s; }
.us-map-pulse:nth-of-type(3) { animation-delay: 1.8s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal-group > *, .hero__content > * { opacity: 1 !important; transform: none !important; }
  .hero__media img { animation: none; transform: none; }
}

/* 13. Utilities ============================================================ */

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

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.is-dark .rule { background: var(--border-dark); }


/* Red on a navy surface must use --accent-bright: --accent is only 1.6:1 there.
   These components appear on both light and dark sections. */
.is-dark .checklist svg,
.section--dark .checklist svg,
.section--navy .checklist svg,
.band .checklist svg,
.callout .checklist svg { color: var(--accent-bright); }

.is-dark .feature-list li,
.section--dark .feature-list li,
.section--navy .feature-list li { border-left-color: var(--accent-bright); }

.is-dark .link-arrow { border-bottom-color: var(--accent-bright); }
.is-dark .detail-list a:hover { color: var(--white); }
.is-dark .prose a { color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

@media (max-width: 1024px) {
  :root { --header-h: 76px; --header-h-compact: 64px; }

  /* The utility strip is desktop-only: hiding it here keeps --header-h accurate
     for the mobile drawer, which is positioned from the header's bottom edge. */
  .topbar { display: none; }

  .nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .locations-map { grid-template-columns: 1fr; }
  .locations-map__art { order: -1; max-width: 560px; margin-inline: auto; }

  .band { grid-template-columns: 1fr; }
  .band__media { min-height: 300px; }

  .split, .split--form { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split__media { order: 0; }
  .split__body { max-width: none; }

  .media-stack__inset { width: 38%; right: -.5rem; bottom: -1.5rem; border-width: 6px; }

  .steps { grid-template-columns: 1fr; gap: 2rem; }

  .form-aside { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checklist--2col { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }

  .section-head--split { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  .hero { min-height: 0; }
  .hero__inner { padding-block: clamp(3.5rem, 14vw, 5rem); }
  .hero__trust { margin-top: 2.25rem; font-size: .75rem; }

  /* Only stacked button rows go full width - never the header or footer CTA */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }

  .media-stack__inset { display: none; }

  /* Material descriptions can't be hovered on touch, so always show them */
  .material-card p { max-height: none; opacity: 1; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .to-top { right: .875rem; bottom: .875rem; }
}

/* Narrow phones: the header has to fit a logo, a CTA and the menu toggle.
   The CTA drops to a short label and the strapline goes, rather than letting
   the row overflow the viewport. */
@media (max-width: 640px) {
  .header-inner { gap: .75rem; }
  .logo { min-width: 0; }
  .logo-name { font-size: 1.0625rem; }
  .logo-sub { display: none; }
  .logo-mark, .site-header.is-stuck .logo-mark { width: 32px; height: 32px; }

  .header-actions { gap: .5rem; }
  .header-actions .btn { padding: .7rem .9rem; font-size: .75rem; letter-spacing: .04em; }
  .header-actions .btn .arrow { display: none; }

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

  .nav-toggle { width: 42px; height: 42px; }
}

@media (max-width: 380px) {
  .logo-name { font-size: .9375rem; }
  .header-actions .btn { padding: .65rem .75rem; }
}

/* Print - legal pages are the realistic case */
@media print {
  .site-header, .site-footer, .to-top, .cta-band, .hero__media, .page-hero__media { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .page-hero { padding-block: 0; background: none; }
  .page-hero h1, .page-hero .lede { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
