/* ============================================================
   PESANTREN TAHFIZH AL QOLAM — Landing Page
   Stylesheet utama. Warna dapat diubah lewat variabel di bawah.
   ============================================================ */

:root {
  /* Palet utama */
  --green:        #0b7f4a;
  --green-600:    #0a6b3f;
  --green-700:    #085535;
  --green-800:    #07432b;
  --green-900:    #06301f;
  --gold:         #c9a227;
  --gold-600:     #b08c1e;
  --gold-light:   #f0d488;
  --cream:        #faf7f0;
  --ink:          #22332b;
  --muted:        #5d6f66;
  --line:         #e7e2d6;
  --white:        #ffffff;

  /* Tipografi */
  --font-ui:  "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ar:  "Amiri", "Times New Roman", serif;

  /* Efek */
  --radius:   18px;
  --radius-sm: 12px;
  --shadow:   0 10px 30px rgba(6, 48, 31, 0.08);
  --shadow-lg: 0 18px 44px rgba(6, 48, 31, 0.14);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }

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

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

/* ---------- Utilitas ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }

.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green-900); color: #fff; padding: 10px 18px;
  border-radius: 8px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
}
.btn .ic { font-size: 1.15em; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--green-900);
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(201, 162, 39, 0.45); }

.btn-outline {
  border: 2px solid rgba(6, 48, 31, 0.35); color: var(--green-800);
}
.btn-outline:hover { background: var(--green-800); color: #fff; transform: translateY(-3px); }

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.6); color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--green-800); transform: translateY(-3px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-900); color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 8px; flex-wrap: wrap;
}
.topbar-left { display: inline-flex; align-items: center; gap: 8px; }
.topbar-right { display: inline-flex; align-items: center; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.topbar a:hover { color: var(--gold-light); }
.topbar .ic { font-size: 1rem; }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(6, 48, 31, 0.10); }

.nav-wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.95); box-shadow: 0 4px 12px rgba(6,48,31,.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; color: var(--green-800); letter-spacing: -0.01em; }
.brand-text strong em { font-style: normal; color: var(--green); }
.brand-text small { font-size: 0.74rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text strong em { color: var(--gold-light); }
.brand-light .brand-text small { color: rgba(255,255,255,.65); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: var(--ink); transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--green); background: rgba(11, 127, 74, 0.08); }
.nav-cta { margin-left: 10px; padding: 11px 22px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; color: var(--green-800); margin-left: auto; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: #fff;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-mosque { position: absolute; bottom: 0; left: 0; width: 100%; height: 240px; pointer-events: none; }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding-block: 84px 108px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 600; color: var(--gold-light);
  margin-bottom: 22px;
}

.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.16; font-weight: 800; letter-spacing: -0.02em; }
.hero-title span { color: var(--gold-light); position: relative; }
.hero-title span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(201,162,39,0.30); border-radius: 4px; z-index: -1;
}
.hero-lead { margin-top: 20px; font-size: 1.08rem; color: rgba(255,255,255,0.88); max-width: 560px; }

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions .btn-outline-light { background: #fff; border-color: #fff; color: var(--green-800); }
.hero-actions .btn-outline-light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--green-900); transform: translateY(-3px); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; max-width: 640px;
}
.stat {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm); padding: 14px 12px; text-align: center;
  backdrop-filter: blur(6px);
}
.stat dt { display: flex; align-items: baseline; justify-content: center; gap: 5px; font-weight: 800; }
.stat-num { font-size: 1.75rem; color: var(--gold-light); line-height: 1; }
.stat-unit { font-size: 0.82rem; color: rgba(255,255,255,0.85); font-weight: 700; }
.stat dd { font-size: 0.76rem; color: rgba(255,255,255,0.72); margin-top: 4px; line-height: 1.35; }

.hero-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.20);
  border-radius: 24px; padding: 44px 36px; text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.hero-bismillah { font-family: var(--font-ar); font-size: 1.9rem; color: var(--gold-light); line-height: 2; }
.hero-hadits { margin-top: 14px; font-size: 1.05rem; line-height: 1.9; font-style: italic; color: rgba(255,255,255,0.95); }
.hero-hadits-src { margin-top: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-card-deco {
  position: absolute; inset-inline: 0; bottom: 0; height: 90px;
  background: radial-gradient(ellipse at 50% 120%, rgba(201,162,39,0.25), transparent 65%);
  pointer-events: none;
}

/* ---------- Section umum ---------- */
.section { padding-block: 96px; }
.section-alt { background: var(--cream); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.section-tag::before, .section-tag::after { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; color: var(--green-900); }
.section-title span { color: var(--green); }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--green); font-size: 0.92rem; transition: gap .2s, color .2s; }
.link-arrow:hover { gap: 12px; color: var(--green-600); }

/* ---------- Profil ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: stretch; }

.profile-visi {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff; border-radius: var(--radius); padding: 44px 40px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.profile-visi::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 120px;
  background: radial-gradient(ellipse at 50% 130%, rgba(201,162,39,0.28), transparent 65%);
}
.profile-icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(201,162,39,0.16); border: 1px solid rgba(201,162,39,0.4); display: grid; place-items: center; color: var(--gold-light); }
.profile-icon svg { width: 30px; height: 30px; }
.profile-visi h3 { font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); }
.profile-visi blockquote { font-size: 1.5rem; font-weight: 700; line-height: 1.55; letter-spacing: -0.01em; }
.profile-visi .link-arrow { color: var(--gold-light); margin-top: auto; position: relative; z-index: 1; }

.profile-misi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 40px; box-shadow: var(--shadow);
}
.profile-misi h3 { font-size: 1.15rem; color: var(--green-800); margin-bottom: 22px; }

.check-list li {
  position: relative; padding: 9px 0 9px 40px; border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(11, 127, 74, 0.12); border: 1.5px solid var(--green);
}
.check-list li::after {
  content: ""; position: absolute; left: 7px; top: 19px;
  width: 10px; height: 5px; border-left: 2.2px solid var(--green); border-bottom: 2.2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Program ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(11,127,74,0.35); }

.program-card { padding: 34px 30px; display: flex; flex-direction: column; }
.card-icon {
  width: 56px; height: 56px; border-radius: 15px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(11,127,74,0.12), rgba(11,127,74,0.05));
  border: 1px solid rgba(11,127,74,0.25); color: var(--green);
}
.card-icon svg { width: 28px; height: 28px; }
.program-card h3 { font-size: 1.12rem; color: var(--green-800); margin-bottom: 10px; }
.program-card > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 16px; }

.mini-list { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.mini-list li {
  position: relative; padding-left: 24px; font-size: 0.88rem; color: var(--ink);
}
.mini-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}

.program-card-cta {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  border: none; color: #fff; justify-content: center; gap: 14px; text-align: center;
}
.program-card-cta:hover { border: none; }
.program-card-cta h3 { color: var(--gold-light); font-size: 1.3rem; }
.program-card-cta p { color: rgba(255,255,255,0.85); }
.program-card-cta .btn { align-self: center; }

/* ---------- Keunggulan ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 28px; }
.feature { position: relative; padding: 26px 26px 26px 86px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform var(--transition), box-shadow var(--transition); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-num {
  position: absolute; left: 24px; top: 24px;
  font-size: 1.7rem; font-weight: 800; color: rgba(11,127,74,0.18);
  font-style: italic; line-height: 1;
}
.feature h3 { font-size: 1.05rem; color: var(--green-800); margin-bottom: 6px; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Berita ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-thumb {
  position: relative; height: 180px; overflow: hidden;
}
.news-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-thumb-1 { background: linear-gradient(135deg, var(--green-600), var(--green-800)); }
.news-thumb-2 { background: linear-gradient(135deg, #b08c1e, #7a5f12); }
.news-thumb-3 { background: linear-gradient(135deg, #1f6f8b, #12445a); }
.news-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(6,48,31,0.75); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.news-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { font-size: 0.8rem; color: var(--muted); }
.news-body h3 { font-size: 1.06rem; line-height: 1.45; }
.news-body h3 a { color: var(--green-800); transition: color .2s; }
.news-body h3 a:hover { color: var(--green); }
.news-excerpt { font-size: 0.9rem; color: var(--muted); flex: 1; }

/* ---------- Alur Pendaftaran ---------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  list-style: none; counter-reset: step;
}
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 26px 30px; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(11,127,74,0.35); }
.step-num {
  position: absolute; top: 16px; left: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(160deg, var(--green), var(--green-700));
  color: #fff; font-weight: 800; font-size: 1rem;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(11,127,74,0.35);
}
.step .card-icon { margin: 0 auto 18px; }
.step h3 { font-size: 1.05rem; color: var(--green-800); margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--muted); }
/* garis penghubung antar langkah (desktop) */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -26px;
  width: 26px; border-top: 2px dashed rgba(11,127,74,0.4);
  transform: translateY(-50%);
}

.steps-cta {
  margin-top: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff; border-radius: var(--radius);
  padding: 28px 34px; position: relative; overflow: hidden;
}
.steps-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.steps-cta p { position: relative; z-index: 1; color: rgba(255,255,255,0.88); max-width: 560px; }
.steps-cta p strong { color: #fff; }
.steps-cta .btn { position: relative; z-index: 1; flex: none; }

/* ---------- Testimoni (cadangan, tidak dipakai saat ini) ---------- */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.testi-card { position: relative; padding: 40px 38px 34px; }
.testi-quote { position: absolute; top: 26px; right: 30px; width: 44px; height: 44px; color: rgba(201,162,39,0.35); }
.testi-card blockquote { font-size: 1.05rem; line-height: 1.85; color: var(--ink); margin-bottom: 24px; }
.testi-card figcaption { display: flex; flex-direction: column; }
.testi-card figcaption strong { color: var(--green-800); }
.testi-card figcaption span { font-size: 0.84rem; color: var(--muted); }
.testi-note { text-align: center; margin-top: 26px; font-size: 0.8rem; color: var(--muted); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.cta-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-block: 72px; flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.3; }
.cta-inner h2 span { color: var(--gold-light); }
.cta-inner p { margin-top: 10px; color: rgba(255,255,255,0.85); max-width: 620px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  padding: 40px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
  border: none; color: #fff; position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 90px;
  background: radial-gradient(ellipse at 50% 130%, rgba(255,255,255,0.22), transparent 65%);
  pointer-events: none;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card--map   { background: linear-gradient(160deg, #0e8f56 0%, #063c26 100%); }
.contact-card--wa    { background: linear-gradient(160deg, #23c368 0%, #0a7a3d 100%); }
.contact-card--email { background: linear-gradient(160deg, #e3b84e 0%, #9c7a18 100%); }
.contact-card .card-icon {
  margin-bottom: 0; background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.40); color: #fff;
}
.contact-card h3 { color: #fff; font-size: 1.08rem; position: relative; z-index: 1; }
.contact-card p { color: rgba(255,255,255,0.90); font-size: 0.93rem; position: relative; z-index: 1; }
.contact-card .link-arrow { margin-top: auto; color: #fff; position: relative; z-index: 1; }
.contact-card .link-arrow:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.78); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.9fr 1fr 1.2fr; gap: 44px;
  padding-block: 72px 56px;
}
.footer-col h3 {
  font-size: 0.95rem; color: #fff; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px; position: relative; padding-bottom: 10px;
}
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); border-radius: 2px; }

.footer-about .brand { margin-bottom: 18px; }
.footer-about p { font-size: 0.92rem; line-height: 1.8; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--green-900); transform: translateY(-3px); }
.footer-social .ic { font-size: 1.15rem; }

.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 0.92rem; }
.footer-links a { transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer-contact .ic { margin-top: 4px; color: var(--gold-light); font-size: 1rem; }
.footer-contact a:hover { color: var(--gold-light); padding-left: 0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 20px; font-size: 0.84rem; color: rgba(255,255,255,0.55); flex-wrap: wrap;
}

/* ---------- Tombol ke atas ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(6,48,31,0.3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-700); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Animasi muncul ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .program-grid, .news-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 64px 84px; }
  .hero-card { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px 4vw 22px;
    box-shadow: 0 24px 40px rgba(6,48,31,0.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 13px 16px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-left { display: none; }
}

@media (max-width: 640px) {
  .section { padding-block: 68px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
  .profile-grid, .testi-grid { grid-template-columns: 1fr; }
  .program-grid, .news-grid, .feature-grid, .contact-grid, .steps-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; padding-block: 56px; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}
