/* Service Freezers Limited — site stylesheet
   CFIA Establishment No. 967 | Toronto, Ontario, Canada */

:root {
  --primary: #005d90;
  --primary-container: #0077b6;
  --primary-dark: #004b74;
  --on-primary: #ffffff;
  --secondary-container: #d7e4ec;
  --surface: #fcf9f8;
  --surface-container-low: #f6f3f2;
  --surface-container: #f0edec;
  --surface-container-high: #ebe7e7;
  --surface-container-lowest: #ffffff;
  --on-surface: #1c1b1b;
  --on-surface-variant: #404850;
  --outline-variant: #bfc7d1;
  --inverse-surface: #0b2a3d;           /* deep navy: dark sections, info card */
  --inverse-surface-container: #12374f; /* raised navy: .card-dark */
  --inverse-surface-dim: #08202f;       /* deepest navy: end of navy gradients */
  --inverse-on-surface: #f3f0ef;
  --inverse-primary: #8ecdf8;           /* ice blue: accents on navy */
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;
  --max-width: 1200px;
  --font-headline: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-label: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  position: relative;
}

/* Subtle film-grain texture over the whole page for tactile depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
}

.accent-bar {
  width: 3rem;
  height: 0.25rem;
  background: var(--primary);
  margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 12px 24px rgba(0, 93, 144, 0.22);
}

.btn-primary:hover {
  background: var(--primary-container);
  box-shadow: 0 14px 28px rgba(0, 93, 144, 0.28);
}

.btn-outline {
  background: transparent;
  border-color: var(--on-surface);
  color: var(--on-surface);
}

.btn-outline:hover {
  background: var(--on-surface);
  color: var(--surface);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--on-primary);
  color: var(--on-primary);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-light {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--surface);
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-container-high);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-family: var(--font-headline);
  font-weight: 700;
}

.nav-links a {
  opacity: 0.8;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.nav-links a.active {
  opacity: 1;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-container-high);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 400px;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--surface-container-high);
  }

  .nav-links a.active {
    border-bottom: 1px solid var(--primary);
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .nav {
    position: relative;
  }
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding-block: 3.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero-copy p {
  font-size: 1.15rem;
  color: var(--on-surface-variant);
  max-width: 40rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

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

/* ---------- Certification badges ---------- */
.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface);
  box-shadow: 0 4px 12px rgba(28, 27, 27, 0.05);
}

.cert-badge .material-symbols-outlined {
  font-size: 1rem;
  margin: 0;
}

.hero-media {
  position: relative;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: grayscale(0.15);
}

.hero-media video {
  display: block;
}

/* Read by screen readers, invisible on screen (e.g. a hero video's description) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Pause / play for a hero video: moving content over 5 seconds needs one (WCAG 2.2.2) */
.hero-video-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  /* --primary at 88%, like the hero badge */
  background: rgba(0, 93, 144, 0.88);
  backdrop-filter: blur(12px);
  color: var(--on-primary);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(28, 27, 27, 0.16);
  transition: background-color 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.hero-video-toggle[hidden] {
  display: none;
}

.hero-video-toggle .material-symbols-outlined {
  font-size: 1.5rem;
}

.hero-video-toggle:hover {
  background: var(--primary-container);
  box-shadow: 0 16px 32px rgba(28, 27, 27, 0.22);
}

.hero-video-toggle:active {
  transform: scale(0.97);
}

.hero-video-toggle:focus-visible {
  outline: 3px solid var(--on-primary);
  outline-offset: 3px;
}

.hero-media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 32px 60px rgba(28, 27, 27, 0.14);
}

.hero-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  right: auto;
  max-width: 260px;
  /* --primary at 88%: keeps white text at 4.5:1 even over a white photo */
  background: rgba(0, 93, 144, 0.88);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(28, 27, 27, 0.15);
}

.hero-badge .material-symbols-outlined {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.hero-badge p {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 2.5rem;
    gap: 2.5rem;
  }

  .hero-media {
    order: -1;
  }

  .hero-badge {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 4.5rem 0;
}

@media (max-width: 600px) {
  section {
    padding: 3rem 0;
  }
}

.section-alt {
  background: var(--surface-container-low);
}

/* Quiet, static navy gradient: a soft blue bloom behind the heading that
   deepens toward the bottom, so .card-dark still reads as the raised surface. */
.section-dark {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(0, 119, 182, 0.28), transparent 70%),
    linear-gradient(180deg, var(--inverse-surface) 0%, var(--inverse-surface-dim) 100%);
  color: var(--inverse-on-surface);
}

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

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.section-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.section-head p {
  max-width: 28rem;
  color: var(--on-surface-variant);
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface-container-lowest);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 27, 27, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (max-width: 480px) {
  .card {
    padding: 1.5rem;
  }
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: 0 24px 56px rgba(28, 27, 27, 0.1);
  transform: translateY(-3px);
}

.card .material-symbols-outlined {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--on-surface-variant);
}

.card ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
}

.card ul .material-symbols-outlined {
  font-size: 1rem;
  margin: 0;
}

.card-dark {
  background: var(--inverse-surface-container);
  color: var(--inverse-on-surface);
}

.card-dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* The standard blue disappears on navy, so dark cards use the ice-blue accent */
.card-dark .material-symbols-outlined {
  color: var(--inverse-primary);
}

.card-dark::before {
  background: var(--inverse-primary);
}

.card-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-container) 100%);
  color: var(--on-primary);
}

.card-primary::before {
  background: var(--inverse-primary);
}

.card-primary p {
  color: rgba(255, 255, 255, 0.85);
}

.card-primary .material-symbols-outlined {
  color: var(--on-primary);
}

/* ---------- Stats strip ----------
   Not currently used. Only bring back with client-confirmed figures. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats .stat-value {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--primary-container);
  margin-bottom: 0.35rem;
}

.stats .stat-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.65;
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Process steps (Home: Intake to Dispatch) ---------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.process-step {
  position: relative;
}

/* Connector from this step's icon to the next; draws in once revealed */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: 3.5rem;
  right: -1.5rem;
  height: 2px;
  background: var(--outline-variant);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-index, 0) * 90ms + 0.35s);
}

.process-step.is-revealed::after {
  transform: scaleX(1);
}

.process-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 24px rgba(0, 93, 144, 0.22);
}

.process-icon .material-symbols-outlined {
  font-size: 1.75rem;
}

.process-num {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.process-step h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .process-icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* Connector runs vertically down to the next step's icon */
  .process-step:not(:last-child)::after {
    top: 3.5rem;
    left: calc(1.75rem - 1px);
    right: auto;
    bottom: -2rem;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .process-step.is-revealed::after {
    transform: scaleY(1);
  }
}

/* ---------- Video (Home: facility video, YouTube click-to-load) ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--inverse-surface);
  box-shadow: 0 32px 60px rgba(28, 27, 27, 0.14);
}

.video-frame iframe,
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.55);
  transition: filter 0.4s ease;
}

.video-frame.has-video:hover .video-poster {
  filter: grayscale(0.15) brightness(0.7);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
}

.video-play {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(0, 119, 182, 0.85);
  backdrop-filter: blur(16px);
  color: var(--on-primary);
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(28, 27, 27, 0.25);
  transition: background-color 0.2s ease, box-shadow 0.25s ease;
}

.video-play .material-symbols-outlined {
  font-size: 2.75rem;
}

.video-play:not(:disabled):hover {
  background: var(--primary);
  box-shadow: 0 24px 48px rgba(28, 27, 27, 0.32);
}

.video-play:focus-visible {
  outline: 3px solid var(--on-primary);
  outline-offset: 3px;
}

.video-play:disabled {
  cursor: default;
}

.video-status {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-primary);
}

.video-frame.has-video .video-status {
  display: none;
}

@media (max-width: 600px) {
  .video-play {
    width: 3.75rem;
    height: 3.75rem;
  }

  .video-play .material-symbols-outlined {
    font-size: 2.25rem;
  }
}

/* ---------- Image split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.split img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* For wide photos whose subject sits right of centre (Home: the SFL building sign) */
.img-focus-right {
  object-position: 78% 50%;
}

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

.numbered-list li {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--outline-variant);
}

.numbered-list li:first-child {
  border-top: none;
}

.numbered-list .num {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--primary);
}

.numbered-list h3 {
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.numbered-list p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

/* Icon + title + one line, stacked (Capabilities "Engineered for Cleanliness") */
.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.icon-list li {
  display: flex;
  gap: 1.25rem;
}

.icon-list li + li {
  margin-top: 1.5rem;
}

.icon-list .material-symbols-outlined {
  color: var(--primary);
}

.icon-list h3 {
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.icon-list p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

/* ---------- Feature CTA (closing band on every page except Contact) ----------
   A navy-to-blue gradient with a drifting ice-blue mesh, hero-size type,
   and the copy split from the actions. Accents on it use --inverse-primary. */
.cta-feature {
  position: relative;
  padding: 7.5rem 0;
  background: linear-gradient(125deg, var(--inverse-surface) 0%, var(--primary-dark) 45%, var(--primary) 100%);
}

.cta-feature .mesh-bg::before {
  opacity: 0.8;
  background:
    radial-gradient(34% 44% at 88% 18%, rgba(142, 205, 248, 0.3), transparent 70%),
    radial-gradient(40% 50% at 70% 95%, rgba(0, 119, 182, 0.55), transparent 70%),
    radial-gradient(30% 40% at 12% 85%, rgba(142, 205, 248, 0.12), transparent 70%);
}

.cta-feature-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: end;
  gap: 2.5rem 5rem;
}

.cta-feature .accent-bar {
  background: var(--inverse-primary);
}

.cta-feature .eyebrow {
  color: var(--inverse-primary);
}

.cta-feature h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}

.cta-feature h2 .highlight {
  color: var(--inverse-primary);
}

.cta-feature p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 28rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .cta-feature {
    padding: 5.5rem 0;
  }

  .cta-feature-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cta-feature {
    padding: 4rem 0;
  }
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label,
legend {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 93, 144, 0.15);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .radio-group {
    grid-template-columns: 1fr;
  }
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-container-low);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.radio-option input {
  width: auto;
}

/* Inputs drop the default outline for a border + halo, which a radio can't show */
.radio-option input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  margin-bottom: 1.25rem;
}

.form-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Spam trap: off-screen for people, still in the form for bots */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: rgba(0, 93, 144, 0.07);
}

/* Errors stay in the cool palette: dark rule instead of red */
.form-status.is-error {
  border-left-color: var(--on-surface);
  background: var(--surface-container-low);
}

.form-status p {
  color: var(--on-surface);
}

.form-status .btn {
  margin-top: 1rem;
}

/* Same quiet navy gradient as .section-dark, with the bloom top-right */
.info-card {
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(0, 119, 182, 0.3), transparent 70%),
    linear-gradient(180deg, var(--inverse-surface) 0%, var(--inverse-surface-dim) 100%);
  color: var(--inverse-on-surface);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 56px rgba(28, 27, 27, 0.16);
}

@media (max-width: 480px) {
  .info-card {
    padding: 1.5rem;
  }
}

.info-card h3 {
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .material-symbols-outlined {
  color: var(--inverse-primary);
}

.info-row .label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
  display: block;
}

.map-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 27, 27, 0.1);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.placeholder-note {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ---------- Legal pages (Privacy Policy, Accessibility) ----------
   A text-only hero, then a sticky "On This Page" list beside the policy text. */
.hero.legal-hero {
  grid-template-columns: minmax(0, 48rem);
  padding-block: 4rem 3rem;
}

.legal-hero .hero-copy p {
  margin-bottom: 1.25rem;
}

.legal-hero .hero-copy p.legal-updated {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.legal-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 46rem);
  gap: 4rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 6.5rem;
}

.legal-toc ol {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-left: 1px solid var(--outline-variant);
}

.legal-toc a {
  display: block;
  margin-left: -1px;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid transparent;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-toc a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}

.legal-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--on-surface);
  margin-bottom: 2.5rem;
}

.legal-body section {
  padding: 0;
  scroll-margin-top: 6.5rem;
}

.legal-body section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--outline-variant);
}

.legal-body h2 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.legal-body h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin: 1.5rem 0 0.5rem;
}

.legal-body p,
.legal-body li {
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p {
  margin-top: 1rem;
}

.legal-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-body li + li {
  margin-top: 0.5rem;
}

.legal-body li::marker {
  color: var(--primary);
}

.legal-body strong {
  color: var(--on-surface);
  font-weight: 600;
}

.legal-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.legal-body a:hover {
  color: var(--primary-container);
}

.legal-contact {
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: var(--surface-container-low);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  font-style: normal;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

.legal-contact strong {
  display: block;
  margin-bottom: 0.25rem;
}

@media (max-width: 900px) {
  .hero.legal-hero {
    padding-block: 2.5rem 2rem;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .legal-toc {
    position: static;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 4rem 2.5rem;
}

/* Brand on its own row, Navigate and Contact side by side */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

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

.footer-grid h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-grid p {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid ul li {
  margin-bottom: 0.75rem;
}

.footer-grid ul a {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-grid ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  /* Hairline above the row, spanning the content width inside the container gutter */
  background: linear-gradient(var(--outline-variant), var(--outline-variant)) center top / calc(100% - 3rem) 1px no-repeat;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* =====================================================
   MOTION ENGINE — scroll progress, reveal system,
   parallax, gradient mesh, kinetic hero, sticky stack
   cards. Vanilla CSS/JS only, no external libraries.
   ===================================================== */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-container));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9998;
}

/* ---------- Scroll-reveal system ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal="left"] {
  transform: translateX(-44px);
}

[data-reveal="right"] {
  transform: translateX(44px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Hero load-in reveal (curtain mask) ---------- */
.reveal-mask {
  overflow: hidden;
}

@keyframes heroRise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-mask h1 {
  animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy p,
.hero-copy .hero-actions,
.hero-copy .cert-strip {
  animation: heroFade 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy p {
  animation-delay: 0.15s;
}

.hero-copy .hero-actions {
  animation-delay: 0.3s;
}

.hero-copy .cert-strip {
  animation-delay: 0.42s;
}

/* ---------- Gradient mesh backgrounds ----------
   The mesh clips itself so .hero-wrap doesn't have to: an unclipped hero
   lets the hero badge hang past its bottom edge as parallax moves it. */
.hero-wrap {
  position: relative;
  overflow-x: clip;
  padding: 0;
}

.mesh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-bg::before {
  content: "";
  position: absolute;
  inset: -25%;
  filter: blur(70px);
  opacity: 0.55;
  background:
    radial-gradient(38% 38% at 18% 28%, rgba(0, 119, 182, 0.35), transparent 70%),
    radial-gradient(32% 32% at 82% 18%, rgba(0, 93, 144, 0.28), transparent 70%),
    radial-gradient(44% 44% at 55% 85%, rgba(111, 192, 255, 0.22), transparent 70%);
  animation: meshFloat 22s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 2%) scale(1.06);
  }
  100% {
    transform: translate(3%, -2%) scale(1);
  }
}

.hero-wrap .hero {
  position: relative;
  z-index: 1;
}

/* ---------- Parallax helpers ---------- */
[data-parallax] {
  will-change: transform;
}

/* ---------- Sticky stacking cards (Capabilities showcase) ---------- */
.stack-section {
  position: relative;
}

.stack-card {
  position: sticky;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(28, 27, 27, 0.16);
  margin-bottom: 1.75rem;
}

.stack-card:last-child {
  margin-bottom: 0;
}

/* In the stack, the dark card sits on a light section (like the Contact info card),
   so it takes the same navy gradient. Elsewhere .card-dark sits on navy and stays flat.
   The bloom is a circle so it stays a corner glow, not a band, on this wide card. */
.stack-card.card-dark {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 119, 182, 0.3), transparent 45%),
    linear-gradient(180deg, var(--inverse-surface) 0%, var(--inverse-surface-dim) 100%);
}

@media (max-width: 900px) {
  .stack-card {
    position: relative;
    top: auto !important;
  }
}

/* ---------- Animated stat counters ---------- */
.stats .stat-value {
  font-variant-numeric: tabular-nums;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.5rem; }
