/* ═══════════════════════════════════════════════════════════
   layout.css — Kerangka halaman: navbar, hero, section,
                contact, footer
   ═══════════════════════════════════════════════════════════ */

/* ─── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253,246,242,.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

/* Brand + badge "Demo" sebagai satu unit.
   Kalau badge terpisah, `space-between` mendorongnya ke tengah → gap jauh. */
.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  /* Fluid: 20px di mobile kecil, naik mulus ke 24px di tablet+.
     Minimum 1.25rem (bukan 1.05rem) — agar tetap terbaca & berkarakter.
     Maksimum 1.5rem — sama seperti desktop selama ini. */
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  color: var(--ink); letter-spacing: -.02em;
  font-style: italic;
}
.brand::before {
  content: "❋";
  color: var(--brand);
  /* Ikon ikut mengecil proporsional dengan brand (em, bukan rem) */
  margin-right: .35em;
  font-style: normal;
  font-size: .75em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--ink-muted); font-size: .95rem; font-weight: 500; letter-spacing: .01em; }
.nav-links a:hover { color: var(--brand); }
/* Spesifisitas .nav-links a.btn-wa-sm mengalahkan .nav-links a —
   ini ganti dari `!important` yang sebelumnya dipakai. */
.nav-links a.btn-wa-sm {
  background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  letter-spacing: .02em;
}
.nav-links a.btn-wa-sm:hover { background: var(--brand); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Badge "Demo" kecil di navbar — jujur, tidak mengganggu.
   Jarak ke brand diatur oleh `.brand-group gap`, bukan margin di sini. */
.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid rgba(160,56,82,.18);
  border-radius: 999px;
  line-height: 1;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); padding: 24px 28px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, var(--brand-soft) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(229,183,105,.18) 0%, transparent 40%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(44,26,24,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner { position: relative; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 20px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: ""; width: 32px; height: 1px; background: var(--brand); opacity: .5;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 24px;
  font-weight: 700;
}
.hero-title em {
  font-style: italic;
  color: var(--brand);
  position: relative;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 560px;
  line-height: 1.7;
}

/* Hero pill — value prop "update lewat Google Sheet".
   Berfungsi sebagai jangkar visual + jembatan ke halaman cara-update.
   Padding asimetris: kiri lebih lega untuk dot (bukan teks),
   kanan sedikit lebih lega untuk panah. */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px 13px 18px;
  margin: 0 0 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-pill:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.hero-pill-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(201,86,110,.15);
  animation: hero-pill-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-pill-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,86,110,.15); }
  50%      { box-shadow: 0 0 0 7px rgba(201,86,110,.06); }
}
.hero-pill-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* line-height sudah dari parent .hero-pill — biar 2 baris tidak padat */
}
.hero-pill-arrow {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform .2s ease;
  /* Panah tidak lurus tengah kalau teks 2 baris — dorong ke atas sedikit
     supaya sejajar dengan baris pertama (lebih enak dilihat) */
  align-self: center;
}
.hero-pill:hover .hero-pill-arrow { transform: translateX(3px); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── SECTION ───────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); position: relative; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -.02em; margin: 0 0 12px;
  line-height: 1.1;
  font-weight: 700;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px; height: 3px;
  background: var(--brand);
  margin-top: 20px;
  border-radius: 2px;
}
.section-lead { color: var(--ink-muted); margin: 0 0 40px; max-width: 620px; font-size: 1.05rem; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap; margin-bottom: 40px;
}

/* ─── ABOUT ─────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
.about-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.about-facts li {
  display: grid; grid-template-columns: 1fr 2fr; gap: 16px; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.about-facts li:first-child { border-top: 1px solid var(--line); }
.about-facts span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--brand);
}
.about-facts strong { font-size: .98rem; font-weight: 600; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ─── CONTACT ───────────────────────────────────────────── */
.contact-section {
  background: var(--bg-dark);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.contact-section .section-title,
.contact-section .section-lead { color: #fff; }
.contact-section .section-title::after { background: var(--accent); }
.contact-section .section-lead { color: rgba(255,255,255,.65); }
.contact-inner { text-align: center; max-width: 620px; margin: 0 auto; position: relative; }
.contact-section .btn-primary { background: var(--accent); color: var(--ink); }
.contact-section .btn-primary:hover { background: #fff; color: var(--ink); }
.contact-info { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: 28px; font-style: italic; }

/* ─── FOOTER (menyatu dengan Kontak — satu zona dark) ────
   Footer pakai --bg-dark yang sama dengan section Kontak. Tidak ada
   border-top, tidak ada perubahan warna — dua section jadi satu
   kesatuan "closing block". Pemisah visual hanya garis tipis di
   footer-bottom. */
.footer {
  padding: 72px 0 32px;
  background: var(--bg-dark);
  color: var(--ink-on-dark-muted);
  font-size: .9rem;
  position: relative;
}
/* Sembunyikan border-top; biarkan kontak → footer sebagai satu blok. */
.footer::before { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-col { min-width: 0; }
.footer-col-brand .footer-brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.footer-col-brand .footer-tagline {
  margin: 0 0 18px;
  font-size: .95rem;
  line-height: 1.6;
  max-width: 320px;
  color: var(--ink-on-dark);
}
.footer-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
  margin: 0;
  color: var(--ink-on-dark-muted);
}
.footer-note a { color: var(--brand-on-dark); }
.footer-note a:hover { color: #fff; }

.footer-heading {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-on-dark);
  margin: 0 0 18px;
}
.footer-links,
.footer-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #fff;
  font-weight: 500;
  transition: color .18s ease;
}
.footer-links a:hover { color: var(--brand-on-dark); }

.footer-notes li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-on-dark);
  font-weight: 500;
  line-height: 1.5;
}
.footer-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-on-dark);
  font-weight: 700;
  font-size: .85rem;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: .82rem;
  color: var(--ink-on-dark-muted);
}

/* ─── FLOATING WHATSAPP ─────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(37,211,102,.35),
    0 12px 32px -8px rgba(37,211,102,.5);
  transition: transform .22s cubic-bezier(.2,.7,.3,1),
              box-shadow .22s ease,
              opacity .22s ease;
  opacity: 0;
  transform: translateY(8px) scale(.92);
  pointer-events: none;
}
.wa-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 6px 16px rgba(37,211,102,.4),
    0 18px 40px -10px rgba(37,211,102,.6);
}
.wa-float svg { display: block; }

@media (max-width: 640px) {
  .wa-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ─── FOOTER RESPONSIVE ─────────────────────────────────── */
@media (max-width: 820px) {
  .footer { padding: 56px 0 28px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    margin-bottom: 40px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ─── Responsive polish ─────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 80px 0 64px; }
  .hero-eyebrow { font-size: .95rem; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 20px; }
  .section { padding: 72px 0; }
  .section-title::after { margin-top: 16px; }
  .hero-pill { font-size: .84rem; padding: 12px 18px 12px 15px; gap: 12px; }
  .hero-pill-text { white-space: normal; line-height: 1.4; }
  .brand-group { gap: 6px; }
  .demo-badge { font-size: .6rem; padding: 2px 7px; letter-spacing: .1em; }
}

/* Mobile sempit (≤400px) — brand + badge harus benar-benar rapat
   supaya tidak mendorong tombol menu keluar layar. */
@media (max-width: 400px) {
  .brand-group { gap: 5px; }
  .demo-badge { font-size: .55rem; padding: 2px 6px; }
}
