html {
  scroll-behavior: smooth;
}

/* ================= BUTTON ================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-contrast);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-strong);
  transition: 160ms;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  transition: 160ms;
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: var(--ring-border);
}

.btn-discount {
  display: inline-block;
  padding: 12px 18px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.btn-discount:hover {
  background: #333;
}

/* ================= HEADER ================= */

.landing-header {
  padding: 24px 24px 0;
}

.landing-nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
}

/* BRAND + TOGGLE */
.landing-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* MENU DESKTOP */
.landing-links {
  display: flex;
  gap: 10px;
}

.landing-actions {
  display: flex;
  gap: 10px;
}

/* NAV LINK */
.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--sidebar-hover);
}

/* ================= HERO ================= */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

.hero-photo {
  width: 100%;
}

/* ================= MOBILE FIX (PENTING) ================= */

@media(max-width:900px){

  .landing-nav{
    flex-direction: column;
    align-items: flex-start;
  }

  /* tombol ☰ */
  .landing-brand div{
    display:block;
  }

  /* MENU DEFAULT: HILANG */
  #menu{
    display: none !important;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }

  /* SAAT DIKLIK */
  #menu.show{
    display: flex !important;
  }

  /* sembunyikan tombol kanan */
  .landing-actions{
    display:none;
  }
}

/* ================= ANIMASI ================= */

#menu{
  transition: all 0.3s ease;
}

/* ================= FIX BENTROK (PENTING) ================= */

/* HAPUS EFEK OVERRIDE YANG BIKIN ERROR */
@media (max-width: 900px) {
  .landing-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 560px) {
  .landing-header {
    padding: 16px;
  }
}