/* ============================================================
   Cheap Auto Rentals — rebrand foundation (Phase 1)
   Tokens, base type lift, buttons, nav, footer. Loaded AFTER
   styles.css so global chrome/type lift while page bodies keep
   their existing styling until later phases re-skin them.
   ============================================================ */

:root {
  --brand: #1556d6;
  --brand-strong: #0f3fa6;
  --brand-tint: #eaf1ff;
  --accent: #ffb020;
  --accent-strong: #f59008;
  --accent-tint: #fff3dc;
  --success: #1f9d6b;

  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-soft: #3b3f49;
  --muted: #6b7180;
  --line: #e8e3da;
  --line-strong: #d8d2c6;

  --font-head: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 38px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, .06), 0 2px 8px rgba(20, 22, 28, .05);
  --shadow-md: 0 12px 30px -12px rgba(20, 30, 60, .22);
  --shadow-lg: 0 40px 80px -28px rgba(18, 32, 70, .35);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---- base type lift (kept conservative so existing bodies don't break) ---- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
a { color: inherit; text-decoration: none; }

/* DiscoverCars widget container (reserves height to avoid layout shift). */
.discovercars-widget { overflow: hidden; min-height: 360px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-strong);
  border-radius: 2px;
}

/* ---- buttons ---- */
.btn {
  --bbg: var(--ink);
  --bfg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--bbg);
  color: var(--bfg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn--brand { --bbg: var(--brand); --bfg: #fff; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--brand) 75%, transparent); }
.btn--brand:hover { --bbg: var(--brand-strong); }
.btn--accent { --bbg: var(--accent); --bfg: #2a1d00; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent-strong) 70%, transparent); }
.btn--accent:hover { --bbg: var(--accent-strong); }
.btn--ghost { --bbg: transparent; --bfg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: #fff; }
.btn--lg { padding: 19px 30px; font-size: 17px; }

/* ---- chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ============================================================
   NAV (replaces .site-header)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-stuck { border-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 76px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand); display: grid; place-items: center;
  color: #fff; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16);
  position: relative; overflow: hidden;
}
.brand__mark::after {
  content: ""; position: absolute; inset: auto -6px -10px auto;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
}
.brand__mark svg { position: relative; z-index: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1; }
.brand__tag { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav__links a { font-weight: 600; font-size: 15.5px; color: var(--ink-soft); padding: 9px 14px; border-radius: 999px; transition: background .18s, color .18s; }
.nav__links a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger {
  display: none; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  place-items: center;
}

@media (max-width: 900px) {
  .nav__links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 12px; box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: grid; }
}

/* ============================================================
   FOOTER (replaces .site-footer)
   ============================================================ */
.foot { background: var(--ink); color: #cfd3dc; padding-block: clamp(50px, 6vw, 80px) 30px; margin-top: clamp(48px, 7vw, 96px); }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot .brand { color: #fff; }
.foot .brand__name { color: #fff; }
.foot__about { margin-top: 16px; font-size: 14.5px; color: #9aa0ad; max-width: 34ch; }
.foot h5 { font-family: var(--font-head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot a { font-size: 14.5px; color: #aab0bc; transition: color .15s; }
.foot a:hover { color: #fff; text-decoration: none; }
.foot__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #868c99;
}
.foot__disc { max-width: 60ch; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---- scroll reveal (used by later phases; harmless if no .reveal present) ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
