/* ===================================================================
   CarBabies — Premium Tesla Rentals
   Design system + components
   =================================================================== */

:root {
  --bg: #0a0e1a;
  --bg-2: #131829;
  --surface: #1a2038;
  --surface-2: #232a47;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #f1f3fa;
  --text-muted: #a8b0c5;
  --text-dim: #8b91a3;
  --accent: #00d4ff;
  --accent-2: #0a84ff;
  --coral: #ff5e7d;
  --coral-2: #ff8a4c;
  --gold: #f4c95d;
  --success: #4ade80;
  --grad-cyan: linear-gradient(135deg, #00d4ff 0%, #0a84ff 100%);
  --grad-coral: linear-gradient(135deg, #ff5e7d 0%, #ff8a4c 100%);
  --grad-hero: radial-gradient(ellipse at top, rgba(0,212,255,0.18), transparent 60%),
               radial-gradient(ellipse at bottom right, rgba(255,94,125,0.10), transparent 60%);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px rgba(0,212,255,0.25);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --container: 1200px;
  --header-h: 76px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: #5be1ff; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-muted); font-size: 1.05rem; }
.lead { font-size: 1.25rem; color: var(--text); opacity: 0.92; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,255,0.10);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0,212,255,0.25);
  margin-bottom: 1rem;
}
.eyebrow.coral { color: var(--coral); background: rgba(255,94,125,0.10); border-color: rgba(255,94,125,0.25); }
.gradient-text {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.coral-text {
  background: var(--grad-coral);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 6rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,14,26,0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 40px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: #fff; }
.nav .dropdown { position: relative; }
.nav .dropdown > button {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font: inherit; font-weight: 500; font-size: 0.95rem; padding: 0;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav .dropdown > button:hover { color: #fff; }
.nav .dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: 0.5rem; min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s, transform .18s;
}
.nav .dropdown:hover .dropdown-menu,
.nav .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-4px);
}
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--text); font-size: 0.92rem;
}
.dropdown-menu a:hover { background: var(--surface-2); color: var(--accent); }

.menu-toggle {
  display: none; background: none; border: none; color: #fff; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
}
.menu-toggle:hover { background: var(--surface); }

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(10,14,26,0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .nav.open a, .nav.open .dropdown > button {
    padding: 14px 16px; border-radius: 10px;
  }
  .nav.open .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; background: rgba(255,255,255,0.04);
    margin-top: 4px;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad-cyan); color: #0a0e1a;
  box-shadow: 0 8px 24px rgba(0,212,255,0.28);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0,212,255,0.45); color: #0a0e1a; }
.btn-coral {
  background: var(--grad-coral); color: #fff;
  box-shadow: 0 8px 24px rgba(255,94,125,0.30);
}
.btn-coral:hover { color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 5rem 0 6rem;
  background: var(--grad-hero), var(--bg);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center;
  position: relative;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero h1 .em {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { margin-top: 1.4rem; max-width: 56ch; }
.hero-cta { margin-top: 2.2rem; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; max-width: 540px;
}
.stat .num {
  font-size: 1.75rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
  background: var(--grad-cyan);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl {
  font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.12em; margin-top: 4px; font-weight: 600;
}

.hero-visual {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(0,212,255,0.14), rgba(255,94,125,0.10)),
    var(--surface);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 2rem; text-align: center; gap: 1rem;
}
.hero-visual .placeholder-art svg { width: 60%; max-width: 320px; opacity: 0.85; }
.hero-visual .placeholder-art .hint { color: var(--text-dim); font-size: 0.85rem; }

/* Compact page hero */
.page-hero {
  position: relative; padding: 5rem 0 4rem;
  background: var(--grad-hero), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; }
.page-hero p.lead { max-width: 60ch; margin-top: 1rem; }
.breadcrumbs {
  display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-dim);
  margin-bottom: 1.4rem; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-dim); opacity: 0.5; }

/* ===== Cards / Grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3.tablet-2, .grid-4.tablet-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid-3.tablet-2, .grid-4.tablet-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,212,255,0.10); color: var(--accent);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }

/* ===== Car cards ===== */
.car-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 30px 80px rgba(0,212,255,0.15);
}
.car-card .car-img {
  aspect-ratio: 16/10;
  background:
    radial-gradient(ellipse at center, rgba(0,212,255,0.12), transparent 60%),
    var(--bg-2);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.car-card .car-img img { width: 100%; height: 100%; object-fit: cover; }
.car-card .car-img .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--grad-cyan); color: #0a0e1a;
  padding: 6px 12px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.car-card .car-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.car-card h3 { margin-bottom: 0.25rem; }
.car-card .car-meta {
  color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem;
}
.car-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; padding: 1rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.car-specs .spec {
  text-align: center;
}
.car-specs .spec .v {
  font-weight: 800; color: #fff; font-size: 1.1rem;
}
.car-specs .spec .l {
  display: block; font-size: 0.7rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px;
}
.car-card .car-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Locations grid ===== */
.location-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem;
  transition: transform .2s, border-color .2s, background .2s;
  color: inherit;
}
.location-card:hover {
  transform: translateY(-3px); border-color: rgba(0,212,255,0.4);
  background: var(--surface-2); color: inherit;
}
.location-card .city {
  font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 0.25rem;
}
.location-card .region { color: var(--text-dim); font-size: 0.85rem; }
.location-card .arrow { color: var(--accent); margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; }

/* ===== Destination cards ===== */
.dest-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
}
.dest-card .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.dest-card:hover .bg { transform: scale(1.06); }
.dest-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,14,26,0.85) 95%);
}
.dest-card .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem; z-index: 2;
}
.dest-card .label .name {
  font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.01em;
}
.dest-card .label .miles { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

.dest-1 .bg { background-image: linear-gradient(135deg, rgba(0,212,255,0.4), rgba(255,94,125,0.4)),
  radial-gradient(circle at 30% 30%, #0a84ff, transparent 50%),
  radial-gradient(circle at 80% 70%, #ff5e7d, transparent 60%),
  #131829; }
.dest-2 .bg { background-image: linear-gradient(135deg, rgba(74,222,128,0.4), rgba(0,212,255,0.4)),
  radial-gradient(circle at 70% 30%, #4ade80, transparent 60%),
  radial-gradient(circle at 30% 70%, #00d4ff, transparent 60%),
  #131829; }
.dest-3 .bg { background-image: linear-gradient(135deg, rgba(244,201,93,0.5), rgba(10,132,255,0.4)),
  radial-gradient(circle at 50% 30%, #f4c95d, transparent 50%),
  radial-gradient(circle at 50% 80%, #0a84ff, transparent 60%),
  #131829; }

/* ===== Feature rows / split ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse > :first-child { order: 0; }
}
.split-art {
  aspect-ratio: 4/3; border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(0,212,255,0.14), rgba(255,94,125,0.10)),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.split-art img { width: 100%; height: 100%; object-fit: cover; }
.split-art .placeholder-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 2rem; text-align: center; gap: 1rem;
}

/* ===== List with checks ===== */
.checklist { list-style: none; padding: 0; margin-top: 1.5rem; }
.checklist li {
  display: flex; gap: 12px; padding: 8px 0;
  color: var(--text); font-size: 1rem;
}
.checklist li::before {
  content: '✓'; flex: 0 0 22px;
  width: 22px; height: 22px;
  background: rgba(74,222,128,0.15); color: var(--success);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem;
  margin-top: 4px;
}

/* ===== CTA banner ===== */
.cta-banner {
  background:
    radial-gradient(ellipse at top right, rgba(255,94,125,0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(0,212,255,0.18), transparent 50%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 3.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner .actions { margin-top: 2rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
.footer-grid h5 {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem; font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { padding: 5px 0; }
.footer-grid li a { color: var(--text-muted); font-size: 0.93rem; }
.footer-grid li a:hover { color: var(--accent); }
.footer-grid .brand-block img { height: 36px; margin-bottom: 1rem; }
.footer-grid .brand-block p { font-size: 0.93rem; }
.social-row { display: flex; gap: 12px; margin-top: 1.25rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--text-dim); font-size: 0.85rem;
}

/* ===== Misc helpers ===== */
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ===== Faq ===== */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  cursor: pointer; font-weight: 700; color: #fff; font-size: 1.08rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--accent); font-size: 1.5rem;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); margin-top: 0.75rem; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1rem; max-width: 560px; }
.form-grid label { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 6px; font-weight: 600; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 14px 16px;
  background: var(--surface); color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-grid input:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Animation ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
