/* Al Washliyah Wakaf Center (AWC) — stylesheet utama */
:root {
  --green-900: #0b3b2e;
  --green-800: #0f4d3c;
  --green-700: #146b52;
  --green-500: #1f9a72;
  --green-100: #e4f3ec;
  --gold-500: #c9a227;
  --gold-100: #f8f0d6;
  --ink: #16241f;
  --muted: #5b6b65;
  --line: #dfe7e3;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 59, 46, .08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--green-900); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--green-900); color: #e9f2ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-500); margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--gold-500); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section-dark .lead { color: #bcd3ca; }
.arabic { font-family: "Amiri", serif; font-size: 1.6rem; direction: rtl; color: var(--green-800); }

/* Placeholder penanda konten yang wajib diganti */
.ph {
  background: var(--gold-100); border: 1px dashed var(--gold-500); color: #6b5410;
  padding: 1px 6px; border-radius: 6px; font-size: .92em;
}
.ph-block {
  background: var(--gold-100); border: 1px dashed var(--gold-500); color: #6b5410;
  padding: 14px 16px; border-radius: 10px; font-size: .92rem;
}

/* Header */
.topbar { background: var(--green-900); color: #cfe2da; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; }
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--green-900); font-weight: 800; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 10px; background: var(--green-700); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  box-shadow: inset 0 -3px 0 var(--gold-500);
}
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.menu a:hover, .menu a.active { background: var(--green-100); color: var(--green-800); text-decoration: none; }
.menu .btn { margin-left: 8px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--green-900); margin: 5px auto; transition: .2s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; border: 2px solid transparent; cursor: pointer; font-size: .95rem; font-family: inherit;
  transition: transform .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold-500); color: var(--green-900); }
.btn-primary:hover { background: #d8b23a; }
.btn-green { background: var(--green-700); color: #fff !important; }
.btn-green:hover { background: var(--green-800); }
.btn-outline { border-color: currentColor; color: #fff; }
.btn-outline-dark { border-color: var(--green-700); color: var(--green-700); }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,162,39,.25), transparent 60%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath d='M40 0l11.7 28.3L80 40 51.7 51.7 40 80 28.3 51.7 0 40l28.3-11.7z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; padding-top: 100px; padding-bottom: 110px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p.lead { color: #d3e6de; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero .container { padding-top: 70px; padding-bottom: 70px; }

/* Stats band (data-driven) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -56px; position: relative; z-index: 2;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--green-700); letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); }
.card .more { font-weight: 700; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); }
.tag-gold { background: var(--gold-100); color: #7a5f12; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.img-ph {
  aspect-ratio: 4/3; border-radius: var(--radius); background:
    linear-gradient(135deg, var(--green-100), #fff);
  border: 1px dashed var(--green-500); display: grid; place-items: center; color: var(--green-700);
  font-weight: 600; text-align: center; padding: 20px; font-size: .9rem;
}

/* Pillars (impact framework, like a score breakdown) */
.pillar { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: 0; }
.pillar .n { font-size: 2rem; font-weight: 800; color: var(--gold-500); }

/* Progress bars */
.bar { height: 10px; background: var(--green-100); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-700)); border-radius: 999px; width: 0; transition: width 1.2s ease; }
.bar-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }

/* Chart */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 240px; padding: 10px 0 0; border-bottom: 2px solid var(--line); }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.chart .col .v { width: 100%; max-width: 46px; background: var(--green-500); border-radius: 6px 6px 0 0; height: 0; transition: height 1s ease; position: relative; }
.chart .col .v:hover { background: var(--green-700); }
.chart .col .v::after { content: attr(data-label); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.chart-x { display: flex; gap: 10px; }
.chart-x span { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); padding-top: 6px; }

/* Donut legend */
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); color: var(--green-900); font-weight: 700; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green-500); }
.tl-item.done::before { background: var(--green-500); }
.tl-item .when { font-size: .8rem; font-weight: 700; color: var(--gold-500); letter-spacing: .06em; text-transform: uppercase; }

/* News */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green-700), var(--green-500)); display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: .85rem; }
.news-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.news-card h3 a { color: var(--green-900); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 600; color: var(--muted); }
.filters button.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* Forms & calculator */
.form-row { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 1rem; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-500); border-color: transparent; }
.calc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.calc-result { background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 28px; }
.calc-result .big { font-size: 2.2rem; font-weight: 800; color: var(--gold-500); }
.calc-result small { color: #a9c6ba; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chips button { border: 1px solid var(--line); background: var(--bg-soft); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 600; }
.chips button:hover { border-color: var(--green-500); }

.bank { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.bank .acc { font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; color: var(--green-900); }
.copy { background: var(--green-100); border: 0; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--green-800); font-family: inherit; }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 60px; margin-bottom: 26px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-500); color: var(--green-900); font-weight: 800; display: grid; place-items: center; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
details summary { cursor: pointer; font-weight: 700; color: var(--green-900); }
details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--gold-500), #e1bf52); border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: #3d3110; }

/* Footer */
footer.site { background: #082a21; color: #a9c6ba; padding: 64px 0 24px; font-size: .92rem; }
footer.site h4 { color: #fff; font-size: 1rem; }
footer.site a { color: #d8ebe3; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { transition: none !important; } }

/* Responsive */
@media (max-width: 980px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line); display: none;
  }
  .menu.open { display: flex; }
  .menu .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; }
  .hero .container { padding-top: 64px; padding-bottom: 96px; }
  .topbar .hide-sm { display: none; }
  .calc { padding: 22px; }
  th, td { padding: 10px 8px; }
}
.section-dark .icon { background: rgba(255,255,255,.08); }
.menu a.btn.active, .menu a.btn:hover { background: var(--green-800); color: #fff; }

/* ===== Gaya v2: hero foto, menu transparan, kartu bertumpuk ===== */
header.site {
  position: fixed; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0;
  backdrop-filter: none; transition: background .25s, box-shadow .25s;
}
header.site.scrolled, header.site.menu-open { background: rgba(8, 42, 33, .97); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.nav { height: 92px; transition: height .25s; }
header.site.scrolled .nav { height: 72px; }
header.site .brand, header.site .brand small { color: #fff; }
header.site .brand small { color: rgba(255,255,255,.7); }
.menu a {
  color: #fff; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .82rem; padding: 8px 12px;
}
.menu a:hover, .menu a.active { background: transparent; color: #fff; box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.menu a.btn-nav { border: 2px solid var(--gold-500); color: #fff; margin-left: 10px; padding: 9px 16px; border-radius: 2px; }
.menu a.btn-nav:hover, .menu a.btn-nav.active { background: var(--gold-500); color: var(--green-900); box-shadow: none; }
.burger span { background: #fff; }
.hero {
  background:
    linear-gradient(100deg, rgba(6, 36, 28, .92) 0%, rgba(8, 52, 40, .72) 45%, rgba(8, 52, 40, .35) 100%),
    url("../img/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #0b3b2e 0%, #146b52 100%);
}
.hero::after { display: none; }
.hero .container { padding-top: 190px; padding-bottom: 110px; }
.page-hero .container { padding-top: 170px; padding-bottom: 90px; }
.kicker { display: block; color: var(--gold-500); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; margin-bottom: 18px; }
.h-dash { position: relative; text-transform: uppercase; font-weight: 800; letter-spacing: .02em; }
.h-dash::before, .duo-card .dash, .eyebrow::before {
  content: ""; display: block; width: 46px; height: 4px; background: var(--gold-500); margin-bottom: 22px;
}
.eyebrow::before { width: 28px; height: 3px; margin-bottom: 10px; }
.hero h1.display { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: .03em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .lead { color: rgba(255,255,255,.9); font-size: 1.12rem; }
.hero-home .container { padding-top: 200px; padding-bottom: 80px; }
.hero-text { max-width: 860px; margin-left: 4%; }
.duo { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.duo-card { position: relative; overflow: hidden; padding: 46px 48px 50px; }
.duo-card h2 { text-transform: uppercase; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: .02em; line-height: 1.08; margin-bottom: 14px; }
.duo-card p { max-width: 420px; margin-bottom: 26px; }
.duo-light { background: #fff; color: var(--ink); }
.duo-light h2 { color: var(--green-900); }
.duo-light .dash { background: var(--green-900); }
.duo-dark { background: rgba(11, 59, 46, .96); color: #e3efe9; }
.duo-dark h2 { color: #fff; }
.duo-dark .dash { background: #fff; }
.duo-actions { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-line {
  display: inline-block; padding: 13px 20px; border: 2px solid currentColor; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; transition: background .2s, color .2s;
}
.duo-light .btn-line { color: var(--green-900); }
.duo-light .btn-line:hover { background: var(--green-900); color: #fff; text-decoration: none; }
.duo-dark .btn-line { color: #fff; }
.duo-dark .btn-line:hover { background: #fff; color: var(--green-900); text-decoration: none; }
.duo-art { position: absolute; right: -24px; bottom: -8px; width: 200px; height: 200px; opacity: .6; pointer-events: none; }
.duo-light p, .duo-light h2, .duo-light .dash { position: relative; z-index: 1; }
.stats-flat { margin-top: 48px; box-shadow: none; border: 1px solid var(--line); border-radius: 4px; }
.btn { border-radius: 2px; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 800; }
@media (max-width: 980px) {
  .duo { grid-template-columns: 1fr; }
  .duo-art { width: 170px; height: 170px; }
}
@media (max-width: 860px) {
  .menu { top: 72px; background: rgba(8, 42, 33, .98); border-bottom: 0; }
  .nav { height: 72px; }
  .menu a.btn-nav { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  .hero-home .container, .hero .container { padding-top: 130px; }
  .page-hero .container { padding-top: 120px; padding-bottom: 64px; }
  .hero-text { margin-left: 0; }
  .duo-card { padding: 34px 24px 38px; }
  .duo-art { opacity: .35; }
  .duo { margin-top: 40px; }
}
.photo-credit { width: 100%; font-size: .75rem; opacity: .7; }
.photo-credit a { color: inherit; text-decoration: underline; }
/* v2.1: lebih dekat ke referensi (overlay lebih tipis, judul lebih renggang, menu selebar layar) */
.hero {
  background:
    linear-gradient(100deg, rgba(6, 36, 28, .86) 0%, rgba(8, 52, 40, .58) 45%, rgba(8, 52, 40, .22) 100%),
    url("../img/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #0b3b2e 0%, #146b52 100%);
}
.hero h1.display { letter-spacing: .06em; }
@media (min-width: 1280px) {
  header.site .nav { max-width: none; padding-left: 40px; padding-right: 40px; }
}
