/* ═══════════════════════════════════════════════════════════
   SNAP INTERIOR — SHARED STYLES
   Nav · Footer · Buttons · Typography utilities · Animations
   Used by every page. Import after tokens.css.
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--color-warm-white);
  color: var(--color-charcoal);
  overflow-x: hidden;
}
a, button, [onclick], label,
input[type="range"], input[type="checkbox"],
.quiz-option, .quiz-text-opt, .style-card,
.package, .step { cursor: pointer; }

/* ─── FOCUS VISIBLE ───────────────────────────────────────── */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── BILINGUAL SYSTEM ────────────────────────────────────── */
body.lang-id .lang-en { display: none !important; }
body.lang-en .lang-id { display: none !important; }

/* ─── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--space-3) var(--section-padding-x);
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(253,250,246,0.95);
  backdrop-filter: blur(20px);
  padding: 14px var(--section-padding-x);
  box-shadow: var(--shadow-nav);
}

/* Dark-hero pages: nav links start white, transition to dark on scroll */
nav.dark-hero:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.85);
}
nav.dark-hero:not(.scrolled) .nav-links a:hover,
nav.dark-hero:not(.scrolled) .nav-links a.nav-active {
  color: white;
  opacity: 1;
}
nav.dark-hero:not(.scrolled) .nav-links a.nav-active::after {
  background: var(--color-terracotta-light);
}
nav.dark-hero:not(.scrolled) .lang-toggle {
  background: rgba(255,255,255,0.15);
}
nav.dark-hero:not(.scrolled) .lang-btn {
  color: white;
}
nav.dark-hero:not(.scrolled) .lang-btn.active {
  background: rgba(255,255,255,0.2);
  color: white;
  box-shadow: none;
}
nav.dark-hero:not(.scrolled) .nav-cta-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
}
nav.dark-hero:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1);
}
.nav-logo { text-decoration: none; display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; display: block; }

.nav-links { display: flex; gap: var(--space-4); align-items: center; }
.nav-links a {
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-charcoal);
  text-decoration: none;
  opacity: 0.7;
  transition: var(--transition-fast);
  position: relative;
}
.nav-links a:hover  { opacity: 1; }
.nav-links a.nav-active {
  opacity: 1;
  color: var(--color-terracotta);
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--color-terracotta);
}

.nav-right { display: flex; align-items: center; gap: var(--space-2); }

.lang-toggle {
  display: flex; gap: 0;
  background: rgba(0,0,0,0.07);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-btn {
  background: transparent; border: none;
  font-family: var(--font-body);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: var(--tracking-wider);
  color: var(--color-charcoal);
  padding: 5px 11px;
  border-radius: 1px; opacity: 0.4;
  transition: var(--transition-fast);
}
.lang-btn.active {
  background: white; opacity: 1;
  color: var(--color-deep-forest);
  box-shadow: var(--shadow-sm);
}
.nav-cta-btn {
  background: var(--color-deep-forest);
  color: var(--color-cream);
  padding: 11px var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base); font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta-btn:hover { background: var(--color-terracotta); color: white; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none;
  padding: 4px; z-index: 101; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--color-charcoal);
  transition: var(--transition); transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--color-cream); z-index: 99;
  padding: 96px var(--space-4) var(--space-6);
  flex-direction: column; gap: 0; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: var(--text-base); font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-charcoal); text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  opacity: 0.75; transition: opacity 0.2s;
}
.mobile-menu a:hover { opacity: 1; }
.mobile-menu a.mobile-active { opacity: 1; color: var(--color-terracotta); }
.mobile-menu-cta {
  background: var(--color-deep-forest) !important;
  color: var(--color-cream) !important;
  text-align: center;
  padding: var(--space-2) var(--space-3) !important;
  border-radius: var(--radius-sm);
  border-top: none !important;
  margin-top: var(--space-3);
  opacity: 1 !important;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--color-charcoal); padding: var(--space-10) var(--section-padding-x) var(--space-5); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-overlay-border);
}
.footer-brand .nav-logo { display: inline-flex; margin-bottom: var(--space-2); }
.footer-brand .nav-logo img { filter: brightness(0) invert(1); height: 44px; }
.footer-tagline { font-size: var(--text-base); line-height: var(--leading-relaxed); color: rgba(255,255,255,0.4); max-width: 280px; }
.footer-col-title {
  font-size: var(--text-2xs); font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-2);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: var(--text-base); color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-4);
}
.footer-copy { font-size: var(--text-sm); color: rgba(255,255,255,0.25); }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social a {
  font-size: var(--text-sm); letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: rgba(255,255,255,0.3); text-decoration: none;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--color-terracotta-light); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--color-terracotta); color: white;
  padding: 15px var(--space-4);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--text-base);
  font-weight: 500; letter-spacing: var(--tracking-normal);
  text-transform: uppercase; text-decoration: none;
  display: inline-block; transition: var(--transition);
}
.btn-primary:hover { background: var(--color-deep-forest); }
.btn-primary:disabled { background: rgba(196,112,74,0.4); cursor: not-allowed; }

.btn-outline {
  background: transparent; color: var(--color-deep-forest);
  padding: 14px var(--space-4);
  border: 1.5px solid var(--color-deep-forest);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--text-base);
  font-weight: 500; letter-spacing: var(--tracking-normal);
  text-transform: uppercase; text-decoration: none;
  display: inline-block; transition: var(--transition);
}
.btn-outline:hover { background: var(--color-deep-forest); color: white; }

.btn-wa {
  background: #22c55e; color: white;
  padding: 15px var(--space-3);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--text-base);
  font-weight: 500; letter-spacing: var(--tracking-normal);
  text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--space-1);
  transition: var(--transition);
}
.btn-wa:hover { background: #16a34a; }

.btn-secondary {
  color: var(--color-deep-forest);
  font-size: var(--text-base); font-weight: 500;
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 15px 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--color-deep-forest); }

/* ─── SECTION SHARED ──────────────────────────────────────── */
.section-eyebrow {
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-2);
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  font-weight: 300; line-height: var(--leading-snug);
  color: var(--color-deep-forest);
}
.section-title em { font-style: italic; color: var(--color-terracotta); }

/* ─── HEADLINE EMPHASIS (h1 em across all pages) ──────────── */
/* The <em> line is always the punchline — make it slightly larger
   and italic so it reads as a complete, intentional statement   */
h1 em {
  font-style: italic;
  font-size: 1.08em;
  color: var(--color-terracotta);
  display: inline-block;
  line-height: 1.1;
}
.section-body {
  font-size: var(--text-lg); line-height: var(--leading-loose);
  color: var(--color-mid-gray); max-width: 420px;
}
.section-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-5); align-items: end;
  margin-bottom: var(--space-10);
}

/* ─── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--color-deep-forest);
  padding: 140px var(--section-padding-x) var(--space-15);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: attr(data-word);
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 220px; font-weight: 300;
  color: rgba(255,255,255,0.03);
  line-height: 1; pointer-events: none;
}
.page-hero-eyebrow {
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-terracotta-light);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--space-3);
}
.page-hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  font-weight: 300; line-height: var(--leading-snug);
  color: white; max-width: 680px;
}
.page-hero-title em { font-style: italic; color: var(--color-terracotta-light); }
.page-hero-sub {
  font-size: var(--text-lg); line-height: var(--leading-relaxed);
  color: rgba(255,255,255,0.55); max-width: 520px;
  margin-top: var(--space-3);
}

/* ─── REVEAL ANIMATIONS ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── FLOATING WHATSAPP ───────────────────────────────────── */
.wa-float {
  position: fixed; bottom: var(--space-3); left: var(--space-3);
  z-index: 999; display: flex; align-items: center; gap: 10px;
  background: #25D366; color: white; text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 13px var(--space-2) 13px var(--space-2);
  box-shadow: var(--shadow-float);
  font-size: var(--text-base); font-weight: 500;
  letter-spacing: var(--tracking-tight);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 180px; white-space: nowrap;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
.wa-float-label { display: inline; }

/* ─── COOKIE BANNER ───────────────────────────────────────── */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--color-dark); color: rgba(255,255,255,0.8);
  font-size: var(--text-sm); line-height: var(--leading-relaxed);
  padding: var(--space-2) var(--space-3);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); flex-wrap: wrap;
  transform: translateY(100%); transition: transform 0.4s ease;
}
#cookieBanner.visible { transform: translateY(0); }
#cookieBanner a { color: var(--color-terracotta-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--color-terracotta); color: white; border: none;
  padding: 8px var(--space-2); font-size: var(--text-sm); font-weight: 500;
  border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
}
.cookie-decline {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px var(--space-2); font-size: var(--text-sm);
  border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
}
.cookie-decline:hover { color: rgba(255,255,255,0.8); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav       { padding: var(--space-2) var(--section-padding-x-tablet); }
  nav.scrolled { padding: 14px var(--section-padding-x-tablet); }
  footer    { padding: var(--space-10) var(--section-padding-x-tablet) var(--space-5); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .section-header { grid-template-columns: 1fr; }
  .page-hero { padding: 120px var(--section-padding-x-tablet) var(--space-10); }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .nav-cta-btn { display: none; }
}
@media (max-width: 600px) {
  footer { padding: var(--space-8) var(--section-padding-x-mobile) var(--space-4); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .wa-float { padding: 13px; border-radius: 50%; max-width: none; }
  .wa-float-label { display: none; }
  .page-hero { padding: 110px var(--section-padding-x-mobile) var(--space-8); }
}

/* ─── SHARED SCRIPT HELPERS ───────────────────────────────── */
/* JS will add .scrolled to nav and .visible to .reveal elements */
