/* ==========================================================================
   ERMA TOYOTA — Design System (toyota-kaltim-kukar-erma.com)
   Fonts: Barlow Condensed (Headings) + Inter (Body)
   Palette: Toyota Blue Hero (#061838 - #1446a0), Warm White (#F8F8F6),
            Light Grey (#EFEFEA), Toyota Red (#EB0A1E)
   ========================================================================== */

:root {
  --bg-warm: #f8f8f6;
  --bg-muted: #efefe9;
  --surface: #ffffff;
  --ink: #14171c;
  --ink-muted: #525866;
  --border: #e2e2dc;
  --toyota-red: #eb0a1e;
  --toyota-red-dark: #c50718;
  --hero-blue-deep: #061838;
  --hero-blue-mid: #0c2d6b;
  --hero-blue-bright: #1649a6;
  --wa-green: #128c7e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 28px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 38px rgba(15, 23, 42, 0.11);
  --font-display: 'Barlow Condensed', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-warm);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select, textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--toyota-red);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--toyota-red);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-red {
  background: var(--toyota-red);
  color: #fff;
}
.btn-red:hover { background: var(--toyota-red-dark); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #262b35; }

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: #c8c8c0;
}
.btn-outline-dark:hover {
  border-color: var(--ink);
  background: rgba(20, 23, 28, 0.04);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header--transparent {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(6, 24, 56, 0.88) 0%, rgba(6, 24, 56, 0.35) 70%, transparent 100%);
  color: #fff;
}
.site-header--transparent.is-scrolled,
.site-header--solid {
  background: var(--hero-blue-deep);
  color: #fff;
  box-shadow: 0 6px 24px rgba(6, 24, 56, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  border-bottom-color: var(--toyota-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-drawer {
  background: var(--hero-blue-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px 24px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-link {
  color: #fff;
  font-weight: 600;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-link.is-active {
  color: #ff6b78;
}

/* ==========================================================================
   HERO SECTION: Blue Background + White "ERMA TOYOTA" Behind Erma
   ========================================================================== */
.hero-runway {
  position: relative;
  background: radial-gradient(circle at 72% 38%, var(--hero-blue-bright) 0%, var(--hero-blue-mid) 46%, var(--hero-blue-deep) 100%);
  color: #fff;
  min-height: 92vh;
  overflow: clip;
}
.hero-runway.has-hero-video {
  min-height: 165vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 92vh;
  min-height: 600px;
  max-height: 920px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 70% 42%, rgba(56, 130, 246, 0.26), transparent 70%),
    linear-gradient(125deg, rgba(6, 24, 56, 0.92) 0%, rgba(12, 45, 107, 0.55) 55%, rgba(22, 73, 166, 0.35) 100%);
  z-index: 0;
}

/* Big white ERMA TOYOTA wordmark BEHIND Erma */
.hero-backdrop-wordmark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0 24px;
  overflow: hidden;
}
.hero-backdrop-wordmark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.6rem, 15.5vw, 13.5rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 18px 50px rgba(3, 12, 32, 0.35);
  white-space: nowrap;
  user-select: none;
  transform: translateY(-6%);
}

/* Erma portrait & video stage IN FRONT of the backdrop wordmark (centered) */
.hero-media-stage {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 0;
  width: min(56vw, 660px);
  height: 92%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-portrait,
.hero-video {
  position: absolute;
  bottom: 0;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: opacity 0.2s linear;
}

.hero-portrait {
  filter: drop-shadow(0 18px 36px rgba(3, 12, 32, 0.45));
}

.hero-video {
  opacity: 0;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.hero-contrast-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 24, 56, 0.88) 0%, rgba(6, 24, 56, 0.45) 42%, transparent 72%),
              linear-gradient(0deg, rgba(6, 24, 56, 0.85) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-copy {
  max-width: 560px;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ec5ff;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-subtitle {
  margin: 10px 0 4px;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-tagline {
  margin: 0 0 24px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   SECTIONS & PORSCHE-INSPIRED CATALOG CARDS
   ========================================================================== */
.section {
  padding: 68px 0;
}
.section-offers {
  background: var(--bg-muted);
}
.section-about-preview,
.section-dealer {
  background: var(--surface);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-eyebrow {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--toyota-red);
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.section-desc {
  margin: 8px 0 0;
  color: var(--ink-muted);
  max-width: 620px;
}

.search-box input {
  width: min(360px, 100%);
  min-width: 260px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.search-box input:focus {
  border-color: var(--hero-blue-mid);
  outline: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.model-card-media,
.variant-card-media {
  position: relative;
  background: #ffffff;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-bottom: 1px solid #f0f0ec;
}
.model-card-media img,
.variant-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-card-media--empty,
.variant-card-media--empty {
  background: linear-gradient(135deg, #f2f4f8 0%, #e7ebf3 100%);
  flex-direction: column;
  text-align: center;
  gap: 6px;
}
.no-photo-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hero-blue-mid);
}
.no-photo-model {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
}

.photo-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: rgba(248, 248, 246, 0.92);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.model-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.model-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.model-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-blue-mid);
}
.model-card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}
.model-card-price {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
}
.price-prefix {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.model-card-price strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.model-card-footer {
  margin-top: auto;
}

/* Catalog Level 2 (Split Layout) */
.page-banner {
  background: linear-gradient(135deg, var(--hero-blue-deep) 0%, var(--hero-blue-mid) 100%);
  color: #fff;
  padding: 44px 0;
}
.page-banner .section-eyebrow {
  color: #9ec5ff;
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.05;
}
.page-subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 660px;
}
.page-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.page-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.catalog-toolbar .filter-pills {
  margin-bottom: 0;
}

.catalog-split {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.model-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  position: sticky;
  top: 88px;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sidebar-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.sidebar-all-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--toyota-red);
}
.mobile-model-select-wrap {
  display: none;
  margin-bottom: 12px;
}
.mobile-model-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 600;
}
.sidebar-model-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-model-item {
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}
.sidebar-model-item:hover {
  background: var(--bg-warm);
}
.sidebar-model-item.is-active {
  background: var(--hero-blue-deep);
  color: #fff;
}
.sidebar-model-name {
  font-weight: 600;
  font-size: 0.92rem;
}
.sidebar-model-price {
  font-size: 0.76rem;
  opacity: 0.78;
}

.variant-summary-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.variant-count {
  font-weight: 700;
  color: var(--ink);
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.variant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.variant-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.variant-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.15;
}
.variant-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.spec-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--ink);
}
.variant-price-block {
  margin-top: auto;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px solid #f0f0ec;
}
.variant-price-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.variant-price-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}
.variant-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  cursor: pointer;
}
.brochure-disclaimer {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.compare-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: var(--hero-blue-deep);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}
.compare-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.compare-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.compare-chip {
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
}

/* Offers */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.offer-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--toyota-red);
  margin-bottom: 6px;
}
.offer-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}
.offer-nominal {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--hero-blue-mid);
}
.offer-period {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.offer-desc {
  margin: 0 0 12px;
  color: var(--ink);
}
.offer-terms {
  margin: 0 0 20px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-top: auto;
}

/* Deliveries & Lightbox */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.delivery-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.delivery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.delivery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.delivery-trigger:hover img {
  transform: scale(1.03);
}
.delivery-caption {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
}
.delivery-caption span {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(235, 10, 30, 0.9);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.video-card-body {
  padding: 14px 18px;
}
.video-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 36, 0.86);
  backdrop-filter: blur(4px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #10141c;
}
.lightbox-meta {
  padding: 14px 18px;
}
.lightbox-meta h3 { margin: 0 0 4px; font-size: 1.05rem; }
.lightbox-meta p { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }

/* About & Dealer */
.about-preview-grid,
.profile-grid,
.dealer-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.about-preview-photo img,
.profile-photo-card img,
.dealer-media img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.erma-quote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--toyota-red);
  background: var(--bg-warm);
  font-weight: 600;
  font-style: italic;
}
.about-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.about-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.profile-contact-card {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-contact-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.4rem; }
.profile-contact-card p { margin: 0 0 6px; font-size: 0.9rem; color: var(--ink-muted); }
.profile-block {
  margin-bottom: 32px;
}
.dealer-facts {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}
.dealer-facts dt {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.dealer-facts dd {
  margin: 2px 0 0;
  font-weight: 500;
}

/* Footer & Floating WA */
.site-footer {
  background: var(--hero-blue-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-tagline {
  margin: 14px 0 0;
  font-size: 0.9rem;
  max-width: 400px;
}
.footer-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-admin-link { color: rgba(255, 255, 255, 0.72); }

.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.floating-wa-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5ef38c;
}

/* Admin Panel */
.admin-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--hero-blue-deep);
}
.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
}
.admin-login-head h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 2.2rem;
}
.admin-form { display: grid; gap: 14px; margin-top: 18px; }
.form-group { display: grid; gap: 6px; }
.form-group input {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
}
.admin-login-foot { margin-top: 18px; text-align: center; font-size: 0.88rem; }

.admin-header {
  background: var(--hero-blue-deep);
  color: #fff;
  padding: 14px 0;
}
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-source-badge {
  margin-left: 10px;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}
.admin-main { padding: 28px 20px 60px; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.admin-tab {
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
}
.admin-tab.is-active {
  background: var(--hero-blue-deep);
  color: #fff;
  border-color: var(--hero-blue-deep);
}
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.admin-grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: center;
}
.admin-stack-form {
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.admin-stack-form label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.admin-grid-form input,
.admin-grid-form select,
.admin-stack-form input,
.admin-stack-form select,
.admin-stack-form textarea,
.admin-table input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-row-actions { display: flex; gap: 6px; }
.admin-model-row {
  display: grid;
  grid-template-columns: 72px 1.2fr 0.8fr 1.2fr 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.admin-model-thumb img { width: 68px; height: 44px; object-fit: contain; }
.admin-delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.admin-delivery-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 6px;
}
.admin-delivery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.admin-video-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}
.alert-success { background: #e6f6ec; color: #0e6027; }
.alert-error { background: #fde8ea; color: #9c0815; }

/* ==========================================================================
   RESPONSIVE (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .model-grid,
  .variant-grid,
  .offer-grid,
  .delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-split {
    grid-template-columns: 1fr;
  }
  .model-sidebar {
    position: static;
  }
  .sidebar-model-list { display: none; }
  .mobile-model-select-wrap { display: block; }
  .about-preview-grid,
  .profile-grid,
  .dealer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-wa-btn {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }

  .hero-sticky {
    height: 92vh;
    min-height: 580px;
  }
  .hero-backdrop-wordmark {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding-top: 96px;
    padding-bottom: 0;
  }
  .hero-backdrop-wordmark span {
    font-size: clamp(3.3rem, 17vw, 5.2rem);
    transform: none;
  }
  .hero-media-stage {
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 92vw;
    height: 68%;
    top: 15%;
    bottom: auto;
  }
  .hero-portrait {
    object-position: top center;
  }
  .hero-contrast-scrim {
    background: linear-gradient(0deg, rgba(6, 24, 56, 0.96) 0%, rgba(6, 24, 56, 0.82) 38%, transparent 68%);
  }
  .hero-content {
    padding-bottom: 34px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-copy {
    margin: 0 auto;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-video-badge {
    display: none;
  }

  .model-grid,
  .variant-grid,
  .offer-grid,
  .delivery-grid,
  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-wa {
    right: 14px;
    bottom: 14px;
    padding: 10px 15px;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-runway.has-hero-video { min-height: 92vh; }
  .hero-video { display: none !important; }
  .hero-portrait { opacity: 1 !important; }
}


/* ==========================================================================
   PREMIUM ANIMATIONS, HERO PARALLAX, CATALOG SIDEBAR & CREDIT SIMULATOR
   ========================================================================== */

/* Hero Load & Scroll Animations */
@keyframes heroWordmarkIn {
  from {
    opacity: 0;
    letter-spacing: 0.14em;
    transform: translateY(-2%) scale(0.94);
  }
  to {
    opacity: 1;
    letter-spacing: 0.03em;
    transform: translateY(-6%) scale(1);
  }
}

@keyframes heroPortraitIn {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-backdrop-wordmark span {
  animation: heroWordmarkIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
  transform: translate3d(0, calc(-6% + var(--hero-wordmark-y, 0px)), 0) scale(var(--hero-wordmark-scale, 1));
}

.hero-media-stage {
  will-change: transform;
  transform: translate3d(0, var(--hero-portrait-y, 0px), 0) scale(var(--hero-portrait-scale, 1));
}

.hero-portrait {
  animation: heroPortraitIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-copy > * {
  animation: heroCopyIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.40s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.48s; }

/* Scroll-Reveal on Every Scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1), transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Floating Stack (Instagram + WhatsApp) */
.floating-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.floating-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.floating-ig {
  background: linear-gradient(135deg, #c13584 0%, #e1306c 60%, #fd5949 100%);
}
.floating-wa {
  position: static;
  background: var(--wa-green);
}
.floating-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

/* Banner Back Link & Update Pill */
.banner-back-link {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.banner-back-link:hover { color: #fff; text-decoration: underline; }
.update-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
}
.catalog-top-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sort-select {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

/* Catalog Filter Sidebar Layout (Screenshot 2) */
.catalog-filter-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-card);
}
.sidebar-consult-box {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-consult-box p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.filter-group {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.filter-group h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.86rem;
  cursor: pointer;
}
.filter-check small { color: var(--ink-muted); }

.catalog-result-header {
  margin-bottom: 18px;
}
.catalog-result-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.model-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.model-card--porsche .model-card-title--upper {
  font-size: 1.38rem;
  margin-bottom: 8px;
}
.model-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tag-year {
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}
.tag-spec {
  background: var(--bg-muted);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
}
.model-variant-meta {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.model-variant-meta strong {
  color: var(--ink);
}

/* Credit Simulator (Screenshot 1) */
.credit-sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}
.credit-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.credit-section-title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
}
.credit-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.credit-form-grid .form-field { margin-bottom: 0; }
.form-field label,
.radio-group-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--hero-blue-mid);
  outline: none;
}
.input-affix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.input-affix input {
  border: 0;
  border-radius: 0;
  flex: 1;
}
.affix-left,
.affix-right {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg-warm);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.88rem;
  border-right: 1px solid var(--border);
}
.affix-right {
  border-right: 0;
  border-left: 1px solid var(--border);
}
.field-hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.credit-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
.radio-row {
  display: flex;
  gap: 18px;
  padding-top: 4px;
}
.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}
.credit-submit-btn {
  margin-top: 6px;
  padding: 13px 26px;
}
.credit-disclaimer {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Dark Summary Card (Right) */
.credit-summary-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #171214;
  color: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  position: sticky;
  top: 88px;
}
.credit-summary-media {
  background: #fff;
  padding: 20px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.credit-summary-media img {
  max-height: 100%;
  object-fit: contain;
}
.credit-summary-body {
  padding: 24px;
}
.credit-summary-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ff6b78;
}
.credit-summary-model {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}
.credit-summary-type {
  margin: 4px 0 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}
.credit-summary-rows {
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}
.credit-summary-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
.credit-summary-rows dt { color: rgba(255, 255, 255, 0.7); }
.credit-summary-rows dd { margin: 0; font-weight: 700; text-align: right; }

.credit-installment-box {
  background: rgba(235, 10, 30, 0.14);
  border: 1px solid rgba(235, 10, 30, 0.36);
  border-radius: 12px;
  padding: 16px;
}
.installment-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}
.installment-value {
  display: block;
  margin: 4px 0 6px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ff808b;
}
.installment-note {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1024px) {
  .catalog-filter-layout,
  .credit-sim-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar,
  .credit-summary-card {
    position: static;
  }
  .model-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .credit-form-grid,
  .model-grid--catalog {
    grid-template-columns: 1fr;
  }
  .floating-stack {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop-wordmark span,
  .hero-portrait,
  .hero-copy > * {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* Car Showroom Entrance & Hover Animations */
.model-card-media img,
.variant-card-media img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease;
}

.model-card[data-reveal] .model-card-media img,
.variant-card[data-reveal] .variant-card-media img {
  opacity: 0;
  transform: translateX(22px) scale(0.94);
}
.model-card[data-reveal].is-visible .model-card-media img,
.variant-card[data-reveal].is-visible .variant-card-media img {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.model-card:hover .model-card-media img,
.variant-card:hover .variant-card-media img {
  transform: scale(1.06) translateY(-4px);
}

@keyframes carSwapIn {
  from { opacity: 0; transform: translateX(24px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.credit-summary-media img.is-swapping {
  animation: carSwapIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Continuous Subtle Showroom Float Animation on Cars */
@keyframes carShowroomFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.018);
  }
}

.model-card[data-reveal].is-visible .model-card-media img,
.variant-card[data-reveal].is-visible .variant-card-media img,
.credit-summary-media img {
  animation: carShowroomFloat 4.2s ease-in-out infinite;
}

.model-card:nth-child(2n) .model-card-media img { animation-delay: 0.6s; }
.model-card:nth-child(3n) .model-card-media img { animation-delay: 1.2s; }

.model-card:hover .model-card-media img,
.variant-card:hover .variant-card-media img {
  animation-play-state: paused;
  transform: scale(1.07) translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .model-card[data-reveal].is-visible .model-card-media img,
  .variant-card[data-reveal].is-visible .variant-card-media img,
  .credit-summary-media img {
    animation: none !important;
  }
}


/* HD Showroom Crispness & Contrast for Car Photos */
.model-card-media img,
.variant-card-media img,
.credit-summary-media img {
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.06) saturate(1.07);
}


/* ==========================================================================
   BERANDA SHOWCASE STRIP ("PILIHAN MOBIL TOYOTA" Horizontal Cards)
   ========================================================================== */
.home-showcase-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 44px;
  padding-top: 34px;
  padding-bottom: 12px;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 16px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.showcase-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -30px;
  margin-bottom: 10px;
  aspect-ratio: 16 / 10;
}
.showcase-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.06) saturate(1.07) drop-shadow(0 12px 14px rgba(15, 23, 42, 0.14));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-card[data-reveal].is-visible .showcase-card-media img {
  animation: carShowroomFloat 4.2s ease-in-out infinite;
}
.showcase-card:hover .showcase-card-media img {
  animation-play-state: paused;
  transform: scale(1.07) translateY(-5px);
}

.showcase-card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.showcase-card-price {
  margin: 4px 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.showcase-card-price .price-prefix {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.showcase-card .model-card-footer {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .home-showcase-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .home-showcase-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .home-showcase-row {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   BESPOKE SHOWROOM POLISH (Clean Alignment, Tabular Prices, Refined Motion)
   ========================================================================== */
.showcase-card,
.model-card,
.variant-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.showcase-card:hover,
.model-card:hover,
.variant-card:hover {
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.showcase-card-price,
.model-card-price,
.variant-price-value,
.credit-summary-rows dd {
  font-variant-numeric: tabular-nums;
}

.showcase-card .model-variant-meta {
  min-height: 2.6em;
}

/* Remove infinite bobbing; keep crisp entrance + weighted showroom hover */
.model-card[data-reveal].is-visible .model-card-media img,
.variant-card[data-reveal].is-visible .variant-card-media img,
.showcase-card[data-reveal].is-visible .showcase-card-media img,
.credit-summary-media img {
  animation: none;
}

.showcase-card:hover .showcase-card-media img,
.model-card:hover .model-card-media img,
.variant-card:hover .variant-card-media img {
  transform: translateY(-6px) scale(1.045);
}


/* ==========================================================================
   EXECUTIVE TRUST STRIP, OFFER CARDS & REFINED FLOATING PILLS
   ========================================================================== */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--toyota-red);
  padding-top: 2px;
}
.trust-item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.trust-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.offer-card {
  border-top: 3px solid var(--hero-blue-mid);
  padding: 28px;
}
.offer-card:nth-child(2) {
  border-top-color: var(--toyota-red);
}
.offer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.offer-index {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: rgba(20, 23, 28, 0.25);
  line-height: 1;
}
.offer-card .offer-tag {
  margin-bottom: 0;
}
.offer-card .offer-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink);
}
.offer-card .offer-terms {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

/* Refined Matte Editorial Floating Pills */
.floating-ig {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.floating-wa {
  background: #15803d;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.floating-pill {
  padding: 9px 15px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .trust-strip-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* PageSpeed Rendering Optimization (Keep All Animations, Defer Offscreen Paint) */
.section-offers,
.section-deliveries,
.section-about-preview,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}


@media (max-width: 768px) {
  .hero-backdrop-wordmark {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding-top: 96px;
    padding-bottom: 0;
  }
  .hero-backdrop-wordmark span {
    font-size: clamp(3.3rem, 17vw, 5.2rem);
    transform: translate3d(0, var(--hero-wordmark-y, 0px), 0) scale(var(--hero-wordmark-scale, 1));
  }
}


/* Buttery-Smooth GPU Showroom Motion & Zero-Jank Scroll Reveals */
@keyframes heroGlowBreath {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hero-bg-pattern {
  animation: heroGlowBreath 9s ease-in-out infinite;
  will-change: transform, opacity;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.showcase-card,
.model-card,
.variant-card,
.offer-card,
.delivery-card {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.showcase-card-media img,
.model-card-media img,
.variant-card-media img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
