/*
  Copyright (c) 2019 yakangcoder
  All rights reserved. Unauthorized copying or distribution is prohibited.
*/

/* ========================
   yakangcoder - Base Reset
   ======================== */

/* ========================
   Reset & Base Styles
   ======================== */

html {
  scroll-behavior: smooth;
}
body,
html {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
}

/* ========================
   Typography
   ========================*/
h1,
h2,
h3,
h4,
h5,
h6,
.section-card h3,
#main-title,
.visi-misi h2,
.tagline-title,
.footer-brand span,
.footer-cv-jaya span,
.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body,
p,
li,
a,
span,
.visi-misi-content,
.section-card p,
.footer,
.footer p,
.footer li,
.footer-brand p,
.footer-cv-jaya p,
.footer-nav a,
.footer-contact ul li {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
}

/* ========================
   Layout / Container
   ========================*/
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* ========================
   Navbar
   ========================*/
/* ========================
   Sembunyikan logo navbar saat layar <= 100px
   ========================*/
@media (max-width: 100px) {
  .navbar-left .brand {
    display: none !important;
  }
}
.navbar {
  background: #99cc33;
  color: #fff;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}
.navbar-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.navbar-left .brand {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}
.navbar-left .brand img {
  display: block;
  max-height: 64px;
  max-width: 180px;
  width: auto;
  height: auto;
  margin: 0;
  transition: max-height 0.2s, height 0.2s;
}
.navbar-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}
/* ========================
   Navbar Links
   ========================*/
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 5px;
  transition: background 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
  background: #7fa528;
}
/* ========================
   Hamburger Menu
   ========================*/
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 120;
}
.hamburger .bar {
  width: 26px;
  height: 3.5px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}
.hamburger.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* ========================
   Responsive Navbar & Logo
   ========================*/
@media (max-width: 1100px) {
  .navbar {
    padding: 0.7rem 1.2rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .nav-links li a {
    font-size: 1rem;
    padding: 0.6rem 0.9rem;
  }
}
@media (max-width: 900px) {
  .navbar {
    padding: 0.6rem 0.7rem;
  }
  .nav-links {
    gap: 0.8rem;
  }
  .nav-links li a {
    font-size: 0.97rem;
    padding: 0.5rem 0.7rem;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
  .navbar {
    padding: 0.5rem 0.4rem;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 0.3rem 0.1rem;
  }
  /* ========================
     Tetap tampilkan logo, jangan di-hide
     ========================*/
  .navbar-left .brand img {
    max-height: 80px;
    max-width: 150px;
  }
  .hamburger {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  .hamburger .bar {
    width: 22px;
    height: 3.5px;
    margin: 4px 0;
  }
}
@media (max-width: 352px), (max-width: 320px) {
  .navbar {
    padding: 0.12rem 0.01rem;
    flex-direction: row;
    min-width: 0;
  }
  .navbar-left .brand img {
    max-height: 80px;
    max-width: 150px;
  }
  .hamburger {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .hamburger .bar {
    width: 18px;
    height: 3px;
    margin: 3px 0;
  }
}
/* ========================
   Mobile Hamburger Overlay Menu
   ========================*/
.mobile-hamburger-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 80vw;
  height: 100vh;
  background: #99cc33;
  color: #fff;
  z-index: 2001;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-hamburger-overlay.open {
  transform: translateX(0);
  display: flex;
}
.mobile-hamburger-close {
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
  background: transparent;
  border: none;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  line-height: 1;
}
.mobile-hamburger-nav {
  margin-top: 70px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 2.5rem 0 0;
}
.mobile-hamburger-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: bold;
  text-align: right;
  width: 100%;
  transition: color 0.2s;
}
.mobile-hamburger-nav a:hover {
  color: #222;
}

/* ========================
   Hero Slider
   ========================*/
.hero-slider {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-caption {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  text-align: center;
  max-width: 90vw;
}
.hero-caption h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}
.hero-caption p {
  margin: 0;
  font-size: 1.1rem;
}
@media (max-width: 900px) {
  .hero-slider {
    height: 220px;
  }
}
@media (max-width: 600px) {
  .hero-slider {
    height: 120px;
  }
  .hero-caption {
    padding: 0.7rem 0.3rem;
    font-size: 0.95rem;
  }
  .hero-caption h2 {
    font-size: 1rem;
  }
  .hero-caption p {
    font-size: 0.85rem;
  }
}

/* ========================
   Produk Card
   ========================*/
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}
.product-card {
  flex: 1 1 250px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-card img {
  width: 100%;
  max-width: 220px;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(153, 204, 51, 0.08);
  background: #fff;
  object-fit: cover;
}
.product-card h3 {
  color: #99cc33;
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  text-align: center;
}
.product-card p {
  color: #444;
  font-size: 1rem;
  text-align: center;
  margin: 0;
}
/* ========================
   Responsive for product cards
   ========================*/
@media (max-width: 900px) {
  .products {
    gap: 1.2rem;
  }
  .product-card {
    max-width: 100%;
    padding: 1rem;
  }
}
@media (max-width: 600px) {
  .products {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
  }
  .product-card img {
    max-width: 100%;
    height: auto;
  }
  .product-card {
    padding: 0.7rem;
  }
}

/* ========================
   Kategori tombol style
   ========================*/
.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.product-categories .category-btn {
  background: #fff;
  color: #222;
  border: none;
  padding: 0.38rem 1.15rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(153, 204, 51, 0.1);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  outline: none;
  min-width: 70px;
}
.product-categories .category-btn.active {
  background: #99cc33;
  color: #fff;
  box-shadow: 0 4px 16px rgba(153, 204, 51, 0.18);
}
.product-categories .category-btn:not(.active):hover {
  box-shadow: 0 4px 16px rgba(153, 204, 51, 0.18);
  color: #99cc33;
}
@media (max-width: 600px) {
  .product-categories .category-btn {
    padding: 0.28rem 0.85rem;
    font-size: 0.98rem;
    min-width: 54px;
  }
}
.product-categories .category-btn img {
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  vertical-align: middle;
  transition: opacity 0.2s;
}
.product-categories .category-btn:hover img {
  opacity: 0.8;
}
.product-categories .category-btn.active img {
  opacity: 1;
}
.product-categories .category-btn span {
  display: inline-block;
  vertical-align: middle;
}

/* ========================
   Fixed Contact Buttons
   ========================*/
.fixed-buttons {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}
.fixed-buttons a {
  display: flex;
  align-items: center;
  background: #99cc33;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
  gap: 0.6em;
}
.fixed-buttons a:hover {
  background: #7fa528;
}
.fixed-buttons svg {
  margin-right: 0;
}

/* ========================
   Table Centering & Responsive Sizing
   ========================*/
.table-center,
#broomstick-specs-table,
#betel-nut-specs-table {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem auto 1.5rem auto;
  padding: 0;
  box-sizing: border-box;
}

#broomstick-specs-table table,
#betel-nut-specs-table table {
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  min-width: 220px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(153, 204, 51, 0.07);
  overflow: hidden;
  font-size: 1rem;
}

#broomstick-specs-table th,
#broomstick-specs-table td,
#betel-nut-specs-table th,
#betel-nut-specs-table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
  word-break: break-word;
}

#broomstick-specs-table th,
#betel-nut-specs-table th {
  background: #99cc33;
  color: #fff;
  font-size: 1.1rem;
}

#broomstick-specs-table tr:nth-child(even),
#betel-nut-specs-table tr:nth-child(even) {
  background: #f7fbe9;
}

/* ========================
   Responsive Table
   ========================*/
@media (max-width: 900px) {
  #broomstick-specs-table table,
  #betel-nut-specs-table table {
    max-width: 99vw;
    font-size: 0.97rem;
  }
}
@media (max-width: 600px) {
  #broomstick-specs-table table,
  #betel-nut-specs-table table {
    max-width: 100vw;
    font-size: 0.93rem;
  }
  #broomstick-specs-table th,
  #broomstick-specs-table td,
  #betel-nut-specs-table th,
  #betel-nut-specs-table td {
    padding: 0.5rem 0.2rem;
  }
}
@media (max-width: 400px) {
  #broomstick-specs-table table,
  #betel-nut-specs-table table {
    font-size: 0.8rem;
    min-width: 160px;
  }
  #broomstick-specs-table th,
  #broomstick-specs-table td,
  #betel-nut-specs-table th,
  #betel-nut-specs-table td {
    padding: 0.3rem 0.1rem;
  }
}

/* ========================
   FOOTER STYLES
   ========================*/

.footer {
  background-color: #4b6617;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
}

.footer-top {
  padding: 40px 20px;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer .container > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-cv-jaya {
  padding-top: 24px; /* Tambahkan jarak atas */
  margin-bottom: 0;
  min-width: 220px;
}

.footer-cv-jaya span {
  font-weight: bold;
  color: #fff;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  margin-bottom: 0.4em;
  display: block;
}

.footer-cv-jaya p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  font-weight: bold;
  margin-bottom: 12px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-contact i {
  margin-right: 8px;
  color: #cde95a;
}

.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-social {
  margin-bottom: 24px; /* Tambahkan jarak bawah */
}

.footer-social .social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social a {
  background-color: #99cc33;
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.footer-social a:hover {
  background-color: #88b42d;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  background-color: #3a5114;
  font-size: 13px;
}
