/* =========================================================
   MMU BP — Design Tokens
========================================================= */
:root{
  --green: #0B5D3B;
  --green-dark: #063D28;
  --green-darker: #04291b;
  --gold: #C9A227;
  --gold-light: #E7CE7B;
  --cream: #F8F5EC;
  --cream-deep: #F0E9D6;
  --white: #FFFFFF;
  --ink: #14241C;
  --ink-soft: #4A5A50;

  --font-display: "Amiri", "Plus Jakarta Sans", serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 45px -20px rgba(6, 61, 40, 0.35);
  --transition: .35s cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--gold); color: var(--green-darker); }

a{ text-decoration: none; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--green-darker);
  padding: .6rem 1rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

img{ max-width: 100%; }

.section-py{ padding: 6.5rem 0; }
@media (max-width: 767.98px){ .section-py{ padding: 4rem 0; } }

.section-cream{ background: var(--cream); }

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: .35rem;
  margin-bottom: 1.1rem;
}

.eyebrow-light{ color: var(--gold-light); border-color: var(--gold-light); }

.text-justify {
  text-align: justify;
}

.section-heading{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-darker);
  font-size: clamp(1.9rem, 2vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}
.section-heading.text-white{ color: var(--white); }

.section-lead{
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}
.section-lead-light{ color: rgba(255,255,255,.82); }

.lead-text{
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--green-darker);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

p{ line-height: 1.75; color: var(--ink-soft); }

/* =========================================================
   Buttons
========================================================= */
.btn{ border-radius: 999px; font-weight: 600; padding: .75rem 1.7rem; transition: var(--transition); }

.btn-gold-cta{
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-darker);
  border: none;
  box-shadow: 0 10px 25px -10px rgba(201,162,39,.6);
}
.btn-gold-cta:hover{ transform: translateY(-2px); color: var(--green-darker); box-shadow: 0 14px 30px -8px rgba(201,162,39,.7); }

.btn-hero-primary{
  background: var(--gold);
  color: var(--green-darker);
  border: 1px solid var(--gold);
  padding: .85rem 2rem;
}
.btn-hero-primary:hover{ background: var(--gold-light); color: var(--green-darker); transform: translateY(-2px); }

.btn-hero-outline{
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.7);
  padding: .85rem 2rem;
}
.btn-hero-outline:hover{ background: rgba(255,255,255,.12); color: var(--white); transform: translateY(-2px); border-color: var(--white); }

.btn-outline-mmu{
  border: 1.5px solid var(--green);
  color: var(--green-darker);
  background: transparent;
}
.btn-outline-mmu:hover{ background: var(--green); color: var(--white); transform: translateY(-2px); }

.btn-outline-gold{
  border: 1.5px solid var(--gold);
  color: var(--green-darker);
  background: transparent;
}
.btn-outline-gold:hover{ background: var(--gold); color: var(--green-darker); transform: translateY(-2px); }

.btn-whatsapp{
  background: #1EA952;
  color: var(--white);
  border-radius: 999px;
  padding: .8rem 1.8rem;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}
.btn-whatsapp:hover{ background: #178a41; color: var(--white); transform: translateY(-2px); }

/* =========================================================
   Navbar
========================================================= */
.navbar-mmu{
  background: rgba(6, 61, 40, .0);
  padding: 1.15rem 0;
  transition: var(--transition);
}
.navbar-mmu.scrolled{
  background: rgba(6, 61, 40, .96);
  backdrop-filter: blur(8px);
  padding: .7rem 0;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.5);
}

.brand-mark{
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green-darker);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-title{ font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.02rem; }
.brand-sub{ font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }

.navbar-nav .nav-link{
  color: rgba(255,255,255,.88);
  font-weight: 500;
  font-size: .93rem;
  padding: .5rem 1rem !important;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus{ color: var(--gold-light); }
.navbar-nav .nav-link.active-link{ color: var(--gold-light); }

.navbar-toggler{ border: none; box-shadow: none !important; }
.navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px){
  .navbar-collapse{
    background: var(--green-darker);
    margin-top: 1rem;
    padding: 1rem 1.2rem 1.4rem;
    border-radius: var(--radius-md);
  }
  .navbar-mmu{ background: rgba(6,61,40,.97); }
}

/* =========================================================
   Hero
========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  color: var(--white);
  overflow: hidden;
}
.hero-media{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,41,27,.88) 0%, rgba(6,61,40,.82) 45%, rgba(4,41,27,.95) 100%);
}
.hero-arch{
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 90px;
  background: var(--white);
  clip-path: url(#none);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 68px, black 69px);
  mask-image: radial-gradient(circle at 50% 100%, transparent 68px, black 69px);
  display: none;
}
@media (min-width: 992px){
  .hero-arch{ display: block; }
}

.hero-content-wrap{ z-index: 1; padding-top: 6rem; padding-bottom: 4rem; }

.badge-eyebrow{
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-darker);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: .5rem 1.3rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
}

.hero-heading{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.25;
  margin-bottom: 1.4rem;
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
}

.hero-desc{
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin: 0 auto 2.4rem;
}

.hero-btn-group{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-indicator{
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 48px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px;
  z-index: 1;
}
.scroll-indicator span{
  position: absolute;
  top: 8px; left: 50%;
  width: 5px; height: 5px;
  background: var(--gold-light);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ opacity: 1; top: 8px; }
  70%{ opacity: 0; top: 26px; }
  100%{ opacity: 0; top: 26px; }
}

/* =========================================================
   About
========================================================= */
.about-media{ position: relative; }
.about-media img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 4/3.2;
  object-fit: cover;
}
.about-media-frame{
  position: absolute;
  top: -18px; left: -18px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* =========================================================
   Stats
========================================================= */
.stats-section{
  background: var(--green-darker);
  padding: 3.6rem 0 3rem;
}
.stat-box{ color: var(--white); }
.stat-number{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
}
.stat-suffix{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-light);
}
.stat-label{
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  letter-spacing: .04em;
  margin-top: .3rem;
  margin-bottom: 0;
}
.stats-note{
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* =========================================================
   Pattern overlay (Islamic geometric, subtle)
========================================================= */
.pattern-overlay{
  position: absolute; inset: 0;
  opacity: .12;
  background-image:
    radial-gradient(circle at 0 0, transparent 30px, transparent 30px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0, rgba(255,255,255,.5) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.5) 0, rgba(255,255,255,.5) 1px, transparent 1px, transparent 42px);
  pointer-events: none;
}

/* =========================================================
   Visi & Misi
========================================================= */
.visi-misi-section{
  position: relative;
  background: linear-gradient(160deg, var(--green-darker), var(--green) 130%);
  overflow: hidden;
}
.vm-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(231,206,123,.35);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.2rem;
  height: 100%;
  color: rgba(255,255,255,.92);
  transition: var(--transition);
}
.vm-card:hover{ transform: translateY(-6px); border-color: var(--gold-light); background: rgba(255,255,255,.09); }
.vm-icon{
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-darker);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}
.vm-card h3{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: .8rem;
}
.vm-card p{ color: rgba(255,255,255,.82); margin-bottom: 0; }

/* =========================================================
   Pendidikan cards
========================================================= */
.edu-card{
  background: var(--white);
  border: 1px solid rgba(11,93,59,.1);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.7rem;
  height: 100%;
  text-align: left;
  transition: var(--transition);
  box-shadow: 0 12px 30px -22px rgba(6,61,40,.4);
}
.edu-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}
.edu-icon{
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-darker));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
  transition: var(--transition);
}
.edu-card:hover .edu-icon{ background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--green-darker); }
.edu-card h3{
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-darker);
  margin-bottom: .6rem;
}
.edu-card p{ margin-bottom: 0; font-size: .95rem; }

/* =========================================================
   Kelebihan / Why
========================================================= */
.why-item{
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  height: 100%;
  border: 1px solid rgba(11,93,59,.08);
  transition: var(--transition);
}
.why-item:hover{ box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.why-icon{
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.why-item h3{ font-size: 1.05rem; color: var(--green-darker); margin-bottom: .4rem; font-family: var(--font-display); }
.why-item p{ margin-bottom: 0; font-size: .92rem; }

/* =========================================================
   Gallery
========================================================= */
.gallery-item{
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  background: var(--cream-deep);
}
.gallery-item img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-overlay{
  position: absolute; inset: 0;
  background: rgba(6,61,40,.55);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay{ opacity: 1; }

.gallery-modal-content{
  background: rgba(4,41,27,.98);
  border: none;
  padding: 1.6rem;
  position: relative;
}
.gallery-close{ position: absolute; top: 1rem; right: 1rem; z-index: 5; }

/* =========================================================
   Donation
========================================================= */
.donation-section{
  position: relative;
  background: linear-gradient(160deg, var(--green-darker), var(--green) 130%);
  overflow: hidden;
}
.donation-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-soft);
}
.donation-card-title{
  font-family: var(--font-display);
  color: var(--green-darker);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.donation-details{ margin-bottom: 1.6rem; }
.donation-details > div{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px dashed rgba(11,93,59,.2);
  gap: .5rem;
  flex-wrap: wrap;
}
.donation-details dt{ color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.donation-details dd{ margin: 0; font-weight: 700; color: var(--green-darker); letter-spacing: .02em; }

.copy-success-msg{
  display: none;
  color: var(--green);
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  margin: .8rem 0 0;
}
.copy-success-msg.show{ display: block; animation: fadeUpMsg .3s ease; }
@keyframes fadeUpMsg{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none; } }

.qr-frame{
  width: 220px;
  padding: 1rem;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
}

/* =========================================================
   CTA / Kemasukan
========================================================= */
.cta-section{
  background: var(--cream-deep);
  padding: 5.5rem 0;
  text-align: center;
}
.cta-heading{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--green-darker);
  max-width: 800px;
  margin: 0 auto 1.2rem;
  font-weight: 700;
}
.cta-desc{
  max-width: 620px;
  margin-bottom: 2rem;
  color: var(--ink-soft);
}
.cta-btn-group{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Contact
========================================================= */
.contact-info-list{ display: flex; flex-direction: column; gap: 1.6rem; }
.contact-info-item{ display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-icon{
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-darker);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-info-item h3{ font-size: 1.02rem; color: var(--green-darker); margin-bottom: .3rem; font-family: var(--font-display); }
.contact-info-item p{ margin-bottom: 0; font-size: .93rem; }

.map-frame{ height: 100%; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-placeholder{
  height: 100%; min-height: 340px;
  background: repeating-linear-gradient(135deg, #E8E2CE, #E8E2CE 12px, #EFEADA 12px, #EFEADA 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--green-darker);
  text-align: center;
  padding: 2rem;
}
.map-placeholder i{ font-size: 2.6rem; color: var(--gold); margin-bottom: .8rem; }
.map-placeholder p{ font-weight: 700; color: var(--green-darker); margin-bottom: .3rem; }
.map-placeholder span{ font-size: .85rem; color: var(--ink-soft); }

/* =========================================================
   Footer
========================================================= */
.footer-mmu{
  position: relative;
  background: var(--green-darker);
  color: rgba(255,255,255,.8);
  padding: 5rem 0 2rem;
  overflow: hidden;
}
.footer-desc{ color: rgba(255,255,255,.65); font-size: .92rem; max-width: 340px; }
.footer-heading{
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 1.3rem;
}
.footer-links{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.footer-links a{ color: rgba(255,255,255,.75); font-size: .93rem; transition: var(--transition); }
.footer-links a:hover{ color: var(--gold-light); padding-left: 4px; }
.footer-links li{ color: rgba(255,255,255,.7); font-size: .9rem; }

.social-icons{ display: flex; gap: .7rem; margin-top: 1.4rem; }
.social-icons a{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(231,206,123,.4);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-icons a:hover{ background: var(--gold); color: var(--green-darker); border-color: var(--gold); transform: translateY(-3px); }

.footer-divider{ border-color: rgba(255,255,255,.12); margin: 2.6rem 0 1.6rem; }
.footer-bottom, .footer-bottom > a{ font-size: .82rem; color: rgba(255,255,255,.55); }

/* =========================================================
   Floating buttons
========================================================= */
.floating-whatsapp{
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 58px; height: 58px;
  background: #1EA952;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,.4);
  z-index: 1050;
  transition: var(--transition);
}
.floating-whatsapp:hover{ transform: scale(1.08); color: var(--white); }

.back-to-top{
  position: fixed;
  right: 1.4rem; bottom: 6.2rem;
  width: 48px; height: 48px;
  background: var(--green-darker);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.show{ opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover{ background: var(--gold); color: var(--green-darker); }

@media (max-width: 575.98px){
  .floating-whatsapp{ width: 52px; height: 52px; font-size: 1.4rem; right: 1rem; bottom: 1rem; }
  .back-to-top{ width: 42px; height: 42px; right: 1rem; bottom: 5.4rem; }
}

/* =========================================================
   Scroll reveal
========================================================= */
.reveal, .reveal-up, [data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view, .reveal-up.in-view, [data-reveal].in-view{
  opacity: 1;
  transform: none;
}

/* =========================================================
   Misc responsive tweaks
========================================================= */
@media (max-width: 575.98px){
  .hero-btn-group, .cta-btn-group{ flex-direction: column; width: 100%; }
  .hero-btn-group .btn, .cta-btn-group .btn{ width: 100%; }
  .qr-frame{ width: 180px; }
}
