/* =========================================================================
   BUBUR BAYI CERIA — DESIGN TOKENS
   Palet diturunkan dari logo referensi (biru navy + cyan swoosh) + satu
   accent hangat "ceria" untuk CTA utama. Latar putih/biru sangat muda,
   bukan gelap — sesuai arahan brief (visual direction §15).
   ========================================================================= */
:root {
  /* Colors */
  --blue-900: #0f3a72;
  --blue-700: #1b4c96;
  --blue-500: #2f7fd6;
  --cyan-400: #29b6e8;
  --cyan-100: #e3f6fd;
  --sun-500: #ffab19;
  --sun-600: #f2960a;
  --leaf-500: #45b787;
  --ink-900: #12213d;
  --ink-600: #4c5b76;
  --ink-300: #97a5bd;
  --bg-app: #f5f9ff;
  --bg-card: #ffffff;
  --line: #e1ecfa;
  --danger: #d9534f;

  /* Type */
  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  /* Radii & shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 58, 114, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 58, 114, 0.12);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-app);
  color: var(--ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-900);
  margin: 0 0 0.4em;
  line-height: 1.15;
}

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

.section {
  padding: 44px 0;
}
.section--tight { padding: 32px 0; }
.section--alt { background: var(--cyan-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--cyan-100);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

.section-head { margin-bottom: 22px; }
.section-head p { color: var(--ink-600); margin-top: 4px; max-width: 60ch; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 2px;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--sun-500);
  color: var(--blue-900);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--sun-600); }

.btn--secondary {
  background: #ffffff;
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn--secondary:hover { background: var(--cyan-100); }

.btn--whatsapp {
  background: #25d366;
  color: #ffffff;
}
.btn--whatsapp:hover { background: #1fbb59; }

.btn--ghost {
  background: transparent;
  color: var(--blue-700);
  padding: 10px 16px;
}

.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 0.9rem; min-height: 40px; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-900);
  font-weight: 700;
}
.brand img { height: 40px; width: auto; object-fit: contain; }
.footer-brand img { height: 34px; width: auto; object-fit: contain; margin-bottom: 8px; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 22px; align-items: center; }
.nav-desktop a {
  font-weight: 600;
  color: var(--ink-600);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--blue-700); border-bottom-color: var(--sun-500); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  background: var(--cyan-100);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; color: var(--blue-700); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { padding: 8px 20px 16px; }
.nav-mobile a { display: block; padding: 12px 4px; font-weight: 600; color: var(--ink-900); border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* =========================================================================
   HERO — signature swoosh motif derived from logo ring
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 34px;
  background: linear-gradient(180deg, #eaf6ff 0%, var(--bg-app) 100%);
}
.hero__swoosh {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 380px;
  height: 380px;
  opacity: 0.55;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}
.hero__eyebrow {
  font-family: var(--font-display);
  color: var(--blue-500);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  color: var(--blue-900);
}
.hero h1 span { color: var(--cyan-400); }
.hero__sub {
  font-size: 1.05rem;
  color: var(--ink-600);
  max-width: 46ch;
  margin-bottom: 6px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* =========================================================================
   DAILY MENU
   ========================================================================= */
.menu-datebar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}
.menu-datebar::-webkit-scrollbar { height: 6px; }
.menu-datebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.date-pill {
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-600);
  cursor: pointer;
  white-space: nowrap;
}
.date-pill[aria-pressed="true"] {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
}

.menu-date-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 14px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .menu-grid { grid-template-columns: repeat(5, 1fr); }
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--leaf-500);
}
.menu-card__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-900);
  font-weight: 700;
}
.menu-card__learn {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-500);
}
.menu-card__learn:hover { text-decoration: underline; }

.menu-empty {
  background: #fff;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  text-align: center;
  color: var(--ink-600);
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.menu-why {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.menu-why h3 { font-size: 1rem; margin-bottom: 6px; }
.menu-why p { margin: 0 0 6px; color: var(--ink-600); }
.menu-why a { color: var(--blue-500); font-weight: 700; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .showcase-grid { grid-template-columns: repeat(3, 1fr); } }

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.showcase-card__date {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-700);
  background: var(--cyan-100);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.showcase-card__list { list-style: none; padding: 0; margin: 0; }
.showcase-card__list li { font-size: 0.9rem; color: var(--ink-900); margin-bottom: 6px; line-height: 1.4; }
.showcase-card__list strong { color: var(--blue-900); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  font-size: 0.9rem;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* =========================================================================
   PRODUCT / TRUST / EDUCATION / OUTLET / DELIVERY CARDS
   ========================================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) {
  .card-grid--products { grid-template-columns: repeat(4, 1fr); }
  .card-grid--trust { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) {
  .card-grid--outlets { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .card-grid--outlets { grid-template-columns: repeat(4, 1fr); }
}

.product-card, .trust-card, .outlet-card, .edu-card, .ingredient-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.product-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cyan-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--blue-700);
}
.product-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-card p { color: var(--ink-600); font-size: 0.9rem; margin: 0; }

.trust-card { text-align: center; }
.trust-card__label { font-family: var(--font-display); font-weight: 700; color: var(--blue-700); font-size: 1.05rem; }
.trust-card__detail { color: var(--ink-600); font-size: 0.85rem; margin-top: 4px; }

.outlet-card { display: flex; flex-direction: column; gap: 8px; }
.outlet-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.outlet-card__meta { font-size: 0.88rem; color: var(--ink-600); }
.outlet-card__meta strong { color: var(--ink-900); }
.outlet-card__actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.placeholder-text { color: var(--ink-300); font-style: italic; }

.edu-card { display: flex; flex-direction: column; gap: 8px; }
.edu-card__tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--cyan-100);
  color: var(--blue-700);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.edu-card h3 { font-size: 1.05rem; }
.edu-card p { color: var(--ink-600); font-size: 0.9rem; margin: 0; }
.edu-card__link { font-weight: 700; color: var(--blue-500); font-size: 0.9rem; margin-top: auto; }

.section-cta { margin-top: 20px; text-align: center; }

/* =========================================================================
   DELIVERY / ABOUT / FINAL CTA
   ========================================================================= */
.split {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
}
.split-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.final-cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-radius: var(--r-lg);
  padding: 34px 24px;
  text-align: center;
  color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #d9e8ff; max-width: 50ch; margin: 0 auto 18px; }

/* =========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================= */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.wa-float svg { width: 28px; height: 28px; }
@media (min-width: 900px) {
  .wa-float { width: auto; height: auto; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; gap: 8px; }
}
.wa-float__label { display: none; }
@media (min-width: 900px) { .wa-float__label { display: inline; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--blue-900);
  color: #cfe0f7;
  padding: 40px 0 90px;
}
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }
.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.footer-tagline { color: #9fb8de; font-size: 0.9rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.footer-col a, .footer-col li { color: #cfe0f7; font-size: 0.92rem; margin-bottom: 8px; display: block; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: #8fa9d1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* =========================================================================
   EDUCATION PAGES
   ========================================================================= */
.edu-hero {
  background: linear-gradient(180deg, #eaf6ff 0%, var(--bg-app) 100%);
  padding: 32px 0;
}
.edu-disclaimer {
  background: #fff8e6;
  border: 1px solid #ffe4a8;
  color: #7a5b00;
  font-size: 0.86rem;
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-top: 14px;
}
.search-box {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  min-width: 0;
}
.search-box button {
  background: var(--blue-700);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-600);
}
.chip[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) { .ingredient-grid { grid-template-columns: repeat(4, 1fr); } }
.ingredient-card { text-align: center; }
.ingredient-card__emoji { font-size: 2rem; margin-bottom: 6px; }
.ingredient-card h4 { font-size: 0.95rem; margin-bottom: 6px; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-600);
}

/* Article page */
.article-shell { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--ink-600); font-size: 0.85rem; margin-bottom: 10px; }
.article-title { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.article-excerpt { color: var(--ink-600); font-size: 1.05rem; margin-bottom: 20px; }
.article-body { font-size: 1.02rem; color: var(--ink-900); }
.article-body p { margin: 0 0 16px; }
.article-body ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }

.keypoints {
  background: var(--cyan-100);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 24px 0;
}
.keypoints h3 { font-size: 1rem; }
.keypoints ul { list-style: none; padding: 0; margin: 0; }
.keypoints li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.keypoints li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf-500); font-weight: 700; }

.sources-list { font-size: 0.9rem; color: var(--ink-600); }
.sources-list a { color: var(--blue-500); font-weight: 600; }

.related-articles { margin: 30px 0; }
.article-final-cta {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  margin-top: 30px;
}
.article-final-cta .btn { margin: 6px; }

.breadcrumb { font-size: 0.85rem; color: var(--ink-600); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-500); font-weight: 600; }

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-shell { max-width: 640px; margin: 0 auto; padding: 40px 20px 100px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; color: var(--blue-900); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  font: inherit;
  font-size: 0.95rem;
}
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-note { font-size: 0.85rem; color: var(--ink-600); background: #fff8e6; border: 1px solid #ffe4a8; padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 20px; }
.preview-box { background: var(--ink-900); color: #eaf6ff; padding: 16px; border-radius: var(--r-md); white-space: pre-wrap; font-size: 0.85rem; font-family: monospace; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-700);
  color: #fff;
  padding: 10px 16px;
  z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
