/* ========================================
   DONATKITA - Stylesheet
   ======================================== */

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

h1,
h2,
h3 {
  font-family: "Fredoka", sans-serif;
}

/* Cegah scroll horizontal */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: #1e2a1e;
  line-height: 1.5;
  scroll-behavior: smooth;
}

:root {
  --green-primary: #e67e22;
  --green-light: #fff3e8;
  --green-soft: #ffd8b2;
  --green-accent: #d35400;
  --white: #ffffff;
  --gray-bg: #fafbfa;
  --text-dark: #1a2c1a;
  --text-soft: #3e4d3c;
  --shadow-sm:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
  --radius-card: 1.5rem;
  --navbar-height: 68px;
}

/* ============ CONTAINER ============ */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ NAVBAR ============ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(46, 125, 50, 0.12);
  width: 100%;
  min-height: var(--navbar-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-primary);
  flex-shrink: 0;
}

.logo i {
  font-size: 1.7rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text small {
  font-size: 0.65rem;
  font-weight: 500;
  color: #777;
}

/* Menu Desktop */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: left 0.3s ease-in-out;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--green-primary);
}

/* Hamburger — tersembunyi di desktop */
.hamburger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--green-primary);
  transition: 0.2s;
  z-index: 1001;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ============ BUTTON STYLES ============ */
.btn-outline {
  border: 1.5px solid var(--green-primary);
  background: transparent;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  color: var(--green-primary);
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-outline:hover {
  background: var(--green-primary);
  color: white;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green-primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* ============ OVERLAY ============ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  z-index: 998;
  display: none;
}

.menu-overlay.active {
  display: block;
}

/* ============ HEADING STYLE ============ */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
}

/* ============ HERO ============ */
section {
  padding: 4rem 0;
}

#home {
  background:
    radial-gradient(
      circle at top right,
      rgba(46, 125, 50, 0.12),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(46, 125, 50, 0.05),
      transparent 40%
    );
}

body::before {
  content: "🍩";
  position: fixed;
  top: 20%;
  right: 5%;
  font-size: 120px;
  opacity: 0.03;
  pointer-events: none;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0 4rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 260px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--green-primary);
  border-bottom: 3px solid var(--green-soft);
}

.hero-content p {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
  max-width: 100%;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 40px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  background: #fff3cd;
  color: #856404;

  padding: 0.6rem 1rem;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 600;

  margin-bottom: 1rem;

  max-width: 100%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============ STATISTIK ============ */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 40px auto;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  min-width: 120px;
  flex: 1;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  font-size: 1.8rem;
  color: var(--green-primary);
  margin-bottom: 0.8rem;
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--green-primary);
}

.stat-card span {
  color: var(--text-soft);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;

  background: linear-gradient(135deg, #2e7d32, #66bb6a);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ PRODUCTS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: white;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  border: 1px solid rgba(46, 125, 50, 0.08);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  transition: 0.4s;
}

.product-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 1.2rem;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.price {
  font-weight: 700;
  color: var(--green-primary);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.btn-small {
  background: var(--green-light);
  color: var(--green-primary);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.btn-small:hover {
  background: var(--green-soft);
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.feature-item {
  background: var(--gray-bg);
  padding: 1.8rem 1rem;
  border-radius: 1.8rem;
}

.feature-item i {
  font-size: 2.3rem;
  color: var(--green-primary);
  margin-bottom: 0.8rem;
}

/* ============ GALERI ============ */
.galeri-section {
  background: linear-gradient(135deg, #fff8f0 0%, #fefcf5 100%);
}

.galeri-subtitle {
  text-align: center;
  color: var(--text-soft);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.galeri-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.galeri-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.galeri-item.galeri-tall {
  grid-row: span 2;
}

.galeri-item.galeri-wide {
  grid-column: span 2;
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(230, 126, 34, 0.85) 0%,
    rgba(211, 84, 0, 0.3) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  gap: 0.5rem;
}

.galeri-item:hover img {
  transform: scale(1.08);
}

.galeri-item:hover .galeri-overlay {
  opacity: 1;
}

.galeri-caption {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Fredoka", sans-serif;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.galeri-zoom {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transform: translateY(8px);
  transition:
    transform 0.35s ease 0.05s,
    background 0.2s;
}

.galeri-item:hover .galeri-caption,
.galeri-item:hover .galeri-zoom {
  transform: translateY(0);
}

.galeri-zoom:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  text-align: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 1.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-caption {
  color: white;
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0.9;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.2rem;
}
.lightbox-prev {
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(230, 126, 34, 0.7);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Galeri responsive */
@media (max-width: 768px) {
  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }
}

@media (max-width: 480px) {
  .galeri-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }
  .galeri-item.galeri-wide {
    grid-column: span 2;
  }
}

/* ============ TESTIMONIAL ============ */

.testimonial {
  background: #fafbfa;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(46, 125, 50, 0.08);
}

.testimonial-card::before {
  content: "❝";
  font-size: 4rem;
  color: var(--green-soft);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-card strong {
  color: var(--green-primary);
  font-size: 0.95rem;
}

.stars {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ============ ABOUT US SECTION ============ */

.about-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
}

.about-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff3e8;
  color: #d35400;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-intro {
  color: var(--text-soft, #3e4d3c);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.8rem;
}

/* Story layout */
.about-story {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.about-image-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2rem;
  object-fit: cover;
}

.about-img-placeholder span {
  font-size: 3rem;
}

.about-img-tag {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #e67e22;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Text & chapters */
.about-text {
  flex: 1.2;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.about-chapter {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: white;
  padding: 1.2rem 1.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(230, 126, 34, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.about-chapter:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(230, 126, 34, 0.1);
}

.chapter-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #fff3e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-chapter h4 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e67e22;
  margin-bottom: 0.3rem;
}

.about-chapter p {
  font-size: 0.92rem;
  color: #3e4d3c;
  line-height: 1.65;
  margin: 0;
}

/* ============ RESPONSIVE ABOUT ============ */

@media (max-width: 768px) {
  .about-story {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image-wrap {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .about-header {
    margin-bottom: 2.5rem;
  }

  .about-chapter {
    padding: 1rem 1rem;
  }

  .about-img-placeholder {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 360px) {
  .about-badge {
    font-size: 0.75rem;
  }
}

/* ============ CONTACT ============ */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--green-light);
  border-radius: 2rem;
  padding: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 200px;
  line-height: 2;
}

.contact-details p {
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
  background: white;
  padding: 1.5rem;
  border-radius: 1.5rem;
  min-width: 260px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e7e0;
  border-radius: 1rem;
  font-family: inherit;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
}

/* ============ FOOTER ============ */
footer {
  background: #1e2a1c;
  color: #cfdfcf;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icons a {
  color: #c8e6c9;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.social-icons a:hover {
  color: white;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  border-radius: 50px;
  padding: 10px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 99;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

/* ============ MEDIA QUERIES ============ */

/* Tablet & Mobile: <= 768px */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3; /* pastikan hamburger selalu di kanan */
  }

  /* Nav links jadi sidebar */
  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: -100%;
    width: 75%;
    max-width: 280px;
    height: calc(100vh - var(--navbar-height));
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.8rem;
    gap: 1.5rem;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 999;
    border-right: 1px solid var(--green-soft);
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    white-space: normal;
    width: 100%;
    font-size: 1.05rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.08);
  }

  .btn-outline {
    white-space: normal;
    text-align: center;
    width: 100%;
    border-bottom: none !important;
    margin-top: 0.5rem;
  }

  .container {
    padding: 0 1.2rem;
  }
}

/* Mobile kecil: <= 640px */
@media (max-width: 640px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 1.5rem 0 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-content a {
    display: inline-block;
  }

  .hero-badge {
    margin: 0 auto 1rem;
    font-size: 0.8rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .products-grid {
    gap: 1rem;
  }

  .contact-wrapper {
    padding: 1.2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .navbar {
    padding: 0.8rem 1rem;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    border-radius: 50%;
    padding: 12px;
    right: 16px;
    bottom: 16px;
  }
}

/* Pastikan gambar tidak overflow */
img,
iframe,
video {
  max-width: 100%;
  height: auto;
}

/* ============ TAMBAHAN FIX RESPONSIVENESS ============ */

/* Tablet portrait 641–768px: hero h1 lebih kecil */
@media (max-width: 768px) and (min-width: 641px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

/* Galeri tall: reset span di layar kecil agar tidak terlalu menjulang */
@media (max-width: 480px) {
  .galeri-item.galeri-tall {
    grid-row: span 1;
  }
}

/* Layar super kecil ≤360px */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .container {
    padding: 0 0.8rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 1rem;
  }

  .btn-primary {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}
