/* ===== Global layout ===== */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: #f3f4f6; /* abu-abu lembut */
  display: flex;
  flex-direction: column;
  min-height: 100vh;     /* supaya footer nempel bawah */
}

/* ===== Header / Navbar ===== */
.top {
  background: #111827;           /* sedikit biru gelap, lebih modern */
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.menu-toggle {
  font-size: 22px;
  display: none;
  cursor: pointer;
}

nav {
  display: flex;
  gap: 14px;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

nav a:hover {
  color: #ffffff;
}

/* garis kecil di bawah saat hover */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===== Layout konten ===== */
main {
  flex: 1;                       /* dorong footer ke bawah */
  max-width: 960px;
  width: 100%;
  margin: 20px auto;
  padding: 20px 18px 28px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

main h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

main p {
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: 14px;
}

/* ===== Grid katalog ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: center;
  background: #f9fafb;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-size: 13px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  background: #111827;
  color: #e5e7eb;
  padding: 14px 10px;
  font-size: 13px;
}

/* ===== Responsive / Mobile ===== */
@media (max-width: 700px) {
  main {
    margin: 12px auto 16px;
    padding: 16px 14px 22px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;             /* default sembunyi di mobile */
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: #111827;
    padding: 10px 16px 12px;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #1f2937;
  }

  nav a {
    font-size: 15px;
  }

  /* nav dibuka via JS: nav.open */
  nav.open {
    display: flex;
  }
}

/* === Hero di homepage === */
.hero {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #f9fafb;
  padding: 26px 20px 24px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 24px;
}

.hero p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
}

/* tombol utama */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fbbf24;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.btn:hover {
  filter: brightness(0.95);
}

/* === Section umum di homepage === */
.home-section {
  margin-top: 20px;
}

.home-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.home-section p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
}

.home-section ul {
  margin: 0 0 10px 18px;
  padding: 0;
  font-size: 14px;
}

.home-section ul li {
  margin-bottom: 4px;
}

.home-cta-text {
  margin-top: 14px;
  margin-bottom: 8px;
}

/* Sedikit rapikan di layar kecil */
@media (max-width: 700px) {
  .hero {
    padding: 22px 16px 20px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .home-section {
    margin-top: 18px;
  }
}

