/**
 * public.css
 * Token desain & reset dasar yang DIPAKAI BARENG oleh semua halaman publik standalone
 * (landing, kebijakan privasi, referral, katalog online) -- landing/index.php,
 * landing/kebijakan_privasi.php, landing/referral.php, landing/toko.php,
 * landing/panduan.php, landing/katalog-info.php, katalog/index.php, katalog/pesanan.php.
 * Halaman-halaman ini TIDAK memakai Tailwind CDN/custom.css (sistem desain beda total
 * dari app yang sudah login -- lihat base.css/components.css/layout.css di folder yang
 * sama, itu semua Tailwind-utility-replacement).
 *
 * SEKARANG JUGA memuat NAVBAR + SIDEBAR MOBILE + TOMBOL CTA + FOOTER BERSAMA yang
 * DIPAKAI SAMA PERSIS oleh semua halaman publik landing/* (KECUALI katalog/index.php &
 * katalog/pesanan.php -- itu ETALASE TOKO pembeli, bukan halaman marketing, punya
 * topbar/tanpa-footer sendiri yg TIDAK ikut sistem ini) -- lihat partial
 * `landing/_navbar.php`, `landing/_cta_banner.php`, `landing/_footer.php` (markup HTML-
 * nya, di-require tiap halaman landing/* supaya BENAR-BENAR 1 sumber, bukan disalin-tempel
 * per file lagi spt sebelumnya). Sebelumnya tiap halaman baru (toko.php/panduan.php/
 * katalog-info.php) bikin topbar/footer/tombol CTA sendiri2 -- makin lama makin
 * bercabang & TIDAK responsive (menu nav di index.php sampai 7 item, di layar HP cuma
 * di-`display:none` tanpa pengganti apapun, hilang total) -- makanya ditarik jadi 1
 * sistem di sini SEKALIGUS ditambah sidebar collapse utk HP (lihat blok NAV di bawah).
 *
 * Token/aturan yang MEMANG beda per halaman (mis. `--danger`/`--success` cuma di
 * katalog, `body{background/line-height}` beda2, `a{}` beda gaya per halaman) TETAP di
 * <style> inline masing-masing file sbg tambahan/override di ATAS file ini.
 */
:root {
  --sky-deep: #0a2e6b;
  --sky-primary: #1565d8;
  --sky-mid: #2f9bf0;
  --sky-light: #79d2ff;
  --sky-pale: #eef8ff;
  --ink: #0b1f3a;
  --ink-soft: #4d6788;
  --white: #ffffff;
  --line: #d7e9fb;
  --radius: 16px;
  --amber: #ffb238;
  --amber-dark: #e08e0f;
  --shadow-sm: 0 10px 25px -10px rgba(10, 46, 107, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 46, 107, 0.35);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Space Grotesk', sans-serif;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== TOMBOL ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-amber { background: var(--amber); color: #3a2400; }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-2px); }

/* Ghost TERANG -- dipakai di atas latar PUTIH (mis. tombol sekunder di sidebar mobile). */
.btn-ghost { background: var(--sky-pale); color: var(--sky-primary); }
.btn-ghost:hover { background: #dcedff; }

/* Ghost GELAP -- dipakai di atas latar gelap/gradasi (CTA banner, hero). */
.btn-ghost-light { background: rgba(255, 255, 255, 0.14); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.24); }

.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ===== NAV (+ sidebar collapse khusus HP) ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; overflow: hidden; height: 30px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }

.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--sky-primary); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-login { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.nav-login:hover { color: var(--sky-primary); }

/* Tombol collapse -- SEMBUNYI di desktop (lihat RESPONSIVE), tempatnya PERSIS di posisi
   Masuk/Daftar yg pindah ke dalam sidebar begitu masuk mode HP (lihat dokblok
   landing/_navbar.php knp Masuk/Daftar tidak dobel tampil di 2 tempat sekaligus). */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--sky-pale);
  border-radius: 10px;
  color: var(--sky-deep);
  flex-shrink: 0;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 58, .5);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.nav-overlay.active { opacity: 1; pointer-events: auto; }

.nav-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 84vw;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(10, 31, 58, .18);
  overflow-y: auto;
}

.nav-sidebar.active { transform: translateX(0); }

.nav-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.nav-sidebar-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--sky-pale);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-sidebar-links { display: flex; flex-direction: column; padding: 10px; gap: 2px; }
.nav-sidebar-links a {
  padding: 13px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-sidebar-links a:hover { background: var(--sky-pale); color: var(--sky-primary); }

.nav-sidebar-actions {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== SECTION GENERIC (dibutuhkan pembungkus CTA banner di bawah, & dipakai ulang
   bebas oleh style inline tiap halaman utk section-section lain) ===== */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-alt { background: var(--sky-pale); }

/* ===== CTA BANNER (blok "Siap Kelola Usaha Anda Lebih Mudah?" -- 1 versi, dipakai
   ULANG di semua halaman publik, BUKAN dibuat set tombol baru tiap halaman baru). ===== */
.cta-banner {
  background:
    radial-gradient(ellipse 700px 400px at 85% 0%, rgba(255, 178, 56, .25), transparent 60%),
    linear-gradient(120deg, var(--sky-deep), var(--sky-primary) 60%, var(--sky-mid));
  border-radius: 26px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 { color: var(--white); font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-banner p { color: rgba(255, 255, 255, .85); font-size: 16px; margin-bottom: 30px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: 56px 0 28px;
}

.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; margin-bottom: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--white); margin-bottom: 12px; font-family: 'Space Grotesk', sans-serif; }
.foot-brand img { height: 26px; width: auto; }
.foot-grid p { font-size: 13.5px; line-height: 1.6; max-width: 280px; }
.foot-col h5 { color: var(--white); font-size: 13px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13.5px; transition: color .15s; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }

/* ===== RESPONSIVE (NAV/CTA/FOOTER bersama) ===== */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-actions .nav-login,
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .cta-banner { padding: 44px 24px; border-radius: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
}
