/* ============================================================
   Main Public CSS — Pasar Hyundai
   ============================================================ */

:root {
  --hyundai-blue:  #002c5f;
  --hyundai-red:   #eb0a1e;
  --text-dark:     #1a1a2e;
  --text-muted:    #6c757d;
  --bg-light:      #f8f9fa;
  --border-color:  #e9ecef;
  --max-width:     1200px;
  --header-height: 70px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--hyundai-blue); }

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

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

/* ========== Header / Navbar ========== */
.main-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-header .logo img {
  height: 36px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--hyundai-blue);
  background: rgba(0,44,95,0.05);
}

.btn-primary {
  background: var(--hyundai-blue);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #001a3a; color: #fff !important; }

.btn-secondary {
  background: #fff;
  color: var(--hyundai-blue) !important;
  padding: 10px 20px;
  border: 2px solid var(--hyundai-blue);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--hyundai-blue); color: #fff !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #333;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px 20px;
  gap: 4px;
}

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

.mobile-nav a {
  padding: 10px 0;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.btn-primary-mobile {
  color: #fff;
  background: var(--hyundai-blue);
  border-radius: 6px;
  text-align: center;
  margin-top: 8px;
  border-bottom: none;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }

  .main-header .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .main-header .logo img {
    height: 28px;
  }

  /* Footer Mobile */
  .main-footer {
    padding: 40px 0 16px;
    margin-top: 40px;
  }

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

  /* Visitor Counter Mobile */
  .visitor-badge {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
  }

  .visitor-stats {
    gap: 12px;
  }

  .visitor-number {
    font-size: 1.1rem;
  }

  /* WhatsApp Float Mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* ========== Footer ========== */
.main-footer {
  background: #1a1a2e;
  color: #ddd;
  padding: 50px 0 20px;
  font-size: 0.9rem;
  margin-top: 60px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 600;
}

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

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

.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-col ul li a:hover { color: #fff; }

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.social-media a:hover { background: var(--hyundai-blue); }

/* ========== Visitor Counter ========== */
.visitor-counter {
  display: flex;
  justify-content: center;
  margin: 30px 0 0;
  padding-bottom: 24px;
}

.visitor-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 28px;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.visitor-badge:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 20px rgba(100,149,237,0.08);
}

.visitor-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #60a5fa;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.visitor-stats {
  display: flex;
  align-items: center;
  gap: 18px;
}

.visitor-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.visitor-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #60a5fa;
  line-height: 1;
  letter-spacing: -0.5px;
}

.visitor-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.visitor-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.12);
}

@media (max-width: 480px) {
  .visitor-badge { padding: 12px 20px; gap: 12px; }
  .visitor-number { font-size: 1.05rem; }
  .visitor-stats  { gap: 14px; }
  .visitor-icon   { width: 38px; height: 38px; font-size: 1rem; }
}

/* ========== Copyright ========== */
.copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  color: #888;
  font-size: 0.85rem;
}

/* ========== WhatsApp Float ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.whatsapp-float:hover {
  background: #1da851;
  color: #fff;
  transform: scale(1.1);
}

/* ========== Page Hero ========== */
.page-hero {
  background: linear-gradient(135deg, var(--hyundai-blue) 0%, #001a3a 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.4rem; margin: 0 0 8px; font-weight: 700; }
.page-hero p  { font-size: 1.05rem; opacity: 0.85; margin: 0; }

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ========== Vehicles List ========== */
.vehicles-section { padding: 60px 0; }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.vehicle-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.vehicle-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
}

.vehicle-card h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--text-dark);
}

.vehicle-spec {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.vehicle-price {
  font-size: 0.9rem;
  color: var(--hyundai-blue);
  font-weight: 600;
  margin: 0 0 12px;
}

/* ========== Price List ========== */
.pricelist-section { padding: 60px 0; }

.pricelist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.price-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.price-card h3 {
  font-size: 1.1rem;
  color: var(--hyundai-blue);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hyundai-blue);
  font-weight: 700;
}

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

.price-card ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed #f0f0f0;
}

.price-card ul li:last-child { border-bottom: none; }

.car-info { color: #555; }
.car-price { color: var(--hyundai-red); font-weight: 600; }

/* ========== Promo ========== */
.promo-section { padding: 60px 0; }
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.promo-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  text-align: center;
  padding: 20px 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--hyundai-red);
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.promo-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}

.promo-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--text-dark);
}

.promo-price {
  font-size: 0.85rem;
  color: var(--hyundai-blue);
  font-weight: 600;
  margin: 0 0 12px;
}

/* ========== News ========== */
.news-section { padding: 60px 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  color: inherit;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content { padding: 20px; }

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 8px;
  line-height: 1.4;
}

.news-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Vehicle Detail ========== */
.vehicle-detail { background: #fff; }

.vd-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}

.vd-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vd-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
}

.vd-hero-overlay h1 {
  font-size: 2.4rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.vd-price {
  font-size: 1.1rem;
  color: #ffd700;
  margin: 0 0 16px;
  font-weight: 600;
}

.vd-section { padding: 50px 0; }

.vd-specs, .vd-features, .vd-content {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.vd-specs h2, .vd-features h2, .vd-content h2 {
  font-size: 1.2rem;
  color: var(--hyundai-blue);
  margin: 0 0 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
}
.feature-list li i { color: var(--hyundai-red); }

.vd-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.vd-cta {
  text-align: center;
  margin-top: 30px;
}

.vd-related { padding: 50px 0; background: #f8f9fa; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.related-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 14px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s;
  color: inherit;
}
.related-card:hover { transform: translateY(-3px); color: inherit; }
.related-card img { width: 100%; height: 120px; object-fit: contain; }
.related-card h3 { font-size: 0.95rem; margin: 8px 0 4px; }
.related-card p  { font-size: 0.82rem; color: var(--hyundai-blue); font-weight: 600; }

/* ========== Berita Detail ========== */
.berita-detail { padding: 50px 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hyundai-blue);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.berita-header { margin-bottom: 24px; }

.berita-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.berita-detail h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
  line-height: 1.3;
}

.berita-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 20px;
}

.berita-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}

.berita-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.berita-content h2 {
  font-size: 1.4rem;
  color: var(--hyundai-blue);
  margin: 30px 0 12px;
}

.berita-content ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.berita-content li {
  margin-bottom: 6px;
}

.berita-content p { margin: 0 0 16px; }

.berita-share {
  text-align: center;
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  margin: 30px 0;
}

.berita-related h2 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin: 40px 0 20px;
}

.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.related-article {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  color: inherit;
  transition: transform 0.2s;
}
.related-article:hover { transform: translateY(-3px); color: inherit; }
.related-article img { width: 100%; height: 150px; object-fit: cover; }
.related-article h3 { font-size: 0.95rem; padding: 12px 16px 0; margin: 0; }
.related-date { font-size: 0.78rem; color: var(--text-muted); padding: 4px 16px 12px; margin: 0; }

/* ========== Contact ========== */
.contact-section { padding: 60px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--hyundai-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-item p  { margin: 0; color: #555; font-size: 0.9rem; }
.contact-item a { color: var(--hyundai-blue); }

.contact-map-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--hyundai-blue);
  font-size: 0.85rem;
}

.contact-cta { margin-top: 20px; }
.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  min-height: 400px;
}

/* ========== 404 ========== */
.not-found-section { padding: 100px 0; }
