/* CSS Custom Properties */
:root {
  --background: rgb(0, 0, 0);
  --text-primary: #000000;
  --text-secondary: #ffffff;
  --accent: #ffffff;
  --transition-speed: 0.3s;
  --nav-height: 56px;
  --dropdown-width: 240px;
  --container-max-width: 1200px;
}
/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}


a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}

a:hover,
a:focus {
  color: var(--accent);
  outline: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Navbar fixed at top */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(255, 255, 255, 0));

  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: 1100;
}

/* Push page content below navbar */
.page-content {
  padding-top: var(--nav-height);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  user-select: none;
}

/* Hamburger container */
.hamburger-wrapper {
  position: relative;
  z-index: 1100;
}

/* Hamburger button */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 36px;
  height: 36px;
  position: relative;
  display: none; /* Hidden on desktop */
}

.hamburger:focus {
  outline-offset: 3px;
  outline: 2px solid var(--accent);
}

/* Hamburger lines */
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  background-color: var(--accent);
  position: absolute;
  height: 3px;
  width: 24px;
  border-radius: 2px;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span {
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
}

.hamburger span::before {
  content: "";
  top: -8px;
  left: 0;
}

.hamburger span::after {
  content: "";
  top: 8px;
  left: 0;
}

/* Open state */
.hamburger.open span {
  background: transparent;
}
.hamburger.open span::before {
  transform: rotate(45deg);
  top: 0;
}
.hamburger.open span::after {
  transform: rotate(-45deg);
  top: 0;
}


/* Nav menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  display: inline-block;
  position: relative;
  transition: color var(--transition-speed);
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  /* Hide horizontal nav on mobile */
  .nav-menu {
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: var(--dropdown-width);
    background: var(--background);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    margin: 0;
    transition:
      max-height var(--transition-speed) ease,
      padding var(--transition-speed) ease;
    z-index: 1100;
  }
  .nav-menu.open {
    max-height: 400px;
    padding: 1rem 1.5rem;
  }
  .nav-menu li {
    margin-bottom: 0.4rem;
  }
  .nav-menu li:last-child {
    margin-bottom: 0;
  }
}

/* 3 kotak */
.custom-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}
.custom-cards img {
    border-radius: 2%;
    width: 97%;
    height: 200px;
}

.custom-card {
  background: #f9fafb;
  box-shadow: var(--shadow-light);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.custom-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.custom-card h3 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  font-size: 1.5rem;
  color: black;
}

.custom-card p {
  color: black;
  font-size: 1rem;
  margin: 0;
  text-align: justify;
}


/*THE NEW GEELY EX5 MAX*/
.promo-container { 
    background-color: #ffffff;
    max-width: 100%;
    text-align: center;
    margin: 5px;
}

.promo-subtitle {
    margin-bottom: 20px;
    color: #000000;
}
.promo-button {
    display: inline-block;
    background-color: #000000;
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.promo-button:hover {
    background-color: #acacac;
}
.promo-stats {
    display: flex;
    justify-content: center; /* posisi horizontal di tengah */
    align-items: center;     /* posisi vertikal di tengah */
    flex-wrap: wrap;         /* biar turun ke bawah di layar kecil */
    margin-top: 20px;
    gap: 1.5rem;             /* jarak default antar item */
    color: #ffffff;
    text-align: center;
}

.promo-stat {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 250px;
}

.promo-stat h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin: 0;
    color: #000;
}

.promo-stat p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin: 5px 0 0;
}

/* Responsif untuk layar HP */
@media (max-width: 768px) {
    .promo-stats {
        flex-direction: column;
        gap: 0.5rem;      /* jarak lebih rapat di HP */
        margin-top: 10px; /* atas lebih kecil */
    }

    .promo-stat {
        width: 100%;
    }
}

.note {
    font-size: 0.8em;
    margin-top: 15px;
    color: #888;
}





/* footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 20px 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    flex: 1;
}

.logo {
    max-width: 120px;
}

.footer-navigation, .footer-contact, .footer-actions {
    flex: 1;
    margin: 10px;
}

.footer-navigation h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

.footer-navigation ul li {
    margin-bottom: 5px;
}

.footer-navigation ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-navigation ul li a:hover {
    color: #dcdcdc;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: #bcbcbc;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.directions {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    background-color: #cecece;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.directions:hover {
    background-color: #323232;
}

.test-drive {
    font-weight: bold;
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    color: #000000;
    background-color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.test-drive:hover {
    background-color: #ffffff;
}

.social-media {
    margin-top: 15px;
}

.social-icon {
    color: #fff;
    margin-right: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    padding-top: 10px;
}


/*tombol book a test drive*/
.test-drive {
  background-color: #ffffff; /* hijau WhatsApp */
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.test-drive:hover {
  background-color: #cbcbcb;
}

/* Hilangkan efek highlight biru di HP */
.hamburger-wrapper a,
.hamburger,
.mobile-menu {
  -webkit-tap-highlight-color: transparent; /* Android & iOS */
  -webkit-focus-ring-color: transparent;
  outline: none;
}
/* Safari iOS suka memberi background biru saat tap */
.hamburger-wrapper a:active {
  background: transparent !important;
}
