/* ============================================================
   SantriHub PRO — assets/style.css
   Design tokens: emerald + gold, Lora (display) + Inter (body)
   ============================================================ */

:root{
  --emerald:#14532D;
  --emerald-dark:#0E3D21;
  --emerald-light:#1F7A45;
  --gold:#C9A227;
  --gold-soft:#E8D9A8;
  --cream:#FAF7F0;
  --charcoal:#1F2421;
  --muted:#5B6660;
  --sage:#E8EFE6;
  --white:#FFFFFF;
  --danger:#B3261E;
  --radius:20px;
  --radius-sm:14px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --shadow-sm:0 4px 14px rgba(0,0,0,.06);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--cream); color:var(--charcoal);
  font-family:'Inter',sans-serif; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
h1,h2,h3,h4{font-family:'Lora',serif; color:var(--emerald-dark); margin:0;}
.container{max-width:1120px; margin:0 auto; padding:0 20px;}
.section{padding:56px 0;}
.section-alt{background:var(--white);}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--gold); margin-bottom:10px;
}
.eyebrow::before{content:''; width:16px; height:2px; background:var(--gold); border-radius:2px;}

/* ---------- Navbar ---------- */
.navbar{
  position:sticky; top:0; z-index:50; background:rgba(250,247,240,.92);
  backdrop-filter:blur(8px); border-bottom:1px solid var(--sage);
}
.navbar .inner{display:flex; align-items:center; justify-content:space-between; padding:14px 20px;}
.brand-logo{display:flex; align-items:center; gap:10px; font-family:'Lora',serif; font-weight:700; font-size:18px; color:var(--emerald-dark);}
.brand-logo .dot{width:9px;height:9px;border-radius:50%;background:var(--gold);}
.nav-links{display:none; gap:24px; font-size:14px; font-weight:500;}
.nav-cta{
  background:var(--emerald); color:#fff; padding:10px 18px; border-radius:999px;
  font-size:13px; font-weight:600; white-space:nowrap;
}
@media(min-width:880px){
  .nav-links{display:flex;}
  .nav-toggle{display:none;}
}
.nav-toggle{background:none; border:none; font-size:22px; color:var(--emerald-dark); cursor:pointer;}
.mobile-menu{display:none; flex-direction:column; gap:2px; background:var(--white); border-top:1px solid var(--sage);}
.mobile-menu.open{display:flex;}
.mobile-menu a{padding:14px 20px; font-size:15px; border-bottom:1px solid var(--sage);}

/* ---------- Hero ---------- */
.hero{
  padding:48px 0 40px; position:relative; overflow:hidden;
  background:linear-gradient(180deg, var(--sage) 0%, var(--cream) 100%);
}
.hero-pattern{
  position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: radial-gradient(circle at 1px 1px, rgba(20,83,45,.10) 1px, transparent 1px);
  background-size:18px 18px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}
.hero-inner{position:relative; z-index:1; text-align:center;}
.hero h1{font-size:30px; line-height:1.25; margin-bottom:14px;}
.hero p.sub{color:var(--muted); font-size:15px; max-width:520px; margin:0 auto 22px;}
.hero-actions{display:flex; flex-direction:column; gap:10px; max-width:320px; margin:0 auto;}
@media(min-width:600px){
  .hero h1{font-size:38px;}
  .hero-actions{flex-direction:row; max-width:none; justify-content:center;}
}
.hero-photo{
  margin-top:28px; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  aspect-ratio:16/10; background:var(--sage);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 22px; border-radius:14px; font-weight:600; font-size:15px;
  border:none; cursor:pointer; transition:.15s; font-family:'Inter',sans-serif;
}
.btn-primary{background:var(--emerald); color:#fff; box-shadow:var(--shadow-sm);}
.btn-primary:hover{background:var(--emerald-dark);}
.btn-gold{background:var(--gold); color:#2B2106;}
.btn-gold:hover{background:#B8911F;}
.btn-outline{background:transparent; color:var(--emerald-dark); border:1.5px solid var(--emerald);}
.btn-outline:hover{background:var(--sage);}
.btn-block{width:100%;}
.btn-wa{background:#1FA855; color:#fff;}
.btn-wa:hover{background:#168A45;}

/* ---------- Cards / Manfaat ---------- */
.grid-3{display:grid; gap:18px; grid-template-columns:1fr;}
@media(min-width:760px){.grid-3{grid-template-columns:repeat(3,1fr);}}
@media(min-width:760px){.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:18px;}}
.card{
  background:var(--white); border-radius:var(--radius); padding:24px;
  box-shadow:var(--shadow-sm); border:1px solid #EFEDE3;
}
.card-icon{
  width:44px; height:44px; border-radius:12px; background:var(--sage);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px; font-size:20px;
}
.card h3{font-size:17px; margin-bottom:8px;}
.card p{font-size:14px; color:var(--muted); line-height:1.6; margin:0;}

/* ---------- Section heading ---------- */
.section-head{text-align:center; max-width:560px; margin:0 auto 32px;}
.section-head h2{font-size:26px; margin-bottom:10px;}
.section-head p{color:var(--muted); font-size:14px; margin:0;}

/* ---------- Divider islami (signature element) ---------- */
.sh-divider{display:flex; align-items:center; justify-content:center; gap:10px; margin:8px 0 32px;}
.sh-divider span{width:6px; height:6px; border-radius:50%; background:var(--gold);}
.sh-divider .line{width:64px; height:1.5px; background:var(--gold-soft);}

/* ---------- Berita / Galeri list ---------- */
.news-card{background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid #EFEDE3;}
.news-card img{width:100%; height:170px; object-fit:cover; background:var(--sage);}
.news-card .body{padding:18px;}
.news-card .date{font-size:12px; color:var(--gold); font-weight:600; margin-bottom:6px; display:block;}
.news-card h3{font-size:16px; margin-bottom:6px;}
.news-card p{font-size:13px; color:var(--muted); margin:0;}

.gallery-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:10px;}
@media(min-width:640px){.gallery-grid{grid-template-columns:repeat(3,1fr);}}
.gallery-grid .item{border-radius:14px; overflow:hidden; aspect-ratio:1/1; background:var(--sage);}
.gallery-grid img{width:100%; height:100%; object-fit:cover;}

/* ---------- Empty state ---------- */
.empty-state{
  text-align:center; padding:40px 20px; color:var(--muted); background:var(--sage);
  border-radius:var(--radius); font-size:14px;
}
.empty-state .icon{font-size:30px; margin-bottom:10px;}

/* ---------- Forms ---------- */
.form-card{background:var(--white); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow);}
label{display:block; font-size:13px; font-weight:600; margin:14px 0 6px; color:var(--charcoal);}
label:first-child{margin-top:0;}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=date],
select, textarea{
  width:100%; padding:13px 14px; border-radius:var(--radius-sm); border:1.5px solid #DCE3DE;
  font-size:15px; font-family:'Inter',sans-serif; outline:none; transition:.15s; background:#FCFDFB;
}
textarea{resize:vertical; min-height:90px;}
input:focus, select:focus, textarea:focus{border-color:var(--emerald); box-shadow:0 0 0 3px rgba(20,83,45,.12);}
.field-hint{font-size:12px; color:#7C8A82; margin-top:4px;}
.field-error{font-size:12px; color:var(--danger); margin-top:4px;}

/* ---------- Success / message boxes ---------- */
.msg-box{padding:14px 16px; border-radius:14px; font-size:14px; margin-bottom:18px;}
.msg-success{background:#EAF4ED; color:#155C32;}
.msg-error{background:#FBEAEA; color:#8A2A23;}

/* ---------- Donasi progress ---------- */
.donasi-card{background:var(--white); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-sm); border:1px solid #EFEDE3;}
.progress-track{height:10px; background:var(--sage); border-radius:999px; overflow:hidden; margin:12px 0 8px;}
.progress-fill{height:100%; background:linear-gradient(90deg, var(--emerald), var(--gold)); border-radius:999px;}
.donasi-meta{display:flex; justify-content:space-between; font-size:12px; color:var(--muted);}

/* ---------- Trust / testimoni ---------- */
.testi-card{background:var(--sage); border-radius:var(--radius); padding:22px;}
.testi-card p{font-size:14px; color:var(--charcoal); font-style:italic; margin:0 0 12px;}
.testi-name{font-size:13px; font-weight:600; color:var(--emerald-dark);}

/* ---------- CTA akhir ---------- */
.cta-final{
  background:var(--emerald); border-radius:var(--radius); padding:36px 24px; text-align:center; color:#fff;
}
.cta-final h2{color:#fff; font-size:22px; margin-bottom:10px;}
.cta-final p{color:#D8E8DC; font-size:14px; margin:0 0 20px;}

/* ---------- Footer ---------- */
footer{background:var(--emerald-dark); color:#CFE0D5; padding:40px 0 24px; font-size:13px;}
footer a{color:#CFE0D5;}
footer .foot-grid{display:grid; gap:24px; grid-template-columns:1fr;}
@media(min-width:760px){footer .foot-grid{grid-template-columns:2fr 1fr 1fr;}}
footer h4{color:#fff; font-size:14px; margin-bottom:12px; font-family:'Inter',sans-serif;}
footer .foot-brand{font-family:'Lora',serif; color:#fff; font-size:17px; margin-bottom:10px;}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12); margin-top:24px; padding-top:16px; text-align:center; font-size:12px; color:#9FB7A8;}
.foot-bottom a{color:var(--gold); font-weight:600;}

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position:fixed; bottom:18px; right:18px; z-index:80;
  width:58px; height:58px; border-radius:50%; background:#1FA855; color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:26px;
  box-shadow:0 8px 24px rgba(0,0,0,.22); animation:sh-pulse 2.4s infinite;
}
@keyframes sh-pulse{
  0%{box-shadow:0 8px 24px rgba(31,168,85,.35);}
  70%{box-shadow:0 8px 24px rgba(31,168,85,0);}
  100%{box-shadow:0 8px 24px rgba(31,168,85,0);}
}

/* ---------- Map ---------- */
.map-frame{border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid #EFEDE3;}
.map-frame iframe{width:100%; height:280px; border:0; display:block;}

/* ---------- Utility ---------- */
.mt-0{margin-top:0;} .text-center{text-align:center;}
.badge{display:inline-block; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:600;}
.badge-baru{background:#E8EFE6; color:#155C32;}
.badge-diproses{background:#FFF3DC; color:#8A6A1A;}
.badge-diterima{background:#DCEFE2; color:#0E3D21;}
.badge-ditolak{background:#FBEAEA; color:#8A2A23;}

/* ---------- Admin layout ---------- */
.admin-shell{display:flex; min-height:100vh; background:#F3F5F2;}
.admin-sidebar{width:220px; background:var(--emerald-dark); color:#D8E8DC; padding:20px 14px; flex-shrink:0;}
.admin-sidebar .brand{font-family:'Lora',serif; color:#fff; font-size:17px; margin-bottom:22px; display:block;}
.admin-sidebar a{display:block; padding:10px 12px; border-radius:10px; font-size:14px; margin-bottom:4px;}
.admin-sidebar a.active, .admin-sidebar a:hover{background:rgba(255,255,255,.1); color:#fff;}
.admin-main{flex:1; padding:22px; min-width:0;}
.admin-topbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:10px;}
.admin-card{background:#fff; border-radius:18px; padding:20px; box-shadow:var(--shadow-sm); margin-bottom:18px;}
table.admin-table{width:100%; border-collapse:collapse; font-size:14px;}
table.admin-table th{text-align:left; padding:10px 8px; border-bottom:2px solid var(--sage); color:var(--muted); font-size:12px; text-transform:uppercase;}
table.admin-table td{padding:10px 8px; border-bottom:1px solid var(--sage); vertical-align:top;}
.stat-grid{display:grid; gap:14px; grid-template-columns:1fr 1fr;}
@media(min-width:700px){.stat-grid{grid-template-columns:repeat(4,1fr);}}
.stat-card{background:#fff; border-radius:16px; padding:18px; box-shadow:var(--shadow-sm);}
.stat-card .num{font-size:26px; font-weight:700; color:var(--emerald-dark); font-family:'Lora',serif;}
.stat-card .label{font-size:12px; color:var(--muted);}
@media(max-width:760px){
  .admin-shell{flex-direction:column;}
  .admin-sidebar{width:100%; display:flex; overflow-x:auto; gap:4px;}
  .admin-sidebar .brand{display:none;}
  .admin-sidebar a{white-space:nowrap;}
}
