/* === RESET & DASAR === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

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

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

/* === MAIN === */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

main > section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* === SECTION TITLE === */
.section-title {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 1.5rem;
}

.section-desc {
  text-align: center;
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

/* === PROMO SECTION ATAS === */
.promo-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 3rem 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.promo-text {
  flex: 1 1 400px;
  min-width: 280px;
}

.promo-text h2 {
  color: #2e7d32;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.promo-text ul {
  list-style: disc inside;
  margin-bottom: 1rem;
  color: #333;
}

.promo-text ul li {
  margin-bottom: 0.5rem;
}

.promo-text p {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 1.1rem;
}

.promo-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 28px;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-primary {
  background: #2e7d32;
  color: white;
}

.btn-primary:hover {
  background: #27682a;
}

.btn-secondary {
  background: #f5f5f5;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.btn-secondary:hover {
  background: #2e7d32;
  color: white;
}

/* Gambar utama promo */
.promo-main-image {
  flex: 1 1 400px;
  max-width: 450px;
  max-height: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === PRODUCTS === */
.products {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.product {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 320px;
  flex: 1 1 280px;
  text-align: center;
  padding-bottom: 1rem;
}

.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid #2e7d32;
}

.product h3 {
  color: #2e7d32;
  margin: 0.8rem 0 0.4rem;
}

.product p {
  font-size: 14px;
  color: #555;
  padding: 0 15px 15px;
  line-height: 1.6;
  flex-grow: 1; /* Biar deskripsi mengikuti isi */
}

/* Responsif Mobile */
@media (max-width: 768px) {
  .products {
    flex-direction: column;
    align-items: center;
  }

  .product {
    max-width: 90%;
  }

  .product h3 {
    font-size: 16px;
  }

  .product p {
    font-size: 13px;
    padding: 0 10px 15px;
  }
}

/* === FEATURES === */
.features {
  background: #f4f6f8;
  padding: 2rem;
  border-radius: 10px;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.feature-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.feature {
  flex: 1 1 280px;
  max-width: 320px;
  background: white;
  padding: 1.8rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature .icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: #2e7d32;
}

.feature p {
  color: #555;
}

/* === CONTACT === */
.contact {
  background: linear-gradient(135deg, #1b5e20, #2e7d32 40%, #81c784);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 10px;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.contact h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.whatsapp-link {
  background: #25d366;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-block;
  transition: background 0.3s ease;
}

.whatsapp-link:hover {
  background: #1ebe5d;
}

/* === PROMO KARTU === */
.promo-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1rem;
}

.promo-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  flex: 1 1 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.promo-card img.promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.promo-content {
  padding: 1rem 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.promo-content h3 {
  color: #2e7d32;
  margin-bottom: 0.6rem;
}

.promo-content p {
  flex-grow: 1;
  color: #555;
  margin-bottom: 1rem;
}

.read-more {
  align-self: flex-start;
  color: #2e7d32;
  font-weight: 600;
  transition: text-decoration 0.3s ease;
}

.read-more:hover {
  text-decoration: underline;
}

/* === FOOTER === */
footer {
  background: #222;
  color: #eee;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #2e7d32;
}

footer a:hover {
  text-decoration: underline;
}

/* ================================
   Hero Section
   ================================ */
.hero,
.hero1 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: center / cover no-repeat;
  overflow: hidden;
}

/* Overlay */
.hero::after,
.hero1::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(8, 9, 0, 0.5);
  z-index: 1;
}

/* Content Container */
.hero .container,
.hero1 .container {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px 24px;
  border-radius: 12px;
  max-width: 1000px;
  width: 90%;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contact Item */
.contact-item {
  margin-top: 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Kunjungi Website Button */
.hero .btn-primary,
.hero1 .btn-primary {
  margin-top: 24px;
  background-color: #e53935; /* Merah Hino */
  color: #fff;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .btn-primary:hover,
.hero1 .btn-primary:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 57, 53, 0.4);
}

/* Slider */
.slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider img.active {
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .promo-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  .promo-text,
  .promo-main-image {
    max-width: 100%;
  }
  .products,
  .feature-list,
  .promo-container {
    flex-direction: column;
    align-items: center;
  }
  .product,
  .feature,
  .promo-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero,
  .hero1 {
    background-position: top center;
    background-size: contain;
    min-height: auto;
  }
  .hero::after,
  .hero1::after {
    background-color: rgba(0, 0, 0, 0.3);
  }
  .hero .container,
  .hero1 .container {
    font-size: 14px;
    padding: 16px 12px;
    max-width: 90%;
    border-radius: 8px;
  }
  .hero .container h1,
  .hero1 .container h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  body {
    overflow-x: hidden;
  }
  .nav {
    gap: 20px;
    padding: 0 10px;
  }
  .hamburger-menu {
    font-size: 24px;
  }
}

/* ================================
   Hero Section
   ================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

/* Slider Gambar */
.hero .slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero .slider img.active {
  opacity: 1;
}

/* Overlay Gelap */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Konten Hero */
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 90%;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}

.hero h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Tombol Hero */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.hero-buttons .btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Tombol WhatsApp */
.hero-buttons .btn-contact {
  background-color: #25d366;
  color: #fff;
}

.hero-buttons .btn-contact:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Tombol Website Utama */
.hero-buttons .btn-website {
  background-color: #e53935;
  color: #fff;
}

.hero-buttons .btn-website:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 57, 53, 0.4);
}

/* Responsif */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* Offset scroll agar heading tidak tertutup sticky header */
#products-section,
#features,
#contact,
#promo,
#promo-utama {
  scroll-margin-top: 130px; /* Sesuaikan dengan tinggi sticky header navbar kamu */
}

@media (max-width: 768px) {
  /* Center-kan tombol/tulisan konsultasi dan kunjungi website */
  .hero-buttons {
    justify-content: center !important;
    text-align: center;
    flex-direction: column; /* kalau tombol berjajar vertikal */
    gap: 15px;
  }

  .hero-buttons .btn {
    margin-left: auto;
    margin-right: auto;
    width: 80%; /* agar tombol agak lebar dan rapi */
  }

  /* Sembunyikan gambar mobil truk Hino di bawah hero pada mobile */
  /* Misal gambarnya ada di .hero-main-image atau class lain, ganti sesuai classnya */
  .promo-main-image, /* contoh nama class gambarnya */
  .hero-image,       /* tambahkan selector lain jika ada */
  .truck-image-mobile-hide {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Center-kan tombol di .promo-buttons */
  .promo-buttons {
    display: flex;
    flex-direction: column;
    align-items: center; /* Supaya tombol di tengah */
    gap: 15px;
  }

  .promo-buttons a {
    width: 80%; /* Biar tombol cukup lebar, tapi ada margin */
    text-align: center; /* Text di tombol juga center */
  }

  /* Sembunyikan gambar Hino truk di bawah promo-buttons */
  /* Misal gambarnya ada kelas .promo-main-image */
  .promo-main-image {
    display: none !important;
  }
}

/* ===== Footer Styles ===== */
footer {
  background: #1a1a1a; /* warna gelap elegan */
  color: #ddd;
  padding: 50px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  border-bottom: 2px solid #ffcc00;
  padding-bottom: 5px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  line-height: 1.6;
  color: #bbb;
  text-decoration: none;
}

.footer-section a:hover {
  color: #ffcc00;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 10px;
}

.publisher-link {
  margin-top: 5px;
  font-weight: bold;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.social-icons a:hover {
  background: #ffcc00;
}

.social-icons svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.footer-contact p svg,
.footer-address p svg {
  margin-right: 8px;
  stroke: #ffcc00;
  vertical-align: middle;
}

.footer-barcode {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-barcode img {
  max-width: 140px;
  border: 2px solid #444;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}

.footer-logo p {
  text-align: left;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0 0px; /* atas 10px, bawah 5px */
  font-size: 14px;
  color: #aaa;
  border-top: 1px solid #333;
  margin-top: 15px;
}

.footer-bottom p {
  margin: 0; /* hilangkan jarak bawaan paragraf */
}

/* Responsive Layout */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }
  .footer-section {
    align-items: center;
  }
  .social-icons {
    justify-content: center;
  }
}

.fade-element {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  transform: translateY(20px);
  transition-property: opacity, transform;
}

.fade-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Promo Hino - Style Blog Card
   ================================ */

/* Container Promo */
.promo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Promo */
.promo-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 300px;
  min-height: 480px;
  position: relative; /* untuk full link */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Gambar Promo */
.promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Konten Promo */
.promo-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px; /* padding seragam */
}

/* Judul Promo */
.promo-title {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 10px; /* jarak bawah saja */
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.promo-title:hover {
  color: #007bff;
}

/* Deskripsi Singkat */
.promo-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px; /* jarak bawah saja */
  line-height: 1.6;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

/* Tombol Baca Selengkapnya */
.read-more {
  font-size: 14px;
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.read-more:hover {
  text-decoration: underline;
}

/* Full clickable link */
.promo-card a.full-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}

/* Responsif Mobile */
@media (max-width: 768px) {
  .promo-container {
    gap: 20px;
  }
  .promo-card {
    width: 100%;
    max-width: 380px;
  }
}

/* Pastikan teks produk terbaca di mobile */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 300px;
  flex: 1 1 300px;
}

.product img {
  width: 100%;
  height: auto;
}

.product h3 {
  font-size: 18px;
  margin: 10px;
}

.product p {
  font-size: 14px;
  color: #555;
  padding: 0 15px 15px;
  line-height: 1.6;
}

/* Mobile view */
@media (max-width: 768px) {
  .products {
    flex-direction: column;
    align-items: center;
  }

  .product {
    max-width: 90%;
  }

  .product p {
    font-size: 13px;
    padding: 0 10px 15px;
  }
}
