/* ═══════════════════════════════════════
   STUDYVERSE — Global Styles
   Navy · Gold · Cream · Kota Legacy
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300&display=swap');

:root {
  --navy:      #0F1F3D;
  --navy-deep: #080F1E;
  --navy-mid:  #111827;
  --navy-card: #162035;
  --gold:      #E8A830;
  --gold-bright:#F5C842;
  --gold-dim:  rgba(232,168,48,0.15);
  --gold-border:rgba(232,168,48,0.3);
  --cream:     #FDF8F0;
  --cream-2:   #F5F0E6;
  --white:     #FFFFFF;
  --muted:     #8896B3;
  --muted-2:   #6B7A99;
  --border:    rgba(255,255,255,0.08);
  --border-light: rgba(15,31,61,0.08);
  --radius:    12px;
  --radius-lg: 20px;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', sans-serif;
  --transition: 0.2s ease;
  --shadow:    0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--sans); }
::selection { background: var(--gold); color: var(--navy); }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.serif { font-family: var(--serif); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.section-title.on-dark { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted-2);
  line-height: 1.75;
  max-width: 580px;
}

.section-sub.on-dark { color: rgba(253,248,240,0.75); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--sans);
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn svg { transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(8,15,30,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  height: 38px;
  width: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.nav-logo-text .w { color: var(--cream); }
.nav-logo-text .g { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(253,248,240,0.8);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.btn-nav {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--gold-bright); }

.nav-login {
  color: rgba(253,248,240,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-login:hover { color: var(--white); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  padding: 6px;
}

.mobile-menu {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(253,248,240,0.8);
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border: none; }
.mobile-menu .btn-nav {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 14px;
  width: 100%;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(253,248,240,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.footer-logo-icon {
  height: 34px;
  width: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  color: rgba(253,248,240,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--gold); }

.footer-col h4 {
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(253,248,240,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-kota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background var(--transition);
}
.footer-kota:hover { background: var(--gold-dim); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  color: rgba(253,248,240,0.35);
  font-size: 0.8rem;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(232,168,48,0.5) !important;
}

/* tagline subtext under footer logo */
.footer-brand-tagline {
  font-size: 0.78rem;
  color: rgba(232,168,48,0.6);
  font-style: italic;
  font-family: var(--serif);
  margin-top: 2px;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
