/* =====================================================================
   STYLE.CSS - Desa Semangat
   Palet warna: Hijau Tua, Hijau Natural, Putih, Krem, Gold
   Font: Poppins
===================================================================== */

:root {
  --forest-dark: #123524;
  --forest: #1f6e43;
  --forest-light: #2f8f5b;
  --natural-green: #4caf6e;
  --cream: #faf6ec;
  --cream-dark: #f0e8d4;
  --gold: #c9a24b;
  --gold-light: #e0c27d;
  --white: #ffffff;
  --text-dark: #1c2a22;
  --text-muted: #5f6f66;
  --shadow-soft: 0 10px 30px rgba(18, 53, 36, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--forest-dark);
}

a { text-decoration: none; }

/* ---------------------- BUTTONS ---------------------- */
.btn-forest {
  background-color: var(--forest);
  border: 1px solid var(--forest);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .25s ease;
}
.btn-forest:hover {
  background-color: var(--forest-dark);
  border-color: var(--forest-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-forest {
  background-color: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .25s ease;
}
.btn-outline-forest:hover {
  background-color: var(--forest);
  color: var(--white);
}
.btn-gold {
  background-color: var(--gold);
  border: 1px solid var(--gold);
  color: var(--forest-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .25s ease;
}
.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--forest-dark);
  transform: translateY(-2px);
}

/* ---------------------- TOP BAR ---------------------- */
.top-bar {
  background-color: var(--forest-dark);
  color: var(--cream);
  font-size: .82rem;
  padding: 6px 0;
}
.top-bar a { color: var(--cream); margin-left: 10px; }
.top-bar a:hover { color: var(--gold-light); }

/* ---------------------- PENGUMUMAN BERJALAN (MARQUEE) ---------------------- */
.announce-bar {
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, var(--cream-dark) 0%, var(--cream) 100%);
  border-bottom: 1px solid rgba(201,162,75,.35);
  overflow: hidden;
}
.announce-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--forest-dark);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 18px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
  padding-right: 34px;
}
.announce-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.announce-track {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  animation: announceScroll 28s linear infinite;
  padding-left: 100%;
}
.announce-bar:hover .announce-track { animation-play-state: paused; }
.announce-item {
  color: var(--forest-dark);
  font-size: .85rem;
  font-weight: 500;
  padding: 8px 0;
}
.announce-sep { color: var(--gold); margin: 0 22px; font-size: .5rem; vertical-align: middle; }
@keyframes announceScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 767.98px) {
  .announce-label { font-size: .68rem; padding: 7px 14px 7px 12px; clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%); }
  .announce-item { font-size: .78rem; }
  .announce-sep { margin: 0 14px; }
}

/* ---------------------- NAVBAR ---------------------- */
.navbar-main {
  background-color: var(--white);
  box-shadow: var(--shadow-soft);
  padding: .6rem 0;
  transition: padding .3s ease, box-shadow .3s ease;
}
.navbar-main.navbar-scrolled {
  padding: .3rem 0;
  box-shadow: 0 10px 30px rgba(18, 53, 36, 0.14);
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { font-size: 2rem; color: var(--forest); transition: transform .3s ease; }
.brand-logo-img { height: 42px; width: 42px; object-fit: contain; border-radius: 8px; transition: transform .3s ease; }
.navbar-scrolled .brand-icon,
.navbar-scrolled .brand-logo-img { transform: scale(.88); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--forest-dark); font-size: 1.05rem; }
.brand-text small { color: var(--text-muted); font-size: .72rem; }

.navbar-main .nav-link {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  padding: .5rem .85rem !important;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}
.navbar-main .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .15rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--forest);
  background-color: rgba(31, 110, 67, 0.08);
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { transform: scaleX(1); }
.dropdown-item:active { background-color: var(--forest); }

/* ---------------------- HERO ---------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 55%, var(--forest-light) 100%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero.has-bg-image {
  /* background-blend-mode dihapus supaya warna foto tidak menggelap */
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 25%, rgba(201,162,75,0.18) 0, transparent 40%),
                     radial-gradient(circle at 85% 75%, rgba(255,255,255,0.08) 0, transparent 45%);
}
.hero.has-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,53,36,.55) 0%, rgba(31,110,67,.40) 55%, rgba(47,143,91,.25) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-content .hero-badge { animation: heroFadeUp .7s ease both; animation-delay: .05s; }
.hero-content h1 { animation: heroFadeUp .7s ease both; animation-delay: .18s; }
.hero-content p.lead { animation: heroFadeUp .7s ease both; animation-delay: .3s; }
.hero-content .d-flex { animation: heroFadeUp .7s ease both; animation-delay: .42s; }
.hero-slide-content .hero-badge { animation: heroFadeUp .7s ease both; animation-delay: .05s; }
.hero-slide-content h1 { animation: heroFadeUp .7s ease both; animation-delay: .18s; }
.hero-slide-content p.lead { animation: heroFadeUp .7s ease both; animation-delay: .3s; }
.hero-slide-content .d-flex { animation: heroFadeUp .7s ease both; animation-delay: .42s; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: .8rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold-light); }
.hero p.lead {
  color: rgba(255,255,255,.85);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 30px;
}

/* ---------------------- HERO SLIDER (Carousel) ---------------------- */
.hero-slider { position: relative; }
.hero-slide {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-color: var(--forest-dark);
  display: flex;
  align-items: center;
}
.hero-slide-overlay {
  display: none;
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-slide-content .hero-badge {
  color: var(--white);
  background: rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.4);
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.hero-slide-content h1 {
  color: var(--white);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 3px 14px rgba(0,0,0,.65), 0 1px 3px rgba(0,0,0,.8);
}
.hero-slide-content p.lead {
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 28px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.8);
}
.hero-slide-content .d-flex {
  justify-content: center;
}
.hero-slider .carousel-indicators { margin-bottom: 24px; }
.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(255,255,255,.5);
  border: none;
  margin: 0 5px;
}
.hero-slider .carousel-indicators .active { background-color: var(--gold); }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; opacity: .8; }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  background-color: rgba(255,255,255,.18);
  border-radius: 50%;
  padding: 18px;
  background-size: 45%;
}
@media (max-width: 767.98px) {
  .hero-slide { min-height: 460px; }
  .hero-slide-content h1 { font-size: 2rem; }
}
.hero-shape {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
}

/* ---------------------- STATS ---------------------- */
.stats-section {
  margin-top: -70px;
  position: relative;
  z-index: 3;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 20px;
  text-align: center;
  border-top: 4px solid var(--gold);
  height: 100%;
}
.stat-card i { font-size: 2.1rem; color: var(--forest); margin-bottom: 10px; }
.stat-card h3 { font-size: 1.9rem; margin-bottom: 2px; color: var(--forest-dark); }
.stat-card p { color: var(--text-muted); margin: 0; font-size: .88rem; }

/* ---------------------- SECTION GENERIC ---------------------- */
.section { padding: 90px 0; }
.section-cream { background-color: var(--cream); }
.section-tag {
  display: inline-block;
  color: var(--forest);
  background: rgba(31,110,67,.08);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { font-size: 2rem; margin-bottom: 14px; }
.section-desc { color: var(--text-muted); max-width: 650px; }
.section-header { margin-bottom: 45px; }

/* ---------------------- SAMBUTAN KADES ---------------------- */
.sambutan-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  position: relative;
}
.sambutan-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.sambutan-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 5rem;
  box-shadow: var(--shadow-soft);
}
.sambutan-quote-icon { font-size: 2.5rem; color: var(--gold); opacity: .5; }
.sambutan-signature { font-weight: 700; color: var(--forest-dark); }
.sambutan-signature small { display: block; color: var(--text-muted); font-weight: 400; }

/* ---------------------- CARDS ---------------------- */
.card-ds {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.card-ds:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(18,53,36,.14); }
.card-ds-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--cream-dark);
}
.card-ds-img-placeholder {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  color: var(--forest-light);
  font-size: 2.8rem;
}
.card-ds-body { padding: 22px; }
.card-ds-cat {
  display: inline-block;
  background: rgba(201,162,75,.15);
  color: var(--gold);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.card-ds-title {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--forest-dark);
}
.card-ds-meta { color: var(--text-muted); font-size: .8rem; }
.card-ds-desc { color: var(--text-muted); font-size: .9rem; }

/* ---------------------- GALLERY ---------------------- */
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 220px; box-shadow: var(--shadow-soft); }
.gallery-item img, .gallery-item .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item .ph { display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg, var(--cream-dark), var(--cream)); color: var(--forest-light); font-size: 2.4rem;}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,53,36,.85) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: .9rem; }

/* ---------------------- SERVICE / LAYANAN ICON CARD ---------------------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-soft);
  height: 100%;
  border-bottom: 3px solid transparent;
  transition: all .25s ease;
}
.service-card:hover { border-bottom-color: var(--gold); transform: translateY(-4px); }
.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(31,110,67,.1);
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

/* ---------------------- MAP ---------------------- */
#peta-desa { width: 100%; height: 420px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); z-index: 1; }

/* ---------------------- FOOTER ---------------------- */
.site-footer { background-color: var(--forest-dark); color: rgba(255,255,255,.75); padding-top: 70px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.3rem; }
.footer-brand i { color: var(--gold); font-size: 1.7rem; }
.footer-desc { font-size: .88rem; line-height: 1.7; }
.footer-title { color: var(--white); font-weight: 600; margin-bottom: 18px; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.footer-contact li { margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact i { color: var(--gold); margin-top: 3px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white); margin-right: 8px;
}
.footer-social a:hover { background: var(--gold); color: var(--forest-dark); }
.footer-divider { border-color: rgba(255,255,255,.12); }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.55); }

.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); z-index: 999;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--forest-dark); }

/* ---------------------- PAGE HEADER (halaman dalam) ---------------------- */
.page-header {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 100%);
  padding: 60px 0 40px;
  color: var(--white);
  position: relative;
}
.page-header h1 { color: var(--white); font-size: 2.1rem; margin-bottom: 10px; }
.breadcrumb-ds { font-size: .88rem; }
.breadcrumb-ds a { color: rgba(255,255,255,.75); }
.breadcrumb-ds a:hover { color: var(--gold-light); }
.breadcrumb-ds .active { color: var(--gold-light); }

/* ---------------------- TABLES / DATA ---------------------- */
.table-ds { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.table-ds thead { background: var(--forest); color: var(--white); }
.table-ds th, .table-ds td { padding: 14px 16px; vertical-align: middle; }

/* ---------------------- FORM ---------------------- */
.form-ds .form-label { font-weight: 500; color: var(--forest-dark); font-size: .9rem; }
.form-ds .form-control, .form-ds .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #e2e2e2;
  padding: 10px 14px;
}
.form-ds .form-control:focus, .form-ds .form-select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 .2rem rgba(31,110,67,.15);
}
.form-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 40px; }

/* ---------------------- LOGIN PAGE ---------------------- */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 60%, var(--forest-light) 100%);
  font-family: 'Poppins', sans-serif;
  padding: 20px;
}
.login-wrapper { width: 100%; max-width: 420px; }
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px 38px;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.login-brand { text-align: center; margin-bottom: 30px; }
.login-brand i { font-size: 2.6rem; color: var(--forest); }
.login-brand h4 { margin: 10px 0 2px; color: var(--forest-dark); }
.login-brand p { color: var(--text-muted); font-size: .85rem; }
.back-link { color: var(--text-muted); font-size: .85rem; }
.back-link:hover { color: var(--forest); }

/* ---------------------- ERROR PAGE ---------------------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; background: var(--cream); }
.error-code { font-size: 7rem; font-weight: 800; color: var(--forest); margin-bottom: 0; }
.error-text { color: var(--text-muted); font-size: 1.1rem; }
.error-detail { max-width: 700px; max-height: 300px; overflow: auto; background: #111; color: #eee; padding: 16px; border-radius: 8px; font-size: .75rem; }

/* ---------------------- DETAIL PAGE (BERITA) ---------------------- */
.article-content { font-size: 1.02rem; line-height: 1.9; color: var(--text-dark); white-space: pre-line; }
.article-meta { color: var(--text-muted); font-size: .88rem; }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* ---------------------- MISC ---------------------- */
.pagination .page-link { color: var(--forest); border-radius: 8px; margin: 0 3px; border: 1.5px solid #eee; }
.pagination .page-item.active .page-link { background: var(--forest); border-color: var(--forest); }
.badge-status-baru { background: #dc3545; }
.badge-status-diproses { background: var(--gold); color: var(--forest-dark); }
.badge-status-selesai { background: var(--forest); }

@media (max-width: 991px) {
  .hero { padding: 80px 0 110px; }
  .hero h1 { font-size: 2.1rem; }
  .stats-section { margin-top: -50px; }
  .section { padding: 60px 0; }
}

/* ---------------------- CONTACT CARD (Halaman Kontak) ---------------------- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  border-top: 3px solid var(--gold);
  transition: transform .25s ease;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card i { font-size: 2rem; color: var(--forest); margin-bottom: 14px; }
.contact-card h6 { color: var(--forest-dark); margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* ---------------------- DOKUMEN PUBLIK CARD ---------------------- */
.card-ds-doc { height: 100%; }
.doc-icon {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 14px;
  background: rgba(201,162,75,.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* ---------------------- ACCORDION LAYANAN ---------------------- */
.accordion-ds .accordion-item { border: none; margin-bottom: 14px; border-radius: var(--radius-md) !important; overflow: hidden; box-shadow: var(--shadow-soft); }
.accordion-ds .accordion-button {
  font-weight: 600; color: var(--forest-dark); background: var(--white);
  padding: 18px 22px;
}
.accordion-ds .accordion-button:not(.collapsed) { background: var(--forest); color: var(--white); box-shadow: none; }
.accordion-ds .accordion-button:focus { box-shadow: none; }
.accordion-ds .accordion-button::after { filter: none; }
.accordion-ds .accordion-body { padding: 24px 22px; background: var(--cream); }
.layanan-list { padding-left: 20px; font-size: .9rem; color: var(--text-dark); }
.layanan-list li { margin-bottom: 6px; }

/* ---------------------- SCROLL REVEAL ANIMATION ---------------------- */
/* Class "reveal" ditambahkan lewat JS (main.js) saat elemen di-scroll   */
/* masuk ke layar. Kalau JS gagal dimuat, elemen TIDAK dapat class ini  */
/* sehingga tetap tampil normal (fallback aman, tidak pernah hilang).    */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------- ACCESSIBILITY: REDUCED MOTION ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
