/* ============================================================
   KAIRO — shared styles
   Confident, transit-poster, humanist
   ============================================================ */

:root {
  /* Palette */
  --ink: #0F1410;
  --ink-2: #1A2018;
  --ink-3: #2A322A;
  --cream: #E8E2D4;
  --cream-2: #F2EDE0;
  --paper: #F7F2E6;
  --amber: #D89B3C;
  --amber-2: #B7822C;
  --line: rgba(232, 226, 212, 0.18);
  --line-dark: rgba(15, 20, 16, 0.14);
  --muted: rgba(232, 226, 212, 0.62);
  --muted-dark: rgba(15, 20, 16, 0.58);

  /* Type */
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Menlo', monospace;

  /* Scale */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --density: 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); color: var(--cream); }
body {
  font-family: var(--font);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Page chrome */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 20, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em; font-size: 22px;
}
.brand .dot { width: 9px; height: 9px; background: var(--amber); border-radius: 50%; transform: translateY(-2px); }
.brand .brand-r { color: var(--amber); font-weight: 700; letter-spacing: -0.02em; margin-left: -4px; }
.brand small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--cream);
  opacity: 0.78; transition: opacity .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { color: var(--amber); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #E5A845; }
.btn-ghost { color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(232,226,212,0.06); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   Type
   ============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
}
.eyebrow .pip { display: inline-block; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; margin-right: 10px; transform: translateY(-2px); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
.display {
  font-size: clamp(36px, 4.5vw, 68px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-weight: 800;
}
.display em {
  font-style: normal;
  color: var(--amber);
}
h2.section-title {
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  font-weight: 800;
}
h3 { font-size: 22px; }
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(232,226,212,0.78);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============================================================
   Departure board ticker (hero)
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex; gap: 56px;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cream);
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  will-change: transform;
}
.ticker-item { display: inline-flex; align-items: center; gap: 16px; }
.ticker-item .sep { color: var(--amber); }
.ticker-item .now { background: var(--amber); color: var(--ink); padding: 2px 8px; border-radius: 3px; font-weight: 600; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(48px * var(--density)) 0 calc(64px * var(--density));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-image-wrap {
  align-self: stretch;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
@media (max-width: 960px) {
  .hero-image-wrap { min-height: 260px; border-radius: 12px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-meta .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6FAE6A;
  box-shadow: 0 0 0 4px rgba(111,174,106,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(111,174,106,0); } }

.hero h1 { margin-bottom: 24px; }
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero h1 .strike::after {
  content: "";
  position: absolute; left: -2%; right: -2%; top: 56%;
  height: 0.08em;
  background: var(--amber);
  transform: rotate(-2deg);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Hero stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stat .n { font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.hero-stat .n em { color: var(--amber); font-style: normal; }
.hero-stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }

/* ============================================================
   Booking form card (hero)
   ============================================================ */
.book-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  position: relative;
}
.book-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-dark);
  margin-bottom: 18px;
}
.book-card-head .title {
  font-weight: 800; font-size: 18px; letter-spacing: -0.015em;
}
.book-card-head .tag {
  font-family: var(--mono); font-size: 10px;
  background: var(--ink); color: var(--cream);
  padding: 5px 9px; border-radius: 4px; letter-spacing: 0.16em;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 8px 0 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--ink); }
.field input::placeholder { color: rgba(15,20,16,0.32); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row.swap { position: relative; }
.swap-btn {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  background: var(--ink); color: var(--cream);
  border-radius: 50%;
  display: grid; place-items: center;
}

.book-submit {
  width: 100%;
  margin-top: 10px;
  padding: 16px 22px;
  background: var(--ink); color: var(--cream);
  border-radius: 12px;
  font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .2s;
}
.book-submit:hover { background: var(--ink-2); }
.book-submit .wa { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--amber); }
.book-submit .wa-dot { width: 7px; height: 7px; background: var(--amber); border-radius: 50%; }

.book-foot {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--muted-dark);
  margin-top: 14px;
}
.book-foot .check { color: var(--ink); }

/* Variant: minimal pill hero booking */
.book-pill {
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.book-pill .seg { display: flex; align-items: center; gap: 8px; }
.book-pill .seg span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted-dark); }
.book-pill .seg strong { font-weight: 700; font-size: 16px; }
.book-pill .div { width: 1px; height: 22px; background: var(--line-dark); }
.book-pill button {
  margin-left: auto;
  padding: 14px 24px;
  background: var(--ink); color: var(--cream);
  border-radius: 999px;
  font-weight: 700;
}

/* ============================================================
   Sections (cream/dark switching)
   ============================================================ */
section { padding: clamp(72px, 9vw, 128px) 0; }
.section-light { background: var(--cream); color: var(--ink); }
.section-light .eyebrow { color: var(--amber-2); }
.section-light .lede { color: rgba(15,20,16,0.7); }
.section-light .muted { color: var(--muted-dark); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper .eyebrow { color: var(--amber-2); }
.section-paper .lede { color: rgba(15,20,16,0.7); }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: 64px;
}
.section-head .eyebrow { margin-bottom: 18px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ============================================================
   Route cards (services)
   ============================================================ */
.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 880px) { .routes { grid-template-columns: 1fr; } }
.route {
  background: var(--cream);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  min-height: 360px;
  position: relative;
  transition: background .2s;
}
.route:hover { background: var(--cream-2); }
.route .code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber-2);
  display: flex; align-items: center; gap: 12px;
}
.route .code .line { flex: 1; height: 1px; background: var(--line-dark); }
.route h3 {
  margin-top: 24px;
  font-size: 32px;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.route p {
  margin-top: 12px;
  color: rgba(15,20,16,0.7);
  font-size: 15px;
  text-wrap: pretty;
}
.route .cta {
  margin-top: auto;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}
.route .cta .arr { transition: transform .2s; }
.route:hover .cta .arr { transform: translateX(4px); }
.route .photo {
  margin-top: 20px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.route .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   How-it-works
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--ink);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.step .n {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--amber);
  margin-bottom: 28px;
}
.step .big {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--cream);
  margin-bottom: 16px;
}
.step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.step p {
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}

/* ============================================================
   Safety pillars
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--cream);
  padding: 40px 36px;
  display: flex; gap: 24px;
}
.pillar .num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--amber-2);
  font-weight: 600;
  min-width: 40px;
}
.pillar h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.02em; }
.pillar p { color: rgba(15,20,16,0.7); font-size: 15px; text-wrap: pretty; }

/* ============================================================
   Stats / Numbers section
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
@media (max-width: 880px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat .n {
  font-size: clamp(52px, 5.6vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.stat .n em { color: var(--amber); font-style: normal; }
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); margin-top: 14px; text-transform: uppercase; }
.section-light .stat .l { color: var(--muted-dark); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-q {
  width: 100%; text-align: left;
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq-q .plus { font-family: var(--mono); font-size: 24px; color: var(--amber-2); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  color: rgba(15,20,16,0.7);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 0 28px; font-size: 17px; max-width: 70ch; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .tag {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
  margin-top: 20px;
}
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--amber); margin-bottom: 18px; text-transform: uppercase; font-weight: 500; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 15px; opacity: 0.78; }
.footer a:hover { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   Page header (subpages)
   ============================================================ */
.page-head {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 32px;
}
.page-head h1 {
  font-size: clamp(48px, 6.8vw, 96px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-weight: 800;
  max-width: 14ch;
  text-wrap: balance;
}
.page-head h1 em { color: var(--amber); font-style: normal; }

/* ============================================================
   Photo placeholder
   ============================================================ */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(232,226,212,0.06) 0 10px, transparent 10px 20px),
    var(--ink-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-align: center;
  padding: 24px;
  border-radius: 12px;
}
.ph.light {
  background:
    repeating-linear-gradient(45deg, rgba(15,20,16,0.05) 0 10px, transparent 10px 20px),
    var(--cream-2);
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
}
.imagery-off .ph { display: none; }

/* ============================================================
   Mobile chrome (for design canvas)
   ============================================================ */
.mobile-frame {
  width: 390px;
  background: var(--ink);
  border-radius: 36px;
  overflow: hidden;
}

/* ============================================================
   Mobile nav drawer (not in handoff — wired in main.js)
   ============================================================ */
.nav-end { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-inner .btn { display: none; }
}

.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 80vw);
  background: var(--ink-2);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .3s ease;
  border-left: 1px solid var(--line);
}
.nav-drawer.open { transform: none; }
.nav-drawer-inner {
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-drawer-inner a {
  padding: 16px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  opacity: 0.7;
  transition: opacity .2s;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-inner a:hover,
.nav-drawer-inner a[aria-current="page"] { opacity: 1; color: var(--amber); }
.nav-drawer-inner .drawer-cta {
  margin-top: 16px;
  border: none;
  padding: 16px 24px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  opacity: 1 !important;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
