/* =========================================================
   BMW PRESTIGE INDONESIA — STYLE SHEET
   Design tokens
   ========================================================= */
:root {
  --bg: #0a0c10;
  --surface: #14171d;
  --surface-2: #1b1f27;
  --border: #262b34;
  --text: #f2f3f5;
  --text-muted: #9ba1ac;
  --accent: #1c69d4;
  --accent-dim: #123c78;
  --silver: #c9cdd3;

  --m-blue: #005aa7;
  --m-violet: #7a1f72;
  --m-red: #e4002b;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 2px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   SIGNATURE ELEMENT — M-Stripe divider
   A thin tri-colour bar referencing BMW M Motorsport livery,
   used as a persistent identity mark under the header and
   as a section divider.
   ========================================================= */
.m-stripe {
  position: fixed;
  top: 0;
  height: 3px;
  width: 100%;
  z-index: 999;
  background: linear-gradient(
    90deg,
    var(--m-blue) 0%,
    var(--m-blue) 33.3%,
    var(--m-violet) 33.3%,
    var(--m-violet) 66.6%,
    var(--m-red) 66.6%,
    var(--m-red) 100%
  );
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 12, 16, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9999;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

/* =====================
   WEBSITE LOGO
===================== */

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  background: var(--accent);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 28px;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 180px;
  padding: 6px 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.dropdown a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 0.2 ease-in-out;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}

.btn-whatsapp {
  border-color: #25d366;
  color: #25d366;
}

.btn-whatsapp:hover {
  background: #25d366;
  color: #08130d;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn[disabled]:hover {
  background: transparent;
  color: var(--text);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.85),
    rgba(10, 12, 16, 0.75),
    rgba(10, 12, 16, 0.9)
  );
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

.hero p.lead {
  color: #ddd;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-graphic {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-graphic svg {
  width: 78%;
  color: var(--accent);
}

.hero-graphic::before {
  content: attr(data-caption);
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =========================================================
   PAGE HEADER (non-home pages)
   ========================================================= */
.page-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-head .eyebrow {
  margin-bottom: 10px;
}

.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-head p {
  max-width: 60ch;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* =========================================================
   CARD GRID — Vehicles
   ========================================================= */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.car-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.car-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.car-media {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  height: 240px;
  overflow: hidden;
}

.car-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.8);
  text-transform: uppercase;
}

.badge.sold {
  color: #e4002b;
  border-color: #e4002b;
}

.badge.available {
  color: #3fbf7f;
  border-color: #3fbf7f;
}

.car-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px;
  min-height: 230px;
}

.car-kategori {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.car-name {
  font-size: 1.15rem;
  margin: 0;
  min-height: 55px;
}

.car-price {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
}

.car-specs-mini {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.car-actions {
  margin-top: auto;
  padding-top: 12px;
}

/* filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =========================================================
   FEATURE LIST (Keunggulan dealer)
   ========================================================= */
.feature {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
}

.feature .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* =================================
 TESTIMONIAL SECTION
================================= */

.testimonial-section {
  padding: 90px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--surface), #090b10);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  transition: 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.testimonial-rating {
  color: #f5c542;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  min-height: 110px;
}

.customer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 20px;
}

.customer strong {
  display: block;
  font-family: var(--font-display);
}

.customer span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* =========================================================
   PRODUK DETAIL
   ========================================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-media {
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media svg {
  width: 70%;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: 10px 0;
  font-size: 0.9rem;
}

.spec-table td:first-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  width: 40%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   FORMS
   ========================================================= */
.form-grid {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field.error input,
.field.error textarea,
.field.error select {
  border-color: var(--m-red);
}

.field .error-msg {
  color: var(--m-red);
  font-size: 0.75rem;
  margin-top: 6px;
  display: none;
  font-family: var(--font-mono);
}

.field.error .error-msg {
  display: block;
}

.form-success {
  display: none;
  background: rgba(63, 191, 127, 0.1);
  border: 1px solid #3fbf7f;
  color: #3fbf7f;
  padding: 14px 18px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.form-success.show {
  display: block;
}

/* =========================================================
   REQUIREMENTS LIST (Jual Mobil)
   Persyaratan penjualan kendaraan BMW
   ========================================================= */
.req-list {
  display: grid;
  gap: 12px;
}

.req-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.req-list li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--font-mono);
}

/* SECTION HERO COPY */

.jual-hero {
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jual-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.jual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 8, 12, 0.85),
    rgba(5, 8, 12, 0.55)
  );
  z-index: 1;
}

.jual-hero-content {
  max-width: 850px;
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jual-hero h1 {
  font-size: 40px;
  line-height: 1.1;
  max-width: 850px;
}

.jual-hero p {
  font-size: 18px;
  color: #b7c4d8;
  max-width: 600px;
}

.jual-hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  inset: 0;
  z-index: 0;
}

/* SECTION HERO COPY */

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.gallery-item svg {
  width: 50%;
  transition: transform 0.3s ease;
}

.gallery-item:hover svg {
  transform: scale(1.08);
}

.gallery-item .g-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 9, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-box {
  max-width: 700px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  text-align: center;
}

.lightbox-box svg {
  width: 50%;
  margin: 0 auto 18px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.info-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.info-row .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 90px;
  flex: none;
}

.map-frame {
  border: 1px solid var(--border);
  width: 100%;
  height: 260px;
  margin-top: 24px;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-grid span .brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

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

.footer-grid ul a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-hero {
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 8, 12, 0.85),
    rgba(5, 8, 12, 0.55)
  );
  z-index: 1;
}

.about-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.about-hero-content {
  max-width: 850px;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-hero h1 {
  font-size: 40px;
  line-height: 1.1;
  max-width: 850px;
}

.about-hero p {
  font-size: 18px;
  color: #b7c4d8;
  max-width: 600px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.stat-row {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat-row .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}
.stat-row .stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* =================================
   ABOUT STATISTICS
================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: linear-gradient(135deg, var(--surface), #090b10);
  border: 1px solid var(--border);
  padding: 35px 20px;
  text-align: center;
  transition: 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.stat-card strong {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.stat-card .plus {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
}

.stat-card p {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-card span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================
   SERVICE HERO
========================== */

.service-hero {
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.service-hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  inset: 0;
  z-index: 0;
}

.service-hero .about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 12, 0.85),
    rgba(5, 8, 12, 0.55),
    rgba(5, 8, 12, 0.85)
  );
  z-index: 1;
}

.service-hero-content {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 70px;
}

.service-hero-content h1 {
  font-size: 40px;
  line-height: 1.1;
  max-width: 850px;
  margin: 20px 0;
}

.service-hero-content p {
  font-size: 18px;
  color: #b7c4d8;
  max-width: 600px;
}

/* =================================
   SCROLL FADE ANIMATION
================================= */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease-in-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fade dari kiri */

.fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.8s ease-in-out;
}

.fade-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* Fade dari kanan */

.fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s ease-in-out;
}

.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.search-box input {
  width: 300px;
  padding: 14px;
  background: #11151d;
  border: 1px solid #252a35;
  color: white;
  font-family: Inter;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.pagination a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #252a35;
  color: white;
  text-decoration: none;
}

.pagination a.active {
  background: #1e73ff;
  border-color: #1e73ff;
}

/* =====================
ARTICLE CARD
===================== */

.article-card {
  display: flex;
  flex-direction: column;
  height: 520px;
}

.article-card .car-media {
  height: 220px;
  overflow: hidden;
}

.article-card .car-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .car-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .car-name {
  height: 55px;
  overflow: hidden;
}

.article-card .car-body p {
  height: 75px;
  overflow: hidden;
}

.article-card .car-kategori {
  margin-top: auto;
  margin-bottom: 15px;
}

.article-card .btn {
  width: 100%;
  text-align: center;
}

/* =================================
 PREMIUM RUNNING LOGO
================================= */

.brand-showcase {
  width: 100%;
  overflow: hidden;
  background: #0a0c10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.brand-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: logoMove 40s linear infinite;
}

.brand-logo-item {
  width: 240px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: 0.3s;
}

.brand-logo-item:hover {
  opacity: 1;
}

.brand-logo-item img {
  max-width: 120px;
  max-height: 55px;
  object-fit: contain;
  filter: grayscale(100%);
}

.brand-logo-item:hover img {
  filter: grayscale(0);
}

/* running animation */

@keyframes logoMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.brand-showcase:hover .brand-track {
  animation-play-state: paused;
}

/* =================================
CTA SECTION
================================= */

.premium-cta {
  padding: 90px 0;
}

.cta-box {
  position: relative;
  background: linear-gradient(135deg, #14171d, #080a0f);
  border: 1px solid var(--border);
  padding: 70px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--m-blue),
    var(--m-violet),
    var(--m-red)
  );
}

.cta-box h2 {
  max-width: 700px;
  margin: 15px auto 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.cta-box p {
  max-width: 650px;
  margin: 0 auto 35px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   LARGE TABLET / SMALL LAPTOP
   1024px
========================================================= */

@media (max-width: 1024px) {
  :root {
    --container: 94%;
  }

  /* NAVBAR */

  .nav-links {
    gap: 20px;
  }

  .navbar {
    padding: 14px 20px;
  }

  .logo-img {
    width: 60px;
    height: 60px;
  }

  /* GRID */

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }

  /* FOOTER */

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* STATISTIC */

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* TESTIMONIAL */

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* GALLERY */

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* BRAND LOGO */

  .brand-logo-item {
    width: 200px;
  }
}

/* =========================================================
   TABLET
   768px
========================================================= */

@media (max-width: 768px) {
  section {
    padding: 55px 0;
  }

  .container {
    padding: 0 18px;
  }

  /* =================
       NAVBAR MOBILE
    ================= */

  .navbar {
    padding: 12px 18px;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-showcase {
    padding: 20px 0;
  }

  .brand-track {
    gap: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .dropdown {
    position: static;
    width: 100%;
    background: transparent;
    border: 0;
  }

  /* =================
       HERO HOME
    ================= */

  .hero {
    min-height: 85vh;
    padding-top: 90px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero p.lead {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* =================
       INTERNAL HERO
       ABOUT SERVICE JUAL
    ================= */

  .about-hero,
  .service-hero,
  .jual-hero {
    height: 300px;
  }

  .about-hero-content,
  .service-hero-content,
  .jual-hero-content {
    margin-top: 50px;
    padding: 0 10px;
  }

  .about-hero h1,
  .service-hero-content h1,
  .jual-hero h1 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .about-hero p,
  .service-hero-content p,
  .jual-hero p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .service-hero {
    height: 330px;
  }

  .service-hero-content {
    margin-top: 80px;
    padding: 0 15px;
  }

  .service-hero-content .eyebrow {
    margin-bottom: 12px;
  }

  /* =================
       CARD VEHICLE
    ================= */

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .car-media {
    height: 210px;
  }

  .car-name {
    min-height: auto;
    font-size: 1.05rem;
  }

  /* =================
       FILTER
    ================= */

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
  }

  /* =================
       STATISTIC
    ================= */

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card strong {
    font-size: 2.4rem;
  }

  /* =================
       TESTIMONIAL
    ================= */

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 24px;
  }

  /* =================
       RUNNING LOGO
    ================= */

  .brand-logo-item {
    width: 150px;
    height: 30px;
  }

  .brand-logo-item img {
    max-width: 90px;
    max-height: 40px;
  }

  /* =================
       CTA
    ================= */

  .cta-box {
    padding: 45px 20px;
  }

  .cta-box h2 {
    font-size: 2rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  /* =================
       ARTICLE
    ================= */

  .article-card {
    height: auto;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input {
    width: 100%;
  }

  .pagination {
    flex-wrap: wrap;
  }

  /* =================
       FOOTER
    ================= */

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .home-car-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================================================
   SMALL PHONE
   480px
========================================================= */

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  section {
    padding: 40px 0;
  }

  .container {
    padding: 0 14px;
  }

  /* NAVBAR */

  .logo-img {
    width: 42px;
    height: 42px;
  }

  .brand {
    font-size: 0.85rem;
  }

  /* HOME HERO */

  .hero {
    min-height: 75vh;
  }

  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.1;
  }

  .hero p.lead {
    font-size: 0.82rem;
  }

  /* INTERNAL HERO */

  .about-hero,
  .service-hero,
  .jual-hero {
    height: 240px;
  }

  .about-hero-content,
  .service-hero-content,
  .jual-hero-content {
    margin-top: 35px;
  }

  .about-hero h1,
  .service-hero-content h1,
  .jual-hero h1 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .about-hero p,
  .service-hero-content p,
  .jual-hero p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* BUTTON */

  .btn {
    font-size: 0.7rem;
    padding: 10px 16px;
  }

  /* CARD */

  .car-media {
    height: 100px;
  }

  .car-body {
    min-height: 220px;
  }

  .car-name {
    font-size: 0.8rem;
    min-height: auto;
  }

  .car-body h3 {
    height: 42px;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
  }

  .car-body > p {
    height: 25px;
    margin: 0;
  }

  .car-specs-mini {
    height: 45px;
    align-items: flex-start;
  }

  .car-body h4 {
    height: 30px;
    margin: 0;
  }

  .car-card {
    height: auto;
    min-height: 330px;
  }

  .car-kategori {
    font-size: 0.65rem;
  }

  .car-specs-mini {
    font-size: 0.65rem;

    gap: 5px;
  }

  .car-price {
    font-size: 0.75rem;
  }

  .car-actions .btn,
  .car-body .btn {
    padding: 8px 6px;
    font-size: 0.65rem;
  }

  .car-actions {
    margin-top: auto;
  }

  .car-body .btn {
    margin-top: auto;
  }

  /* SECTION TITLE */

  .section-head h2 {
    font-size: 1.35rem;
  }

  /* BRAND */

  .brand-logo-item {
    width: 120px;
    height: 20px;
  }

  .brand-logo-item img {
    max-width: 70px;
  }

  /* CTA */

  .cta-box {
    padding: 32px 16px;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  /* WHATSAPP */

  .wa-float {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }

  .service-hero {
    height: 300px;
  }

  .service-hero-content {
    margin-top: 75px;
  }

  .service-hero-content h1 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .service-hero-content p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-card {
    width: 100%;
    height: 520px;
  }

  .article-card .car-media {
    height: 220px;
  }

  .article-card .car-name {
    height: auto;
    min-height: 55px;
    font-size: 0.9rem;
  }

  .article-card .car-body p {
    height: auto;
    min-height: 75px;
    font-size: 0.85rem;  
  }

  .home-car-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-car-grid .car-card {
    width: 100%;
  }

  .home-car-grid .car-media {
    height: 220px;
  }

  .home-car-grid .car-name {
    font-size: 1rem;
  }

  .home-car-grid .car-price {
    font-size: 0.9rem;
  }
}
