/* ============================================================
   DriveEasy — self-drive rental demo · shared stylesheet
   Dark slate + electric blue + safety yellow
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --card: #16203a;
  --card-2: #1b2745;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e6edf7;
  --muted: #93a3bc;
  --blue: #38bdf8;
  --blue-deep: #0284c7;
  --yellow: #facc15;
  --green: #34d399;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(2, 8, 23, 0.55);
  --font-head: "Chakra Petch", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(900px 400px at 85% -5%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(700px 350px at 0% 20%, rgba(250, 204, 21, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: linear-gradient(90deg, #713f12, #854d0e);
  border-bottom: 1px solid rgba(250, 204, 21, 0.35);
  color: #fef3c7;
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 14px;
}
.demo-ribbon a { color: var(--yellow); font-weight: 600; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .zap { color: var(--yellow); }
.brand span.blue { color: var(--blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(56, 189, 248, 0.08); text-decoration: none; }
.nav-links a.current { color: var(--blue); background: rgba(56, 189, 248, 0.12); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #06121f;
  padding: 11px 22px;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(56, 189, 248, 0.4); }
.btn-yellow {
  background: linear-gradient(135deg, var(--yellow), #eab308);
  color: #1c1400;
  padding: 12px 24px;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.22);
}
.btn-yellow:hover { box-shadow: 0 10px 28px rgba(250, 204, 21, 0.38); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 11px 22px;
  font-size: 0.92rem;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; }
.hero h1 .hl { color: var(--blue); }
.hero p.lead { color: var(--muted); font-size: 1.06rem; max-width: 34rem; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-badges span {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(22, 32, 58, 0.6);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Search / booking cards */
.search-card, .panel {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.search-card h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--yellow); }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: #64748b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 10px; }
.section-head h2 .hl { color: var(--blue); }
.section-head p { color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(56, 189, 248, 0.22);
  position: absolute;
  top: 12px;
  right: 18px;
}
.step .icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.09), rgba(250, 204, 21, 0.07));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.stat .big {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 700;
  color: var(--blue);
}
.stat .big.yl { color: var(--yellow); }
.stat .label { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ---------- Vehicle cards ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vehicle-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--shadow);
}
.vc-visual {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.vc-visual .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(2, 8, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.vc-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.vc-body h3 { font-size: 1.05rem; }
.vc-specs { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.84rem; }
.vc-specs span { display: inline-flex; align-items: center; gap: 5px; }
.vc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.vc-price { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--yellow); }
.vc-price small { font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; color: var(--muted); text-transform: none; }
.vc-footer .btn { padding: 9px 16px; font-size: 0.82rem; }

/* ---------- Filter bar (fleet) ---------- */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--blue); }
.chip.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #06121f;
  border-color: transparent;
}
.filter-bar select {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 9px 12px;
  outline: none;
  cursor: pointer;
}
.filter-bar select:focus { border-color: var(--blue); }
.result-count { color: var(--muted); font-size: 0.9rem; margin: 0 4px 22px; }
.result-count strong { color: var(--yellow); }
.trip-note {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.88rem;
  padding: 10px 16px;
  margin-bottom: 20px;
}
.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state .icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- Page headers ---------- */
.page-head { padding: 52px 0 30px; }
.page-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin-bottom: 10px; }
.page-head h1 .hl { color: var(--blue); }
.page-head p { color: var(--muted); max-width: 40rem; }

/* ---------- Vehicle detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: start;
}
.detail-visual {
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  box-shadow: var(--shadow);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.spec-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.spec-box .k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.spec-box .v { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; margin-top: 2px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.feature-chips span {
  font-size: 0.8rem;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Booking widget */
.booking-widget h3 { color: var(--yellow); font-size: 1.05rem; margin-bottom: 16px; }
.addons { display: grid; gap: 8px; margin: 4px 0 14px; }
.addon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.addon:hover { border-color: var(--blue); }
.addon input { accent-color: var(--blue); width: 16px; height: 16px; cursor: pointer; }
.addon .price { margin-left: auto; color: var(--yellow); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.bill { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; font-size: 0.92rem; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--muted); }
.bill-row strong { color: var(--text); }
.bill-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
}
.bill-row.total .amt { color: var(--yellow); font-weight: 700; }
.bill-note { font-size: 0.76rem; color: var(--muted); margin-top: 6px; }

/* Confirmation */
.confirmation {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}
.confirmation h3 { color: var(--green); margin-bottom: 10px; font-size: 1.05rem; }
.confirmation .bk-id {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(2, 8, 23, 0.5);
  border: 1px dashed rgba(52, 211, 153, 0.5);
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-block;
  margin: 8px 0 12px;
}
.confirmation p { color: var(--muted); font-size: 0.9rem; }
.confirmation p strong { color: var(--text); }

/* ---------- Why / feature tiles ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.why-tile:hover { border-color: rgba(250, 204, 21, 0.5); transform: translateY(-3px); }
.why-tile .icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.why-tile h3 { font-size: 0.98rem; margin-bottom: 6px; }
.why-tile p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testi .stars { color: var(--yellow); letter-spacing: 2px; font-size: 0.9rem; }
.testi p { color: var(--muted); font-size: 0.93rem; font-style: italic; }
.testi .who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.testi .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--blue-deep), var(--card-2));
  border: 1px solid var(--line);
}
.testi .who .name { font-weight: 600; font-size: 0.9rem; }
.testi .who .meta { color: var(--muted); font-size: 0.78rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.14), rgba(250, 204, 21, 0.1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.hub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.hub-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--blue); }
.hub-card p { color: var(--muted); font-size: 0.92rem; }
.hub-card .tag {
  float: right;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
}
.map-placeholder {
  height: 210px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(56, 189, 248, 0.05) 0 12px, transparent 12px 24px),
    var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 6px;
  text-align: center;
  padding: 16px;
}
.map-placeholder .pin { font-size: 2.2rem; }
.form-success {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  padding: 16px;
  color: var(--green);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 44px 0 30px;
  background: rgba(2, 8, 23, 0.4);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 0.92rem; margin-bottom: 12px; color: var(--text); }
.footer-grid p, .footer-grid li { color: var(--muted); font-size: 0.88rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--blue); }
.footer-credit {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-credit a { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .vehicle-grid, .testi-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 44px 0 30px; }
}

@media (max-width: 620px) {
  .vehicle-grid, .testi-grid, .steps, .why-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { flex-wrap: wrap; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar select { width: 100%; }
  .detail-visual { height: 220px; font-size: 5.5rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .search-card, .panel { padding: 18px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 20px 14px; }
}
