/* ═══════════════════════════════════════════
   MEKAR WANGI INDONESIA — Global Stylesheet
   ═══════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Outfit:wght@300;400;500&display=swap");

:root {
  --blue: #7baed4;
  --blue-soft: #b8d4ec;
  --blue-pale: #ebf3fa;
  --pink: #d4849e;
  --pink-soft: #ebb8cb;
  --pink-pale: #faedf2;
  --green: #6abf69;
  --green-soft: #a8d9ab;
  --green-pale: #e6f4e7;
  --red: #e57373;
  --red-soft: #f2b8b8;
  --red-pale: #f9eaea;
  --dark: #1a2835;
  --mid: #4a6070;
  --muted: #8a9ead;
  --white: #fdfcfb;
  --cream: #f8f5f1;
  --border: rgba(139, 175, 212, 0.18);

  --ff-display: "Playfair Display", serif;
  --ff-body: "Outfit", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 16px rgba(26, 40, 53, 0.07);
  --shadow-md: 0 12px 40px rgba(26, 40, 53, 0.1);
  --shadow-lg: 0 24px 70px rgba(26, 40, 53, 0.13);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.8;
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-soft);
  border-radius: 99px;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.2;
}
p {
  line-height: 1.75;
  font-weight: 300;
}

/* ── UTILITY ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
}
.tag {
  display: inline-block;
  padding: 0.28rem 0.9rem;
  border-radius: 99px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
}
.tag-blue {
  background: var(--blue-pale);
  color: var(--blue);
}
.tag-pink {
  background: var(--pink-pale);
  color: var(--pink);
}
.tag-green {
  background: var(--green-pale);
  color: var(--green);
}
.tag-red {
  background: var(--red-pale);
  color: var(--red);
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  color: var(--pink);
}
.section-desc {
  font-size: 0.96rem;
  color: var(--mid);
  max-width: 500px;
  line-height: 1.8;
  font-weight: 300;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--blue-soft);
}
.btn-outline:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.btn-pink {
  background: var(--pink);
  color: var(--white);
}
.btn-pink:hover {
  background: var(--pink-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 132, 158, 0.35);
}
.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

/* ── NAV ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(253, 252, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.01em;
}
.nav-logo span {
  color: var(--blue);
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}
.nav-cta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 4rem 5% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.footer-logo span {
  color: var(--blue-soft);
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}
.footer-col ul a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--blue);
  color: var(--white);
}

/* ── FLOATING WA ── */
.float-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}
.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 1rem 5%;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a {
  color: var(--blue);
}
.breadcrumb a:hover {
  color: var(--dark);
}
.produk-grid-main {
  align-items: start; /* ubah ini */
}

.produk-card-main {
  height: 100%; /* tambah ini */
  display: flex;
  flex-direction: column;
}

.produk-info-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.produk-desc-short {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* max 3 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1; /* dorong tombol WA ke bawah */
}

.produk-wa {
  margin-top: auto; /* tombol WA selalu di bawah */
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.anim {
  opacity: 0;
}
.anim.visible {
  animation: fadeUp 0.65s ease forwards;
}
.delay-1 {
  animation-delay: 0.1s !important;
}
.delay-2 {
  animation-delay: 0.2s !important;
}
.delay-3 {
  animation-delay: 0.32s !important;
}
.delay-4 {
  animation-delay: 0.44s !important;
}
.delay-5 {
  animation-delay: 0.56s !important;
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem) !important;
  }

  .hero-sub {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem) !important;
  }

  .kgl-card h3 {
    font-size: clamp(1rem, 3vw, 1.2rem) !important;
  }

  .kgl-card p {
    font-size: clamp(0.88rem, 2.5vw, 1rem) !important;
  }
}

.kgl-icon svg {
  display: block;
}
.kgl-icon.blue svg {
  stroke: var(--blue);
}
.kgl-icon.pink svg {
  stroke: var(--pink);
}

@media (max-width: 480px) {
  /* Produk */
  .produk-name {
    font-size: 1rem !important;
  }

  .produk-desc-short {
    font-size: 0.88rem !important;
  }

  .produk-cat {
    font-size: 0.78rem !important;
  }

  .produk-wa {
    font-size: 0.95rem !important;
    padding: 0.7rem 1rem !important;
  }

  /* Pagination */
  #produk-pagination button,
  #produk-pagination span {
    min-width: 44px !important;
    height: 44px !important;
    font-size: 1rem !important;
  }

  /* Search */
  #search-produk {
    font-size: 1rem !important;
    padding: 0.65rem 0.8rem 0.65rem 2.4rem !important;
  }

  /* Tombol */
  .btn {
    font-size: 0.95rem !important;
    padding: 0.7rem 1.4rem !important;
  }

  /* Testimoni */
  .testi-card blockquote {
    font-size: 0.95rem !important;
  }

  /* FAQ */
  .faq-q {
    font-size: 1rem !important;
  }

  .faq-a {
    font-size: 0.92rem !important;
  }

  /* Cabang */
  .cabang-card address {
    font-size: 0.92rem !important;
  }

  .cabang-card h4 {
    font-size: 1.05rem !important;
  }

  /* Footer */
  .footer-desc {
    font-size: 0.95rem !important;
  }

  /* Cara pesan */
  .cara-step h4 {
    font-size: 1rem !important;
  }

  .cara-step p {
    font-size: 0.88rem !important;
  }

  /* Navbar mobile */
  .navbar {
    padding: 0.7rem 4% !important;
    gap: 0.5rem !important;
  }
  .nav-logo {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }
  .nav-cta .btn {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.9rem !important;
  }

  /* Hero mobile */
  .hero-title {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }
  .hero-sub {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }
  .hero-badge {
    font-size: 0.65rem !important;
    padding: 0.3rem 0.8rem !important;
    margin-bottom: 1rem !important;
  }
  #hero {
    padding: 5rem 4% 3rem !important;
  }

  /* Promo bar mobile */
  #announcement-bar {
    font-size: 0.75rem !important;
    padding: 0.5rem 2.5rem !important;
    line-height: 1.5 !important;
  }
  .produk-u-nama {
    font-size: 0.85rem !important;
  }
  .produk-u-wa {
    font-size: 0.72rem !important;
    padding: 0.4rem !important;
  }
}
.footer-grid {
  grid-template-columns: 1fr;
}
