/* ============================================================
   CRITICAL CSS — KARIR PAGE (Self-contained)
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --pink: #FF5E95;
  --yellow: #FFC233;
  --sky: #53C7F5;
  --navy: #0B2D6B;
  --ink: #0F172A;
  --muted: #64748B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --line: #E2E8F0;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);
  --container: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(.4,0,.2,1);
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  padding-top: 64px; /* kompensasi header fixed */
}

@media (min-width: 992px) {
  body { padding-top: 72px; }
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(1.75rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   HEADER — FIXED + MENU HORIZONTAL DESKTOP
   ============================================================ */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999 !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  overflow: visible !important;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-logo {
  border-radius: 12px;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-text { color: var(--navy); }
.brand-text strong { color: var(--pink); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile (default) */
.nav-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  padding: 20px;
  gap: 4px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.nav-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--navy);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--bg);
  color: var(--pink);
}

.nav-cta { margin-top: 8px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,94,149,.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(255,94,149,.45); }

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
}
.btn-wa:hover { background: #1ebe5b; }

/* ============================================================
   FOOTER (konsisten dengan homepage)
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
.footer .brand-text { color: #fff; }
.footer .brand-text strong { color: var(--pink); }
.footer-brand p { margin: 16px 0; font-size: .9rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--pink); transform: translateY(-3px); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .9rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--pink); }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
}
.footer-contact .icon { color: var(--pink); flex-shrink: 0; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .85rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.float-wa {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.float-wa:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,.55);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-anim="fade-left"] { transform: translateX(30px); }
[data-anim="fade-right"] { transform: translateX(-30px); }
[data-anim="zoom-in"] { transform: scale(.95); }
[data-anim].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SCROLL ANCHOR
   ============================================================ */
section[id],
:target {
  scroll-margin-top: 80px;
}

/* ============================================================
   🔥 DESKTOP NAVBAR — FORCE HORIZONTAL (KUNCI FIX!)
   ============================================================ */
@media (min-width: 992px) {

  .nav-toggle {
    display: none !important;
  }

  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 16px var(--gutter) !important;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    gap: 4px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    width: auto !important;
    list-style: none !important;
  }

  .nav-menu > li {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .nav-link {
    display: inline-block !important;
    padding: 8px 14px !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
  }

  .nav-cta {
    margin-left: 12px !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .nav-cta .btn {
    width: auto !important;
    padding: 10px 20px !important;
  }

  .brand {
    flex-shrink: 0 !important;
  }

  body {
    padding-top: 72px !important;
  }
}

/* ============================================================
   FOCUS VISIBLE (A11y)
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}