/* =========================================================
   SUZUKI AROEPALA — Design tokens
   Navy   #0B1F3A  (primary dark)
   Navy2  #071527  (deepest dark, footer/keunggulan)
   Blue   #0060AF  (Suzuki accent)
   Red    #E4032E  (secondary accent)
   Green  #25D366  (WhatsApp)
   ========================================================= */

:root {
  --navy: #0b1f3a;
  --navy-2: #071527;
  --navy-soft: #12305a;
  --blue: #0060af;
  --blue-dark: #004a87;
  --red: #e4032e;
  --green: #25d366;
  --green-dark: #1ebe5b;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-100: #eef1f5;
  --gray-400: #8891a0;
  --gray-600: #5b6472;
  --text: #16233a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 28px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.18);

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --header-h: 76px;
  --container-w: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--green-dark); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--blue); }

.accent-line {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--red);
  margin: 18px 0 22px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(11, 31, 58, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo { height: 34px; width: auto; object-fit: contain; }
.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--gray-400);
  opacity: 0.6;
}
.header-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 500;
}
.header-location .icon { color: var(--blue); width: 18px; height: 18px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.9;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy) 32%, rgba(11, 31, 58, 0) 55%, rgba(11, 31, 58, 0) 78%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 24px; }
.hero-text { max-width: 620px; }
.hero-text .eyebrow { color: #7cb3e8; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero-break { display: none; }

@media (max-width: 768px) {
  .hero-break { display: block; }
}
.hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 460px;
}
.hero-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  line-height: 1.5;
}
.hero-info-item .icon {
  color: #7cb3e8;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section--dark { background: var(--navy-2); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-title--light { color: var(--white); }
.section--dark .eyebrow { color: #7cb3e8; }
.section-cta { text-align: center; margin-top: 48px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border: 1px solid var(--gray-100);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.product-desc {
  color: var(--gray-600);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 14px;
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-actions .btn {
  padding: 12px 18px;
  font-size: 0.82rem;
  width: 100%;
}

/* ---------- Feature grid (keunggulan) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(124, 179, 232, 0.5);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon .icon { width: 26px; height: 26px; color: var(--white); }
.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.feature-text { color: rgba(255, 255, 255, 0.68); font-size: 0.9rem; }

/* ============ SHOWROOM ============ */
.showroom-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: stretch;
}
.showroom-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.showroom-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 20px;
}
.info-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gray-600);
  font-size: 0.94rem;
}
.info-list .icon { color: var(--blue); margin-top: 2px; }

.showroom-contact {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-text { color: var(--gray-600); margin-bottom: 26px; }
.contact-note {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.86rem;
  margin-top: 14px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-2);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-logo { height: 28px; filter: brightness(0) invert(1); }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 0.98rem;
}
.footer-copy { color: rgba(255, 255, 255, 0.55); font-size: 0.84rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-social .icon { width: 18px; height: 18px; }

/* ============ FLOATING WHATSAPP ============ */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: pulse-wa 2.6s ease-in-out infinite;
}
.floating-whatsapp .icon { width: 28px; height: 28px; }
.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showroom-grid { grid-template-columns: 1fr; }
  .hero-bg { background-position: 68% center; }
}

/* Mobile (large) */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 68px 0; }

  .header-location { display: none; }
  .brand-logo { height: 28px; }

  .hero { min-height: auto; padding-top: 8px; }
  .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.75) 30%, rgba(11, 31, 58, 0.25) 55%, rgba(11, 31, 58, 0) 75%);
}
  .hero-inner { padding: 64px 20px 56px; }
  .hero-bg { background-position: center 30%; }
  .hero-bg {
  background-image: url('assets/hero-motor-mobile.png') !important;
  background-position: center 30%;
  background-size: cover;
  }
  .hero-text { max-width: 100%; }
  .hero-subtitle {
  max-width: 300px;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }

  .promo { padding: 84px 0; }

  .showroom-contact { padding: 34px 24px; }

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

  .floating-whatsapp { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* Mobile (small) */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .btn { padding: 14px 22px; font-size: 0.86rem; }
}
