/* ============ GLOBAL ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #123026;
  background-color: #f6faf7;
}

img{ max-width: 100%; display: block; }
a{ text-decoration: none; color: inherit; }

.container{
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ============ NAVBAR ============ */
header{
  background-color: #0f3d2e;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.nav-left{
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-left img{
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-left .brand{
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.nav-menu{
  display: flex;
  gap: 1.5rem;
}

.nav-menu a{
  font-size: 0.95rem;
  opacity: 0.9;
}

.nav-menu a:hover{
  opacity: 1;
  text-decoration: underline;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span{
  width: 22px;
  height: 2px;
  background-color: #ffffff;
}

/* ============ HERO ============ */
.hero{
  background: linear-gradient(120deg, #0f3d2e 0%, #178f5b 60%, #f4fdf8 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}

.hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-tagline{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hero-tagline span.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #a4ffcb;
}

.hero h1{
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.hero h1 span.highlight{ color: #a4ffcb; }

.hero-subtitle{
  font-size: 0.95rem;
  max-width: 34rem;
  opacity: 0.95;
  margin-bottom: 1.4rem;
}

.hero-list{ list-style: none; margin-bottom: 1.8rem; }

.hero-list li{
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.hero-list li span.check{
  margin-top: 3px;
  font-size: 1rem;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-primary{
  background-color: #a4ffcb;
  color: #064228;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.btn-ghost{
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: transparent;
}

.btn-ghost:hover{ background: rgba(255, 255, 255, 0.08); }

.hero-badge{ font-size: 0.8rem; opacity: 0.9; }

.hero-media{ position: relative; }

.hero-card{
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1.2rem;
  padding: 1rem;
  color: #123026;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-card img{
  border-radius: 1rem;
  margin-bottom: 0.7rem;
}

.hero-card h3{ font-size: 1rem; margin-bottom: 0.3rem; }
.hero-card p{ font-size: 0.8rem; opacity: 0.8; }

/* ============ SECTIONS GENERIC ============ */
.section{ padding: 3.5rem 0; }

.section-header{
  text-align: center;
  margin-bottom: 2rem;
}

.section-title{
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.section-subtitle{
  font-size: 0.95rem;
  color: #4c6b5b;
}

/* ============ FEATURES (HOME) ============ */
.features-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card{
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid #e3efe8;
}

.feature-icon{ font-size: 1.6rem; margin-bottom: 0.6rem; }
.feature-card h3{ font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p{ font-size: 0.9rem; color: #4c6b5b; }

/* ============ COMPANY PAGE ============ */
.company-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.company-box{
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid #e3efe8;
  margin-bottom: 1.5rem;
}

.company-box h3{ margin-bottom: 0.6rem; font-size: 1.05rem; }

.company-box p,
.company-box li{ font-size: 0.9rem; color: #4c6b5b; }

.company-box ul{ padding-left: 1.1rem; }

.note{
  font-size: 0.75rem;
  color: #789482;
  margin-top: 0.5rem;
}

/* ===== VIDEO MASK FIX (STABLE) ===== */
.production-video{ margin-top: 0.75rem; }

.video-mask{
  border-radius: 0.8rem;
  overflow: hidden;
  background: #000;
}

.video-mask video,
.video-mask iframe{
  width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* ===== GALERI PRODUKSI ===== */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.gallery-grid img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.8rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

/* ============ PRODUCTS PAGE ============ */
.product-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  justify-content: center;
}

.badge{
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid #cbdcd1;
  background-color: #ffffff;
}

.products-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.product-card{
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid #e3efe8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img{
  width: 100%;
  height: 320px;       /* bikin tinggi seragam */
  object-fit: contain; /* cocok untuk foto produk */
  background: #fff;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
}

.product-name{ font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.product-tagline{ font-size: 0.85rem; color: #4c6b5b; margin-bottom: 0.5rem; }
.product-meta{ font-size: 0.8rem; color: #678471; margin-bottom: 0.6rem; }

.price{
  font-weight: 800;
  font-size: 1rem;
  color: #0f3d2e;
  margin-bottom: 0.6rem;
}

.product-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============ ARTICLES PAGE ============ */
.articles-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.article-card{
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid #e3efe8;
}

.article-label{
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f8550;
  margin-bottom: 0.3rem;
}

.article-title{ font-size: 1rem; margin-bottom: 0.4rem; }
.article-meta{ font-size: 0.75rem; color: #789482; margin-bottom: 0.6rem; }

.article-card p{
  font-size: 0.9rem;
  color: #4c6b5b;
  margin-bottom: 0.6rem;
}

.article-card a.read-more{
  font-size: 0.85rem;
  color: #0f8550;
  font-weight: 700;
}

/* ============ FOOTER ============ */
footer{
  background-color: #0b281e;
  color: #e5f2ea;
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.2fr;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-brand{ font-weight: 700; margin-bottom: 0.5rem; }
.footer-grid h4{ margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-grid ul{ list-style: none; }
.footer-grid li{ margin-bottom: 0.35rem; }

.footer-bottom{
  text-align: center;
  font-size: 0.8rem;
  margin-top: 1.2rem;
  opacity: 0.72;
}

/* ============ WHATSAPP FLOAT BUTTON ============ */
.wa-float{
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 99;
}

.wa-float a{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .hero-inner,
  .company-layout,
  .features-grid,
  .products-grid,
  .articles-list,
  .footer-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .hero{ padding-top: 2.5rem; }
  .hero-inner{ gap: 2rem; }

  .product-card img{
    height: 260px;
  }
}

@media (max-width: 720px){
  .nav-menu{ display: none; }
  .nav-toggle{ display: flex; }

  .hero-actions{
    flex-direction: column;
    align-items: flex-start;
  }
}
