/* AFD 2026 — Advanced Freight Dynamics theme styles */

:root {
  --ink: #0a1628;
  --ink-2: #1c2a3d;
  --navy: #0d2137;
  --steel: #2c4a6e;
  --muted: #5a6a7c;
  --faint: #8a97a6;
  --line: #dfe5ec;
  --line-strong: #c8d0da;
  --paper: #e8f1f8;
  --paper-2: #d7e6f2;
  --wash: #e8f1f8;
  --wash-2: #dceaf4;
  --blue: #1670b5;
  --blue-light: #6cbcf2;
  --white: #ffffff;
  --accent: #1670b5;
  --accent-deep: #0f5a94;
  --accent-soft: rgba(22, 112, 181, 0.08);
  --max: 1180px;
  --nav-h: 146px;
  --radius: 6px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* —— Sticky thin nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 132px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a.is-active { color: var(--accent); }

.nav-phone {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  border-radius: 2px;
}

/* —— Labels & type —— */
.section-label {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 750;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.h-accent { color: var(--accent); }
.h-sec { font-weight: 550; }

/* —— Full-bleed cinematic hero —— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 14, 28, 0.45) 0%, rgba(6, 14, 28, 0.25) 35%, rgba(6, 14, 28, 0.78) 100%),
    linear-gradient(90deg, rgba(6, 14, 28, 0.7) 0%, rgba(6, 14, 28, 0.25) 55%, rgba(6, 14, 28, 0.35) 100%);
}

.hero-content {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.hero-logo { display: none; }

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 14ch;
}

.hero h1 .h-sec {
  display: block;
  font-weight: 500;
  color: var(--blue-light); /* live .hero h1 .h-sec */
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 0 0 2.1rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* —— Intro strip (blue wash) —— */
.intro {
  background: var(--paper);
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--paper-2);
}

.intro-block {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.intro-block::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1.35rem;
}

.intro h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-weight: 750;
}

/* —— Approach / three pillars —— */
.approach {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--white);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.pillar {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.25s, transform 0.25s;
}

.pillar:hover {
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.08);
  transform: translateY(-2px);
}

.pillar-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}

.pillar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pillar:hover .pillar-photo img {
  transform: scale(1.03);
}

.pillar-body {
  padding: 1.45rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pillar h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 750;
}

.pillar-tagline {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pillar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}

.pillar li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.4;
}

.pillar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.approach-cta {
  text-align: center;
  padding-top: 0.5rem;
}

/* —— Dark stats band —— */
.stats {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.25rem) 0;
  width: 100%;
}

.stats-heading {
  margin: 0 0 2.75rem;
  text-align: center;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 40rem;
  margin-inline: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:last-child { border-right: none; }

.stat strong {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.55rem;
  color: #fff;
}

.stat span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* —— Services (blue wash) —— */
.services {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--paper);
}

.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.service-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.service-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.service-item h3 a { color: var(--ink); }
.service-item h3 a:hover { color: var(--accent); }

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 48rem;
}

.service-arrow {
  color: var(--faint);
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.2rem;
  transition: color 0.2s, transform 0.2s;
}

.service-item:hover .service-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* —— Freight band (photo) styles near end of file —— */

/* —— Ship / area —— */
.ship-area {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--white);
}

.ship-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.ship-grid h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 750;
}

.ship-grid > div > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.area-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.85rem 1.7rem;
}

.area-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 750;
}

.area-panel p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.area-panel address {
  font-style: normal;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.65;
}

/* —— Trust —— */
.trust {
  padding: 0 0 clamp(3.5rem, 7vw, 5rem);
  background: var(--white);
}

.trust-inner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.trust-inner h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.trust-inner .meta {
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.trust-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.trust-addresses h4 {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 750;
}

.trust-addresses address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* —— Full-bleed CTA —— */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  width: 100%;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-inner h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  font-weight: 750;
}

.cta-inner p {
  margin: 0 0 0.3rem;
  color: rgba(255, 255, 255, 0.72);
}

.cta-inner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-meta {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
  letter-spacing: 0.04em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-inner .btn { text-decoration: none; }
.cta-inner .btn-light { color: var(--ink); }

/* —— Editorial footer —— */
.site-footer {
  background: var(--white);
  color: var(--ink-2);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 22rem;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 750;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-col .meta {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* —— Page hero (inner) —— */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  min-height: clamp(360px, 58vh, 540px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.page-hero .hero-media,
.page-hero .hero-overlay { position: absolute; inset: 0; }
.page-hero .hero-media { z-index: -2; }
.page-hero .hero-overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 14, 28, 0.35) 0%, rgba(6, 14, 28, 0.82) 100%),
    linear-gradient(90deg, rgba(6, 14, 28, 0.65) 0%, transparent 60%);
}
.page-hero .hero-content {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.page-hero .hero-sub {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* —— Page sections —— */
.page-section {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  background: var(--white);
}
.page-section.alt { background: var(--wash); }
.page-section .lead {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 42rem;
  line-height: 1.6;
  font-weight: 500;
}
.page-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 750;
}
.page-section h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.page-section p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.prose-wide { max-width: 48rem; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.split-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.need-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.6rem 1.45rem;
}
.need-card h3 { margin-top: 0; }
.need-card p { margin: 0; font-size: 0.95rem; }

/* How It Works — live AFD blue steps band look */
.steps-band {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  overflow: hidden;
}
.steps-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 380px at 12% 0%, rgba(22, 112, 181, 0.35), transparent 60%),
    radial-gradient(700px 360px at 100% 100%, rgba(108, 188, 242, 0.14), transparent 60%);
}
.steps-band .section-label {
  color: var(--blue-light);
}
.steps-band h2 {
  color: #fff;
  margin: 0 0 0.35rem;
}
.steps-band .steps-lead {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 40rem;
}
.steps {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 0.5rem;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 28px;
  right: calc(25% - 49px);
  top: 27px;
  height: 2px;
  border-radius: 2px;
}
.steps::before { background: rgba(255, 255, 255, 0.14); }
.steps::after {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform-origin: left;
  transform: scaleX(var(--p));
  transition: transform 0.2s linear;
}
html.reduce-motion .steps { --p: 1; }
html.reduce-motion .steps::after { transition: none; }
.step {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 0 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: background-color 0.5s, border-color 0.5s, color 0.5s, box-shadow 0.5s, transform 0.5s ease;
}
.step.on .step-num,
html.reduce-motion .step-num {
  background: var(--blue);
  border-color: var(--blue-light);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(22, 112, 181, 0.22);
  transform: scale(1.06);
}
.step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.4s;
}
.step p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
  transition: color 0.4s;
}
html:not(.reduce-motion) .step:not(.on) p {
  color: rgba(255, 255, 255, 0.6);
}

/* Staggered step children (live parity) */
html:not(.reduce-motion) .steps:not(.settled) > .step {
  transition: opacity 0.8s ease, transform 0.8s ease;
}
html:not(.reduce-motion) .steps:not(.in) > .step {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.97);
}
html:not(.reduce-motion) .steps.in:not(.settled) > .step:nth-child(2) { transition-delay: 90ms; }
html:not(.reduce-motion) .steps.in:not(.settled) > .step:nth-child(3) { transition-delay: 180ms; }
html:not(.reduce-motion) .steps.in:not(.settled) > .step:nth-child(4) { transition-delay: 270ms; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.photo-grid .span-2 {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .ship-grid, .split, .need-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.1rem; padding-left: 0; }
  .steps::before,
  .steps::after {
    display: block;
    left: 27px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
    transform-origin: top;
  }
  .steps::after { transform: scaleY(var(--p)); }
  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1.25rem;
    align-items: start;
  }
  .step-num { margin: 0; grid-row: span 2; }
  .step h3 { margin-top: 0.35rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .span-2 { grid-column: span 2; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.9rem;
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .site-header, .header-inner { height: 108px; }
  .brand img { height: 96px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.75rem, var(--max)); }
  .hero-content, .page-hero .hero-content { width: min(100% - 1.75rem, var(--max)); }
  .photo-grid, .stats-grid { grid-template-columns: 1fr; }
  .steps { gap: 2rem; }
  .photo-grid .span-2 { grid-column: span 1; aspect-ratio: 4/3; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat:last-child { border-bottom: none; }
  .service-item { grid-template-columns: 1fr; gap: 0.5rem; }
}


/* —— Extended page components —— */
.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  font-size: 0.98rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.45rem;
}
.panel h3 { margin-top: 0; color: var(--ink); }
.panel ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.panel li { margin-bottom: 0.35rem; font-size: 0.95rem; }
.panel p { color: var(--muted); }

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.photo-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.equip-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.gallery-note {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.contact-facts {
  background: var(--ink);
  color: #fff;
  padding: 1.85rem 1.7rem;
}
.contact-facts h2 { color: #fff; margin: 0 0 1rem; font-size: 1.35rem; letter-spacing: -0.02em; }
.contact-facts p, .contact-facts a {
  color: rgba(255,255,255,0.88);
  margin: 0 0 0.65rem;
  display: block;
  font-size: 0.98rem;
}
.contact-facts a:hover { color: #fff; }
.contact-facts .meta { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 1rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.35rem, 3vw, 1.85rem);
}
.form-card h2 { margin: 0 0 0.35rem; color: var(--ink); }
.form-note {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(22, 112, 181, 0.22);
  padding: 0.65rem 0.85rem;
}
.form-hint {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(22,112,181,0.25);
  border-color: var(--accent);
}
.field-file input {
  padding: 0.55rem;
  font-size: 0.88rem;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.35rem;
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}
.form-section-label {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-actions { margin-top: 1.25rem; }
.form-actions .btn { border: none; }
.dims {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.faq-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
}
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--ink); }
.faq-item p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.story-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.story-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.story-card .story-body { padding: 1rem 1.1rem 1.2rem; }
.story-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--ink); }
.story-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.cred-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.cred {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
  text-align: center;
}
.cred strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.25rem; }
.cred span { color: var(--muted); font-size: 0.88rem; }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.amenity-chip {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 2.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; color: var(--ink); }
.card-tagline { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.card li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

@media (max-width: 980px) {
  .two-col, .form-layout { grid-template-columns: 1fr; }
  .gallery-grid, .story-grid { grid-template-columns: 1fr 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .cred-row, .cards { grid-template-columns: 1fr; }
  .dims { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gallery-grid, .form-grid, .dims, .story-grid, .photo-row, .cards { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: 1fr; }
}

/* —— Page layouts —— */
.page-hero .eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.page-hero--compact { min-height: clamp(320px, 48vh, 460px); }
.page-hero .hero-actions { margin-top: 1.5rem; }

.intro-band {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-2);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}
.intro-band .lead { margin-bottom: 0; }
.intro-band .hero-actions { margin-top: 1.5rem; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.25s, transform 0.25s;
  min-height: 100%;
}
.svc-card:hover {
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.08);
  transform: translateY(-3px);
}
.svc-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-2);
}
.svc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.svc-card:hover .svc-card-media img { transform: scale(1.04); }
.svc-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}
.svc-card-body h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 750;
}
.svc-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}
.svc-card-body .svc-link {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.svc-card-body .svc-link:hover { color: var(--accent-deep); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.feature-tile {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.6rem 1.5rem;
}
.feature-tile h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.feature-tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature-tile ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.feature-tile li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.feature-tile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.ink-band {
  background: var(--navy);
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4rem) 0;
}
.ink-band h2 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}
.ink-band p { margin: 0; color: rgba(255,255,255,0.72); max-width: 42rem; font-size: 1.05rem; }
.ink-band .section-label { color: var(--blue-light); }

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.list-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
}

.page-section h2.title-case,
.page-section h2 {
  text-transform: none;
}

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* —— JS polish + page refinements —— */
.photo-grid {
  gap: 1.15rem;
  margin-top: 2.25rem;
}
.page-hero h1 {
  max-width: 16ch;
}
.page-hero .hero-sub {
  max-width: 38rem;
}
.cta-band .cta-inner {
  gap: 1.25rem;
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.method-step {
  border-top: 2px solid var(--accent);
  padding-top: 1.15rem;
}
.method-step strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
.method-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: var(--ink);
}
.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 980px) {
  .method-steps { grid-template-columns: 1fr; }
}

/* —— AFD service-area map (live parity) —— */
.ship-grid-copy {
  grid-template-columns: 1fr;
  max-width: 46rem;
}

.service-area {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.area-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.area-copy .lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.area-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 750;
}

.loc-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.loc-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.loc-dot {
  width: 12px;
  height: 12px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(22, 112, 181, 0.14);
  flex-shrink: 0;
}

.link-arrow {
  font-weight: 650;
  color: var(--accent);
}

.link-arrow:hover {
  color: var(--accent-deep);
}

.tx-wrap {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
}

.tx-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tx-pin .tx-pulse {
  opacity: 0.35;
  transform-box: fill-box;
  transform-origin: center;
  animation: afd-map-pulse 2.4s ease-out infinite;
}

@keyframes afd-map-pulse {
  0% { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.2); }
}

.subhead-upper {
  margin: 2.5rem 0 1.25rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 980px) {
  .area-grid {
    grid-template-columns: 1fr;
  }
}


/* —— Photo-fill / Repair form polish —— */
.hero-media video.hero-video,
.hero-media .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-media .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-media:has(video[src]) .hero-fallback { opacity: 0; pointer-events: none; }

.intro-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.intro-media {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.intro-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; }
}

.stats {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.stats-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.stats-has-bg {
  background: linear-gradient(180deg, rgba(11,23,38,.92), rgba(11,23,38,.88));
}

.service-item {
  grid-template-columns: 160px 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.service-photo {
  margin: 0;
  width: 160px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .service-item { grid-template-columns: 1fr; }
  .service-photo { width: 100%; max-width: 280px; }
}

.ship-media {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.ship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.check-list.cols-2 {
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
}
@media (max-width: 700px) {
  .check-list.cols-2 { grid-template-columns: 1fr; }
}

.logo-plate {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: grid;
  place-items: center;
}
.logo-plate img {
  max-height: 260px;
  width: auto;
  margin: 0 auto;
}

.photo-row-3 { grid-template-columns: repeat(3, 1fr); }
.photo-row-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .photo-row-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .photo-row-3,
  .photo-row-5 { grid-template-columns: 1fr 1fr; }
}

.repair-request {
  max-width: 820px;
  margin-inline: auto;
}
.repair-form-card .form-section-label {
  grid-column: 1 / -1;
  margin: 1.15rem 0 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.repair-form-card .form-section-label:first-of-type,
.repair-request-form .form-grid > .form-section-label:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.grp-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.opt { font-weight: 400; color: var(--muted); }
.req { color: #b42318; margin-left: 2px; }
.field-help {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.field-help.strong {
  font-weight: 650;
  color: var(--ink);
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.85rem;
}
.check-grid label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfd;
  line-height: 1.3;
}
.check-grid input {
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--accent);
}
@media (max-width: 700px) {
  .check-grid { grid-template-columns: 1fr; }
}
.file-label {
  display: block;
  margin-bottom: 0.45rem;
}
.file-hint {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.facility-video {
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}
.facility-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}


/* —— Global mock-form alignment —— */
.mock-form,
.repair-form-card {
  width: 100%;
}
.mock-form .form-grid,
.repair-form-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  align-items: start;
}
.mock-form .form-section-label,
.repair-form-card .form-section-label {
  grid-column: 1 / -1;
  margin: 1.1rem 0 0.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.mock-form .form-grid > .form-section-label:first-child,
.repair-form-card .form-grid > .form-section-label:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.mock-form .field,
.repair-form-card .field {
  min-width: 0;
}
.mock-form .field.full,
.repair-form-card .field.full,
.form-grid .full {
  grid-column: 1 / -1;
}
.dims-3 {
  grid-template-columns: repeat(3, 1fr);
}
.check-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) {
  .check-grid-4 { grid-template-columns: 1fr 1fr; }
  .dims-3 { grid-template-columns: 1fr; }
  .mock-form .form-grid,
  .repair-form-card .form-grid { grid-template-columns: 1fr; }
}
.field-file input[type="file"] {
  width: 100%;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #fafbfd;
}
.accept-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500 !important;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 !important;
}
.accept-label input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--accent);
}
.form-layout {
  align-items: stretch;
}
.form-layout .form-card {
  height: 100%;
}
.radio-row label {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfd;
}


/* —— Home Services photo cards (match live 4-up) —— */
.svc-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}
.svc-grid-4 .svc-card {
  position: relative;
  box-shadow: 0 1px 2px rgba(11,23,38,0.04);
}
.svc-grid-4 .svc-card-media {
  aspect-ratio: 4/3;
  margin: 0;
}
.svc-grid-4 .svc-card-body h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}
.svc-grid-4 .svc-card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.svc-grid-4 .svc-card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.svc-grid-4 .svc-card-body p {
  font-size: 0.92rem;
}
/* —— Trucking photo band + Where we ship feature —— */
.freight-band {
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  color: #fff;
  overflow: hidden;
}
.freight-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.freight-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}
.freight-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(6, 14, 28, 0.88) 0%, rgba(6, 14, 28, 0.72) 42%, rgba(6, 14, 28, 0.45) 100%),
    linear-gradient(180deg, rgba(6, 14, 28, 0.25) 0%, rgba(6, 14, 28, 0.55) 100%);
}
.freight-inner {
  max-width: 40rem;
}
.freight-label {
  color: var(--blue-light);
  margin-bottom: 0.85rem;
}
.freight-inner h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.freight-inner > p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}
.freight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.ship-feature {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ship-feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.ship-feature-media {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 12px 36px rgba(15, 35, 55, 0.1);
  min-height: 280px;
}
.ship-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}
.ship-feature-copy {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(15, 35, 55, 0.06);
}
.ship-feature-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 750;
}
.ship-feature-copy > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.ship-feature-copy > p strong {
  color: var(--ink-2);
  font-weight: 650;
}
.ship-feature-copy .link-arrow {
  margin-top: 0.5rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .ship-feature-grid { grid-template-columns: 1fr; }
  .ship-feature-media { min-height: 220px; }
  .ship-feature-media img { aspect-ratio: 16/10; }
}
@media (max-width: 1100px) {
  .svc-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-grid-4 { grid-template-columns: 1fr; }
}




/* —— Services / About dropdown (live parity) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.has-sub {
  position: relative;
  display: flex;
  align-items: center;
}
.has-sub > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.has-sub > a svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}
.has-sub:hover > a svg,
.has-sub:focus-within > a svg {
  transform: rotate(180deg);
}
.sub-toggle {
  display: none !important;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink-2);
  padding: 0.35rem;
}
.sub-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.sub {
  list-style: none;
  margin: 0;
  position: absolute;
  left: -8px;
  top: calc(100% + 10px);
  min-width: 270px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 35, 55, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.25s ease, visibility 0.2s;
  z-index: 80;
}
.sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sub a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}
.sub a:hover,
.sub a.is-active {
  background: var(--paper);
  color: var(--accent);
}

/* Counter pop (stats count-up) */
.stat strong.counting { opacity: 0.92; }
.stat strong.counted {
  animation: afd-stat-pop 0.5s ease;
}
@keyframes afd-stat-pop {
  50% { transform: scale(1.06); }
}
.stat strong {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .has-sub {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .has-sub > a {
    padding: 0.85rem 0;
    width: 100%;
  }
  .has-sub > a svg { display: none; }
  .sub-toggle {
    display: inline-flex !important;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
  }
  .sub {
    grid-column: 1 / -1;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.65rem 0.75rem;
    min-width: 0;
    display: none;
    background: transparent;
  }
  .has-sub:hover .sub,
  .has-sub:focus-within .sub {
    transform: none;
  }
  .sub.open { display: block; }
  .sub a {
    padding: 0.7rem 0.35rem;
    font-size: 0.95rem;
    color: var(--muted);
  }
}

/* —— Motion (tasteful, transform/opacity only) —— */
.hero .hero-content,
.page-hero .hero-content {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero .hero-content.hero-in,
.page-hero .hero-content.hero-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease var(--reveal-delay, 0ms),
    transform 0.65s ease var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Card / tile hover polish (site-wide) */
.card,
.need-card,
.story-card {
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.card:hover,
.need-card:hover,
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 35, 55, 0.08);
}
.gallery-item {
  transition: box-shadow 0.25s, transform 0.25s;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 35, 55, 0.1);
}
.service-item {
  transition: background 0.2s, transform 0.25s;
}
.service-item:hover {
  transform: translateX(2px);
}
.btn-primary,
.btn-light,
.btn-outline-light,
.btn-ghost,
.nav-cta {
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover,
.btn-light:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 35, 55, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .hero-content,
  .page-hero .hero-content,
  .reveal,
  .steps > .step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .steps { --p: 1 !important; }
  .stat strong.counted { animation: none !important; }
  .pillar:hover,
  .svc-card:hover,
  .card:hover,
  .need-card:hover,
  .story-card:hover,
  .gallery-item:hover,
  .service-item:hover,
  .btn-primary:hover,
  .btn-light:hover,
  .nav-cta:hover {
    transform: none !important;
  }
  .pillar:hover .pillar-photo img,
  .gallery-item:hover img {
    transform: none !important;
  }
  .afd-map-pulse,
  [class*="pulse"] {
    animation: none !important;
  }
}


/* —— Gallery filters (live parity) —— */
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}
.gf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: 600 0.92rem/1 var(--font);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.gf-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.gf-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.gf-n {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.gf-btn[aria-pressed="true"] .gf-n {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.gallery-item[hidden] { display: none !important; }
.gf-in { animation: gfIn 0.55s ease both; }
@keyframes gfIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .gf-in { animation: none !important; }
  .gf-btn:hover { transform: none; }
}

/* —— Stats band readability fix (text only; photo untouched) —— */
.stats-has-bg .stats-heading {
  color: #fff; font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-shadow: 0 0 2px #000, 0 2px 4px rgba(0,0,0,.95), 0 4px 18px rgba(0,0,0,.85);
}
.stats-has-bg .stat strong {
  color: #fff; opacity: 1; font-weight: 900; font-size: clamp(2.7rem, 5vw, 3.8rem);
  text-shadow: 0 0 3px #000, 0 3px 6px rgba(0,0,0,.95), 0 6px 24px rgba(0,0,0,.8);
}
.stats-has-bg .stat span {
  color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .06em;
  text-shadow: 0 0 2px #000, 0 2px 4px rgba(0,0,0,.95), 0 3px 12px rgba(0,0,0,.85);
}
.stats-has-bg .stats-heading { letter-spacing: .12em; word-spacing: .3em; line-height: 1.6; max-width: 48rem; }
.stats-has-bg .stat strong { letter-spacing: .01em; }
.stats-has-bg .stat span { letter-spacing: .14em; word-spacing: .25em; text-transform: uppercase; font-size: .9rem; }
/* All-caps band spacing */
.section-label, .page-hero .eyebrow, .subhead-upper, .freight-label, .footer-col h4,
.trust-addresses h4, .area-panel h3, .form-section-label, .method-step strong, .step h3 {
  word-spacing: .2em;
}
.section-label, .page-hero .eyebrow, .subhead-upper, .freight-label { letter-spacing: .14em; }
.stats-has-bg .stat strong { display: block; margin: 0 auto .6rem; font-size: clamp(2.8rem, 5vw, 4rem) !important; line-height: 1; }
.stats-has-bg .stat span { display: block; font-size: 1rem; }
/* —— Safety band (photo bg, white text, no dark overlay) —— */
.safety-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 8vw, 6.5rem) 0; color: #fff; background: #1d2a3a; }
.safety-bg { position: absolute; inset: 0; margin: 0; z-index: -1; }
.safety-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.safety-inner h2 { color: #fff; font-weight: 900; letter-spacing: .14em; word-spacing: .3em; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 1rem;
  text-shadow: 0 0 3px #000, 0 3px 6px rgba(0,0,0,.95), 0 6px 24px rgba(0,0,0,.8); }
.safety-inner p { color: #fff; font-weight: 600; font-size: 1.1rem; line-height: 1.65; max-width: 44rem;
  text-shadow: 0 0 2px #000, 0 2px 4px rgba(0,0,0,.95), 0 3px 14px rgba(0,0,0,.85); }
/* counter JS wraps numbers in spans — keep them at number size */
.stats-has-bg .stat strong span { font: inherit !important; letter-spacing: inherit !important; text-transform: none !important; color: inherit !important; display: inline !important; }
.stats-has-bg .stat strong .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Blue heading accents (matches live #1670b5); lighter blue on dark bands */
.cta-band .h-accent, .ink-band .h-accent, .steps-band .h-accent,
.page-hero .h-accent, .hero .h-accent, .approach-cta .h-accent { color: var(--blue-light); }
.stats .h-accent, .stats-has-bg .h-accent, .stats-heading .h-accent { color: #fff; }



/* —— Risk fixes: form titles, legal PDFs, About quote CTA —— */
.ftitle {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #0b1f33);
}
.pdf-list h4 {
  margin: 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.pdf-list a { color: var(--accent, #1670b5); text-decoration: underline; }
.pdf-list a:hover { color: var(--ink, #0b1f33); }
.cta-band .cta-thanks {
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.cta-band .cta-callnow {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  max-width: 42rem;
}
.cta-band .cta-callnow a { color: #fff; text-decoration: underline; }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Home stats band: blue phrase as on live */
.stats-heading .h-sec, .stats-has-bg .stats-heading .h-sec { color: var(--blue-light); }
/* Footer office block + labels (live parity) */
.site-footer address { font-style: normal; margin-top: 1rem; line-height: 1.6; }
.site-footer address a { display: inline; }
.site-footer .fl { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: .75rem; }
.site-footer .footer-col p { margin: 0 0 .5rem; }
.site-footer .footer-col p .fl { margin-top: 0; }
.footer-bottom a { color: inherit; }

@media (max-width: 560px) {
  .site-header, .header-inner { height: 96px; }
  .brand img { height: 84px; }
  .footer-brand img { width: 180px; }
}

/* Click-to-play video */
.yt-play{position:relative;display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;line-height:0;border-radius:inherit;overflow:hidden}
.yt-play img{display:block;width:100%;height:auto}
.yt-play-icon{position:absolute;top:50%;left:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:rgba(0,0,0,.6);box-shadow:0 4px 18px rgba(0,0,0,.3);transition:background .2s,transform .2s}
.yt-play-icon::after{content:"";position:absolute;top:50%;left:50%;margin:-13px 0 0 -8px;border-style:solid;border-width:13px 0 13px 22px;border-color:transparent transparent transparent #fff}
.yt-play:hover .yt-play-icon,.yt-play:focus-visible .yt-play-icon{background:#1670b5;transform:scale(1.08)}
.yt-play:focus-visible{outline:3px solid #1670b5;outline-offset:3px}
.yt-embed{position:relative;width:100%;aspect-ratio:16/9;line-height:0}
.yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
