/* Kereta Kawan — Site 1 (lite) public site styles */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #0A1F44;
  --blue: #1652F0;
  --orange: #FF7A1A;
  --orange-ink: #7A2E00; /* darkened for AA text-on-orange */
  --bg: #F6F8FC;
  --card: #FFFFFF;
  --ink: #0E1726;
  --muted: #5B6780;
  --green: #12A150;
  --red: #E5484D;
  --border: #E3E8F2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06), 0 1px 1px rgba(10, 31, 68, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 31, 68, 0.16);
  --container: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --header-h: 72px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  color: var(--navy);
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
p { margin: 0 0 var(--space-4); color: var(--muted); }
a { color: var(--blue); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
section { padding: var(--space-9) 0; }
.section-head { max-width: 680px; margin: 0 0 var(--space-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 13px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
  line-height: 1.2;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); padding: 10px 14px; }
.btn-whatsapp { background: #25D366; color: #06210f; }
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Utility bar — platform trust strip above the header */
.utility-bar { background: #06122b; color: rgba(255,255,255,0.75); font-size: 12px; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 7px var(--space-5); }
.utility-bar-left { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.utility-bar-right { display: flex; align-items: center; gap: var(--space-4); }
.utility-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.utility-bar a:hover { color: var(--orange); }

/* Header — dark "platform" theme for pro/ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 31, 68, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-logo { width: 40px; height: 40px; flex-shrink: 0; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-pill { background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.main-nav a { color: rgba(255,255,255,0.82); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-phone { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.82); font-weight: 600; text-decoration: none; font-size: 14px; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; color: #fff; }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 90;
  display: none;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer .drawer-backdrop { position: absolute; inset: 0; background: rgba(10,31,68,0.45); }
.mobile-drawer .drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: #fff; box-shadow: var(--shadow-lg);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2);
  transform: translateX(0);
}
.mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer nav a { padding: 14px 6px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--border); }
.mobile-drawer .drawer-actions { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.close-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.close-btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; padding-top: var(--space-8); padding-bottom: var(--space-8); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 25% 20%, #14285c 0%, var(--navy) 62%); }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1200ms ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,31,68,0.9) 0%, rgba(10,31,68,0.62) 45%, rgba(10,31,68,0.12) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; padding-top: var(--space-6); }
.hero h1 { color: #fff; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-7); }

.quick-search {
  background: #fff; border-radius: var(--radius); padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: var(--space-3);
  align-items: end;
}
.quick-search .field { display: flex; flex-direction: column; gap: 6px; }
.quick-search label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.trust-chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.trust-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.trust-chip svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }

/* Form controls (shared) */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
label { font-weight: 600; font-size: 14px; color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field-error { color: var(--red); font-size: 13px; margin: 4px 0 0; display: none; }
.field-error.is-visible { display: block; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-field input { width: 18px; height: 18px; margin-top: 2px; }
.checkbox-field label { font-weight: 500; }

/* Stats */
.stats { background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); color: var(--orange); }
.stat-label { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; }

/* Stock grid & filters */
.stock-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; margin-bottom: var(--space-5); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); }
.filter-chip {
  border: 1.5px solid var(--border); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; flex: 1; }
.filters-row select { width: auto; min-width: 140px; }
.result-count { color: var(--muted); font-size: 14px; margin: 0; white-space: nowrap; }

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.car-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.car-media { position: relative; aspect-ratio: 4 / 3; background: var(--navy); overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.car-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; color: #fff;
}
.car-badge--new { background: var(--blue); }
.car-badge--price-drop { background: var(--orange); color: var(--navy); }
.car-badge--reserved { background: var(--muted); }
.car-badge--sold { background: var(--ink); }
.car-media.is-sold img { filter: grayscale(1); opacity: 0.6; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 999px; border: none;
  background: rgba(255,255,255,0.92); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.fav-btn svg { width: 19px; height: 19px; color: var(--muted); transition: color 150ms ease, transform 150ms ease; }
.fav-btn[aria-pressed="true"] svg { color: var(--red); fill: var(--red); transform: scale(1.1); }
.car-body { padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy); margin: 0; }
.car-meta { color: var(--muted); font-size: 13px; margin: 0; }
.car-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.car-price { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); }
.car-price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.car-monthly { color: var(--muted); font-size: 12px; margin: 0; }
.car-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--space-3); }
.compare-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.compare-check input { width: 16px; height: 16px; }
.car-card-link { text-decoration: none; color: inherit; }
.car-media-link, .car-title-link { text-decoration: none; color: inherit; display: block; }

.empty-state { text-align: center; padding: var(--space-8) var(--space-4); color: var(--muted); }
.empty-state svg { width: 56px; height: 56px; margin-bottom: var(--space-3); color: var(--border); }

/* Compare drawer */
.compare-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--navy); color: #fff; box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform 250ms ease;
  padding: var(--space-4) 0;
}
.compare-drawer.is-open { transform: translateY(0); }
.compare-drawer .container { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.compare-slots { display: flex; gap: var(--space-3); flex: 1; flex-wrap: wrap; }
.compare-slot { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 13px; }
.compare-slot button { background: none; border: none; color: #fff; cursor: pointer; width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.compare-slot button:hover { background: rgba(255,255,255,0.2); }

.compare-modal-backdrop { position: fixed; inset: 0; background: rgba(10,31,68,0.6); z-index: 95; display: none; align-items: center; justify-content: center; padding: var(--space-4); }
.compare-modal-backdrop.is-open { display: flex; }
.compare-modal { background: #fff; border-radius: var(--radius); max-width: 960px; width: 100%; max-height: 86vh; overflow-y: auto; padding: var(--space-6); position: relative; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: var(--space-4); }
.compare-table th, .compare-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.compare-table th { color: var(--muted); font-weight: 600; width: 130px; }

/* Loan calculator */
.loan-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
.loan-form .field { margin-bottom: var(--space-5); }
.range-row { display: flex; align-items: center; gap: var(--space-3); }
.range-row input[type="range"] { width: 100%; accent-color: var(--orange); }
.range-value { font-weight: 700; color: var(--navy); min-width: 48px; text-align: right; }
.tenure-group { display: flex; gap: 8px; }
.tenure-btn { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; }
.tenure-btn.is-active { border-color: var(--blue); background: rgba(22,82,240,0.08); color: var(--blue); }
.loan-result { background: var(--navy); border-radius: var(--radius); padding: var(--space-6); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.loan-result .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 46px); color: var(--orange); margin: 8px 0; }
.loan-result-row { display: flex; justify-content: space-between; font-size: 14px; color: rgba(255,255,255,0.8); padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.loan-disclaimer { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: var(--space-4); }

/* Sell / trade-in */
.sell-section { background: var(--card); }
.sell-form { max-width: 640px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.sell-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }

/* KK Promise */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.promise-card { background: #fff; border-radius: var(--radius); padding: var(--space-5); border: 1px solid var(--border); text-align: center; }
.promise-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,122,26,0.12); color: var(--orange); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-3); }
.promise-icon svg { width: 28px; height: 28px; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
.step-card { position: relative; padding: var(--space-5); background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--border); margin-bottom: var(--space-2); }

/* Reviews */
.reviews-track-wrap { overflow: hidden; position: relative; }
.reviews-track { display: flex; gap: var(--space-4); transition: transform 400ms ease; }
.review-card { flex: 0 0 320px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: var(--space-5); }
.review-stars { color: var(--orange); font-size: 15px; letter-spacing: 2px; margin-bottom: var(--space-2); }
.review-name { font-weight: 700; color: var(--navy); margin-top: var(--space-3); }
.reviews-nav { display: flex; gap: 8px; justify-content: center; margin-top: var(--space-5); }
.reviews-nav button { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.reviews-nav button svg { width: 18px; height: 18px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: var(--space-4) 4px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--navy); }
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 200ms ease; color: var(--muted); }
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 250ms ease; }
.faq-answer p { padding: 0 4px var(--space-4); margin: 0; }

/* Visit us */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: stretch; }
.visit-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 340px; }
.visit-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.visit-info { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: var(--space-6); }
.visit-info dl { margin: 0; }
.visit-info dt { font-weight: 700; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-top: var(--space-4); }
.visit-info dd { margin: 4px 0 0; color: var(--muted); }
.visit-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: var(--space-8) 0 var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
.footer-grid h4 { color: #fff; font-size: 14px; }
.footer-grid a { color: rgba(255,255,255,0.75); text-decoration: none; display: block; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-3); }
.footer-brand .brand-word { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); font-size: 13px; }

/* Floating WhatsApp + mobile sticky bar */
.fab-whatsapp {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 50;
  width: 58px; height: 58px; border-radius: 999px; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); text-decoration: none;
}
.fab-whatsapp svg { width: 28px; height: 28px; }
.mobile-sticky-bar { display: none; }

/* Toasts */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(90vw, 380px); }
.toast {
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px); transition: opacity 200ms ease, transform 200ms ease;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--success { background: var(--green); }
.toast--error { background: var(--red); }

/* Demo note */
.demo-note { font-size: 12px; color: var(--muted); background: rgba(22,82,240,0.06); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: var(--space-5); }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 10px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 200; text-decoration: none; transition: top 150ms ease;
}
.skip-link:focus { top: 10px; }
[data-reveal] { opacity: 1; }

/* ==================== pro/ booking flow components ==================== */

/* Buy / Rent hero toggle */
.hero-mode-toggle { display: inline-flex; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 4px; margin-bottom: var(--space-5); }
.hero-mode-toggle button { border: none; background: transparent; color: #fff; font-weight: 700; font-size: 14px; padding: 9px 20px; border-radius: 999px; cursor: pointer; }
.hero-mode-toggle button.is-active { background: var(--orange); color: var(--navy); }

/* Generic two-column booking layout: form + sticky summary panel */
.booking-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: var(--space-7); align-items: start; }
.booking-form-col .admin-card, .booking-form-col .panel-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); margin-bottom: var(--space-5); }
.panel-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.summary-col { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.summary-car { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.summary-car img { width: 88px; height: 66px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.summary-car h3 { margin: 0 0 2px; font-size: 16px; }
.summary-car p { margin: 0; font-size: 13px; }

/* Date/slot picker */
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.slot-btn { border: 1.5px solid var(--border); background: #fff; color: var(--navy); border-radius: var(--radius-sm); padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.slot-btn.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot-btn:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.slot-empty { color: var(--muted); font-size: 14px; }

/* Price breakdown */
.price-breakdown { width: 100%; border-collapse: collapse; }
.price-breakdown td { padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.price-breakdown td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.price-breakdown tr.total td { border-bottom: none; border-top: 2px solid var(--navy); padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--navy); }
.price-breakdown tr.deposit-row td { color: var(--muted); font-style: italic; }

/* DEMO payment strip */
.demo-strip { background: var(--red); color: #fff; font-weight: 700; font-size: 13px; text-align: center; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: var(--space-5); letter-spacing: 0.02em; }

/* Payment method tabs */
.pay-tabs { display: flex; gap: 8px; margin-bottom: var(--space-5); flex-wrap: wrap; }
.pay-tab { flex: 1; min-width: 120px; border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-sm); padding: 12px; font-weight: 700; cursor: pointer; color: var(--navy); }
.pay-tab.is-active { border-color: var(--blue); background: rgba(22,82,240,0.08); color: var(--blue); }
.pay-panel { display: none; }
.pay-panel.is-active { display: block; }
.bank-list, .ewallet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bank-btn { border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-sm); padding: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.bank-btn.is-selected { border-color: var(--green); background: rgba(18,161,80,0.08); }

/* Order countdown */
.order-timer { display: flex; align-items: center; justify-content: space-between; background: rgba(255,122,26,0.1); border: 1px solid var(--orange); border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: var(--space-5); font-weight: 700; color: var(--orange-ink); }
.order-timer.is-expired { background: rgba(229,72,77,0.1); border-color: var(--red); color: var(--red); }

/* Status timeline (my-booking / receipt) */
.status-timeline { display: flex; gap: 0; margin: var(--space-5) 0; }
.status-timeline .step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--muted); font-weight: 600; }
.status-timeline .step::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 999px; background: var(--border); margin: 0 auto 6px; }
.status-timeline .step.is-done::before { background: var(--green); }
.status-timeline .step.is-current::before { background: var(--orange); }
.status-timeline .step.is-bad::before { background: var(--red); }

/* Receipt */
.receipt-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-7); max-width: 640px; margin: 0 auto; }
.receipt-head { text-align: center; margin-bottom: var(--space-6); }
.receipt-ref { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; }
.receipt-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.receipt-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
@media print {
  .site-header, .site-footer, .fab-whatsapp, .receipt-actions, .mobile-sticky-bar { display: none !important; }
  body { background: #fff; }
}

/* Rental fleet grid */
.rent-search { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--space-5); display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: var(--space-3); align-items: end; margin-bottom: var(--space-6); }
.rent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.rent-card-unavailable { opacity: 0.55; }
.rent-card-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; z-index: 2; }

/* Addon / driver checkboxes */
.addon-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.addon-row label { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.addon-row input { width: 18px; height: 18px; }
.addon-row span.price { color: var(--muted); font-weight: 400; font-size: 13px; }

/* My booking lookup */
.lookup-form { max-width: 480px; margin: 0 auto var(--space-7); background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: var(--space-6); box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; }
  .summary-col { position: static; }
  .rent-search { grid-template-columns: 1fr 1fr; }
  .rent-search .btn { grid-column: span 2; }
  .bank-list, .ewallet-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rent-search { grid-template-columns: 1fr; }
  .rent-search .btn { grid-column: 1; }
  .receipt-card { padding: var(--space-5); }
}

/* Responsive */
@media (max-width: 1024px) {
  .promise-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .visit-grid { grid-template-columns: 1fr; }
  .loan-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-phone span { display: none; }
  .menu-toggle { display: flex; }
  .quick-search { grid-template-columns: 1fr 1fr; }
  .quick-search .btn { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .sell-form .grid-2 { grid-template-columns: 1fr; }
  section { padding: var(--space-8) 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
  .promise-grid, .steps-grid { grid-template-columns: 1fr; }
  .quick-search { grid-template-columns: 1fr; }
  .quick-search .btn { grid-column: 1; }
  .fab-whatsapp { bottom: 84px; right: var(--space-4); }
  /* The header can't fit logo + phone + WhatsApp button + menu toggle at this width;
     phone/WhatsApp stay reachable via the mobile drawer, the sticky bottom bar and the
     floating WhatsApp button, so drop them from the header itself. */
  .site-header .container { gap: var(--space-3); }
  .header-phone, #header-wa-link, #header-book-btn { display: none; }
  .utility-bar { display: none; }
  .mobile-sticky-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(10,31,68,0.08);
    padding: 10px var(--space-3); gap: 8px;
  }
  .mobile-sticky-bar a, .mobile-sticky-bar button { flex: 1; font-size: 13px; padding: 11px 8px; }
  body { padding-bottom: 74px; }
  .compare-drawer .container { flex-direction: column; align-items: stretch; }
}

/* Photo band under the KK Promise */
.photo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.photo-band figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 6px 20px rgba(10,31,68,0.08); }
.photo-band img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-band figcaption { padding: 12px 16px; font-weight: 600; color: var(--navy); }
@media (max-width: 760px) { .photo-band { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(10,31,68,0.78) 0%, rgba(10,31,68,0.6) 55%, rgba(10,31,68,0.85) 100%); }
}

/* ==================== "All-in-one" platform home page ==================== */

/* Hero tabbed booking widget */
.hero-widget { margin-top: var(--space-6); }
.hero-tabs { display: flex; gap: 4px; position: relative; z-index: 1; }
.hero-tab {
  background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-bottom: none;
  border-radius: 10px 10px 0 0; padding: 11px 18px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: var(--font-body);
}
.hero-tab.is-active { background: #fff; color: var(--navy); }
.hero-tabpanel[hidden] { display: none !important; }

/* Service hub */
.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.hub-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); display: flex; flex-direction: column; }
.hub-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(22,82,240,0.1); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3); }
.hub-icon svg { width: 26px; height: 26px; }
.hub-tile ul { list-style: none; margin: var(--space-3) 0 var(--space-4); padding: 0; flex: 1; }
.hub-tile li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); padding: 3px 0; }
.hub-tile li svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* Live today strip */
.live-strip { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5) var(--space-6); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.live-stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); color: var(--blue); }
.live-stat-label { font-size: 13px; color: var(--muted); margin: 2px 0 0; }

/* Availability chip + next-slot line on cards */
.avail-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-top: 6px; }
.avail-chip::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.avail-chip--free { background: rgba(18,161,80,0.12); color: var(--green); }
.avail-chip--busy { background: rgba(255,122,26,0.14); color: var(--orange-ink); }
.next-slot { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.car-card-actions { display: flex; gap: 8px; margin-top: var(--space-3); flex-wrap: wrap; }
.car-card-actions .btn { flex: 1; min-width: 120px; }
.car-card-actions .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* How online booking works — content tabs */
.how-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: var(--space-6); flex-wrap: wrap; }
.how-tab { border: 1.5px solid var(--border); background: #fff; color: var(--navy); border-radius: 999px; padding: 9px 20px; font-weight: 700; font-size: 14px; cursor: pointer; }
.how-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.how-panel[hidden] { display: none !important; }

/* Payment & trust strip */
.trust-strip { background: var(--navy); border-radius: var(--radius); padding: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; }
.trust-strip-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-strip-methods span { background: rgba(255,255,255,0.1); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.trust-strip-notes { display: flex; flex-direction: column; gap: 6px; }
.trust-strip-notes p { margin: 0; color: rgba(255,255,255,0.8); font-size: 13px; }

/* Floating "Book" speed-dial */
.speed-dial { position: fixed; right: var(--space-5); bottom: 92px; z-index: 51; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.speed-dial-menu { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.speed-dial:not(.is-open) .speed-dial-menu { display: none; }
.speed-dial-item {
  display: flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-md); white-space: nowrap;
}
.speed-dial-item svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.speed-dial-toggle {
  width: 58px; height: 58px; border-radius: 999px; background: var(--blue); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.speed-dial-toggle svg { width: 26px; height: 26px; transition: transform 200ms ease; }
.speed-dial.is-open .speed-dial-toggle svg { transform: rotate(45deg); }

/* Step indicator on inner flow pages */
.step-indicator { display: flex; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-6); padding: 0; flex-wrap: wrap; }
.step-indicator li { flex: 1; min-width: 110px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 4px; border-bottom: 3px solid var(--border); }
.step-indicator li[aria-current="step"] { color: var(--blue); border-bottom-color: var(--blue); }
.step-indicator li.is-done { color: var(--green); border-bottom-color: var(--green); }

@media (max-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .live-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
  .live-strip { grid-template-columns: 1fr 1fr; padding: var(--space-4); }
  .hero-tabs { flex-wrap: wrap; }
  .hero-tab { flex: 1; min-width: 45%; }
  .speed-dial { bottom: 84px; }
  .trust-strip { flex-direction: column; align-items: flex-start; }
}
