/* ============================================================
   LAYOUT — container, header/navbar, footer, section, WA float
   ============================================================ */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: var(--section-y) 0; }
.section-tight { padding: 0 0 var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin-bottom: 48px; }
.section-head-split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.section-head-split > div { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.section-head-split .section-lead { max-width: 440px; }

.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; }
.split-top { align-items: flex-start; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--hero-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { width: auto; height: 44px; object-fit: contain; }
.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.brand-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; opacity: .85;
}
.nav-link:hover { opacity: 1; color: var(--ink); background: rgba(127, 140, 155, .1); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; display: none; flex-direction: column;
}
.has-dropdown.is-open .dropdown { display: flex; }
.dropdown-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 44px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 15px;
}
.dropdown-link:hover { background: var(--surface-2); color: var(--ink); }

.theme-toggle {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink);
  margin: 0 6px;
}
.theme-toggle:hover { background: rgba(127, 140, 155, .1); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px; display: none;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { justify-content: space-between; width: 100%; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; background: transparent; }
  .theme-toggle { margin: 8px 0; align-self: flex-start; }
  .nav-menu .btn { width: 100%; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 15px; }
  .brand-logo { height: 38px; }
}

/* ── Footer ── */
.site-footer { background: var(--brand-deep); color: #C9D3DC; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; padding-top: 56px; padding-bottom: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; line-height: 1.6; }
.footer-col a { color: #C9D3DC; text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #FFFFFF; }
.footer-text { color: #9FB0BF; }
.footer-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; color: #9FB0BF; font-size: 13px; }

/* ── WhatsApp mengambang ── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #FFFFFF; box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #FFFFFF; }

/* ── Animasi muncul saat scroll ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
