/* ========================================
   Bawang Goreng Kriuk — Landing Page
   Mobile-first CSS
   Colors: #8B5E3C, #E87A30, #FFF8F0, #2C1810, #FFFFFF
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2C1810;
  background-color: #FFF8F0;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: #E87A30;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d46a24;
}

a:focus-visible {
  outline: 3px solid #E87A30;
  outline-offset: 2px;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 12px 24px;
  background: #E87A30;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  line-height: 1.2;
}

.btn:focus-visible {
  outline: 3px solid #E87A30;
  outline-offset: 2px;
}

.btn--primary {
  background: #E87A30;
  color: #FFFFFF;
  border-color: #E87A30;
}

.btn--primary:hover {
  background: #d46a24;
  border-color: #d46a24;
  color: #FFFFFF;
}

.btn--outline {
  background: transparent;
  color: #8B5E3C;
  border-color: #8B5E3C;
}

.btn--outline:hover {
  background: #8B5E3C;
  color: #FFFFFF;
}

.btn--block {
  display: block;
  width: 100%;
}

.btn--large {
  padding: 18px 36px;
  font-size: 18px;
}

/* --- Section Shared Styles --- */
.section {
  padding: 64px 0;
}

.section__title {
  font-size: 28px;
  font-weight: 800;
  color: #2C1810;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section__subtitle {
  font-size: 16px;
  color: #8B5E3C;
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Header & Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(139, 94, 60, 0.1);
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #8B5E3C;
}

.nav__logo:hover {
  color: #7a4f30;
}

.nav__logo-icon {
  font-size: 24px;
}

.nav__logo-text {
  white-space: nowrap;
}

/* --- Nav Toggle (Hamburger) --- */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #2C1810;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Nav List (Mobile) --- */
.nav__list {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #FFF8F0;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 28px 28px;
  gap: 8px;
  display: flex;
  transition: right 0.3s ease;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.nav__list.active {
  right: 0;
}

.nav__item {
  width: 100%;
}

.nav__link {
  display: block;
  padding: 12px 0;
  color: #2C1810;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(139, 94, 60, 0.08);
}

.nav__link:hover {
  color: #E87A30;
}

.nav__link--cta {
  background: #E87A30;
  color: #FFFFFF;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 16px;
  border-bottom: none;
}

.nav__link--cta:hover {
  background: #d46a24;
  color: #FFFFFF;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 48px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8B5E3C 0%, #a87548 30%, #c48f5a 60%, #E87A30 100%);
  z-index: -1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 248, 240, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(232, 122, 48, 0.2) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #FFFFFF;
}

.hero__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__title-accent {
  color: #FFD4A0;
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero__badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
}

/* --- Keunggulan Section --- */
.keunggulan {
  background: #FFFFFF;
}

.keunggulan__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.keunggulan__card {
  background: #FFF8F0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 94, 60, 0.08);
}

.keunggulan__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 94, 60, 0.1);
}

.keunggulan__icon {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.keunggulan__title {
  font-size: 18px;
  font-weight: 700;
  color: #8B5E3C;
  margin-bottom: 8px;
}

.keunggulan__desc {
  font-size: 14px;
  color: #5a3a28;
  line-height: 1.6;
}

/* --- Produk Section --- */
.produk {
  background: #FFF8F0;
}

.produk__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.produk__card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(139, 94, 60, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produk__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(139, 94, 60, 0.15);
}

.produk__img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.produk__img-emoji {
  font-size: 72px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.produk__card:hover .produk__img-emoji {
  transform: scale(1.1);
}

.produk__img--original {
  background: linear-gradient(135deg, #f5d6a8 0%, #dba978 50%, #c48f5a 100%);
}

.produk__img--pedas {
  background: linear-gradient(135deg, #ffcdb2 0%, #e88d6a 50%, #d46a4a 100%);
}

.produk__img--gurih {
  background: linear-gradient(135deg, #fff3d6 0%, #f0d29b 50%, #dbb877 100%);
}

.produk__body {
  padding: 20px;
}

.produk__name {
  font-size: 20px;
  font-weight: 700;
  color: #2C1810;
  margin-bottom: 8px;
}

.produk__desc {
  font-size: 14px;
  color: #5a3a28;
  margin-bottom: 16px;
  line-height: 1.5;
}

.produk__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.produk__price {
  background: #FFF8F0;
  color: #8B5E3C;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

/* --- Testimonial Section --- */
.testimonial {
  background: #FFFFFF;
}

.testimonial__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial__card {
  background: #FFF8F0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(139, 94, 60, 0.08);
  transition: transform 0.3s ease;
}

.testimonial__card:hover {
  transform: translateY(-4px);
}

.testimonial__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5E3C, #E87A30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.testimonial__avatar-text {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 20px;
}

.testimonial__stars {
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: 14px;
  color: #5a3a28;
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.testimonial__name {
  font-size: 14px;
  font-weight: 600;
  color: #8B5E3C;
  font-style: normal;
}

/* --- Cara Pesan Section --- */
.cara-pesan {
  background: linear-gradient(135deg, #8B5E3C, #a87548);
  color: #FFFFFF;
}

.cara-pesan .section__title {
  color: #FFFFFF;
}

.cara-pesan .section__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.cara-pesan__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.cara-pesan__step {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cara-pesan__step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: #E87A30;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  border: 2px solid #FFF8F0;
}

.cara-pesan__step-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.cara-pesan__step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cara-pesan__step-desc {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
}

.cara-pesan__cta {
  text-align: center;
}

/* --- FAQ Section --- */
.faq {
  background: #FFFFFF;
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: #FFF8F0;
  border-radius: 10px;
  border: 1px solid rgba(139, 94, 60, 0.1);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #2C1810;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  background: rgba(139, 94, 60, 0.05);
}

.faq__icon {
  font-size: 20px;
  font-weight: 300;
  color: #E87A30;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: #5a3a28;
  line-height: 1.7;
}

.faq__answer p {
  margin-bottom: 8px;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* --- Floating WA Button --- */
.floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 28px;
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.floating-wa:focus-visible {
  outline: 3px solid #E87A30;
  outline-offset: 4px;
}

/* --- Footer --- */
.footer {
  background: #2C1810;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer__logo:hover {
  color: #E87A30;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
}

.footer__heading {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  opacity: 0.85;
}

.footer__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer__social-link:hover {
  background: rgba(232, 122, 48, 0.3);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Desktop Styles (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 96px 0;
  }

  .section__title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .section__subtitle {
    font-size: 18px;
    margin-bottom: 56px;
  }

  /* --- Nav Desktop --- */
  .nav__toggle {
    display: none;
  }

  .nav__list {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 4px;
    box-shadow: none;
  }

  .nav__item {
    width: auto;
  }

  .nav__link {
    padding: 8px 16px;
    font-size: 14px;
    border-bottom: none;
    border-radius: 6px;
  }

  .nav__link:hover {
    background: rgba(139, 94, 60, 0.08);
  }

  .nav__link--cta {
    margin-top: 0;
    margin-left: 8px;
  }

  .nav__link--cta:hover {
    background: #d46a24;
  }

  /* --- Hero Desktop --- */
  .hero {
    padding: 96px 0 64px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__cta {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  /* --- Keunggulan Grid Desktop --- */
  .keunggulan__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* --- Produk Grid Desktop --- */
  .produk__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* --- Testimonial Grid Desktop --- */
  .testimonial__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* --- Cara Pesan Desktop --- */
  .cara-pesan__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* --- Footer Desktop --- */
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }

  /* --- Floating WA --- */
  .floating-wa {
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    font-size: 32px;
  }
}

/* ========================================
   Large Desktop (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
  .keunggulan__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__title {
    font-size: 56px;
  }
}

/* ========================================
   Reduced Motion Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
