/* SecurePath Medical - Clinical Precision / Route Lines
   deep slate-navy + surgical teal + signal cyan, clinical white sections
   Display: Space Grotesk (var) - Body: IBM Plex Sans (var) - self-hosted */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --ink: #0b1d26;
  --ink-2: #102a36;
  --ink-3: #163947;
  --teal: #157f76;
  --cyan: #29d3c2;
  --tan: #cba887;
  --paper: #f4f8f8;
  --white: #ffffff;
  --body: #33474f;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(11, 29, 38, 0.12);
  --disp: "Space Grotesk", "Segoe UI", sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--body);
  background: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

::selection { background: var(--cyan); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1.1rem 0;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(11, 29, 38, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.brand img { height: 34px; width: auto; }
.brand { filter: brightness(0) invert(1); opacity: 0.96; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a {
  font-family: var(--disp); font-size: 1rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: #dce8ea;
  white-space: nowrap;
  position: relative; padding: 0.3rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--cyan); transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a.btn { padding: 0.85rem 1.7rem; color: var(--ink); }
.main-nav a.btn::after { display: none; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  white-space: nowrap; flex: none;
  font-family: var(--disp); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 1rem;
  padding: 0.85rem 1.7rem; border: 0; cursor: pointer;
  background: var(--cyan); color: var(--ink);
  /* hover lift uses `translate`, NOT `transform`: GSAP owns `transform` on the
     hero buttons, and a CSS transition on the same property fights the tween
     and can leave a button stranded at its `from` offset. */
  transition: background 0.25s ease, translate 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { background: #3fe6d5; translate: 0 -2px; box-shadow: 0 12px 30px rgba(41, 211, 194, 0.25); }
.btn.ghost { background: transparent; color: #eaf4f4; box-shadow: inset 0 0 0 1.5px rgba(234, 244, 244, 0.5); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cyan); color: var(--cyan); }
.btn svg { width: 16px; height: 16px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle svg { width: 26px; height: 26px; stroke: #eaf4f4; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; background: var(--ink);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    transform: translateY(-100%); transition: transform 0.4s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { font-size: 1.05rem; }
  .site-header .bar { position: relative; z-index: 5; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 55% 45%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11, 29, 38, 0.96) 0%, rgba(11, 29, 38, 0.55) 45%, rgba(11, 29, 38, 0.35) 100%),
    linear-gradient(105deg, rgba(11, 29, 38, 0.65) 0%, rgba(11, 29, 38, 0.1) 60%);
}
.hero-inner { position: relative; z-index: 2; padding: 9rem 0 5.5rem; width: 100%; }
.hero .kicker { color: var(--cyan); }
.hero h1 {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase;
  margin: 0.8rem 0 0.4rem;
}
.hero .amp {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--tan);
}
.hero .tagline {
  margin-top: 1.4rem; max-width: 560px;
  font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #b8cdd2; line-height: 1.9;
}
.hero-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-phone { font-family: var(--disp); letter-spacing: 0.08em; color: #dce8ea; display: inline-flex; gap: 0.55rem; align-items: center; line-height: 1; }
.hero-phone svg { width: 18px; height: 18px; stroke: var(--cyan); position: relative; top: -1px; }
.hero-phone:hover { color: var(--cyan); }
.hero-foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-dark);
}
.hero-foot .container {
  display: flex; gap: 0.6rem 1.6rem; flex-wrap: wrap; justify-content: space-between;
  padding: 1.1rem 0; font-size: 1rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: #9fb8bf;
}
.hero-foot span { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-foot svg { width: 15px; height: 15px; stroke: var(--cyan); flex: none; }

/* ---------- shared section bits ---------- */
.kicker {
  font-family: var(--disp); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
  display: inline-block;
}
h2.sec-title {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.05;
  color: var(--ink); margin: 1rem 0 1.6rem; letter-spacing: 0.01em;
}
.on-dark h2.sec-title { color: var(--white); }
.on-dark .kicker { color: var(--cyan); }

section { position: relative; }
.sec-pad { padding: 6.5rem 0; }

/* route line spine */
.route-wrap { position: relative; }
#route-line {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(1400px, 100vw); height: 100%; z-index: 1; pointer-events: none;
}
#route-line { z-index: 2; }
#route-line path { opacity: 0.4; }
/* section backgrounds sit under the route line; their content rides above it */
.route-wrap section > .container { position: relative; z-index: 3; }
@media (max-width: 980px) { #route-line { display: none; } }

/* ---------- our standard ---------- */
.standard { background: var(--paper); overflow: hidden; }
.standard .grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center;
}
.standard p + p { margin-top: 1.1rem; }
.standard .lede { font-size: 1.12rem; font-weight: 500; color: var(--ink-2); }
.van-frame {
  position: relative; padding: 2.4rem;
  background: #ffffff;
  border: 1px solid rgba(11, 29, 38, 0.08);
  box-shadow: 0 18px 44px rgba(11, 29, 38, 0.08);
}
.van-frame img {
  position: relative; z-index: 2; display: block; margin: 0 auto;
  width: 100%; max-width: 360px; height: auto;
}
.van-frame .parent-note {
  position: relative; z-index: 2; margin: 1.6rem 0 0; text-align: center;
  font-size: 1rem; line-height: 1.6; color: var(--ink-2);
}
.van-frame .parent-note strong { font-weight: 600; }
.standard .marks {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.6rem;
  font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
}
.standard .marks span { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.standard .marks svg { width: 17px; height: 17px; stroke: var(--teal); flex: none; }
@media (max-width: 880px) { .standard .grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- services ---------- */
.services { background: var(--ink); color: #c3d5da; }
.services .intro { max-width: 640px; color: #a9c0c7; }
.svc-grid {
  margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
}
.svc-card {
  position: relative; background: var(--ink-2);
  border: 1px solid var(--line-dark);
  padding: 2.4rem 2.2rem 2.2rem; overflow: hidden;
  transition: translate 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s ease;
}
.svc-card:hover { translate: 0 -6px; border-color: rgba(41, 211, 194, 0.4); background: var(--ink-3); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .icon {
  width: 46px; height: 46px; margin-bottom: 1.5rem;
  display: grid; place-items: center;
  border: 1px solid rgba(41, 211, 194, 0.35); border-radius: 50%;
}
.svc-card .icon svg { width: 22px; height: 22px; stroke: var(--cyan); }
.svc-card h3 {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.06rem; color: var(--white);
  margin-bottom: 0.7rem; line-height: 1.35;
}
.svc-card p { font-size: 1rem; color: #a9c0c7; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- custody band (parallax photo) ---------- */
.band { position: relative; overflow: hidden; color: var(--white); }
.band .band-bg {
  position: absolute; inset: -18% 0; background: url("../img/section-freight.jpg") center 45% / cover no-repeat;
  will-change: transform;
}
.band .band-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 29, 38, 0.9) 20%, rgba(11, 29, 38, 0.55)); }
.band .container { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 7rem; }
.band blockquote {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem); line-height: 1.4; max-width: 780px;
}
.band blockquote strong { color: var(--cyan); font-weight: 600; }
.band .src { margin-top: 1.2rem; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb8bf; }

/* ---------- how it works / chain of custody ---------- */
/* ---------- why securepath ---------- */
.why { background: var(--ink); color: #c3d5da; }
.why .intro { max-width: 720px; color: #c3d5da; }
/* Their copy has FIVE pillars, so a 2-up grid always orphans one. Six tracks
   let the first three sit 3-up and the last two split the row evenly. */
.why .svc-grid { grid-template-columns: repeat(6, 1fr); }
.why .svc-card { grid-column: span 2; }
.why .svc-card:nth-last-child(-n + 2) { grid-column: span 3; }
@media (max-width: 980px) {
  .why .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why .svc-card, .why .svc-card:nth-last-child(-n + 2) { grid-column: span 1; }
  .why .svc-card:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .why .svc-grid { grid-template-columns: 1fr; }
  .why .svc-card, .why .svc-card:last-child,
  .why .svc-card:nth-last-child(-n + 2) { grid-column: span 1; }
}

.how { background: var(--paper); }
.chain { margin-top: 3.5rem; position: relative; }
.chain-track {
  position: absolute; top: 30px; left: 8%; right: 8%; height: 2px; z-index: 1;
}
.chain-track line { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 7 8; opacity: 0.55; }
.chain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; position: relative; z-index: 2; }
.step { text-align: left; }
.step .node {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal);
  display: grid; place-items: center; margin-bottom: 1.4rem;
  box-shadow: 0 0 0 8px rgba(21, 127, 118, 0.08);
}
.step .node svg { width: 26px; height: 26px; stroke: var(--teal); }
.step h3 {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: 1.02rem; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.6rem;
}
.step p { font-size: 1rem; }
@media (max-width: 820px) {
  .chain-grid { grid-template-columns: 1fr; }
  .chain-track { display: none; }
}

/* ---------- availability cta ---------- */
.avail { background: var(--ink); color: #c3d5da; }
.avail .wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center;
}
.avail p { color: #a9c0c7; max-width: 560px; }
.avail p + p { margin-top: 0.9rem; }
.avail .actions { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
@media (max-width: 820px) { .avail .wrap { grid-template-columns: 1fr; gap: 2.4rem; } }

/* ---------- footer ---------- */
.site-footer { background: #081720; color: #93abb3; border-top: 1px solid var(--line-dark); }
.site-footer .cols {
  display: grid; grid-template-columns: 1.3fr 0.7fr 1fr 1fr; gap: 3rem; padding: 4.5rem 0 3rem;
}
.site-footer h4 {
  font-family: var(--disp); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.2rem;
}
.site-footer p, .site-footer li { font-size: 1rem; line-height: 1.75; }
.site-footer p + p { margin-top: 0.7rem; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a:hover { color: var(--cyan); }
.f-brand img { height: 40px; width: auto; filter: brightness(0) invert(0.92); }
.f-brand .f-phone {
  margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--disp); letter-spacing: 0.08em; color: #dce8ea; line-height: 1;
}
.f-brand .f-phone svg { width: 16px; height: 16px; stroke: var(--cyan); }
.f-brand .f-hours { margin-top: 0.8rem; font-size: 1rem; }
.legal {
  border-top: 1px solid var(--line-dark); padding: 1.4rem 0;
  font-size: 1rem; text-align: center; color: #6f8790;
}
@media (max-width: 920px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- request pickup page ---------- */
.page-hero {
  position: relative; min-height: 52svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.page-hero .ph-bg {
  position: absolute; inset: -12% 0; background: url("../img/hero.jpg") center 40% / cover no-repeat;
  will-change: transform;
}
.page-hero .ph-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 38, 0.97), rgba(11, 29, 38, 0.45));
}
.page-hero .container { position: relative; z-index: 2; padding: 9rem 0 3.5rem; }
.page-hero h1 {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin-top: 0.8rem;
}
.form-sec { background: var(--paper); }
.form-panel {
  background: var(--white); border: 1px solid var(--line-light);
  border-top: 3px solid var(--cyan);
  padding: clamp(1.6rem, 4vw, 3.5rem);
  box-shadow: 0 30px 60px rgba(11, 29, 38, 0.07);
  max-width: 880px; margin: 0 auto;
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.f-field.wide { grid-column: 1 / -1; }
.f-field label {
  display: block; font-family: var(--disp); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.45rem;
}
.f-field .req { color: var(--teal); }
.f-field input[type="text"], .f-field input[type="tel"], .f-field input[type="email"],
.f-field input[type="date"], .f-field input[type="time"], .f-field select {
  width: 100%; padding: 0.8rem 0.95rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-light); border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.f-field input:focus, .f-field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(41, 211, 194, 0.2);
}
.f-radio { display: flex; flex-direction: column; gap: 0.55rem; }
.f-radio .opt, .f-check,
.f-field .f-radio label.opt, .f-field label.f-check {
  display: flex; align-items: flex-start; gap: 0.65rem; font-size: 1rem; color: var(--body);
  font-family: var(--sans); font-weight: 400; text-transform: none;
  letter-spacing: 0; margin-bottom: 0;
}
.f-radio input, .f-check input { accent-color: var(--teal); width: 17px; height: 17px; margin-top: 0.2rem; flex: none; }
.hp-wrap { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-actions { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.form-note { font-size: 1rem; color: #6f8790; }
.form-status { font-weight: 600; font-size: 1rem; display: none; }
.form-status.ok { display: block; color: var(--teal); }
.form-status.err { display: block; color: #b2432f; }
@media (max-width: 680px) { .f-grid { grid-template-columns: 1fr; } }

/* ---------- reveal defaults (gsap sets from) ---------- */
.reveal { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
