/* =======================================
   PT. WIYASA BUMI PERSADA
   BUSINESS UNITS
======================================= */

/* ===== RESET ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== BUTTON ===== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: #0d5c3d;
  color: #fff;

  padding: 15px 30px;

  border-radius: 50px;

  font-weight: 600;

  transition: 0.35s;
}

.btn-primary:hover {
  background: #0a472f;

  transform: translateY(-3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: white;

  color: #0d5c3d;

  padding: 15px 30px;

  border-radius: 50px;

  font-weight: 600;

  transition: 0.35s;

  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;

  color: white;
}

/* ===== HEADER ===== */

header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 999;

  transition: 0.4s;

  padding: 18px 0;
}

header.scrolled {
  background: white;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.logo img {
  width: 60px;
  height: auto;
}

.nav-links {
  display: flex;

  gap: 35px;
}

.nav-links a {
  color: white;

  font-weight: 500;

  transition: 0.3s;
}

header.scrolled .nav-links a {
  color: #222;
}

.nav-links a:hover,
.nav-links a.active {
  color: #d4af37;
}

.nav-action {
  display: flex;

  align-items: center;

  gap: 18px;
}

.whatsapp-btn {
  width: 45px;

  height: 45px;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  color: white;

  background: #25d366;

  font-size: 20px;

  transition: 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

#menu-btn {
  display: none;

  border: none;

  background: none;

  color: white;

  font-size: 28px;

  cursor: pointer;
  position: relative;
  z-index: 10001;
}

/* ===== HERO ===== */

.hero {
  position: relative;

  height: 100vh;

  overflow: hidden;
}

.hero img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.25)
  );

  z-index: 1;
}

.hero-content {
  position: absolute;

  top: 60%;

  left: 50%;

  transform: translate(-50%, -50%);

  z-index: 2;

  color: white;
}

.hero-subtitle {
  display: inline-block;

  background: rgba(255, 255, 255, 0.15);

  padding: 10px 20px;

  border-radius: 50px;

  margin-bottom: 20px;

  letter-spacing: 2px;

  font-size: 0.9rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;

  font-size: 4rem;

  line-height: 1.2;

  margin-bottom: 25px;
}

.hero p {
  max-width: 650px;

  font-size: 1.1rem;

  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;

  gap: 40px;

  flex-wrap: wrap;
  padding-bottom: 30px;
}

/* ===== SECTION ===== */

.business-section {
  padding: 110px 0;
}

.section-title {
  text-align: center;

  margin-bottom: 70px;
}

.section-title span {
  color: #0d5c3d;

  font-weight: 600;

  letter-spacing: 2px;
}

.section-title h2 {
  margin-top: 15px;

  font-size: 2.5rem;

  color: #222;

  font-family: "Playfair Display", serif;
}

.title-line {
  width: 90px;

  height: 4px;

  background: #d4af37;

  margin: 20px auto 0;

  border-radius: 20px;
}
/* =======================================
   BUSINESS CARD
======================================= */

.business-card {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 60px;

  background: #fff;

  padding: 40px;

  border-radius: 24px;

  margin-bottom: 70px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);

  align-items: center;

  transition: 0.35s;
}

.business-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.12);
}

/* =======================================
   IMAGE
======================================= */

.business-image {
  position: relative;

  overflow: hidden;

  border-radius: 20px;
}

.business-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.business-card:hover .business-image img {
  transform: scale(1.08);
}

/* =======================================
   EXPLORE BUTTON
======================================= */

.explore-btn {
  position: absolute;

  left: 25px;

  bottom: 5px;

  display: inline-flex;

  align-items: center;

  gap: 15px;

  background: #0d5c3d;

  color: #fff;

  padding: 25px 22px;

  border-radius: 50px;

  font-weight: 400;

  transition: 0.3s;
}

.explore-btn:hover {
  background: #d4af37;

  color: #fff;
}

/* =======================================
   CONTENT
======================================= */

.business-content h3 {
  font-size: 2rem;

  color: #222;

  margin-bottom: 5px;

  font-family: "Playfair Display", serif;
}

.business-content span {
  color: #0d5c3d;

  font-weight: 600;
}

.business-description {
  margin: 30px 0;

  color: #666;

  line-height: 1.9;
}

/* =======================================
   HEADER
======================================= */

.business-header {
  display: flex;

  align-items: center;

  gap: 20px;
}

/* =======================================
   ICON
======================================= */

.icon-box {
  width: 75px;

  height: 75px;

  border-radius: 20px;

  background: #0d5c3d;

  display: flex;

  justify-content: center;

  align-items: center;

  color: white;

  font-size: 30px;

  transition: 0.3s;
}

.business-card:hover .icon-box {
  transform: rotate(-10deg) scale(1.1);

  background: #d4af37;
}

/* =======================================
   FEATURE GRID
======================================= */

.feature-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;

  margin: 35px 0;
}

.feature-item {
  background: #f8f9fa;

  padding: 20px;

  border-radius: 18px;

  transition: 0.3s;
}

.feature-item:hover {
  background: #0d5c3d;

  color: white;

  transform: translateY(-6px);
}

.feature-item i {
  color: #d4af37;

  font-size: 25px;

  margin-bottom: 15px;
}

.feature-item:hover i {
  color: white;
}

.feature-item h4 {
  margin-bottom: 10px;

  font-size: 17px;
}

.feature-item p {
  font-size: 14px;

  line-height: 1.7;
}

/* =======================================
   PRODUCT LIST
======================================= */

.product-list {
  margin-top: 35px;
}

.product-list h4 {
  margin-bottom: 20px;

  color: #222;

  font-size: 20px;
}

.product-list ul {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;
}

.product-list li {
  position: relative;

  padding-left: 28px;

  color: #555;
}

.product-list li::before {
  content: "✔";

  position: absolute;

  left: 0;

  color: #0d5c3d;

  font-weight: bold;
}
/* =======================================
   STATISTICS
======================================= */

.statistics {
  background: #0d5c3d;

  color: #fff;

  padding: 90px 0;
}

.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;

  text-align: center;
}

.stat-item {
  padding: 30px 20px;
}

.stat-item i {
  font-size: 45px;

  color: #d4af37;

  margin-bottom: 20px;
}

.stat-item h2 {
  font-size: 3rem;

  margin-bottom: 10px;

  font-weight: 700;
}

.stat-item p {
  color: #ddd;

  font-size: 17px;
}

/* =======================================
   CTA
======================================= */

.cta-section {
  background: linear-gradient(135deg, #0d5c3d, #16724d);

  color: #fff;

  padding: 90px 0;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Semua isi berada di tengah */
  justify-content: center;
  text-align: center; /* Teks rata tengah */
  gap: 30px;
}

.cta-content h2 {
  font-size: 2.6rem;

  margin-bottom: 15px;

  font-family: "Playfair Display", serif;
}

.cta-content p {
  max-width: 650px;

  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Agar di HP tombol turun ke bawah */
}

/* =======================================
   FOOTER
======================================= */

footer {
  background: #081d16;

  color: #ddd;

  padding: 70px 0 0;
}

.footer-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr 1fr;

  gap: 50px;
}

.footer-about img {
  width: 180px;

  margin-bottom: 20px;
}

footer h4 {
  color: #fff;

  margin-bottom: 20px;

  font-size: 20px;
}

footer ul li {
  margin-bottom: 12px;
}

footer a {
  color: #ccc;

  transition: 0.3s;
}

footer a:hover {
  color: #d4af37;
}

.footer-bottom {
  margin-top: 60px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  padding: 25px;

  text-align: center;

  color: #aaa;
}

/* =======================================
   RESPONSIVE
======================================= */

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .business-card {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-content {
    flex-direction: column;

    text-align: center;
  }
}

@media (max-width: 768px) {
  #menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;

    top: 0;

    right: -100%;

    width: 280px;

    height: 85vh;

    background: #0d5c3d;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    transition: 0.4s;

    gap: 30px;
    z-index: 10000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: white !important;

    font-size: 18px;
  }

  .hero {
    height: 85vh;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-list ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    width: 92%;
  }

  .business-card {
    padding: 25px;
  }

  .business-header {
    flex-direction: column;

    text-align: center;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .footer-about img {
    margin: auto auto 20px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;

    justify-content: center;
  }
}
/* ===== Scroll Reveal ===== */

.business-card,
.stat-item,
.cta-content {
  opacity: 0;

  transform: translateY(60px);

  transition: all 0.8s ease;
}

.business-card.show,
.stat-item.show,
.cta-content.show {
  opacity: 1;

  transform: translateY(0);
}

/* ===== Back To Top ===== */

.back-to-top {
  position: fixed;

  right: 25px;

  bottom: 25px;

  width: 55px;

  height: 55px;

  border: none;

  border-radius: 50%;

  background: #0d5c3d;

  color: white;

  cursor: pointer;

  font-size: 20px;

  opacity: 0;

  visibility: hidden;

  transition: 0.35s;

  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;

  visibility: visible;
}

.back-to-top:hover {
  background: #d4af37;

  transform: translateY(-5px);
}
