/* =====================================================
   Global Variables & Reset
===================================================== */
:root {
  --blue: #0b3570;
  /*Biru background Logo*/
  --green: #1da063;
  /* Tombol WA */
  --muted: #f4f7fb;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(6, 20, 50, 0.12);
  --radius: 14px;
  --glass: rgba(255, 255, 255, 0.8);
  --accent: #19a974;
  --header-height: 120px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  margin: 0;
  color: #123;
  background: linear-gradient(90deg, #f3f6fb 0%, #eef2f7 100%);
  -webkit-font-smoothing: antialiased;
}

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

/* =====================================================
   Header (Desktop)
===================================================== */
.site-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: none;
  box-shadow: var(--shadow);
}

.logo img.logo-mark {
  width: 56px;
  height: auto;
}

.brand-name {
  font-weight: 700;
  color: var(--blue);
  font-size: 20px;
}

.brand-sub {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  padding: 8px 6px;
  color: var(--blue);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-phone {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 28px;
  box-shadow: 0 6px 18px rgba(25, 169, 116, 0.15);
}

/* =====================================================
   Hamburger Button
===================================================== */
/* Hamburger */
.hamburger {
  display: none;
  width: 48px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  background: #0f4086;
  /* biru tua */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  padding: 0;
  transition: background-color 0.3s ease;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 20px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animasi jadi X */
.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

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


/* =====================================================
   Hero Section
===================================================== */
.hero {
  background: url('../assets/img/hero-bg2.jpg') center/cover no-repeat;
  color: white;
  padding: calc(var(--header-height) + 20px) 18px 50px;
  /* background-position: 0 0; */
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: center;
}

.hero-left h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.3rem;
  opacity: 0.95;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-product {
  max-width: 120%;
  height: auto;
  display: block;
}

/* =====================================================
   Buttons & CTA
===================================================== */
.cta-testimonial {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cta {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  /* biar icon dan teks sejajar */
  align-items: center;
  /* center vertical */
  gap: 6px;
  /* jarak icon & teks */
  padding: 8px 14px;
  /* diperkecil sedikit */
  border-radius: 10px;
  /* sedikit lebih kecil dari 12px */
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  /* font sedikit kecil */
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(214, 163, 59, 0.14);
  animation: pulse-scale 3s infinite;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #128C7E;
  transform: scale(1.05);
}

.btn img {
  width: 24px;
  /* kecilin icon */
  height: 24px;
  order: -1;
  /* pindah icon ke kiri teks */
}

.btn-outline {
  background: transparent;
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.7);
  animation: blink 1.5s infinite;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background-color: white;
  color: var(--blue);
  transform: scale(1.08);
}

/* =====================================================
   Testimonials
===================================================== */
.testimonials {
  margin-top: 10px;
  padding: 20px 0;
  text-align: center;
}

.testi-slider {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  min-height: 200px;
}

.testi-item {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background: var(--card);
  padding: 15px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-style: italic;
  width: 100%;
  font-size: 1rem;
  line-height: 1.6;
}

.testi-item.active {
  opacity: 1;
  position: relative;
}

.testi-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   Catalog
===================================================== */
main {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 18px 60px;
}

.catalog h2 {
  color: var(--blue);
  font-size: 26px;
  margin: 14px 0;
  text-align: center;
  text-decoration: underline;
  padding-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;

}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
}

.card img {
  max-width: 320px;
  height: 200px;
  object-fit: contain;
}

.card .title {
  margin-top: 8px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
}

.detail-btn {
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 6px 18px rgba(11, 53, 112, 0.06);
}

.detail-btn:active {
  transform: scale(0.98);
}


/* promo */
.promo-cta {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.promo-card {
  background: var(--card);
  border-radius: 22px;
  /* sedikit lebih bulat */
  padding: 28px 40px;
  /* box lebih besar */
  display: flex;
  flex-direction: column;
  /* susun vertikal */
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
  text-align: center;
}

.promo-text {
  font-size: 1.5rem;
  /* lebih besar */
  font-weight: 700;
  color: #e65a5a;
  /* merah smooth */
}

/* Perbesar tombol */
.promo-card .btn {
  font-size: 1.4rem;
  padding: 20px 36px;
  border-radius: 14px;
}

.promo-card .btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.promo-card .btn-primary:hover {
  background-color: #128C7E;
  transform: scale(1.08);
}



/* =====================================================
   Kontak Section
===================================================== */
.kontak-section {
  max-width: 960px;
  margin: 0 auto 50px auto;
  background: linear-gradient(to bottom right, #f0f7ff, #ffffff);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.kontak-container {
  max-width: 960px;
  margin: 0 auto;
}

.kontak-section h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 24px;
  color: var(--blue);
}

.kontak-info {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.kontak-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  color: var(--blue);
  justify-content: center;
}

.kontak-icon {
  width: 40px;
  height: 40px;
}

.kontak-map {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.kontak-map iframe {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.kontak-item svg {
  width: 40px;
  height: 40px;
}

/* =====================================================
   Footer
===================================================== */
/* footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  padding: 16px 0;
  text-align: center;
}

.footer-sitemap {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--blue);
}

.footer-sitemap a {
  color: var(--blue);
  text-decoration: none;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--blue);
} */


footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  padding: 40px 0; /* lebih tinggi dari sebelumnya */
  text-align: center;
}

.footer-sitemap {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--blue);
}

.footer-sitemap a {
  color: var(--blue);
  text-decoration: none;
  margin: 0 10px;
}

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-social a {
  color: var(--blue);
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--green); /* efek hover */
  transform: scale(1.2);
}

.footer-copy {
  font-size: 14px;
  color: var(--blue);
}


/* =====================================================
   Modal
===================================================== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  padding: 24px;
  position: relative;
}

/* Tombol close */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Layout dua kolom di desktop */
.modal-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  /* jarak antar gambar & teks */
}

.modal-body img {
  max-width: 60%;
  /* gambar lebih kecil */
  height: auto;
  object-fit: contain;
}

.m-info {
  flex: 1;
  /* teks mengambil sisa ruang */
  
}

.m-info h3 {
  margin: 0 0 8px;
    
}

.m-info p {
  margin-bottom: 16px;
  line-height: 1.5;
  white-space: pre-line;
}

.m-actions .btn {
  display: inline-block;
}

/* =====================================================
   Floating WhatsApp Button
===================================================== */
.wa-floating {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #1dbf88);
  color: white;
  box-shadow: 0 12px 30px rgba(25, 169, 116, 0.18);
  animation: pulse-shadow 2.2s infinite;
}

/* =====================================================
   Animations
===================================================== */
@keyframes pulse-scale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 768px) {
  /* Navigasi */
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height); /* ✅ posisi sesuai tinggi header */
    right: 0;
    background: white;
    width: 200px;
    flex-direction: column;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hamburger {
    display: flex;
  }

  .nav-actions .btn-phone {
    display: none;
  }

  /* Hero Section */
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 1.6rem;
  }

  .hero-product {
    max-width: 100%; /* biar bisa lebih besar */
    width: 320px;    /* kasih ukuran fix biar gak kekecilan */
    margin-top: 20px;
  }

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

  /* Modal */
  .modal-body {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
  }

  .modal-body img {
    flex: unset;
    width: 100%;
    max-width: 300px;
  }
}


@media (max-width: 420px) {
  .brand-name {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .grid {
    gap: 12px;
  }
}