/* ==========================================================================
   NEXWEB DESIGN SYSTEM - GLOBAL COMPONENTS (TOKENIZED)
   File: components.css
   Includes: Buttons, Trust Badges, Asymmetrical Split Showcase, CTA Form
   ========================================================================== */

/* ==========================================================================
   1. BUTTON SYSTEM
   ========================================================================== */

.nx-btn,
.nx-hero-actions a.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-xs, 8px);
  padding: 14px 28px;
  border-radius: var(--nx-radius-pill, 9999px);
  font-family: var(--font-body, 'Geist', sans-serif);
  font-size: 0.875rem;
  font-weight: var(--nx-fw-semibold, 600);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--nx-dur-fast, 250ms) ease;
  box-sizing: border-box;
}

/* Primary Button (BYD Ocean Vivid Blue) */
.nx-btn-primary,
.nx-hero-actions a.nx-btn-primary {
  background-color: var(--nx-c-accent, #007aff);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid var(--nx-c-accent, #007aff);
  box-shadow: 0 4px 18px var(--nx-c-accent-glow, rgba(0, 122, 255, 0.25));
}

.nx-btn-primary:hover,
.nx-hero-actions a.nx-btn-primary:hover {
  background-color: var(--nx-c-accent-hover, #005ecb);
  border-color: var(--nx-c-accent-hover, #005ecb);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(var(--nx-c-accent-rgb, 0, 122, 255), 0.45);
}

/* Secondary Button (Adaptif: Slate Surface di Latar Terang) */
.nx-btn-secondary,
.nx-btn-outline-light,
.nx-hero-actions a.nx-btn-secondary {
  background-color: var(--nx-bg-surface, #ffffff);
  color: var(--nx-c-heading, #1e2229);
  border: 1px solid var(--nx-c-border, #dcdfe6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nx-btn-secondary:hover,
.nx-btn-outline-light:hover,
.nx-hero-actions a.nx-btn-secondary:hover {
  background-color: var(--nx-bg-subtle, #e4e7ed);
  border-color: var(--nx-c-border-strong, #cdd0d6);
  color: var(--nx-c-accent, #007aff); /* Tetap kontras di latar terang */
  transform: translateY(-2px);
}

.nx-btn span {
  color: inherit;
  font-family: inherit;
}
/* VARIANT: Secondary Card Action (Konsisten Pill + Geist) */
.nx-btn-secondary.nx-stack-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--nx-radius-pill, 9999px); /* Tetap pill sesuai NX system */
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--nx-c-heading, #ffffff) !important;
  -webkit-text-fill-color: var(--nx-c-heading, #ffffff) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body, 'Geist', sans-serif) !important;
}

.nx-btn-secondary.nx-stack-btn:hover {
  background-color: var(--nx-c-accent, #007aff);
  border-color: var(--nx-c-accent, #007aff);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--nx-c-accent-rgb, 0, 122, 255), 0.35);
}

/* ==========================================================================
   2. SOCIAL PROOF / TRUST BADGE
   ========================================================================== */

.nx-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-sm, 16px);
  flex-wrap: wrap;
}

.nx-avatar-stack {
  display: flex;
  align-items: center;
}

.nx-avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nx-bg-surface, #ffffff);
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.nx-avatar-stack img:first-child {
  margin-left: 0;
}

.nx-trust-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.nx-stars {
  display: flex;
  gap: 2px;
  color: #facc15; /* Rating Gold */
  font-size: 0.8125rem;
  line-height: 1;
}

.nx-trust-text {
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: 0.75rem;
  font-weight: var(--nx-fw-semibold, 600);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nx-c-heading, #1e2229);
  margin: 0;
}

/* ==========================================================================
   1. BUTTON SYSTEM (TOKENIZED & GEIST ENFORCED)
   ========================================================================== */

/* Base Reset & Styling untuk semua varian Button */
a.nx-btn,
.nx-btn,
.nx-hero-actions a.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-xs, 8px);
  padding: 14px 28px;
  border-radius: var(--nx-radius-pill, 9999px);
  
  /* FORCE GEIST FONT SECARA EKSPLISIT */
  font-family: var(--font-body, 'Geist', sans-serif) !important;
  font-size: 0.875rem;
  font-weight: var(--nx-fw-semibold, 600);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  
  /* Reset link Elementor secara tuntas */
  text-decoration: none !important;
  outline: none;
  border: none;
  cursor: pointer;
  transition: all var(--nx-dur-fast, 250ms) ease;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Bunuh semua kemungkinan garis bawah link Elementor */
a.nx-btn:hover,
a.nx-btn:focus,
a.nx-btn:visited,
.nx-btn:hover,
.nx-btn:focus {
  text-decoration: none !important;
  outline: none;
}

/* Pastikan semua elemen teks/span di dalam button ikut Geist */
a.nx-btn *,
.nx-btn * {
  font-family: var(--font-body, 'Geist', sans-serif) !important;
  text-decoration: none !important;
}

/* Primary Button (BYD Ocean Vivid Blue) */
.nx-btn-primary,
.nx-hero-actions a.nx-btn-primary {
  background-color: var(--nx-c-accent, #007aff);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid var(--nx-c-accent, #007aff);
  box-shadow: 0 4px 18px var(--nx-c-accent-glow, rgba(0, 122, 255, 0.25));
}

.nx-btn-primary:hover,
.nx-hero-actions a.nx-btn-primary:hover {
  background-color: var(--nx-c-accent-hover, #005ecb);
  border-color: var(--nx-c-accent-hover, #005ecb);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(var(--nx-c-accent-rgb, 0, 122, 255), 0.45);
}

/* Secondary Button (Adaptif: Slate Surface di Latar Terang) */
.nx-btn-secondary,
.nx-btn-outline-light,
.nx-hero-actions a.nx-btn-secondary {
  background-color: var(--nx-bg-surface, #ffffff);
  color: var(--nx-c-heading, #1e2229);
  border: 1px solid var(--nx-c-border, #dcdfe6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nx-btn-secondary:hover,
.nx-btn-outline-light:hover,
.nx-hero-actions a.nx-btn-secondary:hover {
  background-color: var(--nx-bg-subtle, #e4e7ed);
  border-color: var(--nx-c-border-strong, #cdd0d6);
  color: var(--nx-c-accent, #007aff);
  transform: translateY(-2px);
}

/* VARIANT: Secondary Card Action (Khusus Stack Card Otomotif / Dark Canvas) */
.nx-btn-secondary.nx-stack-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--nx-radius-sm, 8px);
  background: rgba(255, 255, 255, 0.05);
  color: var(--nx-c-heading, #ffffff) !important;
  -webkit-text-fill-color: var(--nx-c-heading, #ffffff) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nx-btn-secondary.nx-stack-btn:hover {
  background: var(--nx-c-accent, #007aff);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--nx-c-accent, #007aff);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--nx-c-accent-rgb, 0, 122, 255), 0.3);
}
/* ==========================================================================
   3. ASYMMETRICAL SPLIT SHOWCASE (60:40 RATIO)
   ========================================================================== */

.nx-split-section {
  position: relative;
  width: 100%;
  padding-block: clamp(50px, 8vw, 100px);
  background-color: var(--nx-bg-subtle, #e4e7ed);
  overflow: hidden;
}

.nx-asym-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--nx-space-xl, 48px);
  width: 100%;
}

/* Varian Reverse Kolom */
.nx-split-reverse .nx-asym-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.nx-split-reverse .nx-asym-media-wrap {
  order: 2;
}

.nx-split-reverse .nx-asym-content {
  order: 1;
}

/* Media Stage & Slideshow */
.nx-asym-media-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--nx-radius-lg, 20px);
  overflow: hidden;
  background-color: var(--nx-bg-surface, #ffffff);
  border: 1px solid var(--nx-c-border, #dcdfe6);
  box-shadow: var(--nx-shadow-card, 0 8px 20px rgba(0, 0, 0, 0.06));
}

.nx-asym-media-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.nx-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--nx-bg-surface, #ffffff);
}

.nx-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 800ms ease, transform 1200ms ease;
  will-change: opacity, transform;
}

.nx-slide-img.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Floating Media Badge (Pelindung Kaca Gelap di Atas Foto Mobil) */
.nx-media-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: var(--nx-fs-eyebrow, 0.75rem);
  font-weight: var(--nx-fw-bold, 700);
  letter-spacing: 0.12em;
  padding: 8px 16px;
  border-radius: var(--nx-radius-pill, 9999px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
  pointer-events: none;
}

/* Editorial Content & Feature List */
.nx-asym-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--nx-space-sm, 16px);
}

.nx-feature-list {
  list-style: none;
  padding: 0;
  margin: var(--nx-space-sm, 16px) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-sm, 16px);
  width: 100%;
}

.nx-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Bullet Dot Adaptif Token */
.nx-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--nx-c-accent, #007aff);
  box-shadow: 0 0 10px var(--nx-c-accent-glow, rgba(0, 122, 255, 0.25));
  flex-shrink: 0;
}

.nx-feature-text {
  font-family: var(--font-body, 'Geist', sans-serif);
  font-size: var(--nx-fs-body, 1rem);
  color: var(--nx-c-heading, #1e2229);
  font-weight: var(--nx-fw-medium, 500);
  line-height: 1.5;
}

/* Responsive Breakpoint (Tablet & Mobile) */
@media (max-width: 991px) {
  .nx-asym-grid,
  .nx-split-reverse .nx-asym-grid {
    grid-template-columns: 1fr;
    gap: var(--nx-space-lg, 32px);
  }

  .nx-split-reverse .nx-asym-media-wrap,
  .nx-asym-media-wrap {
    order: 1;
  }

  .nx-split-reverse .nx-asym-content,
  .nx-asym-content {
    order: 2;
  }
}

