/* ===================================================================
   File CSS Final untuk Proyek Arjuna Store - Versi Biru Modern
   =================================================================== */

/* --- Import Font & Pengaturan Variabel CSS --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  /* [DIUBAH] Palet Warna Biru Modern */
  --primary-color: #0a2540; /* Biru Tua (Navy) */
  --secondary-color: #5469d4; /* Biru Cerah untuk Aksi */
  --accent-color: #e6ebf1; /* Abu-abu Biru Muda untuk Aksen */
  --background-color: #f6f9fc; /* Latar Belakang Abu-abu Sangat Terang */
  --card-bg-color: #ffffff; /* Kartu tetap putih bersih */
  --text-color: #0a2540; /* Teks utama menggunakan biru tua */
  --muted-text-color: #6b7c93; /* Teks sekunder abu-abu */
  --footer-bg-color: #0a2540; /* Footer dengan warna utama */
  --footer-text-color: #f6f9fc; /* Teks di footer */
  --shadow: 0 4px 15px rgba(10, 37, 64, 0.06);
  --shadow-hover: 0 10px 30px rgba(10, 37, 64, 0.1);
}

/* --- Overlay --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.8);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("images/bg.png");
  background-repeat: repeat;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}
/* --- Reset & Pengaturan Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("images/bg.png");
  background-repeat: repeat;
  color: var(--text-color);
  line-height: 1.7;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section & Scroll Margin */
.featured-products-section,
.advantages-section,
.testimonial-section {
  padding: 4rem 0; /* Kembalikan padding ke nilai awal untuk desktop */
  scroll-margin-top: 100px; /* Perbaikan anchor link untuk header sticky */
}

/* --- Header --- */
.main-nav {
  background-color: var(--card-bg-color);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("images/bg.png");
  background-repeat: repeat;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  height: 80px;
  display: flex;
  align-items: center;
}
.nav-brand img {
  height: 70px;
  width: auto;
  border-radius: 50%;
  transition: transform 0.3s ease;
  background-color: var(--background-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 5px;
}
.nav-brand img:hover {
  transform: scale(1.05);
}
.nav-toggle-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}
.nav-links-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.25rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--secondary-color);
}
.nav-links a:hover::after {
  width: 100%;
}

/* --- Halaman Depan --- */
.hero-section {
  background: linear-gradient(rgba(10, 37, 64, 0.6), rgba(10, 37, 64, 0.6)),
    url("images/wp.jpg") no-repeat center center/cover;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: white;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
} /* Ukuran font diatur ulang */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary-color);
}
.section-title p {
  font-size: 1.1rem;
  color: var(--muted-text-color);
  max-width: 600px;
  margin: 0 auto;
}
.advantages-section {
  background-color: var(--card-bg-color);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: center;
}
.advantage-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
}
.advantage-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* --- Tombol Global --- */
.wa-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 8px; /* Sudut lebih modern */
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: linear-gradient(
    45deg,
    var(--secondary-color) 0%,
    #4359c4 100%
  );
  color: white;
  box-shadow: 0 4px 15px rgba(84, 105, 212, 0.3);
}
.wa-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(84, 105, 212, 0.4);
}

/* --- Kartu Produk & Testimoni --- */
.product-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card,
.testimonial-card {
  background-color: var(--card-bg-color);
  border-radius: 16px; /* [DIUBAH] Sudut lebih melengkung */
  border: 1px solid var(--accent-color); /* [KOREKSI] Hanya satu border */
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  opacity: 0; /* Untuk animasi */
  animation: fadeInUp 0.5s ease-out forwards;
}
.product-card:hover,
.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.card-image-container {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}
.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-content h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-color);
}
.card-content .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: auto;
  padding-top: 1rem;
}
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card-link:active .product-card {
  transform: scale(0.98);
  transition: transform 0.1s ease-in-out;
} /* Efek tap mobile */
.detail-button-lookalike {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--accent-color);
  color: var(--primary-color);
  margin-top: 1rem;
  width: 100%;
}
.product-card:hover .detail-button-lookalike {
  background-color: var(--secondary-color);
  color: white;
}
.testimonial-card {
  padding: 2rem;
}
.testimonial-card .rating-stars {
  margin-bottom: 1rem;
  color: #f39c12;
  font-size: 1.1rem;
}
.testimonial-card .quote {
  font-style: italic;
  color: var(--muted-text-color);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  padding-left: 2rem;
}
.testimonial-card .quote::before {
  content: "“";
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--accent-color);
  position: absolute;
  left: -10px;
  top: -20px;
}
.testimonial-card .author h4 {
  margin-bottom: 0;
  color: var(--primary-color);
}

/* --- Halaman Detail Produk --- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
}
.product-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}
.product-detail-info h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}
.product-detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}
.product-detail-description {
  margin-bottom: 2rem;
}
.product-detail-description h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}
.product-detail-description p {
  line-height: 1.8;
  color: var(--muted-text-color);
}
.wa-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  width: 100%;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  padding-top: 4rem;
  margin-top: 4rem;
  border-radius: 20px 20px 0 0;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2rem;
}
.site-footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
}
.site-footer p,
.site-footer a {
  color: var(--footer-text-color);
  line-height: 1.8;
  opacity: 0.8;
}
.footer-contact address {
  font-style: normal;
}
.footer-contact p {
  margin-bottom: 0.75rem;
}
.footer-contact a {
  text-decoration: none;
  transition: opacity 0.3s;
}
.footer-contact a:hover {
  color: var(--accent-color);
  opacity: 1;
}
.contact-item a {
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
  margin-left: 5px;
}
.contact-item .contact-number {
  font-weight: 600;
}
.contact-item .contact-description {
  font-size: 0.9em;
  opacity: 0.7;
  font-style: italic;
}
.social-icons a {
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- Animasi --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Delay untuk animasi */
.product-card:nth-child(2),
.testimonial-card:nth-child(2) {
  animation-delay: 0.1s;
}
.product-card:nth-child(3),
.testimonial-card:nth-child(3) {
  animation-delay: 0.2s;
}
.product-card:nth-child(4) {
  animation-delay: 0.3s;
}
.product-card:nth-child(5) {
  animation-delay: 0.4s;
}
.product-card:nth-child(6) {
  animation-delay: 0.5s;
}

/* ===================================
   MEDIA QUERIES UNTUK RESPONSIVITAS
   =================================== */
@media (max-width: 768px) {
  /* Navigasi Mobile */
  .nav-toggle-button {
    display: block;
  }
  .nav-links-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: transparent;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 999;
  }
  .nav-links-container.active {
    right: 0;
  }
  .nav-links {
    background-color: transparent;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--accent-color);
    color: var(--primary-color);
  }
  .nav-links a::after {
    display: none;
  }

  /* Penyesuaian Ukuran & Padding */
  .hero-content h1 {
    font-size: 2rem;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .product-detail-info h1 {
    font-size: 1.9rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .featured-products-section,
  .advantages-section,
  .testimonial-section {
    padding: 3rem 0;
  }
  .product-grid,
  .testimonial-grid {
    gap: 1.5rem;
  }
  .footer-container {
    text-align: center;
  }
  .social-icons {
    justify-content: center;
    display: flex;
  }

  /* Tombol Sticky di Halaman Detail */
  .product-detail-info .wa-button.large {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    padding: 1.2rem;
    z-index: 99;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  }
  .product-detail-description {
    margin-bottom: 8rem;
  }
}

@media (min-width: 769px) {
  .nav-links-container {
    display: flex !important;
  }
}
