/* ============================================
   Sehat Bahagia — Global Stylesheet
   Modern, accessible, performance-focused
   ============================================ */

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

:root {
    --primary: #d6336c;
    --primary-light: #ffe0ec;
    --primary-dark: #a01a4f;
    --accent: #f59e0b;
    --bg: #fffafb;
    --bg-alt: #fff1f4;
    --surface: #ffffff;
    --text: #2a1820;
    --text-muted: #6e5560;
    --border: rgba(214, 51, 108, 0.12);

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(20, 10, 20, 0.04);
    --shadow: 0 4px 16px rgba(180, 50, 80, 0.08);
    --shadow-lg: 0 20px 50px -10px rgba(180, 50, 80, 0.18);

    --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 251, 0.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 36px; width: 36px; border-radius: 50%; object-fit: cover; }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; }
.nav__link { padding: 8px 14px; color: var(--text-muted); font-size: 0.93rem; font-weight: 500; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.nav__link:hover { color: var(--primary); background: var(--primary-light); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--text); font-size: 24px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-full); border: none; cursor: pointer; transition: all var(--transition); text-align: center; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(214, 51, 108, 0.28); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(214, 51, 108, 0.38); }
.btn--lg { padding: 16px 36px; font-size: 1.02rem; }

@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 8px; box-shadow: var(--shadow); border-bottom: 1px solid var(--border); }
    .nav.is-open { display: flex; }
    .nav__link { padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); }
    .site-header__inner > .btn--primary { display: none; }
}

/* ===== HERO ===== */
.hero { position: relative; padding: clamp(60px, 10vh, 100px) 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -10%; right: -10%; width: 60%; height: 80%; background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%); z-index: 0; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hero__eyebrow { display: inline-block; padding: 6px 14px; background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; color: var(--text); margin-bottom: 18px; }
.hero__title em { font-style: italic; color: var(--primary); font-weight: 600; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--text-muted); margin-bottom: 14px; max-width: 520px; }
.hero__sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; opacity: 0.85; }
.hero__stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat__num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero__image img { width: 100%; max-width: 540px; margin-left: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero__lead, .hero__sub { margin-left: auto; margin-right: auto; }
    .hero__stats { justify-content: center; }
    .hero__image img { margin: 0 auto; }
}

/* ===== FEATURES ===== */
.features { padding: clamp(72px, 10vh, 110px) 0; background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head__eyebrow { font-size: 0.85rem; font-weight: 600; color: var(--primary); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.section-head__title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--text); margin-bottom: 14px; }
.section-head__desc { color: var(--text-muted); font-size: 1.05rem; }

.features__media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto 60px; }
.features__media img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform var(--transition); }
.features__media img:hover { transform: scale(1.02); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.feature-card { background: var(--surface); padding: 36px 28px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-radius: var(--radius); font-size: 28px; margin-bottom: 20px; }
.feature-card__title { font-size: 1.25rem; color: var(--text); margin-bottom: 10px; }
.feature-card__desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 880px) {
    .features__media { grid-template-columns: 1fr; }
    .features__media img { height: 240px; }
    .feature-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===== ARTICLE ===== */
.article { padding: clamp(72px, 10vh, 110px) 0; background: var(--bg); }
.article__grid { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.article__eyebrow { font-size: 0.92rem; color: var(--primary); font-weight: 600; margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.article__title { font-size: clamp(1.8rem, 3.2vw, 2.2rem); margin-bottom: 24px; color: var(--text); }
.article__quote { padding: 20px 24px; background: var(--bg-alt); border-left: 3px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 24px; font-style: italic; color: var(--text); font-size: 1.05rem; line-height: 1.7; }
.article__text { color: var(--text-muted); font-size: 1rem; line-height: 1.85; margin-bottom: 18px; }
.article__text--drop::first-letter { font-size: 3em; float: left; line-height: 0.9; margin: 4px 10px 0 0; font-weight: 700; font-family: var(--font-display); color: var(--primary); }
.article__highlight { padding: 18px 24px; background: linear-gradient(135deg, var(--primary-light), var(--bg-alt)); border-radius: var(--radius); margin: 24px 0; font-weight: 600; color: var(--text); }
.article__divider { height: 1px; background: var(--border); margin: 28px 0; }
.article__media { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.article__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.article__media img:first-child { max-height: 380px; }
.article__media img:last-child { max-height: 240px; }

@media (max-width: 880px) {
    .article__grid { grid-template-columns: 1fr; gap: 40px; }
    .article__media { position: static; }
}

/* ===== CTA ===== */
.cta { position: relative; padding: clamp(80px, 12vh, 130px) 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; overflow: hidden; text-align: center; }
.cta::before { content: ''; position: absolute; top: -20%; left: -10%; width: 50%; height: 80%; background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%); }
.cta::after { content: ''; position: absolute; bottom: -30%; right: -10%; width: 60%; height: 100%; background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%); }
.cta__inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.cta__title { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; margin-bottom: 16px; }
.cta__text { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 32px; line-height: 1.7; }
.cta .btn--primary { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.cta .btn--primary:hover { background: var(--bg-alt); transform: translateY(-2px); }
.cta__note { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 18px; }
.cta__stats { display: flex; gap: 40px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.cta__stat { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 20px 32px; min-width: 180px; }
.cta__stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.cta__stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-top: 8px; }

/* ===== CONTACT ===== */
.contact { padding: clamp(72px, 10vh, 110px) 0; background: var(--bg); }
.contact__grid { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; color: var(--text); }
.contact__lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; }
.contact__list { display: flex; flex-direction: column; gap: 24px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius-sm); font-size: 20px; flex-shrink: 0; }
.contact__label { font-weight: 600; color: var(--text); margin-bottom: 2px; font-size: 0.95rem; }
.contact__value { color: var(--text-muted); font-size: 0.92rem; }

.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 36px 32px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-card__title { font-size: 1.35rem; margin-bottom: 22px; color: var(--text); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__input { width: 100%; padding: 13px 16px; font: inherit; font-size: 0.97rem; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
.form__input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.form__input::placeholder { color: var(--text-muted); }
.form__submit { padding: 14px 24px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: background var(--transition), transform var(--transition); }
.form__submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.form__note { font-size: 0.78rem; color: var(--text-muted); text-align: center; line-height: 1.55; margin-top: 6px; }

@media (max-width: 880px) {
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== LEGAL/STATIC PAGES ===== */
.page-hero { padding: clamp(60px, 8vh, 100px) 0 clamp(36px, 5vh, 60px); background: linear-gradient(135deg, var(--bg-alt), var(--bg)); text-align: center; }
.page-hero__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; color: var(--text); }
.page-hero__meta { color: var(--text-muted); font-size: 0.92rem; }
.legal { padding: 56px 0 80px; background: var(--bg); }
.legal__inner { max-width: 820px; margin: 0 auto; padding: 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px clamp(20px, 5vw, 56px); box-shadow: var(--shadow); }
.legal__inner h2 { font-size: 1.4rem; color: var(--text); margin: 32px 0 14px; }
.legal__inner h2:first-of-type { margin-top: 0; }
.legal__inner p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; font-size: 0.97rem; }
.legal__inner ul { padding-left: 24px; margin-bottom: 14px; color: var(--text-muted); line-height: 1.8; }

/* ===== THANKS PAGE ===== */
.thanks { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; text-align: center; background: linear-gradient(135deg, var(--bg-alt), var(--bg)); }
.thanks__box { max-width: 560px; }
.thanks__icon { width: 96px; height: 96px; margin: 0 auto 28px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 48px; box-shadow: 0 12px 36px rgba(214, 51, 108, 0.3); }
.thanks__title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 14px; color: var(--text); }
.thanks__text { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-alt); padding: 60px 0 0; border-top: 1px solid var(--border); }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.site-footer__brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.site-footer__desc { color: var(--text-muted); font-size: 0.93rem; max-width: 340px; line-height: 1.7; }
.site-footer__heading { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin-bottom: 16px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 8px; }
.site-footer__list a { color: var(--text-muted); font-size: 0.92rem; transition: color var(--transition); }
.site-footer__list a:hover { color: var(--primary); }
.site-footer__contact { color: var(--text-muted); font-size: 0.92rem; line-height: 1.85; }
.site-footer__contact a { color: var(--text-muted); }
.site-footer__contact a:hover { color: var(--primary); }
.site-footer__bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a { font-size: 0.85rem; color: var(--text-muted); }
.site-footer__legal a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__bottom { justify-content: center; text-align: center; }
}

/* ===== COOKIE BANNER ===== */
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 720px; margin: 0 auto; background: var(--text); color: #fff; padding: 18px 22px; border-radius: var(--radius); display: none; align-items: center; gap: 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); z-index: 9999; font-size: 0.88rem; line-height: 1.55; }
.cookie.is-visible { display: flex; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie__btn { background: var(--primary); color: #fff; border: none; padding: 10px 22px; border-radius: var(--radius-full); font-weight: 600; flex-shrink: 0; transition: background var(--transition); }
.cookie__btn:hover { background: var(--primary-dark); }
@media (max-width: 600px) { .cookie { flex-direction: column; text-align: center; } }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; background: rgba(20, 10, 20, 0.55); backdrop-filter: blur(6px); z-index: 9998; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-visible { display: flex; }
.modal__box { background: var(--surface); border-radius: var(--radius-lg); padding: 36px 32px; max-width: 460px; width: 100%; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
.modal__title { font-size: 1.35rem; margin-bottom: 22px; color: var(--text); }
.modal__close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 24px; color: var(--text-muted); line-height: 1; }
.modal__close:hover { color: var(--text); }
.modal__field { margin-bottom: 14px; }
.modal__field label { display: block; font-size: 0.83rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.modal__field input { width: 100%; padding: 11px 14px; font: inherit; font-size: 0.95rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); outline: none; transition: border-color var(--transition); }
.modal__field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.modal__submit { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; margin-top: 8px; transition: background var(--transition); }
.modal__submit:hover { background: var(--primary-dark); }

.disclaimer:empty { display: none; }
.disclaimer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 16px 24px; font-size: 0.78rem; line-height: 1.6; color: var(--text-muted); text-align: center; max-width: 900px; margin: 0 auto; }
