/* ===== Layout global agar halaman mengisi tinggi layar ===== */
html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #00172C;
}
main { flex: 1; display: block; } /* main akan mendorong footer ke bawah */

/* ===== Container util ===== */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding: clamp(16px, 2vw, 28px);
}

/* --- NAVBAR DASAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #00172C;
  color: white;
  padding: 1rem 2rem;
  position: relative;
}

.logo img {
  width: 20%;
}

/* --- LINK NAVIGASI --- */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #C4996A;
}

/* --- BURGER MENU (tombol tiga garis) --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

/* --- RESPONSIVE MODE --- */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #00172C;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-left: 2px solid #C4996A;
    border-bottom: 2px solid #C4996A;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  /* Animasi garis saat aktif */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}



/* HERO */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(to bottom right, #00172C, #003C60);
  color: white;
}

/* BRAND CARDS */
.brands {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px;
}

.brand-card {
  background: white;
  border: 2px solid #C4996A;
  border-radius: 15px;
  width: 300px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.brand-card:hover {
  transform: translateY(-5px);
}

.brand-card img {
  width: 100%;
  border-radius: 10px;
}

/* CONTACT FORM */
.contact {
  padding: 50px;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.btn {
  display: inline-block;
  background: #C4996A;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #b48858;
}

.contact-us-btn {
  margin-bottom: 20px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background: #00172C;
  color: white;
  margin-top: 50px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .brands {
    flex-direction: column;
    align-items: center;
  }
}
