/* ==========================================================================
   RONAL AUTOMOBIL — Premium Used Car Dealership
   Shared stylesheet for all pages
   ========================================================================== */

:root {
  /* Colors */
  --charcoal-950: #0b0b0e;
  --charcoal-900: #131317;
  --charcoal-800: #1c1c22;
  --charcoal-700: #2a2a33;
  --charcoal-600: #3c3c46;
  --gold-300: #f0929c;
  --gold-400: #e2394a;
  --gold-500: #c8102e;
  --gold-600: #9c0d24;
  --gold-gradient: linear-gradient(135deg, #ea4c58 0%, #c8102e 45%, #7a0c1e 100%);
  --white: #ffffff;
  --off-white: #f7f6f3;
  --gray-100: #f1f1f2;
  --gray-300: #d4d4d8;
  --gray-400: #a3a3ad;
  --gray-500: #7c7c88;
  --gray-600: #5c5c66;
  --success: #2e8b57;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing / layout */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-gold: 0 10px 30px rgba(200, 16, 46, 0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Theme surfaces (flipped by [data-theme="dark"] below) */
  --page-bg: var(--off-white);
  --surface: #ffffff;
  --surface-text: var(--charcoal-900);
  --surface-heading: var(--charcoal-950);
  --surface-border: var(--gray-100);
  --header-bg: rgba(255, 255, 255, 0.97);
  --header-border: rgba(0,0,0,0.08);
  --nav-text: var(--gray-600);
  --nav-text-hover: var(--charcoal-950);
  --hamburger-bg: rgba(0,0,0,0.06);
  --hamburger-bar: var(--charcoal-950);
}

html[data-theme="dark"] {
  --page-bg: #121319;
  --surface: #1b1c24;
  --surface-text: #d6d7de;
  --surface-heading: #f4f4f6;
  --surface-border: rgba(255,255,255,0.08);
  --header-bg: rgba(18, 19, 25, 0.95);
  --header-border: rgba(255,255,255,0.08);
  --nav-text: #a6a8b3;
  --nav-text-hover: #ffffff;
  --hamburger-bg: rgba(255,255,255,0.08);
  --hamburger-bar: #f4f4f6;
  --off-white: #121319;
  --gray-100: rgba(255,255,255,0.08);
}
html[data-theme="dark"] body { background: var(--page-bg); color: var(--surface-text); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: var(--surface-heading); }
html[data-theme="dark"] .section-head p { color: #9a9ca7; }
html[data-theme="dark"] .reason-card p, html[data-theme="dark"] .testimonial-card .quote,
html[data-theme="dark"] .car-title, html[data-theme="dark"] .car-sub, html[data-theme="dark"] .step p,
html[data-theme="dark"] .vm-card p, html[data-theme="dark"] .service-detail-card p { color: #b6b8c2; }
html[data-theme="dark"] .car-card, html[data-theme="dark"] .service-detail-card,
html[data-theme="dark"] .reason-card, html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .vm-card { border-color: var(--surface-border); }
html[data-theme="dark"] .filters-bar, html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select, html[data-theme="dark"] .form-field textarea {
  background: #23242e; color: var(--surface-text); border-color: var(--surface-border);
}
html[data-theme="dark"] .compare-table td.no { color: #d98a8a; }
html[data-theme="dark"] .breadcrumb, html[data-theme="dark"] .breadcrumb a { color: #9a9ca7; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--surface-text);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--charcoal-950); }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Utility ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--charcoal-950); color: var(--gray-300); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(200,16,46,0.1);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-dark .eyebrow { color: var(--gold-400); background: rgba(200,16,46,0.15); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--gray-600); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--gray-400); }

.text-gold { color: var(--gold-500); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -60px; left: 16px; background: var(--gold-500);
  color: var(--charcoal-950); padding: 10px 18px; border-radius: 8px;
  font-weight: 600; z-index: 999; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-gradient);
  color: var(--charcoal-950);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(200,16,46,0.35); }
.btn-dark {
  background: var(--charcoal-950);
  color: var(--white);
}
.btn-dark:hover { background: var(--charcoal-800); transform: translateY(-3px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--gold-400); }
.btn-outline-dark {
  background: transparent;
  color: var(--charcoal-950);
  border: 1.5px solid var(--charcoal-700);
}
.btn-outline-dark:hover { background: var(--charcoal-950); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  transition: background var(--transition), border-color var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.01em;
  background: var(--surface);
  padding: 7px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transition: transform var(--transition);
}
.logo:hover { transform: translateY(-1px); }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal-950);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo span { color: var(--gold-400); }
.logo-img { height: 48px; width: auto; display: block; transition: opacity 0.15s; }
.site-header .logo { background: transparent; box-shadow: none; padding: 0; }
.footer-brand .logo { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.footer-brand .logo-img { height: 63px; }
.social-disabled { opacity: 0.4; cursor: not-allowed; }
.social-disabled:hover { background: rgba(255,255,255,0.08) !important; color: var(--white) !important; transform: none !important; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--nav-text);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--nav-text-hover); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-search {
  display: flex; align-items: center; gap: 0; margin-left: auto;
  background: var(--hamburger-bg); border-radius: 999px; padding: 4px 4px 4px 16px;
  transition: background var(--transition);
}
.header-search input {
  border: none; background: transparent; color: var(--nav-text-hover);
  font-size: 0.85rem; width: 150px; padding: 6px 0;
}
.header-search input::placeholder { color: var(--nav-text); }
.header-search input:focus { outline: none; width: 190px; }
.header-search button {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gold-gradient);
  color: var(--charcoal-950); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-search button svg { width: 15px; height: 15px; }
.main-nav { flex: 1; justify-content: space-between; }
@media (max-width: 1080px) { .header-search input { width: 110px; } .header-search input:focus { width: 140px; } }
@media (max-width: 900px) { .header-search { display: none; } }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--hamburger-bg);
}
.hamburger span {
  width: 20px; height: 2px; background: var(--hamburger-bar); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--header-border);
  padding: 8px 24px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--nav-text);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-border);
}
.mobile-nav a:hover { color: var(--gold-600); }
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--charcoal-950);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,14,0.75) 0%, rgba(11,11,14,0.55) 40%, rgba(11,11,14,0.96) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: 140px 24px 100px;
  margin: 0 auto;
  width: 100%;
}
.hero-content .eyebrow { background: rgba(200,16,46,0.18); color: var(--gold-300); }
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  color: var(--white);
  margin-bottom: 22px;
}
.hero-content h1 em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--gray-300);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.hero-stats .stat-label { font-size: 0.85rem; color: var(--gray-400); }

/* Page header (non-home hero) */
.page-header {
  position: relative;
  background: var(--charcoal-950);
  padding: 170px 24px 90px;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(200,16,46,0.16), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(200,16,46,0.10), transparent 55%);
}
.page-header .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-header .eyebrow { background: rgba(200,16,46,0.18); color: var(--gold-300); }
.page-header h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 16px; }
.page-header p { color: var(--gray-400); font-size: 1.05rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--gray-500); margin-top: 18px; }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--gold-400); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--surface); padding: 44px 0; border-bottom: 1px solid var(--gray-100); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item .num {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--charcoal-950);
}
.trust-item .num span { color: var(--gold-500); }
.trust-item .label { font-size: 0.85rem; color: var(--gray-600); margin-top: 4px; }
.trust-brands {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center;
  padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--gray-100);
}
.trust-brands .brand-chip {
  font-family: var(--font-heading); font-weight: 600; color: var(--gray-500);
  font-size: 1rem; letter-spacing: 0.03em; opacity: 0.8;
}

/* ---------- Cards / Reasons ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.reason-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-100);
}
.reason-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.reason-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--charcoal-950);
}
.reason-icon svg { width: 26px; height: 26px; }
.reason-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.reason-card p { color: var(--gray-600); font-size: 0.96rem; }
.reason-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem;
  color: var(--gold-500); letter-spacing: 0.1em; margin-bottom: 14px; display: block;
}

/* ---------- Services ---------- */
.service-card {
  background: var(--charcoal-900);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  color: var(--gray-300);
  transition: transform var(--transition), background var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}
.service-card:hover { transform: translateY(-6px); background: var(--charcoal-800); }
.service-card .reason-icon { background: rgba(200,16,46,0.15); color: var(--gold-400); }
.service-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.94rem; color: var(--gray-400); margin-bottom: 18px; }
.service-card a.link-more { color: var(--gold-400); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card a.link-more:hover { color: var(--gold-300); }

.service-detail-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  height: 100%;
}
.service-detail-card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.service-detail-card ul li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--gray-600); align-items: flex-start; }
.service-detail-card ul li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--gold-500); margin-top: 2px; }

/* ---------- How it works / Steps ---------- */
.steps-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
}
.step .step-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem;
  color: rgba(200,16,46,0.28); line-height: 1; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--gray-600); }
.steps-tabs { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.steps-tab {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  padding: 10px 22px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--gray-300); color: var(--gray-600); transition: all var(--transition);
}
.steps-tab.active, .steps-tab:hover { background: var(--charcoal-950); color: var(--white); border-color: var(--charcoal-950); }
.steps-panel { display: none; }
.steps-panel.active { display: grid; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--gold-500); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--gray-600); font-style: italic; margin-bottom: 24px; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-gradient); color: var(--charcoal-950);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author .name { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; }
.testimonial-author .role { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- About / company intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-media .badge-float {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(11,11,14,0.85);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200,16,46,0.4);
}
.split-media .badge-float .num { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; color: var(--gold-400); }
.split-media .badge-float .lbl { font-size: 0.78rem; color: var(--gray-300); }
.split-body p { color: var(--gray-600); margin-bottom: 16px; }
.split-body h2 { margin-bottom: 20px; }
.check-list { margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--charcoal-800); }
.check-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--gold-500); margin-top: 1px; }

/* ---------- Vision / Mission ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.vm-card {
  padding: 44px;
  border-radius: var(--radius-md);
  background: var(--charcoal-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.vm-card.alt { background: var(--gold-gradient); color: var(--charcoal-950); }
.vm-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.vm-card.alt h3 { color: var(--charcoal-950); }
.vm-card p, .vm-card li { color: rgba(255,255,255,0.75); }
.vm-card.alt p, .vm-card.alt li { color: rgba(11,11,14,0.8); }
.vm-card ul { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.vm-card ul li::before { content: '— '; }

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; font-size: 0.94rem; border-bottom: 1px solid var(--gray-100); }
.compare-table thead th { background: var(--charcoal-950); color: var(--white); font-family: var(--font-heading); }
.compare-table thead th:last-child { color: var(--gold-400); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.yes { color: var(--success); font-weight: 700; }
.compare-table td.no { color: var(--gray-400); }
.compare-table .col-brand { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--gray-100); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  text-align: left; color: var(--charcoal-950);
}
.faq-question .icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--gold-500); transition: transform var(--transition); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-answer p { padding: 0 26px 22px; color: var(--gray-600); font-size: 0.94rem; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal-950);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(200,16,46,0.25), transparent 60%);
}
.cta-band .cta-text { position: relative; z-index: 1; max-width: 560px; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: var(--gray-400); }
.cta-band .cta-actions { position: relative; z-index: 1; display: flex; gap: 16px; flex-wrap: wrap; }
.section-cta { padding: 0 0 96px; }

/* ---------- Inventory / filters ---------- */
.filters-bar {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
  border: 1px solid var(--gray-100);
}
.filters-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: end; }
.filter-field label {
  display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gray-500); margin-bottom: 8px;
}
.filter-field select, .filter-field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300); background: var(--off-white); color: var(--charcoal-900);
  transition: border-color var(--transition);
}
.filter-field select:focus, .filter-field input:focus { outline: none; border-color: var(--gold-500); }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.results-count { color: var(--gray-600); font-size: 0.95rem; }
.results-count strong { color: var(--charcoal-950); }
.btn-reset { font-size: 0.88rem; color: var(--gold-600); font-weight: 600; }
.btn-reset:hover { text-decoration: underline; }

.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.car-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.car-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.14); }
.car-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--charcoal-800); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.car-card:hover .car-media img { transform: scale(1.08); }
.car-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold-gradient); color: var(--charcoal-950);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.72rem;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.03em;
}
.car-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.car-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--charcoal-950); display: block; transition: color var(--transition); }
.car-title:hover { color: var(--gold-500); }
.car-media { display: block; }
.car-price { display: block; }
.car-price:hover { color: var(--gold-500); }
.car-sub { font-size: 0.85rem; color: var(--gray-500); }
.car-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.car-specs .spec { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--gray-600); }
.car-specs .spec svg { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; }
.car-price { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--charcoal-950); }
.car-price span { font-size: 0.75rem; font-weight: 500; color: var(--gray-500); display: block; }
.car-actions { display: flex; gap: 10px; margin-top: 4px; }
.car-actions .btn { flex: 1; padding: 12px 14px; font-size: 0.85rem; }
.no-results { text-align: center; padding: 80px 20px; color: var(--gray-500); grid-column: 1 / -1; }
.no-results svg { width: 64px; height: 64px; color: var(--gray-300); margin: 0 auto 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.contact-form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--charcoal-800); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300); background: var(--off-white); color: var(--charcoal-900);
  transition: border-color var(--transition);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--surface); }
.form-field select:focus { outline: none; border-color: var(--gold-500); background: var(--surface); }
.form-field select { cursor: pointer; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 14px; }
.form-success {
  display: none; align-items: center; gap: 12px;
  background: rgba(46,139,87,0.1); color: var(--success);
  padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; font-weight: 600;
}
.form-success.show { display: flex; }

/* ---------- Contact page UI upgrade ---------- */
.contact-form-card { position: relative; overflow: hidden; }
.contact-form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--gold-gradient);
}
.form-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: rgba(200,16,46,0.08); color: var(--gold-500);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.form-eyebrow svg { width: 14px; height: 14px; }
.form-field-icon { position: relative; }
.form-field-icon svg {
  position: absolute; left: 15px; top: 43px; width: 18px; height: 18px; color: var(--gray-400); pointer-events: none;
}
.form-field-icon input { padding-left: 44px; }

.need-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.need-option { position: absolute; opacity: 0; pointer-events: none; }
.need-option-label {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300); background: var(--off-white); cursor: pointer;
  font-size: 0.85rem; font-weight: 600; color: var(--charcoal-800); transition: all var(--transition);
}
.need-option-label svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gray-500); transition: color var(--transition); }
.need-option-label:hover { border-color: var(--gold-400); transform: translateY(-1px); }
.need-option:checked + .need-option-label {
  border-color: var(--gold-500); background: var(--gold-gradient); color: var(--white);
  box-shadow: 0 6px 16px rgba(200,16,46,0.22);
}
.need-option:checked + .need-option-label svg { color: var(--white); }
.need-option:focus-visible + .need-option-label { outline: 2px solid var(--gold-500); outline-offset: 2px; }
@media (max-width: 480px) { .need-picker { grid-template-columns: 1fr; } }

.info-card { transition: box-shadow var(--transition); }
.info-row { transition: transform var(--transition); }
.info-row:hover { transform: translateX(4px); }
.info-row .icon-wrap { transition: background var(--transition), color var(--transition); }
.info-row:hover .icon-wrap { background: var(--gold-gradient); color: var(--white); }

html[data-theme="dark"] .need-option-label { border-color: var(--surface-border); background: #23242e; color: var(--surface-text); }
html[data-theme="dark"] .form-field-icon svg { color: #8b8d99; }

.info-card {
  background: var(--charcoal-950); color: var(--white);
  border-radius: var(--radius-lg); padding: 40px; margin-bottom: 24px;
}
.info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.info-row:last-child { border-bottom: none; }
.info-row .icon-wrap {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(200,16,46,0.16);
  color: var(--gold-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-row .label { font-size: 0.78rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; }
.info-row .value { font-weight: 600; margin-top: 2px; }
.info-row .value a:hover { color: var(--gold-400); }
.hours-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.hours-list li { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--gray-300); }
.hours-list li strong { color: var(--white); font-weight: 500; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--gray-100); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.social-row a:hover { background: var(--gold-gradient); color: var(--charcoal-950); transform: translateY(-3px); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; bottom: 96px; right: 26px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  transition: transform var(--transition);
  animation: pulse-wa 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), 0 10px 26px rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 10px 26px rgba(37,211,102,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 10px 26px rgba(37,211,102,0.45); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-950); color: var(--gray-400); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { margin: 18px 0 20px; font-size: 0.92rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .steps-wrap { grid-template-columns: repeat(2, 1fr); }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .nav-links, .header-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
  .split, .contact-grid, .vm-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 28px; }
  .cta-band .cta-actions { justify-content: center; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .car-grid { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-content { padding: 120px 20px 70px; }
  .hero-stats { gap: 24px; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 560px) {
  .filters-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps-wrap { grid-template-columns: 1fr; }
}


/* ==========================================================================
   REVISI TAMBAHAN — Theme toggle, back-to-top, chatbot, banner search, animasi
   ========================================================================== */

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--hamburger-bg); color: var(--nav-text-hover);
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(20deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 399;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--charcoal-950); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Banner heading entrance animation ---------- */
@keyframes bannerFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content h1, .page-header h1 {
  animation: bannerFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content .eyebrow, .page-header .eyebrow,
.hero-content p, .page-header p {
  animation: bannerFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.12s;
}
.hero-content .hero-cta, .page-header .breadcrumb {
  animation: bannerFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.22s;
}

/* ---------- Banner right-aligned layout + search ---------- */
.hero-content.align-right, .page-header .inner.align-right {
  margin-left: auto; margin-right: 0; text-align: right;
}
.hero-content.align-right .hero-cta { justify-content: flex-end; }
.hero-content.align-right .hero-stats { justify-content: flex-end; }
.page-header .inner.align-right .breadcrumb { justify-content: flex-end; }
.banner-search {
  display: flex; gap: 8px; margin-top: 22px; max-width: 420px;
}
.hero-content.align-right .banner-search, .page-header .inner.align-right .banner-search {
  margin-left: auto;
}
.banner-search input {
  flex: 1; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 0.92rem;
}
.banner-search input::placeholder { color: rgba(255,255,255,0.6); }
.banner-search input:focus { outline: none; border-color: var(--gold-400); background: rgba(255,255,255,0.14); }
.banner-search button {
  padding: 0 18px; border-radius: var(--radius-sm); background: var(--gold-gradient);
  color: var(--charcoal-950); display: flex; align-items: center; justify-content: center;
}
.banner-search button svg { width: 18px; height: 18px; }

/* ---------- FAQ Chatbot widget ---------- */
.chatbot-toggle {
  position: fixed; bottom: 96px; right: 96px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(200,16,46,0.4);
  transition: transform var(--transition);
}
.chatbot-toggle:hover { transform: scale(1.08); }
.chatbot-toggle svg { width: 26px; height: 26px; }
.chatbot-badge {
  position: absolute; top: -2px; right: -2px; background: #25d366; color: #fff;
  width: 16px; height: 16px; border-radius: 50%; font-size: 0.6rem;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.chatbot-panel {
  position: fixed; bottom: 166px; right: 26px; z-index: 401;
  width: 340px; max-width: calc(100vw - 40px); max-height: 460px;
  background: var(--surface); color: var(--surface-text);
  border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--surface-border);
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  background: var(--charcoal-950); color: #fff; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.chatbot-header strong { font-family: var(--font-heading); font-size: 0.95rem; }
.chatbot-header button { color: #fff; opacity: 0.7; }
.chatbot-header button:hover { opacity: 1; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg.bot { background: var(--off-white); color: var(--surface-text); align-self: flex-start; border-bottom-left-radius: 4px; }
html[data-theme="dark"] .chat-msg.bot { background: #23242e; }
.chat-msg.user { background: var(--gold-gradient); color: var(--charcoal-950); align-self: flex-end; border-bottom-right-radius: 4px; }
.chatbot-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chatbot-suggestions button {
  font-size: 0.76rem; padding: 6px 12px; border-radius: 999px;
  background: rgba(200,16,46,0.08); color: var(--gold-600); border: 1px solid rgba(200,16,46,0.18);
}
.chatbot-suggestions button:hover { background: rgba(200,16,46,0.15); }
.chatbot-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--surface-border); }
.chatbot-input-row input {
  flex: 1; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--surface-border);
  background: var(--page-bg); color: var(--surface-text); font-size: 0.86rem;
}
.chatbot-input-row input:focus { outline: none; border-color: var(--gold-500); }
.chatbot-input-row button {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold-gradient);
  color: var(--charcoal-950); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chatbot-input-row button svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .chatbot-panel { right: 12px; width: calc(100vw - 24px); bottom: 156px; }
  .chatbot-toggle { right: 82px; }
  .wa-float { right: 12px; }
  .back-to-top { right: 12px; }
}


/* ==========================================================================
   HALAMAN DETAIL MOBIL
   ========================================================================== */
.detail-breadcrumb { padding: 20px 0; font-size: 0.85rem; color: var(--gray-500); }
.detail-breadcrumb a { color: var(--gray-600); }
.detail-breadcrumb a:hover { color: var(--gold-500); }

.detail-back-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 0.88rem; font-weight: 600; color: var(--surface-text);
  padding: 10px 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--surface-border); transition: all var(--transition);
}
.detail-back-btn svg { width: 16px; height: 16px; transition: transform var(--transition); }
.detail-back-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.detail-back-btn:hover svg { transform: translateX(-3px); }
.detail-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; padding-bottom: 56px; }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.detail-media img { width: 100%; height: 420px; object-fit: cover; }
.detail-media .car-tag { position: absolute; top: 18px; left: 18px; }
.detail-discount-ribbon {
  position: absolute; top: 18px; right: 18px; background: var(--gold-gradient); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(200,16,46,0.4);
}

.detail-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; margin-bottom: 14px;
  border-radius: 999px; background: rgba(200,16,46,0.1); color: var(--gold-600);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em;
}
.detail-badge svg { width: 15px; height: 15px; }
.detail-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.detail-meta-line { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 20px; }
.detail-info .car-sub { color: var(--gray-500); font-size: 1rem; margin-bottom: 20px; display: block; }

.detail-cicilan-box {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  background: rgba(200,16,46,0.06); border: 1px solid rgba(200,16,46,0.16); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 16px;
}
.detail-cicilan-box .label { font-size: 0.86rem; color: var(--surface-text); display: flex; align-items: center; gap: 6px; }
.detail-cicilan-box .amount { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--gold-500); }
.info-tip { position: relative; display: inline-flex; color: var(--gray-400); cursor: help; }
.info-tip svg { width: 14px; height: 14px; }
.info-tip-text {
  position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  width: 220px; background: var(--charcoal-950); color: #fff; font-size: 0.75rem; line-height: 1.5;
  padding: 10px 12px; border-radius: 8px; opacity: 0; visibility: hidden; transition: opacity 0.2s;
  pointer-events: none; z-index: 5;
}
.info-tip:hover .info-tip-text, .info-tip:focus .info-tip-text { opacity: 1; visibility: visible; }

.detail-simulasi-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 0.86rem; font-weight: 700; color: var(--gold-500);
}
.detail-simulasi-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.detail-simulasi-link:hover svg { transform: translateX(3px); }

.detail-includes-box {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  padding: 18px 20px; margin-bottom: 16px;
}
.detail-includes-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 10px; color: var(--surface-text); }
.detail-includes-box ul { display: flex; flex-direction: column; gap: 8px; }
.detail-includes-box li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--gray-600); }
.detail-includes-box li svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

.detail-location-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.detail-location-row:hover { border-color: var(--gold-400); }
.detail-location-row > svg:first-child { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; }
.detail-location-row span { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--surface-text); line-height: 1.5; }
.detail-location-row span small { font-weight: 400; color: var(--gray-500); }
.detail-location-row .chev { width: 16px; height: 16px; color: var(--gray-400); flex-shrink: 0; }

.detail-help-line { margin-top: 12px; font-size: 0.82rem; color: var(--gray-500); text-align: center; }
.detail-help-line a { color: var(--gold-500); font-weight: 600; }
.detail-spec-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.detail-spec-pills .pill {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--surface-border); font-size: 0.86rem; color: var(--surface-text);
}
.detail-spec-pills .pill svg { width: 16px; height: 16px; color: var(--gold-500); }

.detail-price-block {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-md);
  padding: 24px 28px; margin-bottom: 24px;
}
.detail-price-original { font-size: 1.05rem; color: var(--gray-500); text-decoration: line-through; margin-bottom: 4px; }
.detail-price-final { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold-500); }
.detail-price-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 6px; }
.detail-discount-pct {
  display: inline-block; background: rgba(200,16,46,0.1); color: var(--gold-600);
  font-weight: 700; font-size: 0.82rem; padding: 3px 10px; border-radius: 6px; margin-left: 10px;
}
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-cta .btn { flex: 1; min-width: 160px; }

.detail-section { padding: 40px 0; border-top: 1px solid var(--surface-border); }
.detail-section h2 { font-size: 1.4rem; margin-bottom: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.feature-grid .feature-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); font-size: 0.9rem;
}
.feature-grid .feature-item svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.inspection-box {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-md);
  padding: 24px 28px; font-size: 0.95rem; line-height: 1.8; color: var(--surface-text); white-space: pre-line;
}
.inspection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.inspection-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--surface-text); line-height: 1.5;
}
.inspection-check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(46,139,87,0.12); color: var(--success);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.inspection-check svg { width: 13px; height: 13px; }

/* ---------- Pembiayaan: simulasi cicilan + asuransi ---------- */
.financing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-md);
  padding: 28px; position: relative; overflow: hidden;
}
.calc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold-gradient);
}
.calc-card h3 { font-size: 1.1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.calc-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(200,16,46,0.1); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.calc-icon svg { width: 18px; height: 18px; }
.calc-row { margin-bottom: 18px; }
.calc-row label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--surface-text); }
.calc-row label span { color: var(--gold-500); font-weight: 700; }
.calc-row input[type="range"] { width: 100%; accent-color: var(--gold-500); }
.calc-row select, .calc-row input[type="text"] {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--surface-border); background: var(--page-bg); color: var(--surface-text);
}
.calc-result {
  background: var(--page-bg); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 8px;
}
.calc-result .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; color: var(--gray-500); }
.calc-result .row.total { border-top: 1px solid var(--surface-border); margin-top: 8px; padding-top: 12px; font-size: 1.05rem; font-weight: 700; color: var(--gold-500); }
.calc-disclaimer {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px;
  background: rgba(200,16,46,0.05); border: 1px solid rgba(200,16,46,0.12); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-top: 4px;
}
.calc-disclaimer svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; margin-top: 1px; }
.calc-disclaimer p { font-size: 0.78rem; color: var(--gray-500); line-height: 1.6; margin: 0; }

@media (max-width: 860px) {
  .detail-hero, .financing-grid { grid-template-columns: 1fr; }
  .detail-media img { height: 280px; }
}
