/* ============================================================
   EasyCab V2.1 — base.css
   Tokens · Reset · Typography · Layout utilities · Animations
   ============================================================ */

/* ===== Tokens ===== */
:root {
  --paper:       #f5f2ec;
  --paper-2:     #ece8de;
  --ink:         #141410;
  --ink-2:       #2a2822;
  --muted:       #6b675c;
  --line:        #dfd9c9;
  --green:       #1a4a35;
  --green-deep:  #103024;
  --orange:      #e85a1f;
  --gold:        #c2a55c;
  --white:       #ffffff;

  --r-sm:  10px;
  --r:     18px;
  --r-lg:  28px;
  --r-xl:  40px;

  --ease:     cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --container: 1240px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
::selection { background: var(--green); color: var(--paper); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Typography helpers ===== */
.serif   { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -.015em; }
.italic  { font-style: italic; }
.mono    { font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: .02em; }

.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
  transition: transform .25s var(--ease-out), background .25s var(--ease),
              color .25s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink    { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--green); }
.btn-ghost  { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-green  { background: var(--green); color: var(--paper); box-shadow: 0 10px 22px -14px rgba(26,74,53,.6); }
.btn-green:hover { background: var(--green-deep); box-shadow: 0 16px 30px -14px rgba(26,74,53,.7); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #cf4b14; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15px; }
.btn .arr {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16); font-size: 12px;
  transition: transform .25s var(--ease-out), background .25s var(--ease);
}
.btn-ghost .arr { background: rgba(20,20,16,.08); }
.btn:hover .arr { transform: translate(2px,-2px); }

/* ===== Sections ===== */
.section { padding: 120px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end; margin-bottom: 64px;
}
.section-head h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(40px,5vw,68px); line-height: 1.04;
  letter-spacing: -.02em; margin-top: 18px;
}
.section-head h2 em { font-style: italic; color: var(--green); }
.section-head .sub { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 46ch; }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }

/* ===== Marquee ===== */
.marquee {
  background: var(--ink); color: var(--paper); overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid #2a2822; border-bottom: 1px solid #2a2822;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-slide 40s linear infinite;
}
@keyframes marquee-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 18px;
  margin-right: 64px;
  font-family: 'Instrument Serif', serif; font-size: 40px;
  line-height: 1; letter-spacing: -.02em; color: var(--paper);
  white-space: nowrap;
}
.marquee-item em { color: var(--orange); font-style: italic; }
.marquee-item .sep {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ===== Pulse animation ===== */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,90,31,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(232,90,31,0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ===== Toast ===== */
.ec-toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translate(-50%,30px);
  background: var(--ink); color: var(--paper);
  padding: 18px 24px; border-radius: 14px;
  font-size: 14.5px; font-weight: 500;
  box-shadow: 0 26px 60px -22px rgba(20,20,16,.55);
  display: flex; align-items: center; gap: 14px;
  z-index: 10000; opacity: 0;
  transition: opacity .35s, transform .35s var(--ease-out);
  pointer-events: none; max-width: 520px;
}
.ec-toast.show { opacity: 1; transform: translate(-50%,0); pointer-events: auto; }
.ec-toast .ic {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
  flex-shrink: 0; color: #fff;
}
.ec-toast .body { display: flex; flex-direction: column; gap: 2px; }
.ec-toast .t { font-weight: 600; letter-spacing: -.005em; }
.ec-toast .s { font-size: 13px; color: #bdb8aa; font-weight: 400; }

/* ===== Responsive: container ===== */
@media (min-width: 1440px) {
  :root { --container: 1360px; }
  .container { padding: 0 40px; }
}
@media (min-width: 1800px) {
  :root { --container: 1560px; }
  .container { padding: 0 48px; }
  .section { padding: 150px 0; }
  .section-head h2 { font-size: clamp(56px, 5vw, 96px); }
  .marquee-item { font-size: 52px; }
}
@media (min-width: 2200px) {
  :root { --container: 1800px; }
}
@media (max-width: 1080px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .container { padding: 0 22px; }
  .section { padding: 80px 0; }
  .marquee-item { font-size: 28px; }
}

/* ===== Accessibility: respect reduced-motion preference ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; transform: none !important; }
}
