/* CrestDrive Nairobi — premium, mobile-first. No framework, fast load.
   Palette: deep navy + warm gold on cream. Serif display + clean sans body. */

:root {
  --navy: #0d1b2a;
  --navy-2: #13283d;
  --navy-3: #24405c;
  --ink: #1d2430;
  --muted: #5c6675;
  --cream: #f7f4ee;
  --cream-2: #efeae1;
  --white: #ffffff;
  --line: #e6e1d8;
  --gold: #c39b46;
  --gold-2: #b08a35;
  --wa: #25d366;
  --danger: #b42318;
  --shadow: 0 18px 40px -24px rgba(13, 27, 42, .45);
  --shadow-sm: 0 8px 22px -16px rgba(13, 27, 42, .4);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--gold-2); font-family: var(--font-body); margin-bottom: .8rem; }

/* ── Header / nav ─────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--gold-2); }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--gold-2); }
.nav-cta { background: var(--navy); color: #fff !important; padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--navy-2); text-decoration: none; }
.nav-toggle { display: none; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-2); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(13,27,42,.25); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-small { padding: .45rem .9rem; font-size: .85rem; }

/* ── Layout sections ──────────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-cream { background: var(--cream); }
.section-tight { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8,17,27,.72), rgba(8,17,27,.86)),
    var(--hero-image, radial-gradient(1200px 500px at 80% -10%, #24405c 0%, transparent 60%)),
    linear-gradient(160deg, var(--navy-2), var(--navy));
  background-size: cover; background-position: center;
}
.hero .container { position: relative; padding-top: clamp(3.2rem, 8vw, 6rem); padding-bottom: clamp(3.2rem, 8vw, 6rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: rgba(255,255,255,.82); max-width: 56ch; font-size: 1.2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.trust-line { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); }
.trust-line .ti { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: rgba(255,255,255,.9); }
.trust-line .ti b { color: var(--gold); font-family: var(--font-display); font-size: 1.05rem; }

/* hero stat chips */
.hero-stats { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 2rem; }
.hero-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.hero-stat span { font-size: .88rem; color: rgba(255,255,255,.8); }

/* ── Cards & grids ────────────────────────────────────────────────────────── */
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card .price { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.card .price small { font-family: var(--font-body); font-size: .82rem; color: var(--muted); font-weight: 500; }

/* feature item with icon */
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--gold-2); border: 1px solid var(--line); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 0 0 .2rem; color: var(--ink); }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }

/* zone price card */
.zone-card { border-top: 3px solid var(--gold); }
.zone-card .zone-name { font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.zone-card .zone-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin: .4rem 0 .1rem; }
.zone-card .zone-sub { font-size: .82rem; color: var(--muted); }

/* fleet / vehicle */
.vehicle-hero { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; }
.vehicle-media { background: linear-gradient(160deg, var(--navy-3), var(--navy)); border-radius: var(--radius); min-height: 240px; display: grid; place-items: center; color: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.vehicle-media .badge { position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; }
.spec-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.spec-list li { display: flex; gap: .6rem; align-items: center; color: var(--ink); }
.spec-list li svg { width: 18px; height: 18px; color: var(--gold-2); flex: 0 0 auto; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.step { position: relative; padding-left: 3.4rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.step h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ── Pills / chips ────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: .9rem; color: var(--ink); font-weight: 500; }
.pill.gold { border-color: var(--gold); color: var(--gold-2); }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.rate-table, .admin-table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td, .admin-table th, .admin-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.rate-table th, .admin-table th { color: var(--muted); font-weight: 600; }
.note-box { background: var(--cream); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; border-radius: var(--radius-sm); color: var(--ink); }

/* ── FAQ accordion ────────────────────────────────────────────────────────── */
.faq { display: grid; gap: .8rem; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.2rem; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-2); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 0 1.1rem; color: var(--muted); }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.quote-card .stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .6rem; }
.quote-card blockquote { margin: 0 0 1rem; font-size: 1.05rem; color: var(--ink); }
.quote-card .who { font-weight: 600; color: var(--navy); font-size: .95rem; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band { position: relative; color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; background: linear-gradient(160deg, var(--navy-2), var(--navy)); box-shadow: var(--shadow); overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 1.4rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 0; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.booking-form { margin-top: 1.5rem; display: grid; gap: 1.1rem; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
label { font-weight: 600; font-size: .9rem; color: var(--navy); }
input, select, textarea { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; width: 100%; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field-error { color: var(--danger); font-size: .85rem; }
.form-errors { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c2; padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; }

/* ── Admin ────────────────────────────────────────────────────────────────── */
.admin-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1.5rem; }
.chip-link { text-decoration: none; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--ink); }
.chip-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.inline-form { display: flex; gap: .4rem; }
.inline-form select { width: auto; }
.status { padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ── Blog ─────────────────────────────────────────────────────────────────── */
.post-list { list-style: none; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.post-summary .eyebrow { margin-bottom: .4rem; }
.post-summary h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.post-summary h3 a { color: var(--navy); }
.post-date { font-size: .85rem; color: var(--muted); margin: 0 0 .6rem; }
.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post .post-body { font-size: 1.08rem; }
.blog-post .post-body h2 { margin-top: 2rem; font-size: 1.7rem; }
.blog-post .post-body h3 { margin-top: 1.5rem; }
.blog-post .post-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.blog-post .post-body ul, .blog-post .post-body ol { padding-left: 1.3rem; }
.blog-post .post-body a { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 3rem 0 2rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .04em; margin: 0 0 .8rem; }
.site-footer a { color: rgba(255,255,255,.75); display: block; padding: .2rem 0; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-brand .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.4rem; font-size: .85rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ── WhatsApp FAB ─────────────────────────────────────────────────────────── */
.whatsapp-fab { position: fixed; right: 1.1rem; bottom: 1.1rem; background: var(--wa); color: #fff; text-decoration: none; padding: .8rem 1.1rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; box-shadow: 0 10px 26px -8px rgba(37,211,102,.6); z-index: 50; }
.whatsapp-fab:hover { text-decoration: none; transform: translateY(-2px); }
.whatsapp-fab svg { width: 22px; height: 22px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .booking .field-row.three { grid-template-columns: repeat(3, 1fr); }
  .vehicle-hero { grid-template-columns: 1.1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .post-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 699px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); gap: 1rem; }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; font-size: 1.2rem; cursor: pointer; }
}
