/* ============================================
   GLOBAL TYPOGRAPHY & THEME
============================================ */

:root {
  --hyundai-primary: #002368;    /* Navy Hyundai */
  --hyundai-primary-dark: #001a4d;
  --hyundai-text-dark: #111;
  --hyundai-text-body: #333;
  --hyundai-muted: #555;
  --hyundai-bg-light: #f7f9fc;
  --hyundai-section-gap: 60px;
  --radius-large: 18px;
}


/* Heading konsisten */
h1, h2, h3 {
  color: var(--hyundai-text-dark);
  letter-spacing: 0.3px;
  line-height: 1.35;
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

section {
  margin-top: var(--hyundai-section-gap);
}


/* ============================================
   HERO SECTION (16:9 full width)
============================================ */

.hero {
  margin-top: 0px;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

/* Hero text */
.hero-text {
  width: 90%;
  max-width: 900px;
  margin: 38px auto 48px;
  text-align: center;
}

.hero-text h1 {
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--hyundai-text-body);
}

.hero-address p {
  font-size: 0.97rem;
  color: var(--hyundai-muted);
  margin: 4px 0;
}


/* ============================================
   PROMO ALERT (GJAW BOX)
============================================ */

.promo-alert {
  background: #f0f6ff;
  padding: 22px 25px;
  border-left: 6px solid #0d6efd;
  border-radius: 14px;
  margin: 40px auto;
  max-width: 1100px;
}

.promo-alert h3 {
  color: #0056d6;
  margin-bottom: 8px;
}

.promo-alert p {
  font-size: 0.97rem;
  margin-bottom: 12px;
  color: #333;
}

.promo-alert-link {
  background: #007bff;
  padding: 9px 16px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.92rem;
  transition: 0.3s ease;
}

.promo-alert-link:hover {
  background: #005fcc;
}


/* ============================================
   HOME INTRO CARD
============================================ */

.home-intro {
  background: var(--hyundai-bg-light);
  max-width: 1050px;
  margin: 55px auto 80px;
  padding: 45px 42px;
  border: 1px solid rgba(0, 35, 104, 0.08);
  border-radius: var(--radius-large);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  position: relative;
}

/* Decorative top line */
.home-intro::before {
  content: "";
  width: 90px;
  height: 4px;
  background: var(--hyundai-primary);
  border-radius: 10px;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.home-intro p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-left: 30px;
  position: relative;
}

.home-intro p::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hyundai-primary);
}

.home-intro a {
  color: var(--hyundai-primary);
  font-weight: 600;
  text-decoration: underline;
  transition: 0.2s ease;
}

.home-intro a:hover {
  color: var(--hyundai-primary-dark);
  text-decoration: none;
}

.home-intro hr {
  border: 0;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 32px 0;
}


/* Wrapper */
.top-slider-wrapper {
  overflow: hidden;
  position: relative;
}

/* Track bergerak */
.top-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(.22, .61, .36, 1); /* momentum curve */
  will-change: transform;
}

/* Setiap slide */
.slide {
  min-width: 100%;
  pointer-events: none;
}

/* hanya halaman index */
.home-page,
body.home-page {
  overflow-x: hidden;
}


/* gambar hanya di slider */
.home-page .top-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* prevent text overflow tanpa mengganggu layout lain */
.home-page p,
.home-page li,
.home-page a {
  word-break: break-word;
}
.home-foto-preview {
  background: #ffffff;
  max-width: 1050px;
  margin: 55px auto 60px;
  padding: 42px 38px;
  border: 1px solid rgba(0, 35, 104, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
}

/* Decorative line sama seperti home-intro */
.home-foto-preview::before {
  content: "";
  width: 90px;
  height: 4px;
  background: var(--hyundai-primary);
  border-radius: 10px;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.home-foto-preview img {
  width: 260px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  margin-bottom: 18px;
}

.home-foto-btn {
  display: inline-block;
  margin-top: 15px;
  background: var(--hyundai-primary);
  padding: 10px 20px;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.home-foto-btn:hover {
  background: var(--hyundai-primary-dark);
}


