@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg-deep: #060608;
  --bg: #0c0c0f;
  --surface: #141418;
  --surface-elevated: #1c1c22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #d4af37;
  --accent-dim: #a0862f;
  --glow: rgba(212, 175, 55, 0.35);
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
}
/* ── Navigation ─────────────────────────────────────────────── */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 10px 0;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.site-nav-inline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.site-nav-inline a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.site-nav-inline a:hover { background: rgba(255,255,255,0.06); }
.site-nav-inline a.active { color: var(--accent); }
.site-nav-inline a.active::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile drawer — pops from top */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9500;
  background: rgba(8,8,12,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  padding-top: var(--header-h);
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}
.mobile-drawer-inner a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
}
.mobile-drawer-inner a:hover { background: var(--surface-elevated); }
.mobile-drawer-inner a.active {
  color: var(--accent);
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.08);
}
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(0,0,0,0.5);
}
.mobile-drawer-backdrop.is-open { display: block; }

@media (max-width: 767px) {
  .nav-toggle { display: flex; align-items: center; }
  .site-nav-inline { display: none; }
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 175, 55, 0.09), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(99, 102, 241, 0.06), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(212, 175, 55, 0.05), transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}



.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9100; /* above nav drawer */
  background: rgba(12, 12, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 10px 0;
}

/* Brand always pinned to the left */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  margin-right: auto;
}

/* Inline nav links (desktop) */




@media (max-width: 640px) {
  
}

.brand-logo {
  display: block;
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Admin dashboard vertical rhythm */
#adminSection > .admin-header {
  margin-bottom: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

#adminSection > * + * {
  margin-top: 2.5rem;
}

#adminSection .enquiries-panel h2,
#adminSection #carForm h2,
#adminSection #mediaForm h2,
#adminSection > .card h2 {
  margin-top: 0;
}

.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;
}













@media (max-width: 767px) {
  

  

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  
}

@media (min-width: 768px) {
  
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6rem) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* Cards & grid */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  margin: 2.5rem auto 3.5rem;
}

.card {
  background: linear-gradient(145deg, var(--surface-elevated) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.narrow {
  max-width: 440px;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #0a0a0a;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px var(--glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--glow);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  background: #25252c;
  box-shadow: none;
}

.page-main {
  padding: 2rem 0 3.5rem;
}

/* Car grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.car-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.car-card .img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--surface);
  overflow: hidden;
}

.car-card .img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  z-index: 1;
}

.car-card .img-wrap.loaded::before {
  display: none;
}

.car-card .img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.car-card .img-wrap.loaded img {
  opacity: 1;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@media (max-width: 480px) {
  .car-card .img-wrap {
    height: 220px;
  }
}

.car-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.car-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.car-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.empty-message {
  color: var(--muted);
  margin-top: 1.5rem;
}

.hidden {
  display: none !important;
}

.error-message {
  color: var(--danger);
  margin-top: 0.75rem;
}

.success-message {
  color: #4ade80;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

.hint strong {
  color: var(--accent);
}

/* Forms */
.stack {
  display: grid;
  gap: 0.85rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

label input,
label textarea,
label select {
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font: inherit;
  background: var(--bg-deep);
  color: var(--text);
}

label input:focus,
label textarea:focus,
label select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.admin-car-row {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.admin-car-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.admin-car-row p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-car-row .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.media-list {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.media-list p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
}

.section-block {
  margin: 2.25rem 0;
}

.section-block h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-count {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.media-thumb {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.media-thumb:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: scale(1.02);
}

@media (max-width: 480px) {
  .media-thumb {
    height: 100px;
  }
}

/* Modal */
.media-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.modal-content {
  max-width: min(94vw, 1200px);
  max-height: 88vh;
}

.modal-content img,
.modal-content video {
  max-width: min(94vw, 1200px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal-btn {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 24, 0.85);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.modal-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent);
}

.modal-btn.close {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
}

.modal-btn.nav {
  top: 50%;
  transform: translateY(-50%);
}

#modalPrev {
  left: max(10px, env(safe-area-inset-left));
}

#modalNext {
  right: max(10px, env(safe-area-inset-right));
}

@media (max-width: 640px) {
  .modal-btn.nav {
    top: auto;
    bottom: max(20px, env(safe-area-inset-bottom));
    transform: none;
  }

  #modalPrev {
    left: calc(50% - 52px);
  }

  #modalNext {
    right: calc(50% - 52px);
    left: auto;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 8, 0.96);
  padding: 1.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer--rich {
  padding: 2.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.75rem 2rem;
  padding-bottom: 2rem;
}

.footer-col p {
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.footer-name {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1.25;
}

.footer-tag {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-line {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.55;
}

.footer-col-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.35rem;
  display: inline-block;
}

.footer-contact-col a {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.footer-address p:last-child {
  margin-bottom: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.35rem;
  text-align: center;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.fleet-section {
  margin: 2rem auto 3rem;
  text-align: center;
}

.fleet-heading {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  text-align: center;
}

.fleet-heading h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.fleet-heading p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36rem;
}

.fleet-section .cars-grid {
  justify-content: center;
  margin-top: 1.75rem;
}

#adminMsg {
  margin-top: 1rem;
  min-height: 1.25rem;
}

.enquiries-panel .hint a {
  color: var(--accent);
}

.enquiries-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

.enquiry-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  background: var(--surface);
}

.enquiry-row--unread {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.07);
}

.enquiry-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.enquiry-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.enquiry-row--unread .enquiry-badge {
  color: #fbbf24;
}

.enquiry-time {
  font-size: 0.82rem;
  color: var(--muted);
}

.enquiry-who {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.enquiry-who a {
  color: var(--accent);
}

.enquiry-interest {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.enquiry-msg {
  margin: 0 0 0.85rem;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.95rem;
}

.enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.enquiry-form {
  max-width: 520px;
}

.enquiry-msg.public {
  margin-top: 1rem;
  min-height: 1.25rem;
}

#enquiryMsg.success-message {
  color: #86efac;
}

#enquiryMsg.error-message {
  color: var(--danger);
}

/* ════════════════════════════════════════════════════════════
   SAUEBABA CARS — ADDITIONS v2
   Brand wordmark, toast, progress bar, admin UX improvements
   ════════════════════════════════════════════════════════════ */

/* ── Toast ──────────────────────────────────────────────────── */
.sc-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 9999;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: min(340px, calc(100vw - 2rem));
  pointer-events: none;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}
.sc-toast:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}
.sc-toast--ok  { background: #14532d; border: 1px solid #166534; color: #86efac; }
.sc-toast--err { background: #450a0a; border: 1px solid #7f1d1d; color: #fca5a5; }

/* ── Progress bar ───────────────────────────────────────────── */
.sc-progress {
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
}
.sc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sc-progress-label strong { color: var(--text); }
.sc-progress-track {
  height: 6px;
  background: var(--bg-deep);
  border-radius: 3px;
  overflow: hidden;
}
.sc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 3px;
  transition: width 0.25s ease;
  min-width: 4px;
}

/* ── Button loading state ───────────────────────────────────── */
.btn--loading {
  opacity: 0.65;
  cursor: wait !important;
}

/* ── Admin header right side ────────────────────────────────── */
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.auto-refresh-label {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Enquiry new badge ──────────────────────────────────────── */
.enq-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(212,175,55,0.18);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── 2-column form row ──────────────────────────────────────── */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 520px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Required star ──────────────────────────────────────────── */
.req { color: var(--danger); margin-left: 2px; }

/* ── Admin car row — improved ───────────────────────────────── */
.admin-car-row {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}
.admin-car-row:first-child { border-top: none; }
.acr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.acr-info { flex: 1; min-width: 0; }
.acr-title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acr-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.acr-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
@media (max-width: 500px) {
  .acr-header { flex-direction: column; }
  .acr-actions { width: 100%; }
  .acr-actions .btn { flex: 1; text-align: center; justify-content: center; }
}

/* ── Status pill ────────────────────────────────────────────── */
.status-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.pill--green { background: rgba(34,197,94,0.15);  color: #86efac; }
.pill--red   { background: rgba(239,68,68,0.15);  color: #fca5a5; }
.pill--grey  { background: rgba(161,161,170,0.12); color: var(--muted); }

/* ── Media items row ────────────────────────────────────────── */
.media-items-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.media-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 6px 3px 8px;
  font-size: 0.78rem;
}
.media-item-sec {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.delete-media-btn {
  padding: 1px 5px !important;
  font-size: 0.72rem !important;
  box-shadow: none !important;
  line-height: 1.4;
  min-height: unset !important;
}

/* ── Mobile input zoom fix (iOS) ────────────────────────────── */
@media (max-width: 767px) {
  label input,
  label textarea,
  label select {
    font-size: 16px;
  }
  .card { padding: 1rem; }
  #adminSection > * + * { margin-top: 1.5rem; }
}

/* ── Brand name font ──────────────────────────────────────── */
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Hero cinematic ────────────────────────────────────────── */
.hero--cinematic {
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Two crossfading background layers */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,5,0,0.82) 0%, rgba(6,6,10,0.55) 100%);
}
.hero-bg-layer-1 {
  background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1400&q=80');
  opacity: 1;
  top: -25%;
  height: 150%;
  will-change: transform;
  transform: translateY(0px);
}


.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: 1;
}

/* push hero content above bg layers */
.hero--cinematic .container {
  position: relative;
  z-index: 2;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ── Animated stats ────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat .stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .stat-plus {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
}
.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Why Choose Us ─────────────────────────────────────────── */
.why-section {
  margin: 3.5rem auto;
}
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.why-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
}
.why-icon {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
}
.why-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-section {
  margin: 0 auto 4rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
}
.testimonial-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  font-size: 0.9rem;
  color: var(--text);
}
.testimonial-location {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Status badges ─────────────────────────────────────────── */
.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-available {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.status-sold {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.status-hidden {
  background: rgba(161,161,170,0.18);
  color: var(--muted);
  border: 1px solid var(--border);
}
.car-card--sold .img-wrap img {
  filter: grayscale(60%);
  opacity: 0.7;
}

/* ── WhatsApp float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 8000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* ── Car detail page ───────────────────────────────────────── */
.car-detail-card { padding: 1.5rem 1.75rem; }
.car-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0 0.75rem;
}
.car-detail-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  justify-content: flex-start;
}

/* ── Image Carousel ────────────────────────────────────────── */
.carousel {
  margin-bottom: 1.75rem;
}
.carousel-track-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16/9;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.75); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── Cinematic section wrapper (shared by all car-bg sections) ── */
.cinematic-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.cinematic-car-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  will-change: opacity;
  z-index: 0;
}
.cinematic-car-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-deep) 0%,
    rgba(6,6,10,0.72) 25%,
    rgba(6,6,10,0.72) 75%,
    var(--bg-deep) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.cinematic-wrap > *:not(.cinematic-car-bg):not(.cinematic-car-overlay) {
  position: relative;
  z-index: 2;
}

/* ── Why section with car background ──────────────────────── */
.mid-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.mid-car-bg {
  position: absolute;
  top: -20%;
  left: 0; right: 0;
  height: 140%;
  background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1400&q=80');
  background-size: cover;
  background-position: center 55%;
  opacity: 0;
  will-change: opacity, transform;
  z-index: 0;
}
.mid-car-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-deep) 0%,
    rgba(6,6,10,0.68) 18%,
    rgba(6,6,10,0.68) 82%,
    var(--bg-deep) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.mid-wrap .why-section,
.mid-wrap .testimonials-section {
  position: relative;
  z-index: 2;
}



/* ── Fleet cinematic bg (car 4) ───────────────────────────── */
.fleet-wrap {
  position: relative;
  overflow: hidden;
}
.fleet-car-bg {
  position: absolute;
  top: -15%;
  left: 0; right: 0;
  height: 130%;
  background-image: url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?w=1400&q=80');
  background-size: cover;
  background-position: center 60%;
  opacity: 0;
  will-change: opacity, transform;
  z-index: 0;
}
.fleet-car-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-deep) 0%,
    rgba(6,6,10,0.88) 20%,
    rgba(6,6,10,0.88) 80%,
    var(--bg-deep) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.fleet-wrap .fleet-section {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════════
   BUTTON STANDARDISATION — left-aligned, consistent everywhere
   ══════════════════════════════════════════════════════════════ */

/* All action button groups left-aligned */
.hero-cta,
.car-detail-actions,
.acr-actions,
.enquiry-actions {
  justify-content: flex-start;
}

/* Full-width buttons on mobile */
@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; text-align: center; }
  .car-detail-actions { flex-direction: column; }
  .car-detail-actions .btn { width: 100%; justify-content: center; }
}

/* Enquiry form button always left */
.enquiry-form .btn {
  align-self: flex-start;
}
@media (max-width: 600px) {
  .enquiry-form .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE NAV — drops from top with smooth animation
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — general layout fixes
   ══════════════════════════════════════════════════════════════ */

/* Hero */
@media (max-width: 600px) {
  .hero--cinematic { min-height: 100svh; }
  .hero .container { padding-top: 80px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat .stat-num { font-size: 1.8rem; }
}

/* Cards grid */
@media (max-width: 600px) {
  .cars-grid { grid-template-columns: 1fr !important; }
  .why-grid  { grid-template-columns: 1fr !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
}

/* Car detail page */
@media (max-width: 600px) {
  .car-detail-card { padding: 1rem; }
  .car-price { font-size: 1.5rem; }
  .car-detail-actions { gap: 0.6rem; }
}

/* Footer */
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { text-align: center; }
}

/* Carousel full-width on mobile */
@media (max-width: 600px) {
  .carousel-track-wrap { aspect-ratio: 4/3; }
}

/* Enquiry form */
@media (max-width: 600px) {
  .enquiry-form { padding: 1.25rem !important; }
  .narrow { max-width: 100% !important; width: 100% !important; }
}

/* Section headings on mobile */
@media (max-width: 600px) {
  .section-label { font-size: 1.4rem; }
  .fleet-heading h2 { font-size: 1.5rem; }
}
