html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Mencegah geser kanan-kiri yang memunculkan warna putih */
  position: relative;
}

* {
  box-sizing: border-box; /* Memastikan padding tidak menambah lebar elemen */
}
h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

p {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}
.container {
  width: 92%;
  max-width: 1400px;
  margin: auto;
}

/* HAMBURGER */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
}
/* NAVBAR */

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: 0.3s;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  color: white;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}
/* HERO */

.hero {
  height: 100vh;
  background: url("../assets/hero.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}
.hero a {
  text-decoration: none;
  color: white;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero h1 {
  font-size: 55px;
  margin-bottom: 20px;
}

.hero button {
  padding: 14px 35px;
  background: rgb(17, 67, 42);
  border: none;
  color: white;
  cursor: pointer;
  margin-top: 20px;
}

/* STORY */
/* SECTION 1 */

.who {
  padding: 60px 5%;
}

.who-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  align-items: center;
}

.who-img img {
  width: 100%;
}

.who-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.who-text p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* SECTION 2 */

.sustainability {
  padding: 60px 5%;
}

.sustain-grid {
  display: grid;

  grid-template-columns: 1fr 1fr 1fr;

  gap: 50px;

  align-items: center;

  text-align: center;
}

.sustain-img img {
  width: 100%;
}

.sustain-text h2 {
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.sustain-text p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.sustain-text button {
  display: block;

  margin: 10px auto;

  padding: 10px 20px;

  background: #214d3a;

  color: white;

  border: none;

  border-radius: 5px;
}

/* CTA */

.cta {
  background: url("https://images.unsplash.com/photo-1515548214798-7a3abbbe55c1")
    center/cover;
  padding: 120px 0;
  text-align: center;
  color: white;
}

.cta button {
  margin-top: 20px;
  padding: 14px 35px;
  border: none;
  background: #0c8f4b;
  color: white;
}
.who-text a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  border: 2px solid #1f4b3b;
  color: #1f4b3b;
  text-decoration: none;
  font-weight: 600;
  border-radius: 3px;
  transition: 0.3s;
}

.who-text a:hover {
  background: #1f4b3b;
  color: white;
}
/* FOOTER */

.footer {
  background: #1f4b3b;
  color: white;
  padding: 80px 5%;
}
.footer img {
  width: 5em;
}
.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.footer-container > div {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  width: 100px;
  margin-bottom: 20px;
}

.footer-left p {
  margin-bottom: 8px;
}

.footer-office h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-office p {
  line-height: 1.6;
  font-size: 14px;
}

.social {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}
.footer h3 {
  margin-bottom: 12px;
}

.footer p {
  line-height: 1.6;
}
.social a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #1f4b3b;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
}
/* Product */
.products {
  padding: 100px 5%;
}

.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.product-slider {
  position: relative;
}

.slides {
  position: relative;
}

.slide {
  width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 25px;
  cursor: pointer;
  padding: 10px;
}

.prev {
  left: -20px;
}

.next {
  right: -20px;
}

.product-text {
  background: #1f4b3b;
  color: white;
  padding: 60px;
}

.product-text h2 {
  margin-bottom: 20px;
}

.product-text p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-text a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
/* Certification */
.certifications {
  padding: 100px 5%;
  text-align: center;
}
.cert-card {
  transition: 0.4s;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.certifications h2 {
  margin-bottom: 50px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.cert img {
  width: 100px;
  margin-top: 10px;
}

.cert p {
  font-weight: bold;
  font-size: 14px;
}
/* lang */
.language {
  display: flex;
  gap: 8px;
  margin-left: 20px;
}

.language button {
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  transition: 0.3s;
}

.language button:hover {
  background: white;
  color: #1f4b3b;
}

/* About */
/* HERO */
.about-hero {
  height: 50vh;
  background: url("../assets/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.about-hero h1 {
  font-size: 48px;
  letter-spacing: 2px;
}

/* CONTENT */
.about-container {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
  line-height: 1.8;
}

.about-container h2 {
  margin-bottom: 20px;
  font-size: 32px;
}

.about-container p {
  margin-bottom: 20px;
  color: #555;
}

/* VALUES */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: #f5f5f5;
  padding: 30px;
  border-radius: 10px;
}

/* GALLERY */
.gallery {
  padding: 60px 20px;
  background: #fafafa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
}
/* Certification */
.cert-hero {
  height: 40vh;
  background: url("../assets/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.cert-hero h1 {
  font-size: 48px;
  letter-spacing: 2px;
}

/* SECTION */
.cert-container {
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px;
  text-align: center;
}

.cert-container p {
  color: #555;
  margin-bottom: 50px;
}

/* GRID */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* CARD */
.cert-card {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.value-card {
  transition: 0.4s;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cert-card img {
  height: 80px;
  margin-bottom: 20px;
}

.cert-card h3 {
  margin-bottom: 10px;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
/* CONCTACT SECTION */
/* HERO */
.contact-hero {
  height: 40vh;
  background: url("../assets/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.contact-hero h1 {
  font-size: 48px;
}

/* CONTAINER */
.contact-container {
  max-width: 1100px;
  margin: auto;
  padding: 70px 20px;
}

/* FORM */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form textarea {
  grid-column: span 2;
  height: 120px;
}
.contact-form input,
.contact-form textarea {
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 8px rgba(46, 125, 50, 0.2);
  outline: none;
}
.contact-form button {
  grid-column: span 2;
  padding: 12px;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #1b5e20;
}

/* INFO */
.contact-info {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.info-box {
  background: #f7f7f7;
  padding: 30px;
  border-radius: 8px;
}

.info-box h3 {
  margin-bottom: 10px;
}

/* COMPLAINT */
.complaint {
  margin-top: 70px;
  line-height: 1.8;
  color: #555;
}

.complaint h2 {
  margin-bottom: 20px;
}
/* BLOG SECTION */
.blog-hero {
  padding: 120px 20px;
  text-align: center;
  background: #f5f5f5;
  color: white;
}

.blog-container {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  margin-bottom: 10px;
}

.blog-content a {
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
}

.blog-detail-hero {
  padding: 120px 20px;
  text-align: center;
  background: #f5f5f5;
}

.blog-detail-container {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}

.blog-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.blog-feature-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 30px;
}

.blog-detail-content h2 {
  margin-top: 30px;
}

.blog-sidebar {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
}

.sidebar-post {
  margin: 15px 0;
}

.sidebar-post a {
  text-decoration: none;
  color: #2e7d32;
  font-weight: 600;
}

.back-blog {
  display: inline-block;
  margin-top: 40px;
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
}
/* --- BLOG DETAIL BASE --- */
.blog-detail-container {
  padding: 100px 0 50px 0;
  max-width: 1200px;
  margin: auto;
  width: 90%;
}

.blog-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2 bagian untuk konten, 1 bagian untuk sidebar */
  gap: 50px;
  align-items: start;
}

.blog-detail-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #444;
}

.blog-detail-content h2 {
  margin: 30px 0 15px 0;
  color: #11432a;
}

.back-blog {
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
  color: #11432a;
  font-weight: bold;
  transition: 0.3s;
}
/* --- RESPONSIVE BREAKPOINT (Mobile & Tablet) --- */

@media (max-width: 768px) {
  /* 1. Reset Body & Container */
  body {
    padding-top: 60px; /* Menyesuaikan tinggi header mobile */
  }

  .container {
    width: 92%;
  }

  /* 2. Navigasi & Hamburger */
  .hamburger {
    display: flex; /* Munculkan ikon hamburger */
  }

  #nav-menu {
    display: none; /* Sembunyikan menu bawaan */
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #11432a;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    z-index: 999;
  }

  #nav-menu.active {
    display: flex; /* Muncul saat JS menambakan class 'active' */
  }

  #nav-menu a {
    margin: 15px 0;
    font-size: 1.2rem;
  }

  .language {
    margin: 0 15px 0 auto; /* Geser bahasa ke kanan sebelum hamburger */
  }

  /* 3. Hero Section */
  .hero h1 {
    font-size: 32px; /* Ukuran teks lebih kecil agar tidak pecah */
    padding: 0 10px;
  }

  .hero-content p {
    font-size: 14px;
    padding: 0 20px;
  }

  /* 4. Mencegah Overlap pada Grid (PENTING) */
  .who-grid,
  .sustain-grid,
  .product-container,
  .cert-grid,
  .footer-container,
  .contact-form,
  .blog-grid {
    grid-template-columns: 1fr !important; /* Paksa semua jadi 1 kolom */
    gap: 30px;
    text-align: center;
  }

  /* 5. Pengaturan Gambar & Teks */
  .who-img,
  .sustain-img {
    order: -1; /* Gambar muncul di atas teks pada mobile */
  }

  .who-text,
  .product-text,
  .sustain-text {
    padding: 20px 10px;
  }

  /* 6. Footer Adjustment */
  .footer-container {
    gap: 40px;
  }

  .footer-left,
  .footer-jakarta,
  .footer-jailolo {
    align-items: center;
    text-align: center;
  }

  /* 7. Certification & Blog */
  .cert img {
    width: 80px;
  }

  .contact-form textarea {
    grid-column: span 1; /* Textarea tidak memakan 2 kolom di mobile */
  }
}

/* Tambahan untuk layar sangat kecil (iPhone SE / Fold) */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero button {
    padding: 10px 20px;
    width: 90%;
  }
}

/* --- MEDIA QUERIES BLOG --- */
@media (max-width: 992px) {
  .blog-detail-grid {
    grid-template-columns: 1fr; /* Tumpuk menjadi 1 kolom di tablet/HP */
    gap: 40px;
  }

  .blog-detail-hero h1 {
    font-size: 2rem;
    padding: 0 20px;
  }

  .blog-sidebar {
    border-top: 1px solid #ddd;
    padding-top: 30px;
  }
}

@media (max-width: 600px) {
  .blog-detail-container {
    padding: 80px 0 40px 0;
  }

  .blog-detail-content {
    font-size: 15px;
  }
}
