/* ==========================================================================
   CMBET - Dealer Mobil Bekas | style.css
   Desain modern, ringan, responsif, full animation. Optimasi Core Web Vitals.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --brand: #0d2149;
  --brand-2: #14346b;
  --brand-3: #1d4e9c;
  --accent: #f6a01a;
  --accent-2: #e63946;
  --accent-3: #16a34a;
  --ink: #10151f;
  --muted: #5b6472;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-dark: #0b1a36;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(13, 33, 73, .06), 0 2px 8px rgba(13, 33, 73, .06);
  --shadow-md: 0 6px 18px rgba(13, 33, 73, .10);
  --shadow-lg: 0 18px 40px rgba(13, 33, 73, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65;
  font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--brand); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 7vw, 90px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-3); background: #eaf1fb; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head p { margin-top: 12px; font-size: 1.05rem; }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px;
  border-radius: 999px; font-weight: 700; font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #1a1200; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #ffb43e; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #04310f; }
.btn-wa:hover { background: #2ce775; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: #fff; color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--brand); color: #cdd8ee; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #eaf1ff; font-weight: 600; }
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-social { display: flex; gap: 14px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--brand); }
.brand img { height: 42px; width: auto; }
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-txt b { font-size: 1.25rem; letter-spacing: .02em; }
.brand .brand-txt small { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a { padding: 10px 15px; border-radius: 10px; font-weight: 600; font-size: .96rem; color: #2a3648; transition: var(--transition); position: relative; }
.nav-menu a:hover, .nav-menu a.active { background: #eaf1fb; color: var(--brand-3); }
.nav-menu a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 2px; background: var(--brand-3); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; border-radius: 2px; }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; transition: var(--transition); position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(120deg, #0a1a38 0%, #12336d 55%, #1d4e9c 100%); background-size: 200% 200%; animation: gradientShift 16s ease infinite; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: radial-gradient(circle at 85% 15%, #fff 0, transparent 38%), radial-gradient(circle at 10% 90%, var(--accent) 0, transparent 40%); }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.hero h1 { color: #fff; }
.hero .lead { color: #d5e0f5; font-size: 1.12rem; margin-top: 18px; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; border-radius: 999px; color: #eaf1ff; }
.hero-badges svg { width: 16px; height: 16px; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual { position: relative; animation: floaty 6s ease-in-out infinite; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-stat-card { position: absolute; bottom: -26px; left: -18px; background: #fff; color: var(--ink); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; gap: 18px; }
.hero-stat-card .stat b { font-size: 1.4rem; color: var(--brand); display: block; }
.hero-stat-card .stat small { color: var(--muted); font-size: .78rem; }
.hero-blob { position: absolute; z-index: 1; filter: blur(6px); opacity: .35; animation: blob 14s ease-in-out infinite, floatySlow 12s ease-in-out infinite; }
.hero-blob.b1 { width: 320px; height: 320px; background: radial-gradient(circle at 30% 30%, #4f8be0, transparent 70%); top: -60px; right: -40px; }
.hero-blob.b2 { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%); bottom: -80px; left: -60px; animation-delay: -4s; }
.scroll-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #cdd8ee; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; letter-spacing: .1em; }
.scroll-hint svg { width: 22px; height: 22px; animation: bounceArrow 1.8s ease-in-out infinite; }

/* ---------- Search / Filter bar ---------- */
.search-bar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 18px; margin-top: -40px; position: relative; z-index: 5; }
.search-bar form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--brand); }
.field select, .field input, .field textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: var(--transition); width: 100%; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--brand-3); box-shadow: 0 0 0 3px #dbe7fb; outline: none; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-strip .stat b { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--brand); display: block; }
.stats-strip .stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.car-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfdcf3; }
.car-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.car-card:hover .car-media img { transform: scale(1.06); }
.car-tag { position: absolute; top: 12px; left: 12px; background: var(--accent-2); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.car-tag.green { background: var(--accent-3); }
.car-fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; border: none; cursor: pointer; color: var(--muted); transition: var(--transition); }
.car-fav:hover { color: var(--accent-2); transform: scale(1.12); }
.car-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-title { font-size: 1.08rem; font-weight: 800; color: var(--brand); }
.car-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .83rem; color: var(--muted); }
.car-meta span { display: inline-flex; align-items: center; gap: 6px; }
.car-meta svg { width: 15px; height: 15px; color: var(--brand-3); }
.car-price { margin-top: auto; }
.car-price .now { font-size: 1.35rem; font-weight: 800; color: var(--accent-2); }
.car-price .cred { font-size: .8rem; color: var(--muted); }
.car-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 4px; }

/* ---------- Features / values ---------- */
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #eaf1fb, #d7e6fb); color: var(--brand-3); margin-bottom: 18px; transition: var(--transition); }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.08); }
.feature-card h3 { margin-bottom: 8px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step .num { counter-increment: step; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 6px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.check-list { display: grid; gap: 12px; margin-top: 20px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #2a3648; }
.check-list svg { width: 22px; height: 22px; color: var(--accent-3); flex-shrink: 0; margin-top: 2px; }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); height: 100%; }
.testi-stars { color: var(--accent); display: flex; gap: 3px; margin-bottom: 12px; }
.testi-stars svg { width: 18px; height: 18px; }
.testi-card p { color: #2a3648; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-3), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.testi-author b { color: var(--brand); display: block; font-size: .95rem; }
.testi-author small { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-3) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5e0f5; max-width: 620px; margin: 14px auto 0; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, #0a1a38, #14346b); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cdd8ee; max-width: 640px; margin-top: 12px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: #aebfdc; margin-bottom: 16px; }
.breadcrumb a { color: #eaf1ff; }
.breadcrumb .sep { opacity: .6; }

/* ---------- Catalog layout ---------- */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.filter-panel h3 { font-size: 1.05rem; margin-bottom: 6px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; cursor: pointer; background: #fff; transition: var(--transition); }
.chip:hover { border-color: var(--brand-3); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-toolbar .result-count { font-weight: 600; color: var(--muted); }
.no-result { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }

/* ---------- Car detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/10; background: var(--bg-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.detail-price .now { font-size: 2rem; font-weight: 800; color: var(--accent-2); }
.detail-price .cred { color: var(--muted); font-size: .9rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }
.spec-table td { font-weight: 600; color: var(--ink); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spec-box { background: var(--bg-soft); border-radius: 12px; padding: 16px; text-align: center; }
.spec-box svg { width: 24px; height: 24px; color: var(--brand-3); margin: 0 auto 8px; }
.spec-box b { display: block; color: var(--brand); }
.spec-box small { color: var(--muted); font-size: .78rem; }

/* ---------- Article ---------- */
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card .media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.article-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .media img { transform: scale(1.05); }
.article-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-3); }
.article-card h3 { font-size: 1.1rem; }
.article-meta { font-size: .82rem; color: var(--muted); margin-top: auto; display: flex; gap: 14px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; color: var(--brand-2); }
.prose p, .prose li { color: #33404f; font-size: 1.05rem; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .5em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 16px 20px; border-radius: 8px; font-style: italic; color: #33404f; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; box-shadow: var(--shadow-sm); }
.prose a { color: var(--brand-3); text-decoration: underline; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: .95rem; }
.prose th { background: var(--bg-soft); color: var(--brand); }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.toc h4 { color: var(--brand); margin-bottom: 10px; }
.toc a { color: var(--brand-3); }
.toc li { list-style: none; padding: 4px 0; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; font-weight: 700; color: var(--brand); background: #fff; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem; }
.faq-q .ico { transition: var(--transition); flex-shrink: 0; color: var(--brand-3); }
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 22px 20px; color: #33404f; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ic { width: 48px; height: 48px; border-radius: 12px; background: #eaf1fb; color: var(--brand-3); display: grid; place-items: center; flex-shrink: 0; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item b { color: var(--brand); display: block; margin-bottom: 2px; }
.info-item p, .info-item a { color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--brand); }
.hours-table tr.today td { color: var(--accent-3); }

/* ---------- Simulation / Credit ---------- */
.sim-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.sim-result { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 30px; }
.sim-result .big { font-size: 2.4rem; font-weight: 800; color: #fff; margin: 6px 0; }
.sim-result .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .95rem; color: #cdd8ee; }
.sim-result .row b { color: #fff; }
.range-wrap { display: flex; align-items: center; gap: 14px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #aebbd4; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-brand p { color: #93a2c2; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: #aebbd4; transition: var(--transition); font-size: .94rem; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .92rem; color: #aebbd4; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: var(--transition); }
.footer-social a:hover { background: var(--accent); color: #1a1200; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .86rem; color: #8497ba; }
.footer-bottom a { color: #cdd8ee; }

/* ---------- Floating WhatsApp + Back to top ---------- */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.5); transition: var(--transition); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulseRing 2s ease-out infinite; }
.to-top { position: fixed; bottom: 92px; right: 24px; z-index: 89; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition); box-shadow: var(--shadow-md); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-3); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Brand marquee ---------- */
.brand-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brand-track { display: flex; width: max-content; gap: 60px; animation: marquee 28s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-item { font-size: 1.6rem; font-weight: 800; color: #9fb0cc; letter-spacing: .02em; white-space: nowrap; opacity: .8; transition: var(--transition); }
.brand-item:hover { color: var(--brand); opacity: 1; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.tag-pill { display: inline-flex; align-items: center; gap: 7px; background: #eaf1fb; color: var(--brand-3); font-weight: 700; font-size: .8rem; padding: 6px 13px; border-radius: 999px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 28px 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .7s ease, transform .7s ease; }
.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatySlow { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(3deg); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shine { 0% { left: -120%; } 60%, 100% { left: 140%; } }
@keyframes pulseRing { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes blob { 0%,100% { border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%; } 50% { border-radius: 58% 42% 40% 60% / 58% 55% 45% 42%; } }
@keyframes bounceArrow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Hero entrance stagger */
.hero .anim { opacity: 0; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .d1 { animation-delay: .05s; } .hero .d2 { animation-delay: .18s; } .hero .d3 { animation-delay: .32s; } .hero .d4 { animation-delay: .46s; } .hero .d5 { animation-delay: .60s; }

/* Button shine */
.btn-primary, .btn-dark { position: relative; overflow: hidden; }
.btn-primary::after, .btn-dark::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); }
.btn-primary:hover::after, .btn-dark:hover::after { animation: shine .9s ease; }

/* Animated check items */
.check-list li { opacity: 0; transform: translateX(-16px); }
.check-list.in li { animation: fadeInLeft .5s ease forwards; }
.check-list.in li:nth-child(2) { animation-delay: .1s; }
.check-list.in li:nth-child(3) { animation-delay: .2s; }
.check-list.in li:nth-child(4) { animation-delay: .3s; }
.check-list.in li:nth-child(5) { animation-delay: .4s; }
.check-list.in li:nth-child(6) { animation-delay: .5s; }

/* Page-hero entrance */
.page-hero .container > * { animation: fadeUp .7s ease both; }
.page-hero .breadcrumb { animation-delay: .05s; }
.page-hero h1 { animation-delay: .15s; }
.page-hero p { animation-delay: .28s; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .split, .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel, .detail-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .g-4, .car-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .search-bar form { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: #fff; flex-direction: column; align-items: stretch; padding: 90px 22px 30px; gap: 6px; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); z-index: 105; }
  body.nav-open .nav-menu { transform: translateX(0); }
  .nav-menu a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav-menu a::after { display: none; }
  .nav-toggle { display: flex; z-index: 106; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,26,56,.5); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 104; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .topbar-info span:not(.tb-phone) { display: none; }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4, .car-grid, .stats-strip, .steps, .spec-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stat-card { position: static; margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { text-align: left; }
  .cta-actions, .hero-actions { flex-direction: column; }
  .cta-actions .btn, .hero-actions .btn { width: 100%; }
  .spec-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .hero .anim, .check-list li { opacity: 1 !important; transform: none !important; }
}
