/* ============================================================
   One Way Call Taxi — component & layout styles
   Depends on tokens.css. Mobile-first. Motion serves conversion.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* pro-max checklist: pointer + no tap-delay on all interactive elements, 44px targets */
button, a, [role="button"], [role="tab"], input, select, label[for] { touch-action: manipulation; }
button, [role="button"], [role="tab"], a.btn, .vehicle-card, .route-card, .fab, .swap, .theme-btn, .nav-toggle { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .5; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 var(--step--1)/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 1.5em; height: 2px; background: var(--accent); }
.sec-title { font-size: var(--step-3); margin-top: .6rem; letter-spacing: -.025em; }
.sec-sub { color: var(--ink-soft); margin-top: .8rem; max-width: 60ch; font-size: var(--step-1); font-weight: 400; line-height: 1.6; }

/* ---- buttons ---- */
.btn {
  --bg: var(--brand); --fg: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 var(--step-0)/1 var(--font-body); letter-spacing: -.01em;
  padding: .95em 1.5em; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur-fast);
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { --bg: var(--accent); --fg: var(--accent-ink); box-shadow: 0 6px 18px rgba(228,172,5,.35); }
.btn--accent:hover { filter: brightness(1.04); box-shadow: 0 10px 26px rgba(228,172,5,.45); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border: 1.5px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { padding: 1.1em 1.9em; font-size: var(--step-1); }
.btn--block { width: 100%; }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur), background var(--dur);
}
.site-head.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.nav { display: flex; align-items: center; gap: 1rem; height: 100px; }
.nav .logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-family: var(--font-display); color: var(--ink); }
.nav .logo img { height: 68px; width: auto; max-width: 260px; object-fit: contain; display: block; }
@media (max-width: 860px) { .nav { height: 78px; } .nav .logo img { height: 52px; } }
.nav .spacer { flex: 1; }
.nav .links { display: flex; gap: .3rem; align-items: center; }
.nav .links a { color: var(--ink-soft); font-weight: 600; font-size: var(--step-0); padding: .55em .85em; border-radius: var(--r-sm); }
.nav .links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav .call { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: .4rem; }
@media (max-width: 860px) {
  .nav .links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav .links.open {
    display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: .6rem var(--gutter) 1rem; gap: .1rem;
    box-shadow: var(--shadow-md);
  }
  .nav .links.open a { padding: .9em .6em; font-size: var(--step-0); }
}

/* ---- theme toggle ---- */
.theme-btn { background: none; border: 1px solid var(--border); color: var(--ink-soft); border-radius: var(--r-pill); width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; transition: border-color var(--dur), color var(--dur); }
.theme-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ---- chips / pills ---- */
.chip { display: inline-flex; align-items: center; gap: .4em; font: 600 var(--step--1)/1 var(--font-body); padding: .5em .8em; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--border); }
.chip .dot { width: .5em; height: .5em; border-radius: 50%; background: var(--pos); }

/* ============================================================
   MOTION — reveal on scroll (business motive: guide the eye)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .vehicle-card { transition: none !important; }
}

/* ---- focus ---- */
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px;
}

/* ---- footer ---- */
.site-foot { background: var(--green-800); color: #D7E6DC; margin-top: var(--section-y); }
:root[data-theme="light"] .site-foot { background: var(--green-800); }
.site-foot a { color: #BFE0CE; }
.site-foot .wrap { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.foot-logo img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 7px 10px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { color: #fff; font-size: var(--step-0); margin-bottom: .9rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-grid ul a { font-size: var(--step--1); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: var(--step--1); color: #9FBBA9; }
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #D7E6DC; transition: background var(--dur-fast), transform var(--dur-fast); }
.socials a:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .foot-brand { grid-column: 1 / -1; } }

/* ---- floating WhatsApp / call (mobile conversion) ---- */
.fab-stack { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: .6rem; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); color: #fff; text-decoration: none; transition: transform var(--dur) var(--ease); }
.fab:hover { transform: scale(1.08); text-decoration: none; }
.fab--wa { background: #25D366; }
.fab--call { background: var(--brand); }
@media (min-width: 861px) { .fab--call { display: none; } }
.fab svg { width: 26px; height: 26px; }

/* pulse on the primary CTA — draws the eye to "Book" */
@keyframes softpulse { 0%,100% { box-shadow: 0 6px 18px rgba(228,172,5,.35); } 50% { box-shadow: 0 6px 26px rgba(228,172,5,.6); } }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: softpulse 2.6s var(--ease) infinite; } }
