:root {
  --aqua: #00aff0;
  --aqua-dark: #019dbc;
  --aqua-soft: rgba(0, 175, 240, 0.12);
  --ink: #102033;
  --muted: #64748b;
  --line: rgba(104, 145, 168, 0.34);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-solid: #ffffff;
  --nav-panel: rgba(255, 255, 255, 0.94);
  --dark-glass: rgba(6, 22, 36, 0.76);
  --dark-glass-line: rgba(255, 255, 255, 0.18);
  --bg: #f7fbfd;
  --soft: #eef8fc;
  --shadow: 0 18px 46px rgba(16, 32, 51, 0.13);
  --glow: 0 0 34px rgba(0, 175, 240, 0.22);
  --skid: rgba(16, 32, 51, 0.11);
  --skid-soft: rgba(16, 32, 51, 0.045);
}

:root[data-theme="dark"] {
  --ink: #eef8ff;
  --muted: #a9bdc9;
  --line: rgba(147, 209, 232, 0.2);
  --panel: rgba(7, 21, 34, 0.68);
  --panel-strong: rgba(7, 21, 34, 0.88);
  --panel-solid: #081725;
  --nav-panel: rgba(5, 17, 29, 0.86);
  --dark-glass: rgba(7, 21, 34, 0.74);
  --dark-glass-line: rgba(147, 209, 232, 0.18);
  --bg: #05111d;
  --soft: #071827;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 52px rgba(0, 175, 240, 0.35);
  --skid: rgba(189, 239, 255, 0.13);
  --skid-soft: rgba(189, 239, 255, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255,255,255,0.72), transparent 32%),
    radial-gradient(circle at 14% 12%, rgba(0, 175, 240, 0.13), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(19, 168, 117, 0.12), transparent 24%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background 0.35s ease, color 0.35s ease;
}
body.nav-open { overflow-x: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 14% 12%, rgba(0, 175, 240, 0.18), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(19, 168, 117, 0.1), transparent 25%),
    linear-gradient(180deg, #050d16, var(--bg) 58%, #061421);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.wrap { width: calc(100% - 32px); max-width: 1180px; margin: 0 auto; }
.road-canvas { position: fixed; inset: 0; z-index: -2; opacity: 0.5; pointer-events: none; }
.glass {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.34), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.28);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}
.topbar {
  background: #071421;
  color: #d8f4ff;
  font-size: 13px;
}
.topbar .wrap {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-links { display: flex; gap: 14px; flex-wrap: wrap; }
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-width: 0 0 1px;
  border-radius: 0;
}
.header.glass {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.28), transparent 32%),
    var(--nav-panel);
}
.nav {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  position: relative;
}
.brand { min-width: 200px; max-width: 280px; display: flex; align-items: center; gap: 10px; }
.site-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.78); }
.brand-text { display: grid; gap: 2px; }
.brand strong { font-size: 22px; line-height: 1; overflow-wrap: anywhere; }
.brand .brand-text span { color: var(--aqua); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 800; }
.nav-links a {
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  color: color-mix(in srgb, var(--ink) 82%, var(--aqua));
  transition: background 0.22s ease, color 0.22s ease;
}
.nav-links a:hover {
  color: var(--aqua-dark);
  background: var(--aqua-soft);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-contact-links {
  display: none;
  align-items: center;
  gap: 6px;
}
.nav-icon-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.nav-icon-link:hover {
  color: var(--aqua-dark);
  background: var(--aqua-soft);
}
.nav-icon-link .ui-icon {
  width: 20px;
  height: 20px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--panel-strong);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.theme-switch {
  min-width: 72px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.48), transparent),
    var(--panel-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32);
}
:root[data-theme="dark"] .theme-switch {
  color: #eaf8ff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent),
    var(--panel-strong);
}
:root[data-theme="light"] .theme-switch .moon,
:root[data-theme="dark"] .theme-switch .sun { display: none; }
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.22s ease, filter 0.22s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:focus-visible, .field:focus-visible, .theme-switch:focus-visible {
  outline: 3px solid rgba(0, 175, 240, 0.28);
  outline-offset: 2px;
}
.btn.secondary {
  background: var(--panel-strong);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.hero .btn.secondary,
.cta .btn.secondary {
  color: #062334;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.28);
}
.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 16, 27, 0.96), rgba(5, 36, 51, 0.78) 48%, rgba(5, 18, 31, 0.4)),
    linear-gradient(180deg, rgba(3, 14, 24, 0.22), rgba(3, 14, 24, 0.72)),
    url("https://wangariwamagari.com/wp-content/uploads/2024/01/cropped-WangariWaMagari-1.png") center right / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -22% 24%;
  z-index: -1;
  height: 46%;
  opacity: 0.42;
  background:
    repeating-linear-gradient(102deg, transparent 0 28px, rgba(255,255,255,0.12) 28px 32px, transparent 32px 62px);
  transform: skewY(-7deg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  align-items: center;
  gap: 48px;
  padding: 94px 0 68px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #bdefff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.eyebrow.aqua {
  color: var(--aqua-dark);
  border-color: rgba(0, 175, 240, 0.25);
  background: rgba(0, 175, 240, 0.1);
}
h1, h2, h3 { letter-spacing: 0; }
h1 { margin: 22px 0 18px; max-width: 760px; font-size: clamp(44px, 7vw, 84px); line-height: 0.95; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; }
.hero-copy h1 {
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}
.hero-copy .card-description {
  max-width: 680px;
  color: #f0fbff;
  font-size: 18px;
}
.hero-copy .card-description p {
  color: inherit;
}
.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  padding: 7px 11px;
  color: #ecfbff;
  background: rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 900;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.social-strip a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 8px;
  padding: 0;
  color: #e7f7fb;
  background: rgba(255,255,255,0.1);
}
.social-strip a:hover { background: rgba(0,175,240,0.22); }
.social-strip .ui-icon {
  width: 21px;
  height: 21px;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  contain: paint;
  border-radius: 8px;
  padding: 22px;
}
.hero .glass,
.trust .glass {
  color: #fff;
  border-color: var(--dark-glass-line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), transparent 36%),
    var(--dark-glass);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.18);
}
.speed-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.16) 35%, transparent 46%);
  animation: speedSweep 3.4s ease-in-out infinite;
}
@keyframes speedSweep { 0% { transform: translateX(-110%); } 55%,100% { transform: translateX(110%); } }
.hero-panel-head,
.hero-panel-note {
  position: relative;
}
.hero-panel-head {
  margin-bottom: 18px;
}
.hero-panel-head span,
.hero-panel-note {
  color: #bdefff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-panel-head strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 26px;
  line-height: 1.08;
}
.hero-panel-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: #e5f8ff;
  line-height: 1.45;
  text-transform: none;
}
.stat-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { padding: 16px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; background: rgba(255,255,255,0.1); }
.stat strong { display: block; font-size: 30px; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: #c9edf8; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.section { overflow: hidden; padding: 82px 0; }
.section, .vehicle-grid, .service-grid, .testimonial-grid, .blog-grid { position: relative; }
.section.soft::before {
  content: "";
  position: absolute;
  inset: 38px 0 auto;
  height: 220px;
  pointer-events: none;
  opacity: 0.34;
  background:
    repeating-linear-gradient(102deg, transparent 0 18px, var(--skid-soft) 18px 22px, transparent 22px 40px),
    repeating-linear-gradient(104deg, transparent 0 24px, var(--skid-soft) 24px 28px, transparent 28px 52px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 78%, transparent);
  transform: skewY(-2deg);
}
.section.soft { background: linear-gradient(180deg, var(--soft), transparent); }
.section > .wrap { position: relative; z-index: 1; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); }
.searchbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}
.brand-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  contain: paint;
  max-width: 100%;
  margin: -8px 0 14px;
  padding: 12px;
  border-radius: 8px;
  scrollbar-width: thin;
}
.brand-chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--panel-strong);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.brand-chip:hover,
.brand-chip.active {
  transform: translateY(-1px);
  border-color: rgba(0, 175, 240, 0.55);
  color: #fff;
  background: var(--aqua);
}
.field {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.field::placeholder {
  color: rgba(100, 116, 139, 0.72);
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}
:root[data-theme="dark"] .field::placeholder {
  color: rgba(169, 189, 201, 0.72);
}
.vehicle-grid, .service-grid, .testimonial-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.vehicle-card, .service, .testimonial, .blog, .contact-panel, .form-panel, .legal-page {
  border-radius: 8px;
}
.vehicle-card {
  position: relative;
  overflow: visible;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.vehicle-card.glass,
.service.glass,
.testimonial.glass,
.blog.glass,
.contact-panel.glass,
.form-panel.glass,
.legal-page.glass,
.searchbar.glass {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.3), transparent 34%),
    var(--panel-strong);
}
:root[data-theme="dark"] .vehicle-card.glass,
:root[data-theme="dark"] .service.glass,
:root[data-theme="dark"] .testimonial.glass,
:root[data-theme="dark"] .blog.glass,
:root[data-theme="dark"] .contact-panel.glass,
:root[data-theme="dark"] .form-panel.glass,
:root[data-theme="dark"] .legal-page.glass,
:root[data-theme="dark"] .searchbar.glass {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), transparent 34%),
    var(--panel);
}
.vehicle-card::before,
.service::after,
.blog::after,
.testimonial::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.vehicle-card::before {
  width: 76%;
  height: 46px;
  left: -10%;
  bottom: 18px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(100deg, transparent 0 12px, var(--skid) 12px 15px, transparent 15px 28px),
    repeating-linear-gradient(100deg, transparent 0 20px, var(--skid-soft) 20px 24px, transparent 24px 42px);
  filter: blur(0.2px);
  transform: rotate(-5deg) translateX(-10px);
}
.vehicle-card:nth-child(3n + 2)::before {
  left: auto;
  right: -12%;
  bottom: 28px;
  transform: rotate(6deg) translateX(10px);
}
.vehicle-card:nth-child(4n)::before {
  width: 58%;
  bottom: auto;
  top: 44%;
  opacity: 0.22;
}
.vehicle-card:hover {
  border-color: rgba(0, 175, 240, 0.42);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 175, 240, 0.08), var(--glow);
}
.vehicle-card:hover::before,
.vehicle-card:nth-child(2n)::before {
  opacity: 0.34;
}
.vehicle-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #cde4ef; }
.vehicle-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(5, 17, 29, 0.24)),
    linear-gradient(120deg, rgba(255,255,255,0.18), transparent 28%);
  pointer-events: none;
}
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.vehicle-card:hover .vehicle-media img { transform: scale(1.07) translateX(1.5%); }
.badge-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  max-width: calc(100% - 24px);
  z-index: 2;
}
.badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--aqua);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.badge.verified { background: #17a66a; }
.badge.muted { background: rgba(15, 23, 42, 0.74); }
.badge.availability.listed { background: #11845b; }
.badge.availability.sold { background: #c73535; }
.badge.availability.unavailable { background: #b7791f; }
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}
.inventory-page { min-height: auto; padding-top: 72px; }
.vehicle-body, .service, .testimonial, .blog, .contact-panel, .form-panel, .legal-page { padding: 22px; }
.vehicle-body {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent, rgba(0,175,240,0.035)),
    var(--panel-strong);
  border-radius: 0 0 8px 8px;
}
:root[data-theme="dark"] .vehicle-body {
  background:
    linear-gradient(180deg, transparent, rgba(0,175,240,0.055)),
    var(--panel-strong);
}
.vehicle-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.vehicle-card h3 { min-height: 58px; margin: 12px 0 8px; font-size: 20px; line-height: 1.2; }
.vehicle-card p, .service p, .testimonial p, .blog p, .contact-panel p, .legal-page p, .card-description, .page-content { color: var(--muted); }
.vehicle-card-meta-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.comment-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(17,132,91,0.18);
  border-radius: 8px;
  color: #11845b;
  background: rgba(169,242,206,0.18);
  font-size: 12px;
  font-weight: 950;
}
.comment-count-badge .ui-icon {
  width: 15px;
  height: 15px;
}
.card-description p, .page-content p { margin: 0 0 10px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; font-size: 13px; }
.specs span { padding: 7px 8px; border-radius: 8px; background: rgba(0,175,240,0.08); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-row strong { color: var(--aqua-dark); font-size: 19px; }
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.detail-actions .btn {
  min-width: 112px;
}
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.card-actions .btn { min-height: 38px; padding: 8px 11px; }
:root[data-theme="dark"] .price-row strong,
:root[data-theme="dark"] .stars,
:root[data-theme="dark"] .blog time,
:root[data-theme="dark"] .eyebrow.aqua,
:root[data-theme="dark"] .service-mark {
  color: #8be4ff;
}
:root[data-theme="dark"] .eyebrow.aqua {
  border-color: rgba(139, 228, 255, 0.22);
  background: rgba(0, 175, 240, 0.12);
}
:root[data-theme="dark"] .specs span,
:root[data-theme="dark"] .contact-item {
  background: rgba(0, 175, 240, 0.1);
}
.service, .testimonial, .blog {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.service::after, .blog::after, .testimonial::after {
  width: 130px;
  height: 24px;
  right: 18px;
  bottom: 18px;
  background: repeating-linear-gradient(100deg, transparent 0 12px, var(--skid-soft) 12px 15px, transparent 15px 28px);
  transform: rotate(-8deg);
}
.service:nth-child(odd)::after,
.blog:nth-child(2)::after,
.testimonial:nth-child(3)::after {
  opacity: 0.42;
}
.service:hover::after,
.blog:hover::after,
.testimonial:hover::after {
  opacity: 0.6;
  transform: rotate(-8deg) translateX(-6px);
}
.testimonial-images,
.testimonial-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.testimonial-images img,
.testimonial-thumb-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0,175,240,0.08);
}
.testimonial-listing-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #11845b;
  background: rgba(169,242,206,0.18);
  font-size: 12px;
  font-weight: 950;
}
.service-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: rgba(0,175,240,0.12); color: var(--aqua-dark); font-weight: 900; }
.ui-icon { width: 25px; height: 25px; }
.trust {
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(0,175,240,0.2), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(19,168,117,0.16), transparent 28%),
    linear-gradient(180deg, #071e31, #061827);
}
.trust-grid { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 34px; }
.award.glass {
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.88), transparent 34%),
    rgba(255, 255, 255, 0.96);
}
.award {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(180px, 0.78fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  padding: 16px;
}
.award-media {
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #d9eaf1;
}
.award-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
}
.award-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 6px 10px 0;
}
.award span { color: var(--aqua-dark); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.award strong { display: block; margin-top: 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.02; }
.trust .award p {
  margin: 14px 0 0;
  color: #526578;
  font-weight: 750;
}
:root[data-theme="dark"] .award.glass {
  color: #f3fbff;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), transparent 34%),
    rgba(7, 21, 34, 0.88);
}
:root[data-theme="dark"] .trust .award p {
  color: #cfe3ee;
}
.trust p { color: #c7dce7; }
.trust .eyebrow { color: #bdefff; }
.stars, .blog time { color: var(--aqua-dark); font-weight: 900; }
.blog-cover {
  position: relative;
  display: block;
  overflow: hidden;
  margin: -22px -22px 16px;
  border-radius: 8px 8px 0 0;
  background: #d9eaf1;
}
.blog-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.blog:hover .blog-cover img { transform: scale(1.05); }
.mini-read { display: inline-block; margin-top: 14px; color: var(--aqua-dark); font-weight: 900; }
.section-copy { max-width: 560px; color: var(--muted); }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 900;
}
.pagination .page-number {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 175, 240, 0.22);
  border-radius: 8px;
  color: var(--aqua-dark);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 30px rgba(5, 23, 36, 0.08);
}
.pagination .page-number.active {
  color: #fff;
  background: var(--aqua-dark);
}
.pagination .page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination .page-jump label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination .page-jump select {
  width: auto;
  min-width: 82px;
  min-height: 42px;
  border: 1px solid rgba(0, 175, 240, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}
.blog-detail .legal-page { max-width: 980px; }
.blog-gallery {
  margin: 22px 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.auth-page { min-height: 620px; display: grid; align-items: center; }
.auth-wrap { display: grid; place-items: center; }
.auth-form-card {
  width: min(500px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
}
.auth-form-card h1 { margin: 8px 0 4px; font-size: clamp(36px, 5vw, 54px); }
.auth-logo {
  width: 92px;
  max-height: 76px;
  object-fit: contain;
  margin-bottom: 4px;
}
.auth-nudge {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
}
.auth-nudge p { margin: 0; color: var(--muted); }
.vehicle-inquiry-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--panel-solid);
  box-shadow: 0 28px 80px rgba(5, 23, 36, 0.28);
}
.vehicle-inquiry-modal::backdrop {
  background: rgba(3, 12, 20, 0.62);
  backdrop-filter: blur(6px);
}
.inquiry-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.inquiry-modal-head h2 {
  margin-top: 8px;
  font-size: clamp(24px, 5vw, 34px);
}
.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-strong);
  cursor: pointer;
  font-size: 24px;
}
.inquiry-modal-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.vehicle-inquiry-modal .auth-nudge {
  margin: 18px;
}
.member-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(circle at 8% 12%, rgba(23,166,106,0.12), transparent 28%),
    linear-gradient(180deg, rgba(0,175,240,0.05), rgba(17,132,91,0.04));
}
.member-sidebar {
  position: sticky;
  top: 74px;
  height: calc(100vh - 74px);
  overflow: auto;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(6,52,54,0.94), rgba(6,30,42,0.9));
  color: #dff8ef;
}
.member-brand {
  display: grid;
  gap: 4px;
  padding: 22px 18px;
}
.member-brand > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #063436;
  background: #a9f2ce;
  font-size: 22px;
  font-weight: 950;
}
.member-brand strong { color: #fff; font-size: 18px; }
.member-brand small { color: #bdebd9; }
.member-sidebar nav { display: grid; }
.member-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 16px;
  border-left: 4px solid transparent;
  color: #dff8ef;
  font-weight: 850;
}
.member-sidebar nav a:hover,
.member-sidebar nav a.active {
  color: #fff;
  border-left-color: #a9f2ce;
  background: rgba(169,242,206,0.14);
}
.member-sidebar nav span { width: 20px; text-align: center; }
.member-sidebar nav strong { font: inherit; }
.member-main {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(16px, 3vw, 28px);
  align-content: start;
}
.member-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
}
.member-topbar h1 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 58px); }
.member-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.member-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.member-card, .member-panel {
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}
a.member-card {
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
a.member-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17,132,91,0.26);
  background: rgba(169,242,206,0.12);
}
.member-card strong {
  display: block;
  color: #11845b;
  font-size: 38px;
  line-height: 1;
}
.member-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.member-grid .member-panel:only-child {
  max-width: 720px;
}
.member-panel {
  display: grid;
  gap: 14px;
}
.member-panel h2 { font-size: 24px; }
.testimonial-form textarea {
  min-height: 130px;
}
.testimonial-upload {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}
.testimonial-list article {
  overflow: hidden;
}
.member-overview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.member-overview-list a {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-strong);
}
.member-overview-list a:hover {
  border-color: rgba(0,175,240,0.32);
  background: rgba(0,175,240,0.08);
}
.member-overview-list strong {
  color: #063436;
}
.member-overview-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.member-table {
  display: grid;
  gap: 10px;
}
.member-table article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}
.member-table h3, .member-table p { margin: 0; }
.member-table small {
  color: #11845b;
  font-weight: 900;
  text-transform: uppercase;
}
.member-chat-panel {
  gap: 0;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.72)),
    radial-gradient(circle at 20% 10%, rgba(169,242,206,0.24), transparent 30%),
    var(--panel);
}
.member-chat-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
}
.chat-notice {
  margin: 12px 14px 0;
}
.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.chat-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #063436;
  background: #a9f2ce;
  font-weight: 950;
}
.chat-contact h2 {
  margin: 0;
  font-size: 20px;
}
.chat-contact small {
  color: var(--muted);
  font-weight: 800;
}
.chat-jump {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #063436;
  background: rgba(169,242,206,0.22);
  font-size: 12px;
  font-weight: 950;
}
.message-thread {
  display: grid;
  gap: 8px;
  min-height: 320px;
  max-height: min(62vh, 680px);
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(6,52,54,0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(6,52,54,0.035) 25%, transparent 25%),
    transparent;
  background-size: 28px 28px;
  scroll-behavior: smooth;
}
.message-bubble {
  position: relative;
  width: min(74%, 680px);
  display: grid;
  gap: 5px;
  padding: 9px 12px 8px;
  border: 1px solid rgba(6,52,54,0.08);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(6, 52, 54, 0.08);
  overflow-wrap: anywhere;
}
.message-bubble.admin {
  justify-self: start;
  border-top-left-radius: 3px;
  background: #fff;
}
.message-bubble.user {
  justify-self: end;
  border-top-right-radius: 3px;
  background: #d7f8e7;
}
.message-bubble h3,
.message-bubble p {
  margin: 0;
}
.message-bubble h3 {
  color: #063436;
  font-size: 14px;
}
.message-bubble p {
  white-space: pre-wrap;
}
.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #11845b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.message-meta time,
.message-bubble small {
  color: rgba(6,52,54,0.52);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.empty-chat {
  align-self: center;
  justify-self: center;
  max-width: 280px;
  margin: 40px 0;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}
.chat-composer {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
}
.chat-composer input,
.chat-composer textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--panel-strong);
  font: inherit;
}
.chat-composer textarea {
  min-height: 44px;
  max-height: 140px;
  resize: vertical;
}
.chat-composer .btn {
  min-height: 44px;
}
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  border-radius: 8px;
  color: #063436;
  background: #a9f2ce;
  font-weight: 950;
}
.listing-detail { padding-top: 72px; }
.listing-detail-grid { display: block; }
.listing-summary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px 24px;
  align-items: start;
}
.listing-title-block,
.listing-detail-meta {
  grid-column: 2;
}
.listing-summary .listing-gallery {
  grid-column: 1;
  grid-row: 1 / span 4;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
.listing-gallery, .listing-summary { border-radius: 8px; padding: 18px; }
.listing-gallery {
  position: relative;
  min-width: 0;
  user-select: none;
}
.listing-carousel-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #d9eaf1;
}
.listing-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  background: transparent;
  cursor: zoom-in;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.listing-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.listing-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #d9eaf1;
}
.protected-image {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.image-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 74%, rgba(255,255,255,0.08));
}
.carousel-control,
.lightbox-control,
.lightbox-close {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 20, 33, 0.62);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.carousel-control {
  top: 50%;
  width: 42px;
  height: 50px;
  transform: translateY(-50%);
  font-size: 34px;
}
.carousel-control.prev { left: 12px; }
.carousel-control.next { right: 12px; }
.carousel-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 20, 33, 0.66);
  font-weight: 900;
}
.listing-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin-top: 10px;
}
.listing-thumbs button {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #d9eaf1;
  cursor: pointer;
}
.listing-thumbs button.active { border-color: var(--aqua-dark); }
.listing-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.lightbox {
  position: relative;
  width: min(1100px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  border: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(4, 10, 16, 0.92);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(6px); }
.lightbox img {
  width: 100%;
  max-height: calc(100vh - 28px);
  object-fit: contain;
  display: block;
}
.lightbox-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 28px;
}
.lightbox-control {
  top: 50%;
  width: 46px;
  height: 56px;
  transform: translateY(-50%);
  font-size: 38px;
}
.lightbox-control.prev { left: 14px; }
.lightbox-control.next { right: 14px; }
.listing-summary h1 { margin: 10px 0 14px; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; }
.detail-price { margin: 0 0 16px; }
.badge-stack.inline { position: static; margin-bottom: 16px; }
.listing-specs, .detail-attrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.listing-specs span, .detail-attrs span {
  padding: 12px;
  border-radius: 8px;
  background: rgba(0,175,240,0.08);
  font-weight: 900;
}
.listing-specs small, .detail-attrs small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.comment-form { display: grid; gap: 12px; margin-top: 18px; }
.comments-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.dashboard-grid-public { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.dashboard-grid-public > :last-child { grid-column: 1 / -1; }
.admin-panel-like { padding: 22px; border-radius: 8px; }
.section-head.compact { margin-bottom: 16px; }
.comment-list { display: grid; gap: 14px; }
.comment-bubble {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.comment-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,132,91,0.18);
  border-radius: 50%;
  color: #063436;
  background: linear-gradient(135deg, #a9f2ce, #d7f7ff);
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(6,52,54,0.12);
}
.comment-body {
  position: relative;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 2px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.34), transparent 42%),
    var(--panel-strong);
}
.comment-body::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
  transform: rotate(45deg);
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.comment-meta a,
.comment-meta strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}
.comment-meta a:hover {
  color: #11845b;
}
.comment-meta time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.comment-body p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.public-profile {
  background:
    radial-gradient(circle at 12% 12%, rgba(23,166,106,0.12), transparent 28%),
    linear-gradient(180deg, rgba(0,175,240,0.05), rgba(17,132,91,0.04));
}
.public-profile-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.public-profile-card,
.public-profile-comments {
  border-radius: 8px;
  padding: 22px;
}
.public-profile-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}
.public-profile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #063436;
  background: linear-gradient(135deg, #a9f2ce, #d7f7ff);
  font-size: 34px;
  font-weight: 950;
  text-transform: uppercase;
}
.public-profile-card h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 44px);
}
.public-profile-card p {
  margin: 0;
  color: var(--muted);
}
.public-profile-stat {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(0,175,240,0.08);
}
.public-profile-stat strong {
  color: #11845b;
  font-size: 34px;
  line-height: 1;
}
.public-profile-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.captcha-field { display: grid; grid-column: 1 / -1; gap: 7px; color: var(--muted); font-weight: 900; }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 20, 34, 0.94), rgba(0, 123, 154, 0.9) 52%, rgba(3, 20, 34, 0.62)),
    url("https://wangariwamagari.com/wp-content/uploads/2024/01/Untitled-design-4.png") center right / contain no-repeat,
    #071421;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 12% -6% auto auto;
  z-index: -1;
  width: min(48vw, 560px);
  height: 70%;
  opacity: 0.4;
  background:
    repeating-linear-gradient(104deg, transparent 0 28px, rgba(255,255,255,0.18) 28px 33px, transparent 33px 62px);
  transform: skewY(-8deg);
}
.cta-grid { min-height: 360px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-copy {
  max-width: 620px;
}
.cta h2 {
  margin-top: 14px;
  color: #fff;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}
.cta .section-copy,
.cta .section-copy p,
.cta p { color: #eefbff; }
.cta-action-panel {
  width: min(100%, 380px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(4, 16, 28, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
}
.cta-action-note span {
  color: #a9f2ce;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.cta-action-note strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 24px;
  line-height: 1.12;
}
.cta-action-panel .hero-actions {
  margin-top: 18px;
}
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.contact-item { display: block; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,175,240,0.07); font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
textarea.field { min-height: 126px; resize: vertical; grid-column: 1 / -1; }
.notice { padding: 12px; border-radius: 8px; color: #063f2b; background: rgba(19,168,117,0.16); font-weight: 800; }
.notice.error { color: #7a1f1f; background: rgba(219,59,59,0.14); }
.footer { padding: 42px 0 24px; color: #b6c7d4; background: #071421; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
.footer h3 { margin: 0 0 12px; color: #fff; }
.footer a { display: block; margin: 7px 0; color: #b6c7d4; }
.copyright { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; }
.hidden { display: none !important; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.page-hero { min-height: 70vh; display: grid; align-items: center; }

@media (max-width: 1120px) {
  .topbar .wrap { min-height: 44px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 8px 0; }
  .topbar-links { width: 100%; gap: 8px 12px; }
  .nav { min-height: 68px; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 0; }
  .brand { min-width: 0; max-width: calc(100% - 58px); }
  .brand strong { font-size: 20px; }
  .site-logo { width: 42px; height: 42px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--nav-panel);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    background: rgba(0,175,240,0.07);
  }
  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .hero-grid, .trust-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .comments-grid { grid-template-columns: 1fr; }
  .public-profile-grid { grid-template-columns: 1fr; }
  .public-profile-card { position: static; }
  .dashboard-grid-public { grid-template-columns: 1fr; }
  .member-shell { grid-template-columns: 1fr; }
  .member-sidebar {
    position: sticky;
    top: 58px;
    z-index: 40;
    height: auto;
    border-width: 0 0 1px;
  }
  .member-brand { display: none; }
  .member-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .member-sidebar nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    scroll-snap-align: start;
  }
  .member-sidebar nav a:hover,
  .member-sidebar nav a.active {
    border-left-color: transparent;
    border-bottom-color: #a9f2ce;
  }
  .member-grid, .member-metrics { grid-template-columns: 1fr; }
  .message-bubble { width: min(86%, 620px); }
  .vehicle-grid, .service-grid, .testimonial-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .listing-gallery, .listing-summary { padding: 14px; }
}
@media (max-width: 820px) {
  .topbar {
    display: none;
  }
  .nav {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .brand .brand-text span {
    display: none;
  }
  .nav-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 42px;
    height: 42px;
    margin-left: 0;
  }
  .nav-links {
    top: calc(100% + 4px);
    grid-column: 1 / -1;
  }
  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .nav-contact-links {
    display: flex;
  }
  .nav-primary-cta {
    display: none;
  }
  .theme-switch {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 0;
  }
  .theme-switch .sun,
  .theme-switch .moon {
    font-size: 12px;
  }
  .nav-actions .btn,
  .nav-actions .nav-icon-link {
    width: 42px;
    min-width: 42px;
  }
  .listing-detail {
    padding-top: 36px;
  }
  .listing-detail-grid {
    gap: 14px;
  }
  .listing-summary {
    grid-template-columns: 1fr;
  }
  .listing-title-block,
  .listing-gallery,
  .listing-detail-meta {
    grid-column: 1;
  }
  .listing-title-block {
    order: 1;
  }
  .listing-summary {
    order: 1;
  }
  .listing-summary .listing-gallery {
    order: 2;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .listing-detail-meta {
    order: 3;
  }
  .listing-carousel-frame,
  .listing-slide,
  .listing-main-image {
    width: 100%;
    max-width: 100%;
  }
  .listing-carousel-frame { aspect-ratio: 4 / 3; }
  .listing-main-image { object-fit: cover; }
  .listing-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .listing-thumbs button {
    flex: 0 0 clamp(72px, 24vw, 112px);
    scroll-snap-align: start;
  }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .topbar-links a { padding: 2px 0; }
  .brand { gap: 8px; }
  .brand strong { font-size: 18px; }
  .brand .brand-text span { font-size: 10px; }
  .site-logo { width: 38px; height: 38px; }
  .nav-links {
    grid-template-columns: 1fr;
  }
  .topbar .wrap, .section-head, .cta-grid { align-items: flex-start; flex-direction: column; }
  .hero-actions, .btn { width: 100%; }
  .member-main { padding: 12px 10px 28px; gap: 12px; }
  .member-topbar { align-items: flex-start; flex-direction: column; }
  .member-actions { justify-content: flex-start; width: 100%; }
  .member-sidebar nav strong { display: none; }
  .member-sidebar nav span { width: auto; font-size: 17px; }
  .member-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .member-overview-list { grid-template-columns: 1fr; }
  .member-card { padding: 12px 10px; }
  .member-card strong { font-size: 28px; }
  .member-card span { font-size: 10px; }
  .member-chat-head { padding: 12px; }
  .chat-jump { display: none; }
  .message-thread {
    min-height: 340px;
    max-height: 64vh;
    padding: 12px;
  }
  .message-bubble {
    width: min(92%, 520px);
    padding: 8px 10px;
  }
  .chat-composer {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
  }
  .chat-composer input { grid-column: 1 / -1; }
  .chat-composer textarea { min-height: 42px; }
  .chat-composer .btn {
    width: auto;
    min-width: 76px;
  }
  .hero { min-height: auto; }
  .hero-grid { padding: 54px 0 34px; }
  h1 { font-size: clamp(36px, 12vw, 44px); line-height: 1; }
  h2 { font-size: clamp(28px, 9vw, 36px); }
  .section-head { gap: 12px; }
  .searchbar, .vehicle-grid, .service-grid, .testimonial-grid, .blog-grid, .form-grid, .listing-specs, .detail-attrs { grid-template-columns: 1fr; }
  .price-row { align-items: flex-start; flex-direction: column; }
  .detail-actions {
    width: 100%;
    justify-content: stretch;
  }
  .detail-actions .btn {
    flex: 1 1 140px;
  }
  .card-actions,
  .card-actions .btn,
  .modal-actions,
  .modal-actions .btn {
    width: 100%;
  }
  .listing-thumbs { grid-template-columns: none; }
  .carousel-control { width: 36px; height: 44px; font-size: 28px; }
  .carousel-counter { right: 10px; bottom: 10px; }
  .footer-grid { gap: 18px; }
  .copyright { display: grid; gap: 8px; }
  .vehicle-card h3 { min-height: auto; }
  .section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 18px); }
  .brand { max-width: calc(100% - 52px); }
  .brand strong { font-size: 14px; line-height: 1.05; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }
  .nav-actions {
    gap: 5px;
  }
  .nav-contact-links {
    gap: 5px;
  }
  .nav-icon-link,
  .theme-switch,
  .nav-actions .btn,
  .nav-actions .nav-icon-link {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
  .nav-icon-link .ui-icon {
    width: 18px;
    height: 18px;
  }
  .vehicle-body, .service, .testimonial, .blog, .contact-panel, .form-panel, .legal-page,
  .member-card, .member-panel, .auth-form-card {
    padding: 16px;
  }
  .member-chat-panel { padding: 0; }
  .blog-cover { margin: -16px -16px 14px; }
  .member-sidebar nav { padding-inline: 8px; }
  .member-sidebar nav a { padding-inline: 10px; }
  .message-bubble { width: 96%; }
  .comment-bubble { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .comment-avatar { width: 36px; height: 36px; }
  .comment-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .public-profile-card,
  .public-profile-comments { padding: 16px; }
  .listing-gallery, .listing-summary { padding: 10px; }
  .listing-carousel-frame { aspect-ratio: 1 / 1; }
  .listing-thumbs button {
    flex-basis: 76px;
  }
}

/* Final responsive safety net for all public pages. */
.page-content,
.card-description,
.legal-page,
.listing-summary,
.member-main,
.vehicle-body {
  min-width: 0;
  overflow-wrap: anywhere;
}
.page-content *,
.card-description * {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere;
  white-space: normal;
}
.page-content img,
.page-content iframe,
.page-content video,
.page-content table {
  max-width: 100%;
}
.page-content iframe,
.page-content video {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.page-content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.page-content pre {
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 1120px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { width: min(100%, 520px); }
  .cta-grid {
    align-items: flex-start;
    flex-direction: column;
  }
  .cta-action-panel {
    width: min(100%, 560px);
  }
  .searchbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .searchbar .btn,
  .searchbar a.btn {
    width: 100%;
  }
  .pagination {
    justify-content: flex-start;
  }
  .pagination .page-jump {
    width: 100%;
  }
}
@media (max-width: 760px) {
  #home {
    display: flex;
    flex-direction: column;
  }
  #home > * {
    order: 3;
  }
  #inventory {
    order: 1;
  }
  #home > .hero {
    order: 2;
  }
  .section { padding: 58px 0; }
  .hero-grid {
    gap: 26px;
    padding: 62px 0 42px;
  }
  .hero-proof-row span {
    flex: 1 1 150px;
  }
  .hero-panel {
    display: none;
  }
  .hero-social {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
  }
  .hero-social a {
    width: 40px;
    height: 40px;
  }
  .hero-panel-head strong {
    font-size: 22px;
  }
  .stat {
    padding: 13px;
  }
  .award {
    grid-template-columns: 1fr;
  }
  .award-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .award-copy {
    padding: 2px;
  }
  .cta {
    background:
      linear-gradient(180deg, rgba(3, 20, 34, 0.96), rgba(0, 123, 154, 0.88)),
      url("https://wangariwamagari.com/wp-content/uploads/2024/01/Untitled-design-4.png") bottom right / 72% auto no-repeat,
      #071421;
  }
  .cta-grid {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .cta-action-panel {
    padding: 14px;
  }
  .cta-action-note strong {
    font-size: 21px;
  }
  .page-hero { min-height: auto; padding-top: 28px; }
  .inventory-page { padding-top: 36px; }
  .brand-carousel {
    margin-left: -6px;
    margin-right: -6px;
  }
  .brand-carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 154px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .brand-chip {
    width: 100%;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .stat-grid,
  .specs,
  .listing-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .listing-carousel-frame { aspect-ratio: 1 / 1; }
  .lightbox {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
  .lightbox img {
    max-height: calc(100vh - 16px);
  }
  .auth-page {
    min-height: auto;
  }
  .auth-form-card {
    width: 100%;
  }
  .social-strip a,
  .pagination .page-number {
    flex: 1 1 auto;
  }
  .hero-social a {
    flex: 0 0 40px;
  }
  .pagination .btn {
    flex: 1 1 140px;
  }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 16px); }
  .topbar-links {
    display: grid;
    grid-template-columns: 1fr;
  }
  .nav-links {
    max-height: calc(100vh - 92px);
  }
  .hero-copy p,
  .section-copy,
  .card-description {
    font-size: 15px;
  }
  .vehicle-meta,
  .price-row,
  .section-title-row,
  .pagination,
  .pagination .page-jump label {
    align-items: stretch;
    flex-direction: column;
  }
  .pagination .page-number,
  .pagination .page-jump select {
    width: 100%;
  }
  .stat-grid,
  .specs,
  .listing-thumbs {
    grid-template-columns: 1fr;
  }
  .vehicle-inquiry-modal {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }
  .inquiry-modal-head,
  .inquiry-modal-form {
    padding: 14px;
  }
  .footer a {
    padding: 3px 0;
  }
}

/* Vehicles and blog index page responsiveness. */
.inventory-page,
.blogs-page {
  overflow-x: clip;
}
.inventory-page {
  display: block;
}
.inventory-page > .wrap {
  min-width: 0;
}
.inventory-search {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px) minmax(150px, 180px) auto;
}
.blog-list-grid .blog {
  min-width: 0;
}
.inventory-page .vehicle-grid,
.inventory-page .inventory-grid,
.inventory-page .vehicle-card,
.inventory-page .vehicle-body,
.inventory-page .vehicle-media,
.inventory-page .specs,
.inventory-page .price-row,
.inventory-page .card-actions,
.inventory-page .vehicle-meta {
  min-width: 0;
}
.inventory-page .vehicle-card {
  max-width: 100%;
}
.inventory-page .inventory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.inventory-page .vehicle-card h3,
.inventory-page .specs span,
.inventory-page .price-row strong,
.inventory-page .card-description {
  overflow-wrap: anywhere;
}
.inventory-page .card-description img,
.inventory-page .card-description iframe,
.inventory-page .card-description video,
.inventory-page .card-description table {
  max-width: 100% !important;
}
.inventory-page .card-description iframe,
.inventory-page .card-description video {
  width: 100%;
}
.inventory-page .card-description table {
  display: block;
  overflow-x: auto;
}
@media (max-width: 1180px) {
  .inventory-page .inventory-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .inventory-page .vehicle-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    overflow: hidden;
    transform: none !important;
  }
  .inventory-page .vehicle-card::before {
    display: none;
  }
  .inventory-page .vehicle-media {
    min-height: 100%;
    aspect-ratio: auto;
    border-radius: 8px 0 0 8px;
  }
  .inventory-page .vehicle-body {
    border-radius: 0 8px 8px 0;
  }
  .inventory-page .vehicle-card h3 {
    min-height: auto;
  }
  .blogs-page .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .inventory-page .vehicle-card {
    width: 100%;
    display: block;
    overflow: hidden;
  }
  .inventory-page .vehicle-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: 8px 8px 0 0;
  }
  .inventory-page .vehicle-body {
    border-radius: 0 0 8px 8px;
  }
}
@media (max-width: 780px) {
  .inventory-page .section-head,
  .blogs-page .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .inventory-search,
  .inventory-page .inventory-grid,
  .blogs-page .blog-grid {
    grid-template-columns: 1fr;
  }
  .inventory-search {
    padding: 12px;
  }
  .inventory-search .field,
  .inventory-search .btn {
    width: 100%;
    min-width: 0;
  }
  .inventory-page .vehicle-card {
    width: 100%;
    display: block;
    overflow: hidden;
  }
  .inventory-page .vehicle-card::before {
    display: none;
  }
  .inventory-page .vehicle-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: 8px 8px 0 0;
  }
  .inventory-page .vehicle-body {
    border-radius: 0 0 8px 8px;
  }
  .inventory-page .price-row {
    align-items: stretch;
    display: grid;
    gap: 10px;
  }
  .inventory-page .card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }
  .inventory-page .card-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .inventory-page .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-page .badge-stack {
    max-width: calc(100% - 20px);
  }
  .pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .pagination .btn,
  .pagination .page-number {
    width: 100%;
  }
  .pagination > span,
  .pagination .page-jump {
    grid-column: 1 / -1;
  }
}
@media (max-width: 460px) {
  .inventory-page {
    padding-top: 28px;
  }
  .inventory-search {
    gap: 10px;
    margin-bottom: 18px;
  }
  .inventory-page .vehicle-media {
    aspect-ratio: 4 / 3;
  }
  .inventory-page .badge-stack {
    position: static;
    padding: 10px;
    background: rgba(7, 20, 33, 0.72);
  }
  .inventory-page .vehicle-media {
    display: grid;
  }
  .inventory-page .vehicle-media img {
    grid-area: 1 / 1;
  }
  .inventory-page .badge-stack {
    grid-area: 1 / 1;
    align-self: start;
  }
  .inventory-page .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .inventory-page .specs {
    grid-template-columns: 1fr;
  }
  .inventory-page .vehicle-body,
  .inventory-page .specs,
  .inventory-page .price-row,
  .inventory-page .card-actions {
    min-width: 0;
  }
  .inventory-page .vehicle-meta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .inventory-page .price-row strong {
    font-size: 17px;
  }
  .pagination {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .inventory-page .vehicle-body {
    padding: 14px;
  }
  .inventory-page .specs {
    gap: 6px;
  }
  .inventory-page .specs span {
    padding: 7px;
  }
}
