/* CapeDrive v2 — "Atlantic": clean automotive premium.
   Light canvas, deep-green accent, Space Grotesk display, alternating section backgrounds,
   generous vertical rhythm. Booking happens in a modal with live total. */

:root {
  --bg: #f4f4f0;
  --surface: #ffffff;
  --ink: #12150f;
  --muted: #676d61;
  --line: #e3e3dc;
  --green: #0c5941;
  --green-dark: #094433;
  --green-tint: #e7efe9;
  --amber: #e8b64c;
  --r-card: 20px;
  --r-input: 14px;
  --r-pill: 999px;
  --section-y: 112px;
  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }

/* sections: alternating backgrounds + hard separation */
.band { padding: var(--section-y) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-white { background: var(--surface); }
.band-dark { background: var(--ink); color: #f2f3ee; }
.sec-head { margin-bottom: 56px; max-width: 720px; }
.overline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--green); margin-bottom: 18px;
}
.band-dark .overline { color: var(--amber); }
.overline::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.band-dark .sec-head p { color: #b9bfb2; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-pill); padding: 14px 28px;
  font-weight: 600; font-size: 15.5px; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.band-dark .btn-ghost { border-color: #f2f3ee; color: #f2f3ee; }
.band-dark .btn-ghost:hover { background: #f2f3ee; color: var(--ink); }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(244,244,240,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 var(--section-y); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { color: var(--muted); font-size: 18px; margin: 22px 0 32px; max-width: 50ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 32px; margin-top: 44px; width: fit-content; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.trust-item::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 12px; font-weight: 700; }
.hero-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 24px 60px -24px rgba(18,21,15,.35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; left: 20px; bottom: 20px; background: var(--surface);
  border-radius: 16px; padding: 14px 20px; box-shadow: 0 10px 30px -10px rgba(18,21,15,.3);
}
.hero-chip .p { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.hero-chip .p span { font-size: 14px; font-weight: 500; color: var(--muted); }
.hero-chip .l { font-size: 12.5px; color: var(--muted); }
.hero-chip2 { position: absolute; right: 20px; top: 20px; background: rgba(18,21,15,.82); color: #fff; border-radius: var(--r-pill); padding: 9px 18px; font-size: 13px; font-weight: 500; backdrop-filter: blur(4px); }

/* ---------- fleet ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  border-radius: var(--r-pill); padding: 10px 20px; background: var(--bg);
  border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all .13s ease;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.car {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.car:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -20px rgba(18,21,15,.25); }
.car-img { aspect-ratio: 3/2; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.car-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.car h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.car .year { font-size: 13px; color: var(--muted); }
.tag { background: var(--green-tint); color: var(--green); border-radius: var(--r-pill); padding: 5px 13px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.specs span { display: inline-flex; align-items: center; gap: 5px; }
.specs span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.specs span:first-child::before { display: none; }
.car-price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.car-price .from { font-size: 12px; color: var(--muted); }
.car-price .amt { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; }
.car-price .amt small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.car-price .dep { font-size: 12px; color: var(--muted); text-align: right; }
.car-cta { display: flex; gap: 10px; }
.car-cta .btn { flex: 1; padding: 12px 10px; font-size: 14.5px; }

/* ---------- long stay ---------- */
.ls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ls-cards { display: grid; gap: 12px; }
.ls-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ls-card b { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.ls-card span { color: #b9bfb2; font-size: 15px; }
.ls-card .val { color: var(--amber); font-family: var(--font-display); font-weight: 700; font-size: 18px; }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px 30px; }
.step .n { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--green); background: var(--green-tint); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 18px 0 10px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why .w { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 26px; }
.why h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.why p { font-size: 14.5px; color: var(--muted); }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 26px; }
.faq-list summary { font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::after { content: '+'; font-family: var(--font-display); font-size: 22px; color: var(--green); transition: transform .15s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 70ch; }

/* ---------- cta band ---------- */
.ctaband { text-align: center; }
.ctaband h2 { font-size: clamp(34px, 5vw, 60px); }
.ctaband p { margin: 18px auto 30px; max-width: 52ch; color: #b9bfb2; }

/* ---------- footer ---------- */
footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 14.5px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col b { font-family: var(--font-display); font-size: 14px; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--green); }
.tiny { font-size: 12.5px; color: var(--muted); margin-top: 36px; }

/* ---------- booking modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(18,21,15,.55); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-bg.on { display: flex; }
.modal {
  background: var(--surface); border-radius: 24px; max-width: 880px; width: 100%;
  max-height: 92vh; overflow: auto;
}
.bm-head { display: flex; gap: 18px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.bm-head img { width: 108px; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; }
.bm-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.bm-head .sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.bm-head .x { margin-left: auto; font-size: 26px; line-height: 1; color: var(--muted); padding: 6px 10px; border-radius: 50%; }
.bm-head .x:hover { color: var(--ink); background: var(--bg); }
.bm-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.bm-form { padding: 26px 28px; display: grid; gap: 18px; align-content: start; }
.bm-field { display: grid; gap: 8px; }
.bm-field label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bm-field input, .bm-field select {
  border: 1.5px solid var(--line); border-radius: var(--r-input); padding: 13px 14px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--surface); width: 100%; outline: none; appearance: none;
}
.bm-field input:focus, .bm-field select:focus { border-color: var(--green); }
.bm-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bm-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-input); padding: 4px; gap: 4px; }
.bm-seg button { border-radius: 10px; padding: 11px 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.bm-seg button.on { background: var(--green); color: #fff; }
.bm-summary { background: var(--bg); border-left: 1px solid var(--line); padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.bm-summary .t { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.bm-line { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; color: var(--muted); }
.bm-line b { color: var(--ink); font-weight: 600; }
.bm-total { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.bm-total .lbl { font-size: 13px; color: var(--muted); }
.bm-total .sum { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; color: var(--green); line-height: 1.1; }
.bm-total .dep { font-size: 13px; color: var(--muted); margin-top: 4px; }
.bm-err { color: #a4482c; font-size: 14px; font-weight: 500; }
.bm-summary .btn { width: 100%; margin-top: 14px; }
.bm-rates { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 18px 28px 26px; }
.bm-rates summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--green); list-style: none; }
.bm-rates summary::before { content: '▸ '; }
.bm-rates details[open] summary::before { content: '▾ '; }
.rates { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.rates th, .rates td { padding: 11px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.rates th:first-child, .rates td:first-child { text-align: left; }
.rates thead th { font-family: var(--font-display); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.rates .plan { background: var(--green-tint); color: var(--green); border-radius: var(--r-pill); padding: 4px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.bm-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .ls-grid { grid-template-columns: 1fr; gap: 36px; }
  .bm-body { grid-template-columns: 1fr; }
  .bm-summary { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --section-y: 72px; }
  .nav { display: none; }
  .fleet-grid, .steps, .why { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-trust { grid-template-columns: 1fr; }
  .modal-bg { padding: 0; align-items: stretch; }
  .modal { border-radius: 0; max-height: 100vh; }
  .bm-dates { grid-template-columns: 1fr; }
}
