/* ===================================================================
   Quickex Transit — design tokens
   =================================================================== */
:root {
  --charcoal: #003153;
  --charcoal-2: #0a3f66;
  --charcoal-3: #0f4a75;
  --line-on-dark: #1c5580;

  --paper: #f4f2ec;
  --paper-2: #eae7dd;
  --ink: #0c2436;
  --ink-soft: #4c5c68;

  --teal: #2bc9b8;
  --teal-dark: #0f6e56;
  --teal-ink: #073d32;

  --yellow: #e8b93a;
  --yellow-dark: #8a6415;
  --yellow-ink: #3a2a08;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

/* ===================================================================
   Motion utilities
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1 { transition-delay: 0.05s; }
.reveal-2 { transition-delay: 0.15s; }
.reveal-3 { transition-delay: 0.25s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.6); }
}
.pulse-dot { animation: pulse-dot 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.pulse-dot-yellow { animation: pulse-dot 2.6s ease-in-out infinite 0.6s; transform-origin: center; transform-box: fill-box; }

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}
.corner-hex { animation: slow-spin 70s linear infinite; transform-origin: center; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float { animation: float-y 4.5s ease-in-out infinite; }

.card, .card-dark {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover, .card-dark:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

/* ===================================================================
   Route label (eyebrow) — waybill-style tag used above section titles
   =================================================================== */
.route-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.route-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--teal-dark);
  display: inline-block;
}
.on-dark .route-label { color: var(--teal); }
.on-dark .route-label::before { background: var(--teal); }

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-teal { background: var(--teal); color: var(--teal-ink); }
.btn-teal:hover { background: #3fd8c7; }

.btn-yellow-outline { background: transparent; border-color: var(--yellow); color: var(--yellow); }
.btn-yellow-outline:hover { background: rgba(232,185,58,0.12); }

.btn-yellow-outline.on-light { color: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-yellow-outline.on-light:hover { background: rgba(138,100,21,0.08); }

.btn-ghost-dark { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost-dark:hover { background: rgba(28,28,27,0.06); }

/* ===================================================================
   Header / nav
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-on-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #eef4f8;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.logo .mark { flex-shrink: 0; display: block; height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #b7cfe0;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #ffffff; }
.nav-links a[aria-current="page"] { color: var(--teal); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #eef4f8;
  cursor: pointer;
  padding: 6px;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line-on-dark);
    padding: 16px 32px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-teal-label { display: none; }
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  background: var(--charcoal);
  color: #eef4f8;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 88px 32px 96px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 { color: #f3f8fb; }
.hero-sub {
  font-size: 1.08rem;
  color: #a9c3d6;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { width: 100%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
}

/* moving route line inside hero art */
.route-path {
  stroke-dasharray: 6 7;
  animation: dash-move 3.5s linear infinite;
}
@keyframes dash-move {
  to { stroke-dashoffset: -130; }
}

/* ===================================================================
   Sections
   =================================================================== */
.section { padding: 84px 0; }
.section-light { background: var(--paper); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--charcoal); color: #eef4f8; }
.section-dark p { color: #a9c3d6; }
.section-dark h2, .section-dark h3 { color: #f3f8fb; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===================================================================
   Cards / grids
   =================================================================== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid #e2ded2;
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.95rem; }

.card-dark {
  background: var(--charcoal-2);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}
.card-dark h3 { color: #f3f8fb; margin-bottom: 8px; }
.card-dark p { color: #9bb6c9; margin: 0; font-size: 0.94rem; }
.card-dark .icon-hex { margin-bottom: 16px; }

.card.featured, .card-dark.featured {
  border: 1.5px solid var(--yellow);
}
.card.featured .card-num, .card-dark.featured .card-num { color: var(--yellow-dark); }

.manifest-row .tag.tag-yellow { color: var(--yellow); }

/* requirement list styled like a manifest */
.manifest {
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.manifest-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-on-dark);
}
.manifest-row:last-child { border-bottom: none; }
.manifest-row .tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--teal);
  min-width: 64px;
  letter-spacing: 0.06em;
}
.manifest-row .desc { color: #dbe9f0; font-size: 0.96rem; }

/* stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid #d8d4c6;
  border-bottom: 1px solid #d8d4c6;
  padding: 36px 0;
}
.stat { text-align: left; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.stat .num.num-yellow { color: var(--yellow-dark); }
.stat .label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   Forms
   =================================================================== */
.form-card {
  background: #fff;
  border: 1px solid #e2ded2;
  border-radius: var(--radius-md);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-row .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-grid2 { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 11px 14px;
  border: 1.5px solid #d8d4c6;
  border-radius: var(--radius-sm);
  background: #fdfcf9;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-size: 0.88rem; font-weight: 400; color: var(--ink-soft); }

.form-msg {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.form-msg.success { display: block; background: rgba(43,201,184,0.12); color: var(--teal-ink); border: 1px solid var(--teal); }
.form-msg.error { display: block; background: rgba(226,75,74,0.1); color: #791f1f; border: 1px solid #e24b4a; }

/* ===================================================================
   Divider network (used between sections)
   =================================================================== */
.hex-divider { width: 100%; height: auto; opacity: 0.9; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: var(--charcoal);
  color: #9bb6c9;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line-on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #dbe9f0;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: #9bb6c9;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
}

/* ===================================================================
   Page hero (interior pages, shorter than home)
   =================================================================== */
.page-hero {
  background: var(--charcoal);
  color: #eef4f8;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #f3f8fb; margin-bottom: 12px; }
.page-hero p { color: #a9c3d6; max-width: 60ch; margin: 0; }
.page-hero .corner-hex { position: absolute; right: -40px; top: -30px; opacity: 0.5; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: #7fa3bd;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.breadcrumb a { text-decoration: none; color: #7fa3bd; }
.breadcrumb a:hover { color: var(--teal); }