/* Dazzling Trip — minimal, premium, mobile-first */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0284c7;
  --accent-strong: #0369a1;
  --accent-soft: #e0f2fe;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .12);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border: 1px solid transparent;
  border-radius: 10px; padding: 12px 20px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); position: relative; flex: none; }
.brand-mark::after {
  content: ""; position: absolute; inset: 6px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  clip-path: polygon(0 100%, 22% 38%, 46% 70%, 64% 30%, 100% 100%);
}
.brand-accent { color: var(--accent); }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav > a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.primary-nav > a:hover { color: var(--ink); text-decoration: none; }
.primary-nav > a.active { color: var(--ink); font-weight: 600; }

.region-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.region-toggle:hover { border-color: var(--accent); }
.region-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* Hero */
.hero {
  position: relative; color: #fff; padding: 96px 0 72px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(2,132,199,.55), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0b1220 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; max-width: 16ch; margin: 0 0 18px; font-weight: 800; }
.hero .eyebrow { color: #7dd3fc; }
.hero-sub { max-width: 60ch; color: #cbd5e1; font-size: 1.08rem; margin: 0 0 30px; }

/* Booking widget */
.booking-widget {
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 860px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field select {
  font: inherit; font-size: .95rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: var(--bg); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.booking-note { color: #cbd5e1; font-size: .9rem; margin-top: 12px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 36px; text-align: center; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.pillar-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 16px; }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.region-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.region-card h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.region-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.flag { display: inline-block; width: 38px; height: 26px; border-radius: 5px; box-shadow: var(--shadow-sm); }
.flag-ca { background: linear-gradient(to right, #ff0000 0 25%, #fff 25% 75%, #ff0000 75%); }
.flag-us { background: linear-gradient(#b22234 0 12.5%, #fff 12.5% 25%, #b22234 25% 37.5%, #fff 37.5% 50%, #b22234 50% 62.5%, #fff 62.5% 75%, #b22234 75% 87.5%, #fff 87.5% 100%); position: relative; }
.flag-us::after { content: ""; position: absolute; left: 0; top: 0; width: 42%; height: 53%; background: #3c3b6e; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: 64px 0; }
.cta-inner { text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; font-weight: 800; letter-spacing: -.02em; }
.cta p { color: #cbd5e1; margin: 0 0 24px; }
.cta .btn-primary { background: var(--accent); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-grid h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a { color: var(--ink-soft); font-size: .92rem; }
.brand-footer { margin-bottom: 12px; }
.footer-legal { padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal p { margin: 0; max-width: 70ch; }


/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--ink); color: #e2e8f0; border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: .9rem; }
.cookie-banner a { color: #7dd3fc; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn-ghost { color: #e2e8f0; border-color: #475569; }

/* Listings (fleet.html) */
.page-hero { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; padding: 56px 0 44px; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: #cbd5e1; max-width: 60ch; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 16px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card-media { height: 150px; position: relative; }
.card-media.vehicle { background: linear-gradient(135deg, #0f172a, #0284c7); }
.card-media.stay { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.card-media .badge { position: absolute; top: 10px; left: 10px; background: rgba(15,23,42,.7); color: #fff; font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; }
.card-attrs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.attr { font-size: .76rem; font-weight: 600; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); padding: 4px 9px; border-radius: 7px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 1.15rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .8rem; }

/* Legal (terms.html) */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 48px 0; }
.legal-toc { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.legal-toc a { color: var(--ink-soft); font-size: .92rem; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.legal-toc a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.legal-content h2 { font-size: 1.5rem; margin: 36px 0 12px; scroll-margin-top: 90px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: .96rem; }
.legal-content ul { padding-left: 1.2em; }
.callout { background: var(--accent-soft); border: 1px solid #bae6fd; border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.callout p { margin: 0; color: var(--ink); font-size: .92rem; }

.center-empty { text-align: center; padding: 80px 0; color: var(--muted); }


/* Responsive */
@media (max-width: 900px) {
  .booking-widget { grid-template-columns: repeat(2, 1fr); }
  .booking-widget .btn-block { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .region-toggle { margin-top: 12px; justify-content: center; }
  .booking-widget { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .cookie-banner { position: static; margin: 16px; max-width: none; }
  .cookie-banner[hidden] { display: none; }
}

