/* Orbit Valet — shared site styles */

:root {
  --ink: #1c1a17;
  --ink-soft: #5c5750;
  --meta: #948d80;
  --paper: #fbfaf7;
  --paper-raised: #2b2a27;
  --line: #e4e0d8;
  --accent: #b8905a;
  --accent-strong: #d8ad72;
  --accent-tint: #3d3226;
  --status-good: #4fbf82;
  --status-good-tint: #163a24;
  --status-busy: #e0916a;
  --status-busy-tint: #3a2013;
  --focus: #c79a5f;
  color-scheme: light;
}

/* These components keep their dark charcoal fill (unchanged) now that the
   page background is white, so their text needs its own light tokens rather
   than the page's (now dark) --ink/--ink-soft/--meta. --line and --accent-tint
   are also re-pitched here for legibility against a dark fill. */
.ticket, .step, .feature, .wait-stat, .wait-inputs, .proof-card, .contact-main, .contact-side, .ticker-strip, .wait-teaser {
  --ink: #f6f3ee;
  --ink-soft: #dad3c6;
  --meta: #b3ab9c;
  --line: rgba(255,255,255,0.14);
  color: var(--ink);
}

/* .counterfoil and .wait-chip are white sub-panels nested inside the boxes
   above — reset back to dark text since their own background is --paper.
   (The explicit `color` above and here matters: an unstyled heading/paragraph
   only inherits a *new* var(--ink) value if something between it and the
   override point re-declares `color` — custom properties alone don't
   retroactively change an already-inherited `color` value.) */
.counterfoil, .wait-chip {
  --ink: #1c1a17;
  --ink-soft: #5c5750;
  --meta: #948d80;
  --line: #e4e0d8;
  --accent-tint: #f3e6cc;
  color: var(--ink);
}

/* .ticket and .contact-main keep buttons, whose default styling pairs
   --ink with --paper (dark bg + light text) — that pairing breaks once
   --ink is overridden to light above, so give those buttons explicit colors. */
.ticket .btn-primary, .contact-main .btn-primary {
  background: #f8f5ef; color: #201d1a;
}
.ticket .btn-primary:hover, .contact-main .btn-primary:hover {
  background: var(--accent-strong); color: #201d1a;
}
.ticket .btn-ghost, .contact-main .btn-ghost {
  border-color: rgba(248,245,239,0.35); color: #f8f5ef;
}
.ticket .btn-ghost:hover, .contact-main .btn-ghost:hover {
  border-color: rgba(248,245,239,0.65);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { font-family: 'Fraunces', ui-serif, Georgia, serif; font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }

.perf {
  height: 1px;
  background-image: radial-gradient(circle, var(--line) 1.4px, transparent 1.6px);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  opacity: 0.9;
}

/* ---------- header / nav ---------- */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.brand-lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 42px; }
}
.navlinks { display: flex; gap: 28px; font-size: 0.9rem; color: var(--ink-soft); }
.navlinks a { text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.navlinks a:hover { color: var(--ink); }
.navlinks a.active { color: var(--ink); border-bottom-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 3px; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-strong); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

/* ---------- page head (interior pages) ---------- */
.page-head { padding-block: 56px 8px; }
.page-head .kicker { display: block; margin-bottom: 10px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; }
.page-head .desc { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; max-width: 60ch; margin-top: 14px; }

/* ---------- hero ticket (home) ---------- */
.hero { padding-block: 40px 40px; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1px 0.85fr;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.55);
  overflow: hidden;
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.ticket::before, .ticket::after { left: calc(1.15fr / (1.15 + 0.85) * 100% - 11px); }
.ticket-main { padding: 44px 40px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 10px;
}
.eyebrow .rule { width: 26px; height: 1px; background: var(--ink); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.06; }
.hero-sub { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ticket-divider { background: var(--line); position: relative; }
.ticket-divider .perf { position: absolute; inset: 0; width: 1px; background-image: radial-gradient(circle, var(--line) 1.4px, transparent 1.6px); background-size: 1px 10px; background-repeat: repeat-y; }

.counterfoil { padding: 30px 30px 30px 34px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.cf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cf-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meta); }
.cf-value { font-family: 'IBM Plex Mono', monospace; font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticket-no { font-family: 'IBM Plex Mono', monospace; font-size: 1.9rem; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.lang-pill {
  display: inline-flex; align-self: flex-start; gap: 6px; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.04em;
}
.lang-pill span { padding: 2px 7px; border-radius: 999px; }
.lang-pill .active { background: var(--ink); color: var(--paper); }

.status-track { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.status-step { display: flex; align-items: flex-start; gap: 12px; padding-block: 8px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); margin-top: 3px; flex: none; transition: background 0.4s, border-color 0.4s; }
.status-text { font-size: 0.86rem; color: var(--ink-soft); }
.status-time { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--meta); margin-left: auto; font-variant-numeric: tabular-nums; }
.status-step.done .status-dot { background: var(--status-good); border-color: var(--status-good); }
.status-step.done .status-text { color: var(--ink); }
.status-step.active .status-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.status-step.active .status-text { color: var(--ink); font-weight: 600; }

/* ---------- ticker ---------- */
.ticker-strip { border-block: 1px solid var(--line); background: var(--paper-raised); }
.ticker-inner {
  display: flex; gap: 36px; padding-block: 16px; overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-soft);
  white-space: nowrap;
}
.ticker-inner span.sep { color: var(--accent); }

/* ---------- sections ---------- */
section { padding-block: 72px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; max-width: 60ch; }
.kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head .desc { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

/* ---------- wait-time feature ---------- */
.wait-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.wait-stat { background: var(--paper-raised); padding: 34px 36px; display: flex; flex-direction: column; gap: 16px; }
.wait-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meta); }
.wait-value { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--ink); }
.wait-unit { font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-left: 6px; }
.wait-meter { display: flex; flex-direction: column; gap: 8px; }
.meter-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; }
.meter-fill.good { background: var(--status-good); }
.meter-fill.busy { background: var(--status-busy); }
.meter-status { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; }
.meter-status.good-text { color: var(--status-good); }
.meter-status.busy-text { color: var(--status-busy); }
.wait-trend { width: 100%; height: 40px; margin-top: 4px; }
.wait-inputs { background: var(--paper-raised); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.wait-chip { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.chip-value { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip-label { font-size: 0.82rem; color: var(--ink-soft); text-align: right; }
.wait-note { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; margin-top: 4px; }

.wait-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 22px 28px;
}
.wait-teaser .wt-left { display: flex; align-items: baseline; gap: 14px; }
.wait-teaser .wt-value { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 2rem; color: var(--ink); }
.wait-teaser .wt-label { font-size: 0.9rem; color: var(--ink-soft); }
.wait-teaser a { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.wait-teaser a:hover { color: var(--accent-strong); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.step { background: var(--paper-raised); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.step-no { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--ink); letter-spacing: 0.04em; }
.step h3 { font-size: 1.05rem; font-weight: 600; font-family: 'Inter', sans-serif; }
.step p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.feature { background: var(--paper-raised); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.feature .fi { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 1.02rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.feature p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

/* ---------- proof ---------- */
.proof-card {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 30px 34px;
}
.proof-mark { font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.proof-name { font-weight: 600; font-size: 1.05rem; }
.proof-loc { color: var(--ink-soft); font-size: 0.88rem; margin-top: 4px; }

/* ---------- cta banner (high-contrast callout) ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: var(--ink); border-radius: 14px;
  padding: 52px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-banner h2 { color: var(--ink); font-size: clamp(1.5rem, 2.8vw, 2rem); max-width: 22ch; }
.cta-banner p { color: color-mix(in srgb, var(--ink) 75%, transparent); margin-top: 10px; max-width: 42ch; line-height: 1.55; }
.cta-banner .btn-primary { background: var(--ink); color: var(--paper); }
.cta-banner .btn-primary:hover { background: var(--paper); color: var(--ink); }
.cta-banner .btn-ghost { border-color: color-mix(in srgb, var(--ink) 45%, transparent); color: var(--ink); }
.cta-banner .btn-ghost:hover { border-color: var(--ink); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.contact-main { background: var(--paper-raised); padding: 40px 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-main h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.contact-main p { color: var(--ink-soft); line-height: 1.6; max-width: 48ch; }
.contact-side { background: var(--paper-raised); padding: 40px 34px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-item .cl { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meta); }
.contact-item .cv { font-size: 1rem; font-weight: 600; }
.contact-item a { text-decoration: none; color: var(--accent); }
.contact-item a:hover { color: var(--accent-strong); }

/* ---------- footer ---------- */
footer { padding-block: 40px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-soft); font-size: 0.85rem; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .brand-logo { height: 30px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { text-decoration: none; color: var(--ink-soft); }
.foot-links a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(20,16,10,0.12);
    padding: 6px 20px 20px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .navlinks { flex-direction: column; gap: 0; font-size: 1rem; }
  .nav-menu .navlinks a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-menu .btn-primary { margin-top: 14px; width: 100%; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-divider { height: 1px; }
  .ticket-divider .perf { position: static; width: 100%; height: 1px; background-size: 10px 1px; background-repeat: repeat-x; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .proof-card { grid-template-columns: 1fr; text-align: left; }
  .cta-banner { padding: 36px 26px; }
  .wait-panel { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .wait-teaser { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .ticket-main { padding: 32px 22px; }
  .counterfoil { padding: 24px 22px; }
  .wait-stat, .wait-inputs { padding: 26px 22px; }
  .contact-main, .contact-side { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
