/* ============ Bunda Sejahtera — single page theme ============ */
:root{
  --plum-900:#4a2338; --plum-700:#6d3b52; --rose-600:#b3566e; --rose-400:#d98a9e;
  --rose-100:#f7e3e9; --blush:#fdf6f7; --cream:#faf5ef; --sand:#f0e6da;
  --gold:#c9a26a; --gold-dark:#a8814c;
  --text:#3a2e33; --muted:#7d6b73; --white:#fff;
  --radius:16px; --shadow:0 8px 28px rgba(109,59,82,.10);
  --sans:'Segoe UI',system-ui,-apple-system,'Helvetica Neue',sans-serif;
  --serif:Georgia,'Times New Roman',serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--text);background:var(--blush);line-height:1.7}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1080px;margin:0 auto;padding:0 22px}
h1,h2,h3,h4{color:var(--plum-900);line-height:1.25;font-weight:700}
.serif{font-family:var(--serif)}

/* ---------- header ---------- */
.site-header{background:rgba(253,246,247,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--rose-100);position:sticky;top:0;z-index:50}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;padding:1rem 22px}
.logo{display:flex;align-items:center;gap:.7rem}
.logo-mark{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--rose-600),var(--plum-700));
  display:inline-flex;align-items:center;justify-content:center}
.logo-mark svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.6}
.logo-text{font-family:var(--serif);font-size:1.3rem;color:var(--plum-900)}
.logo-text em{font-style:italic;color:var(--rose-600)}
.main-nav{display:flex;gap:1.6rem}
.main-nav a{font-weight:600;font-size:.95rem;color:var(--text);padding:.3rem 0;border-bottom:2px solid transparent;transition:.2s}
.main-nav a:hover{color:var(--rose-600);border-color:var(--gold)}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:.3rem}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--plum-900);margin:5px 0;transition:.2s}

/* ---------- hero ---------- */
.hero{background:linear-gradient(160deg,var(--rose-100) 0%,var(--blush) 55%,var(--cream) 100%);
  padding:5rem 0 4.5rem;text-align:center}
.eyebrow{display:inline-block;background:var(--white);color:var(--rose-600);
  padding:.4rem 1.2rem;border-radius:99px;font-size:.78rem;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;box-shadow:var(--shadow);margin-bottom:1.4rem}
.hero h1{font-family:var(--serif);font-size:clamp(2.1rem,5vw,3.4rem);font-weight:400;max-width:20ch;margin:0 auto}
.hero p{max-width:38rem;margin:1.4rem auto 0;color:var(--muted);font-size:1.08rem}

/* ---------- sections ---------- */
.section{padding:4.5rem 0}
.section.alt{background:var(--white)}
.section-head{margin-bottom:2.6rem}
.section-head .kicker{color:var(--gold-dark);font-weight:700;font-size:.8rem;
  letter-spacing:.16em;text-transform:uppercase}
.section-head h2{font-family:var(--serif);font-weight:400;font-size:clamp(1.7rem,3.4vw,2.4rem);margin:.5rem 0 .8rem}
.section-head p{color:var(--muted)}
.grid{display:grid;gap:1.6rem}

/* advice cards */
.tips-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.tip-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:1.8rem;border-top:3px solid var(--rose-400)}
.section.alt .tip-card{background:var(--blush)}
.tip-card .num{font-family:var(--serif);font-size:2rem;color:var(--rose-400);line-height:1}
.tip-card h3{margin:.7rem 0 .5rem;font-size:1.08rem}
.tip-card p{font-size:.95rem;color:var(--muted)}

/* studies & guidance */
.ref-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.ref-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:1.8rem;display:flex;flex-direction:column;gap:.6rem;border-left:4px solid var(--gold)}
.ref-card .ref-tag{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-dark)}
.ref-card h3{font-size:1.05rem}
.ref-card .ref-src{font-size:.82rem;color:var(--muted);font-style:italic}
.ref-card p{font-size:.93rem;color:var(--muted)}
.guidance-note{margin-top:1.6rem;background:var(--rose-100);border-radius:var(--radius);
  padding:1.4rem 1.8rem;font-family:var(--serif);font-style:italic;color:var(--plum-900);font-size:1.02rem}

/* health control */
.control-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.control-card{background:linear-gradient(160deg,var(--white),var(--cream));
  border-radius:var(--radius);box-shadow:var(--shadow);padding:1.8rem;text-align:center}
.section.alt .control-card{background:linear-gradient(160deg,var(--blush),var(--white))}
.control-card .icon{width:56px;height:56px;border-radius:50%;background:var(--rose-100);
  display:flex;align-items:center;justify-content:center;margin:0 auto 1rem}
.control-card .icon svg{width:26px;height:26px;stroke:var(--rose-600);fill:none;stroke-width:1.6}
.control-card h3{font-size:1.02rem;margin-bottom:.4rem}
.control-card p{font-size:.92rem;color:var(--muted)}

/* testimonials */
.quotes-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.quote-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:2rem;display:flex;flex-direction:column;gap:1rem}
.quote-card .qmark{font-family:var(--serif);font-size:3rem;line-height:.5;color:var(--rose-400)}
.quote-card blockquote{font-family:var(--serif);font-style:italic;font-size:1.05rem;
  color:var(--plum-900);flex:1}
.quote-card .who{font-size:.85rem;color:var(--muted);display:flex;align-items:center}
.quote-card .who b{color:var(--plum-900);font-size:.95rem}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--rose-100);
  color:var(--plum-700);font-weight:700;display:inline-flex;align-items:center;
  justify-content:center;margin-right:.6rem;font-family:var(--serif);flex-shrink:0}

/* video */
.video-frame{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  overflow:hidden;max-width:820px;margin:0 auto}
.video-frame iframe{display:block;width:100%;aspect-ratio:16/9;border:none}
.video-placeholder{aspect-ratio:16/9;background:linear-gradient(140deg,var(--plum-700),var(--plum-900));
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;color:#fff}
.video-placeholder .play{width:72px;height:72px;border-radius:50%;border:2px solid rgba(255,255,255,.7);
  display:flex;align-items:center;justify-content:center}
.video-placeholder .play svg{width:26px;height:26px;fill:#fff;margin-left:4px}
.video-placeholder p{font-family:var(--serif);font-style:italic;opacity:.85}
.video-meta{text-align:center;color:var(--muted);font-size:.92rem;margin-top:1rem}
.video-meta b{color:var(--plum-900)}

/* click-to-play overlay */
.video-launch{position:relative}
.video-play-overlay{position:absolute;inset:0;z-index:2;border:none;cursor:pointer;
  background:linear-gradient(180deg,rgba(74,35,56,.25),rgba(74,35,56,.75));
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;
  font-family:var(--sans);transition:background .2s}
.video-play-overlay:hover{background:linear-gradient(180deg,rgba(74,35,56,.15),rgba(74,35,56,.65))}
.video-play-circle{width:76px;height:76px;border-radius:50%;background:var(--rose-600);
  display:flex;align-items:center;justify-content:center;transition:.2s;box-shadow:0 4px 18px rgba(0,0,0,.35)}
.video-play-overlay:hover .video-play-circle{background:var(--plum-700);transform:scale(1.06)}
.video-play-circle svg{width:26px;height:26px;fill:#fff;margin-left:4px}
.video-play-label{color:#fff;font-size:1.05rem;font-weight:700;letter-spacing:.02em}
.video-play-hint{color:rgba(255,255,255,1);font-size:3rem}

/* footer */
.site-footer{background:var(--plum-900);color:rgba(255,255,255,.8);margin-top:1rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2.5rem;padding:3rem 22px}
.footer-grid h4{color:#fff;margin-bottom:.8rem;font-size:.95rem}
.footer-grid p{font-size:.92rem}
.footer-grid a{display:block;padding:.2rem 0;font-size:.92rem}
.footer-grid a:hover{color:var(--rose-400)}
.footer-bottom{text-align:center;padding:1.2rem;border-top:1px solid rgba(255,255,255,.12);
  font-size:.83rem;color:rgba(255,255,255,.5)}

/* ---------- forms / admin ---------- */
.form-wrap{max-width:620px;margin:0 auto;background:var(--white);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:2.4rem}
.form-wrap.wide{max-width:820px}
.form-wrap h1{font-family:var(--serif);font-weight:400;font-size:1.7rem;margin-bottom:.3rem}
.form-wrap .sub{color:var(--muted);margin-bottom:1.6rem;font-size:.95rem}
.field{margin-bottom:1.2rem}
.field label{display:block;font-weight:600;font-size:.88rem;margin-bottom:.4rem;color:var(--plum-900)}
.field input,.field select,.field textarea{width:100%;padding:.75rem .9rem;
  border:1.5px solid var(--rose-100);border-radius:10px;font-family:var(--sans);
  font-size:.98rem;background:var(--blush);transition:.2s;color:var(--text)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;
  border-color:var(--rose-400);background:#fff}
.field textarea{min-height:110px;resize:vertical}
.field .hint{font-size:.78rem;color:var(--muted);margin-top:.3rem}
.btn{display:inline-block;padding:.8rem 1.9rem;border-radius:99px;font-weight:700;
  transition:.2s;cursor:pointer;border:2px solid transparent;font-size:.95rem;font-family:var(--sans)}
.btn-primary{background:var(--rose-600);color:#fff}
.btn-primary:hover{background:var(--plum-700)}
.btn-ghost{border-color:var(--rose-600);color:var(--rose-600);background:transparent}
.btn-ghost:hover{background:var(--rose-600);color:#fff}
.btn-block{width:100%;text-align:center}
.btn-sm{padding:.45rem 1.1rem;font-size:.85rem}
.alert{padding:.8rem 1.1rem;border-radius:10px;margin-bottom:1.2rem;font-size:.9rem;font-weight:600}
.alert-error{background:#fdecea;color:#b3261e}
.alert-ok{background:var(--rose-100);color:var(--plum-700)}

.admin-header{background:var(--plum-900)}
.admin-header .nav-wrap{padding:.7rem 22px}
.admin-header .logo-text{color:#fff}
.admin-header .logo-text em{color:var(--rose-400)}
.admin-header .logo-mark{background:rgba(255,255,255,.15)}
.admin-header .main-nav a{color:rgba(255,255,255,.85)}
.admin-header .main-nav a:hover{color:var(--rose-400);border-color:var(--rose-400)}
.admin-body{background:var(--blush);min-height:calc(100vh - 58px);padding:2.5rem 0}
.admin-title-row{display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:1rem;margin-bottom:1.8rem}
.admin-title-row h1{font-family:var(--serif);font-weight:400;font-size:1.7rem}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1.2rem;margin-bottom:2.2rem}
.stat{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.3rem}
.stat .num{font-family:var(--serif);font-size:2rem;color:var(--rose-600)}
.stat .lbl{color:var(--muted);font-size:.85rem;font-weight:600}
.section-list{display:grid;gap:1rem;margin-bottom:2.6rem}
.section-item{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:1.3rem 1.6rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.section-item h3{font-size:1.02rem}
.section-item p{font-size:.85rem;color:var(--muted)}
table{width:100%;border-collapse:collapse;background:var(--white);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
th,td{padding:.85rem 1.1rem;text-align:left;font-size:.9rem;border-bottom:1px solid var(--rose-100)}
th{background:var(--rose-100);color:var(--plum-900);font-size:.78rem;
  text-transform:uppercase;letter-spacing:.06em}
tr:last-child td{border-bottom:none}
.row-actions a,.row-actions button{margin-right:.7rem;font-size:.86rem;font-weight:600;
  background:none;border:none;cursor:pointer;font-family:var(--sans)}
.edit-btn{color:var(--rose-600)} .del-btn{color:#b3261e}
.table-wrap{overflow-x:auto}
.admin-panel{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:2rem;margin-bottom:2.2rem}
.admin-panel > h2{font-family:var(--serif);font-weight:400;font-size:1.35rem;
  margin-bottom:1.4rem;padding-bottom:.8rem;border-bottom:2px solid var(--rose-100)}
.repeater-item{border:1.5px solid var(--rose-100);border-radius:12px;padding:1.2rem;
  margin-bottom:1rem;background:var(--blush)}
.repeater-item .repeater-head{display:flex;justify-content:space-between;
  align-items:center;margin-bottom:.8rem}
.repeater-item .repeater-head b{color:var(--plum-900);font-size:.9rem}
.remove-item{background:none;border:none;color:#b3261e;font-weight:700;cursor:pointer;font-size:.82rem;font-family:var(--sans)}
.add-item{margin-top:.6rem}

/* image helper buttons + rendered images */
.img-helper{display:flex;gap:.6rem;margin-top:.5rem;flex-wrap:wrap}
.rich-img{max-width:100%;height:auto;border-radius:10px;margin:.6rem 0;display:block}
.card-img-wrap{text-align:center}
blockquote .rich-img{border-radius:8px}

/* responsive */
@media(max-width:820px){
  .main-nav{display:none;position:absolute;top:100%;left:0;right:0;
    background:var(--white);flex-direction:column;padding:1rem 22px;
    border-bottom:1px solid var(--rose-100);gap:.4rem}
  .main-nav.open{display:flex}
  .main-nav a{padding:.6rem 0}
  .nav-toggle{display:block}
  .footer-grid{grid-template-columns:1fr}
  .section{padding:3.2rem 0}
}
