/* --- Variabel Warna berdasarkan Logo --- */
:root {
  --primary-color: #043d25;
  --accent-color: #ceab62;
  --accent-hover: #b39352;
  --bg-light: #fcfcfc;
  --bg-section: #f4f5f2;
  --text-dark: #2c3e35;
  --text-muted: #5a6b62;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(4, 61, 37, 0.08);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
}

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* --- Komponen Umum --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(206, 171, 98, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* --- Header / Navbar --- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: var(--transition);
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: var(--primary-color);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(206, 171, 98, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  color: var(--accent-color);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 0.9rem;
  margin-bottom: 30px;
  text-align: justify;
  hyphens: auto; 
  -webkit-hyphens: auto;
  color: #e0e6e3;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-whatsapp {
  color: var(--accent-color);
  border-color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-image {
  /* 1. Kunci Responsif: Gunakan persentase */
  width: 100%; 
    
  /* 2. Batas Maksimal: Jangan lebih besar dari 400px di layar PC */
  max-width: 400px; 
    
  /* 3. Menjaga Proporsi (Rasio): 
  Gunakan aspect-ratio agar tingginya otomatis menyesuaikan lebar.
  1 / 1 berarti kotak persegi sempurna. 
  16 / 9 untuk persegi panjang seperti video YouTube. */
  aspect-ratio: 1 / 1; 

  border: none;
  border-radius: 10px;
  overflow: hidden; /* Penahan zoom-nya tetap ada */
}

.hero-image-zoom {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mencegah foto gepeng */
    
  /* Proses Zoom-nya (Misal diperbesar 1.5x lipat) */
  transform: scale(1);
  transition: transform 0.5s ease;
}

.hero-image:hover .hero-image-zoom {
  transform: scale(1.05); /* Membesar saat di-hover */
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(206, 171, 98, 0.3);
}

/* --- Tentang Kami --- */
.about {
  padding: 100px 0;
  background-color: var(--white);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-image::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent-color);
  border-radius: 8px;
  z-index: -1;
}

.about-text {
  flex: 1;
}

.about-title {
  text-align: left;
  padding-bottom: 10px;
}

.about-title::after {
  left: 0;
  transform: translateX(0);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: justify;
  hyphens: auto; 
  -webkit-hyphens: auto;
}

.features-list {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;

  /* Flex untuk menengahkan teks/angka di dalam ikon */
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  
  /* INI KUNCINYA: Melarang Flexbox menggencet ikon ini */
  flex-shrink: 0
}

.feature-desc {
  margin: 0 !important;
  font-size: 0.9rem;
}

/* --- Produk Section --- */
.products {
  padding: 100px 0;
  background-color: var(--bg-section);
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 15px auto 0;
  text-align: justify;
  hyphens: auto; 
  -webkit-hyphens: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(4, 61, 37, 0.05);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(4, 61, 37, 0.12);
}

/* --- Carousel Styles --- */
.product-carousel {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-color);
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease-in-out;
}

.product-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(4, 61, 37, 0.7);
  color: var(--white);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.product-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background-color: var(--accent-color);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active, .dot:hover {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

.product-info {
  padding: 25px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: justify;
  hyphens: auto; 
  -webkit-hyphens: auto;
}

.btn-product {
  width: 100%;
  padding: 8px;
}

/* --- Testimonial Section --- */
.testimonials {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

#middle-testimonials {
  background-color: white;
  color: #043d25;
}

.testimonials h2 {
  color: var(--accent-color);
  margin-bottom: 40px;
}

.testimonial-card {
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: rgba(206, 171, 98, 0.2);
  position: absolute;
  top: -30px;
  left: -20px;
  font-family: "Playfair Display", serif;
}

.author {
  margin-top: 20px;
  font-weight: 600;
  color: var(--accent-color);
  font-style: normal;
}

/* --- FAQ Section --- */
.faq {
  padding: 100px 0;
  background-color: var(--bg-section);
}

.faq-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 15px auto 40px;
  hyphens: auto; 
  -webkit-hyphens: auto;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border: 1px solid rgba(4, 61, 37, 0.05);
  transition: var(--transition);
}

.faq-item.active {
  box-shadow: 0 10px 20px rgba(4, 61, 37, 0.05);
  border-color: rgba(206, 171, 98, 0.3);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-color);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: var(--accent-color);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 25px 25px;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: justify;
  line-height: 1.7;
}

/* --- Kontak Section --- */
.contact {
  padding: 100px 0;
  background-color: var(--white);
}

.contact-desc {
  text-align: justify;
  hyphens: auto; 
  -webkit-hyphens: auto;
  color: var(--text-muted);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-container {
  display: flex;
  gap: 0;
  background: var(--bg-section);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-info {
  flex: 1;
  padding: 50px;
  background-color: var(--primary-color);
  color: var(--white);
}

.contact-info h3 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-subtitle {
  margin-bottom: 30px;
  opacity: 0.9;
}

.info-item {
  margin-bottom: 25px;
}

.info-item h4 {
  color: var(--accent-color);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-cta {
  flex: 1.5;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--bg-light);
}

.contact-cta-title {
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
}

.contact-cta-desc {
  margin-bottom: 30px;
  color: var(--text-muted);
  max-width: 400px;
  text-align: justify;
  hyphens: auto; 
  -webkit-hyphens: auto;
}

.btn-cta {
  font-size: 1.1rem;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Footer --- */
footer {
  background-color: #022617;
  color: #b0c2b8;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 10px;
}

.footer-socials {
  margin-bottom: 15px;
}

.social-links a {
  color: var(--accent-color);
  margin: 0 10px;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--white);
}

.footer-tag {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Image Modal (Lightbox) --- */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes zoomIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 45px;
  font-weight: 300;
  transition: var(--transition);
  cursor: pointer;
  z-index: 2001;
  opacity: 0.8;
}

.modal-close:hover {
  color: var(--accent-color);
  opacity: 1;
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  transition: var(--transition);
  z-index: 2002;
}

.modal-btn:hover {
  background-color: var(--accent-color);
}

.modal-prev {
  left: 30px;
}

.modal-next {
  right: 30px;
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
  .hero-container,
  .about-container,
  .contact-container {
    flex-direction: column;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 30px auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .about-title {
    text-align: center;
  }
  .about-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .about-image::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    text-align: center;
    gap: 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    display: block;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-links a::after {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .contact-info,
  .contact-cta {
    padding: 30px;
  }
  
  /* Mobile Carousel Adjustments */
  .carousel-btn {
    opacity: 0.8;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    background-color: rgba(4, 61, 37, 0.6);
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }

  .carousel-btn:hover {
    background-color: rgba(4, 61, 37, 0.9);
  }
  
  .modal-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
}