/* =============================================
   MA UNGGULAN MBT — SHARED STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- RESET & ROOT ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --g-deep:   #152e20;
  --g-mid:    #1e4530;
  --g-base:   #2a6040;
  --g-light:  #3d8a55;
  --g-pale:   #c5dece;
  --gold:     #c9a84c;
  --gold-lt:  #e8c97a;
  --gold-dim: #a8893a;
  --cream:    #f4efe4;
  --cream-d:  #ece5d2;
  --white:    #fefefe;
  --ink:      #18261c;
  --ink-mid:  #2e4a34;
  --ink-soft: #5a7a5e;
  --shadow:   0 4px 24px rgba(21,46,32,.10);
  --shadow-lg:0 16px 48px rgba(21,46,32,.14);
  --radius:   14px;
  --radius-sm:8px;
  --transition: .28s cubic-bezier(.2,.8,.2,1);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-d); }
::-webkit-scrollbar-thumb { background: var(--g-light); border-radius: 99px; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: rgba(21, 46, 32, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,.18);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }

.nav-logo-wrap { display: flex; align-items: center; gap: .75rem; }
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1rem;
  color: var(--g-deep);
  flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text strong {
  font-family: 'Playfair Display', serif;
  font-size: .9rem; font-weight: 700;
  color: var(--gold-lt);
  line-height: 1.1;
}
.nav-logo-text small {
  font-size: .67rem; color: rgba(244,239,228,.5);
  letter-spacing: .08em; line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  padding: .42rem .85rem;
  font-size: .85rem; font-weight: 400;
  color: rgba(244,239,228,.72);
  border-radius: 6px;
  letter-spacing: .02em;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--gold-lt); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--gold-lt); }
.nav-links .btn-ppdb {
  background: var(--gold);
  color: var(--g-deep) !important;
  font-weight: 600;
  padding: .42rem 1.1rem;
  border-radius: 40px;
}
.nav-links .btn-ppdb:hover { background: var(--gold-lt); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: .4rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gold-lt);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- PAGE HERO ---- */
.page-hero {
  min-height: 44vh;
  background: var(--g-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(61,138,85,.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 85% 15%, rgba(201,168,76,.08) 0%, transparent 55%);
}
.hero-eyebrow {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
  position: relative;
  opacity: 0; animation: fadeUp .55s .15s forwards;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; color: var(--cream);
  position: relative;
  opacity: 0; animation: fadeUp .65s .28s forwards;
}
.page-hero h1 em { font-style: normal; color: var(--gold-lt); }
.page-hero p.hero-lead {
  margin-top: 1rem; max-width: 500px;
  color: rgba(244,239,228,.62);
  font-size: .98rem; line-height: 1.8;
  position: relative;
  opacity: 0; animation: fadeUp .65s .42s forwards;
}
.hero-rule {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 2rem; position: relative;
  opacity: 0; animation: fadeUp .5s .55s forwards;
}
.hero-rule hr { width: 44px; border: none; border-top: 1px solid rgba(201,168,76,.45); }
.hero-rule .dia { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); border-radius: 1px; }

/* ---- SECTION ---- */
.section { padding: 5rem clamp(1.5rem, 5vw, 4rem); }
.section-sm { padding: 3rem clamp(1.5rem, 5vw, 4rem); }
.container { max-width: 1140px; margin: 0 auto; }

.sec-tag {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--g-light); margin-bottom: .7rem;
}
.sec-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700; color: var(--g-deep); line-height: 1.2;
}
.sec-title em { font-style: normal; color: var(--gold); }
.sec-rule {
  display: flex; align-items: center; gap: .7rem;
  margin: 1.2rem 0 1rem;
}
.sec-rule hr { width: 36px; border: none; border-top: 1px solid var(--gold); opacity: .5; }
.sec-rule .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.sec-desc { color: var(--ink-mid); max-width: 560px; line-height: 1.8; }
.sec-desc-center { text-align: center; }
.sec-desc-center .sec-tag, .sec-desc-center .sec-title { text-align: center; }
.sec-desc-center .sec-rule { justify-content: center; }
.sec-desc-center .sec-desc { margin: 0 auto; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(61,138,85,.1);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201,168,76,.18);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 600;
  letter-spacing: .03em;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--g-deep); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,168,76,.3); }
.btn-outline-gold {
  background: transparent;
  border: 1.5px solid rgba(201,168,76,.5);
  color: var(--gold-lt);
}
.btn-outline-gold:hover { border-color: var(--gold-lt); color: var(--cream); }
.btn-outline-green {
  background: transparent;
  border: 1.5px solid rgba(61,138,85,.4);
  color: var(--g-light);
}
.btn-outline-green:hover { border-color: var(--g-light); color: var(--g-deep); background: rgba(61,138,85,.07); }
.btn-green { background: var(--g-base); color: var(--white); }
.btn-green:hover { background: var(--g-light); transform: translateY(-2px); }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--g-mid);
  padding: 1.6rem 2rem;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
}
.stat-item {
  flex: 1; min-width: 120px; max-width: 180px;
  text-align: center; padding: .5rem 1.5rem;
  border-right: 1px solid rgba(201,168,76,.18);
}
.stat-item:last-child { border: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--gold-lt); line-height: 1;
}
.stat-lbl {
  font-size: .73rem; color: rgba(244,239,228,.55);
  margin-top: .25rem; letter-spacing: .06em;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--g-deep);
  padding: 5rem clamp(1.5rem,5vw,4rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 80% at 50% 50%, rgba(61,138,85,.2) 0%, transparent 70%);
}
.cta-band h2 { font-size: clamp(1.8rem,3vw,2.6rem); color: var(--cream); position: relative; margin-bottom: .8rem; }
.cta-band h2 em { font-style: normal; color: var(--gold-lt); }
.cta-band p { color: rgba(244,239,228,.58); max-width: 460px; margin: 0 auto 2rem; line-height: 1.8; position: relative; }
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- FOOTER ---- */
.footer {
  background: #0d1f14;
  padding: 3rem clamp(1.5rem,5vw,4rem) 2rem;
  border-top: 1px solid rgba(201,168,76,.1);
}
.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand .nav-logo-text strong { font-size: 1rem; }
.footer-brand p {
  margin-top: .9rem; font-size: .84rem;
  color: rgba(244,239,228,.45); line-height: 1.8; max-width: 280px;
}
.footer-brand .footer-contact {
  margin-top: 1.2rem; font-size: .82rem;
  color: rgba(244,239,228,.45); line-height: 2;
}
.footer-brand .footer-contact a { color: var(--gold); }
.footer-brand .footer-contact a:hover { color: var(--gold-lt); }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,239,228,.35); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
  font-size: .84rem; color: rgba(244,239,228,.5);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold-lt); }
.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(244,239,228,.3); }

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 40px;
}
.badge-gold { background: rgba(201,168,76,.18); color: var(--gold-lt); border: 1px solid rgba(201,168,76,.28); }
.badge-green { background: rgba(61,138,85,.15); color: var(--g-light); border: 1px solid rgba(61,138,85,.25); }
.badge-dark { background: rgba(21,46,32,.8); color: var(--gold-lt); border: 1px solid rgba(201,168,76,.2); }

/* ---- REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(21,46,32,.98);
    padding: 2rem 2rem;
    gap: .5rem; align-items: flex-start;
    overflow-y: auto;
  }
  .nav-links.open a { font-size: 1.1rem; padding: .75rem 1rem; width: 100%; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero { padding: 7rem 1.5rem 3rem; }
}
