/* ============================================================
   Mulia Asih Mom & Baby Care — style.css
   Palette: ungu lembut + aksen biru (mengikuti logo)
   ============================================================ */

:root {
  --purple: #7b2d8e;
  --purple-dark: #5b1f6a;
  --purple-deep: #43154f;
  --lilac: #b06ac4;
  --blue: #2b5b93;
  --pink: #f2b6de;

  --bg: #fdfbff;
  --bg-soft: #f7edfb;
  --bg-lilac: #f3e6fa;
  --card: #ffffff;
  --ink: #33223a;
  --muted: #6f5f77;
  --line: #eaddf3;

  --shadow-sm: 0 6px 18px rgba(91, 31, 106, .08);
  --shadow: 0 18px 45px rgba(91, 31, 106, .14);
  --radius: 22px;
  --radius-sm: 14px;

  --head: "Baloo 2", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, 92%); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }

h1, h2, h3 { font-family: var(--head); line-height: 1.15; color: var(--purple-deep); }

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--bg-lilac);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow--light { color: #fff; background: rgba(255,255,255,.18); }

.section__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
.section__sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(38px, 5vw, 60px); }

.grad {
  background: linear-gradient(100deg, var(--purple), var(--lilac) 60%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--purple);
  color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px rgba(123, 45, 142, .32);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(123, 45, 142, .4); }
.btn--sm { padding: 10px 20px; font-size: .95rem; }
.btn--ghost {
  background: #fff; color: var(--purple); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--lilac); }
.btn--outline {
  background: transparent; color: var(--purple); border-color: var(--purple);
  box-shadow: none;
}
.btn--outline:hover { background: var(--purple); color: #fff; }
.btn--block { display: flex; width: 100%; margin-top: 24px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--purple);
  font-weight: 700; font-size: .85rem; padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}

/* Decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; pointer-events: none; }
.blob--1 { width: 380px; height: 380px; top: -120px; right: -90px; background: radial-gradient(circle, #e9c4f5, transparent 70%); }
.blob--2 { width: 320px; height: 320px; bottom: -140px; left: -110px; background: radial-gradient(circle, #cfe0f7, transparent 70%); }
.blob--3 { width: 500px; height: 500px; top: -160px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%); opacity: .8; }

/* ============ NAVBAR ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0; transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(253, 251, 255, .9);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(91, 31, 106, .08);
  padding: 8px 0;
}
.nav__inner { display: flex; align-items: center; gap: 20px; }
.nav__brand img { height: 100px; width: auto; transition: height .3s; }
.nav.scrolled .nav__brand img { height: 80px; }

.nav__links { margin-left: auto; display: flex; gap: 8px; }
.nav__links a {
  font-family: var(--head); font-weight: 500; color: var(--ink);
  padding: 8px 14px; border-radius: 999px; position: relative;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--purple); background: var(--bg-lilac); }
.nav__links a.active { color: var(--purple); background: var(--bg-lilac); }

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__burger span { width: 26px; height: 3px; border-radius: 3px; background: var(--purple); transition: .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 16vw, 170px) 0 clamp(70px, 9vw, 110px);
  background:
    radial-gradient(1200px 600px at 80% -10%, #f6e3fb, transparent 60%),
    linear-gradient(180deg, #fdf7ff, var(--bg));
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero__title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
.hero__title .grad { display: block; }
.hero__desc { color: var(--muted); font-size: 1.1rem; margin: 22px 0 30px; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__trust { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px; box-shadow: var(--shadow-sm); min-width: 108px;
}
.hero__trust b { display: block; font-family: var(--head); color: var(--purple); font-size: 1.15rem; }
.hero__trust span { font-size: .82rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 40% 40% 46% 46% / 46%;
  overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid #fff;
  background: linear-gradient(150deg, var(--bg-lilac), #e5eefb);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.hero__photo-fallback {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; padding: 18%;
  background: linear-gradient(150deg, var(--bg-lilac), #dfe9fa);
}
.hero__photo-fallback img { width: 100%; height: auto; opacity: .9; filter: drop-shadow(0 8px 18px rgba(91,31,106,.12)); }
.hero__photo.is-empty img { display: none; }
.hero__photo.is-empty .hero__photo-fallback { display: flex; }

.hero__badge {
  position: absolute; bottom: 14px; left: -10px;
  background: #fff; border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.2;
  border: 1px solid var(--line);
}
.hero__badge-num { font-family: var(--head); font-weight: 800; color: var(--blue); font-size: 1.4rem; }
.hero__badge-txt { font-size: .78rem; color: var(--muted); max-width: 12ch; }

/* ============ ABOUT ============ */
.about { background: var(--bg); }
.about__inner {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.about__photo {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff;
  background: linear-gradient(150deg, var(--bg-lilac), #e6eefb);
}
.about__photo img { display: block; width: 100%; height: auto; }
.about__photo-fallback {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  color: var(--lilac); background: linear-gradient(150deg, var(--bg-lilac), #e6eefb);
}
.about__photo-fallback svg { width: 40%; height: 40%; }
.about__photo.is-empty img { display: none; }
.about__photo.is-empty .about__photo-fallback { display: flex; }

.about__text p { color: var(--muted); margin-top: 14px; }
.about__list { list-style: none; margin: 26px 0 30px; display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.about__list span {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-lilac); color: var(--purple);
  display: grid; place-items: center; font-size: .85rem; font-weight: 800;
}

/* ============ SERVICES ============ */
.services { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.svc {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.22,.61,.36,1), border-color .4s ease;
}
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.svc:hover { transform: translateY(-8px); border-color: #e2c9ee; }
.svc:hover::after { opacity: 1; }
.svc__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, var(--purple), var(--lilac));
  color: #fff; margin-bottom: 18px;
}
.svc__icon svg { width: 30px; height: 30px; }
.svc:nth-child(2) .svc__icon,
.svc:nth-child(5) .svc__icon { background: linear-gradient(135deg, var(--blue), #4c86c9); }
.svc h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: .98rem; }

/* ============ WHY ============ */
.why {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple) 55%, var(--blue));
  color: #fff; overflow: hidden;
}
.why .section__title, .why .eyebrow { color: #fff; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.why__card {
  position: relative;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 28px 22px; backdrop-filter: blur(4px);
  transition: transform .4s cubic-bezier(.22,.61,.36,1), background .4s ease;
}
.why__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 22px 50px rgba(24, 6, 30, .35); opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.why__card:hover { transform: translateY(-8px); background: rgba(255,255,255,.16); }
.why__card:hover::after { opacity: 1; }
.why__num { font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--pink); }
.why__card h3 { color: #fff; margin: 8px 0; font-size: 1.15rem; }
.why__card p { color: rgba(255,255,255,.86); font-size: .95rem; }

/* ---- Testimoni ---- */
.testi { text-align: center; margin: clamp(46px, 6vw, 70px) auto 0; position: relative; z-index: 1; }
.testi__title { font-family: var(--head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.testi__sub { color: rgba(255,255,255,.85); margin: 8px 0 30px; }
.testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi__item {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.testi__item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 26px 60px rgba(0,0,0,.32); opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.testi__item:hover { transform: translateY(-8px); }
.testi__item:hover::after { opacity: 1; }
.testi__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.testi__tag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(67,21,79,.86); color: #fff; font-family: var(--head); font-weight: 600;
  font-size: .82rem; padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(2px);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(30, 8, 38, .88); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 620px); max-height: 88vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ============ CONTACT ============ */
.contact { background: var(--bg); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: stretch; }
.contact__lead { color: var(--muted); margin-top: 12px; }
.contact__list { list-style: none; margin: 28px 0 24px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg-lilac); color: var(--purple);
  display: grid; place-items: center;
}
.contact__ico svg { width: 24px; height: 24px; }
.contact__list b { font-family: var(--head); display: block; color: var(--purple-deep); }
.contact__list a:hover { color: var(--purple); text-decoration: underline; }

.contact__socials { display: flex; gap: 12px; margin-top: 6px; }
.contact__socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--purple); background: #fff;
  transition: transform .2s, background .2s, color .2s;
}
.contact__socials a:hover { transform: translateY(-3px); background: var(--purple); color: #fff; border-color: var(--purple); }
.contact__socials svg { width: 22px; height: 22px; }

.contact__map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid #fff; min-height: 360px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ============ FOOTER ============ */
.footer { background: var(--purple-deep); color: #fff; padding: 54px 0 30px; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 16px; }
.footer__logo { height: 150px; width: auto; background: #fff; padding: 10px 14px; border-radius: 16px; }
.footer__tag { color: rgba(255,255,255,.8); max-width: 40ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { font-family: var(--head); font-weight: 500; color: rgba(255,255,255,.9); }
.footer__links a:hover { color: var(--pink); }
.footer__copy { color: rgba(255,255,255,.6); font-size: .88rem; margin-top: 6px; }
.footer__powered { color: rgba(255,255,255,.5); font-size: 1rem; margin-top: 4px; }
.footer__powered a { color: rgba(255,255,255,.85); font-weight: 600; text-decoration: none; }
.footer__powered a:hover { text-decoration: underline; }

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  animation: wa-pulse 2.4s infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { order: 2; }
  .hero__media { order: 1; max-width: 380px; margin: 0 auto; }
  .hero__desc { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin: 0 auto; order: 2; }
  .about__text { order: 1; }
  .about__list { justify-items: start; max-width: 420px; margin-inline: auto; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* backdrop-filter membuat header jadi containing block untuk elemen fixed,
     sehingga panel menu terkurung di dalam header. Matikan di mobile. */
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(253, 251, 255, .98); }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78%, 320px);
    flex-direction: column; gap: 6px; margin: 0; padding: 96px 24px 40px;
    background: #fff; box-shadow: -20px 0 50px rgba(91,31,106,.16);
    transform: translateX(100%); transition: transform .34s ease; z-index: 45;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { width: 100%; padding: 12px 16px; font-size: 1.05rem; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; z-index: 55; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(67,21,79,.4); z-index: 44;
    opacity: 0; visibility: hidden; transition: .3s;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .testi__grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .hero__trust div { flex: 1; min-width: 92px; }
  .hero__badge { left: 0; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}
