/* =========================================
   0. RESET & VARIABEL WARNA
   Semua warna didefinisikan di satu tempat (CSS variables)
   supaya gampang diubah nanti tanpa cari satu-satu di kode.
========================================== */
:root {
  --white: #FFFFFF;
  --brown-dark: #4A2C1A;   /* teks utama, coklat tua */
  --brown-mid: #8A6A57;    /* teks sekunder / deskripsi */
  --orange: #FF7A30;
  --yellow: #FFC93C;
  --gradient-accent: linear-gradient(135deg, var(--orange), var(--yellow));
  --cream: #FFF8F0;        /* variasi putih untuk background section/card */
  --shadow: 0 8px 20px rgba(74, 44, 26, 0.10);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--brown-dark);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', sans-serif;
  color: var(--brown-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tombol dasar dengan gradasi oranye-kuning */
.btn {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  padding: 14px 32px;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 122, 48, 0.35);
}

/* =========================================
   1. HEADER
========================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: 0 2px 12px rgba(74, 44, 26, 0.06);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
}

.logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover {
  color: var(--orange);
}

/* Checkbox & burger disembunyikan di layar besar */
.nav-toggle,
.nav-burger {
  display: none;
}

/* =========================================
   2. HERO SECTION
========================================== */
.hero {
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 64px;
}

.hero-text {
  flex: 1 1 420px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-dash {
  color: var(--orange);
}

.hero-sub {
  color: var(--brown-mid);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-image {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Pembatas bergerigi ala pinggiran kerupuk yang digigit.
   Dibuat murni dengan CSS gradient, tanpa gambar. */
.cracker-divider {
  height: 22px;
  background-color: var(--white);
  background-image:
    linear-gradient(135deg, var(--yellow) 25%, transparent 25%) -11px 0,
    linear-gradient(225deg, var(--yellow) 25%, transparent 25%) -11px 0,
    linear-gradient(315deg, var(--yellow) 25%, transparent 25%) 0 0,
    linear-gradient(45deg,  var(--yellow) 25%, transparent 25%) 0 0;
  background-size: 22px 22px;
  background-repeat: repeat-x;
}

.cracker-divider-top {
  transform: rotate(180deg);
}

/* =========================================
   3. KATALOG PRODUK
========================================== */
.catalog {
  padding: 64px 0;
  background-color: var(--cream);
}

.section-title {
  font-size: 2rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--brown-mid);
  margin-bottom: 40px;
}

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

.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: var(--white);
  padding: 12px;
}

.product-body {
  padding: 20px;
}

.product-body h3 {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.product-weight {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown-mid);
  background-color: var(--cream);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.product-body p {
  color: var(--brown-mid);
  font-size: 0.92rem;
  min-height: 48px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.price {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--orange);
}

/* =========================================
   3.5 TENTANG KAMI
========================================== */
.about {
  padding: 64px 0;
  background-color: var(--white);
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  color: var(--brown-mid);
  font-size: 1.12rem;
  line-height: 1.75;
  margin-top: 18px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-align-last: center; /* baris terakhir tetap center, jadi tidak ada kata menggantung sendirian di pinggir */
  text-wrap: balance;
}

/* Paragraf kedua (info Catering/Restoran) sengaja TIDAK dijustify.
   Kalimatnya pendek, jadi justify malah bikin spasi antar kata
   meregang tidak wajar -- lebih rapi dibiarkan center dengan
   spasi normal apa adanya. */
.about-highlight {
  color: var(--brown-dark);
  font-weight: 700;
  text-align: center;
  text-align-last: center;
  text-wrap: initial;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   4. FOOTER
========================================== */
.site-footer {
  background-color: var(--brown-dark);
  color: var(--cream);
  padding-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 20px;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col p,
.value-list li {
  color: #E9D8C9;
  font-size: 0.92rem;
}

.footer-info p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-info strong {
  color: var(--white);
}

.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.value-list li {
  padding-left: 20px;
  position: relative;
}

.value-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-icon i {
  font-size: 19px;
  line-height: 1;
}

/* Teks nama platform disembunyikan secara visual, tapi tetap terbaca
   oleh screen reader (aksesibilitas), karena kita cuma tampilkan ikon */
.social-icon span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: var(--gradient-accent);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(255, 122, 48, 0.35);
}

.copyright {
  text-align: center;
  padding: 20px 0 28px;
  font-size: 0.82rem;
  color: #C9B4A3;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   5. RESPONSIVE: MOBILE (max-width 768px)
========================================== */
@media (max-width: 768px) {

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
  }

  .nav-burger span {
    height: 3px;
    width: 100%;
    background-color: var(--brown-dark);
    border-radius: 2px;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 12px rgba(74, 44, 26, 0.06);
    transition: max-height 0.3s ease;
  }

  .main-nav a {
    padding: 16px 0;
    width: 100%;
    text-align: center;
  }

  /* Saat checkbox dicentang (menu dibuka), tampilkan nav */
  .nav-toggle:checked ~ .main-nav {
    max-height: 300px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .about-text {
    font-size: 1rem;
    text-align: left;
    text-align-last: left;
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .value-list {
    align-items: center;
  }

  .value-list li {
    padding-left: 0;
  }

  .value-list li::before {
    position: static;
    margin-right: 6px;
  }

  .social-links {
    justify-content: center;
  }
}

/* =========================================
   6. MODAL FORMULIR PEMESANAN
========================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(74, 44, 26, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

/* Class ini ditambahkan lewat JS saat modal dibuka */
.modal-overlay.modal-open {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brown-mid);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--orange);
}

.modal-box h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.modal-product {
  color: var(--brown-mid);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.modal-product strong {
  color: var(--brown-dark);
}

#order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#order-form label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: -8px;
}

#order-form input,
#order-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #E9D8C9;
  border-radius: 10px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--brown-dark);
  background-color: var(--cream);
}

#order-form input:focus,
#order-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.btn-wa {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  font-size: 1rem;
  border: none;
}

/* =========================================
   7. TOMBOL MELAYANG WHATSAPP
========================================== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25D366; /* warna resmi WhatsApp, sengaja beda dari aksen brand agar langsung dikenali */
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  z-index: 900;
  animation: wa-pulse 2.4s infinite;
}

.wa-float:hover {
  transform: scale(1.08);
}

/* Animasi "cincin" berdenyut supaya tombol menarik perhatian */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 480px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}
