/* --- Global Styles & Variables --- */
:root {
  --primary-color: #c00903; /* Warna Merah Utama */
  --secondary-color: #2c3e50; /* Warna Biru Tua untuk Teks dan Header */
  --bg-color: #dce6f7; /* Warna Biru Muda untuk Background */
  --text-color: #34495e; /* Warna Teks Utama */
  --white-color: #ffffff;
  --font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-color);
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
}
h2 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white-color);
  font-weight: 600;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #a00421; /* Warna merah lebih gelap */
  transform: translateY(-2px);
}

/* --- Header --- */
header {
  background: var(--primary-color);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white-color);
  text-decoration: none;
}

.logo-image {
  width: 50px;
  height: auto;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

header nav ul {
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: var(--white-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--bg-color);
}

/* --- Hero Section --- */
.hero {
  padding: 4rem 0;
  background-color: var(--bg-color);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-image .image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Shine Effect --- */
.shine-effect::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 4s infinite ease-in-out;
}

@keyframes shine {
  0% {
    left: -60%;
  }
  20% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* --- Product Section --- */
.product {
  padding: 4rem 0;
  text-align: center;
}

.product p {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}

.product-image {
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Testimoni Section --- */
.testimoni {
  padding: 4rem 0;
  background-color: var(--bg-color);
}

.testimoni-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimoni-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
}

.testimoni-card p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimoni-card cite {
  font-weight: 600;
  color: var(--secondary-color);
}

/* --- Galeri Section --- */
.galeri {
  padding: 4rem 0;
}

.galeri p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: var(--text-color);
}

.galeri-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.galeri-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 250px;
}

.galeri-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.galeri-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.galeri-card:hover img {
  transform: scale(1.1);
}

/* --- Lokasi Section --- */
.lokasi {
  padding: 4rem 0;
}

.lokasi .container {
  max-width: 1100px;
}

.lokasi p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.map-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* --- FAQ Section --- */
.faq {
  padding: 4rem 0;
  background-color: var(--bg-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--white-color);
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.faq-list details:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.faq-list summary {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary-color);
  cursor: pointer;
  list-style: none; /* Hides default triangle */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1rem;
}

.faq-list summary::after {
  content: "+"; /* Custom plus sign */
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg); /* Rotates plus to X */
}

.faq-list details p {
  padding-top: 1rem;
  color: var(--text-color);
}

/* --- Syarat & Ketentuan Section --- */
.syarat-ketentuan {
  padding: 4rem 0;
}

.terms-list {
  max-width: 800px;
  margin: 0 auto;
}

.terms-list details {
  background: var(--white-color);
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.terms-list summary {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary-color);
  cursor: pointer;
  list-style: none;
}

.terms-list details p {
  padding-top: 1rem;
  color: var(--text-color);
}

/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--white-color);
}

.footer-brand p {
  max-width: 300px;
}

.footer-contact h4 {
  color: var(--white-color);
  margin-bottom: 0.5rem;
}

.footer-contact p,
.footer-contact a {
  color: var(--white-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  }
}

/* --- Responsive Design --- */

/* Mobile Responsive */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  header nav.active {
    max-height: 400px;
  }

  header nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  header nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  header nav ul li:last-child {
    border-bottom: none;
  }

  header nav a {
    display: block;
    padding: 1rem;
  }

  .map-wrapper {
    height: 300px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}

/* Tablet (768px ke atas) */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex: 1;
  }

  .testimoni-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop (992px ke atas) */
@media (min-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 6rem 0;
  }

  .product,
  .testimoni,
  .galeri,
  .lokasi,
  .faq,
  .syarat-ketentuan {
    padding: 6rem 0;
  }

  .testimoni-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .galeri-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
