:root {
  --green: #0b5d3b;
  --green-dark: #063d27;
  --green-soft: #e8f3ed;
  --gold: #d4a53a;
  --gold-dark: #b08623;
  --text: #1f2a24;
  --muted: #5d6b63;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(6, 61, 39, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin-inline: auto; }
.narrow { width: min(680px, 92%); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(6, 61, 39, .96);
  backdrop-filter: blur(6px);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--green-dark);
  display: grid; place-items: center; font-size: 1.4rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 1px; }
.brand-text small { font-size: .7rem; opacity: .8; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #e9f3ee; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 3px 12px; font-size: .8rem; }
.lang-switch a.active { background: var(--gold); color: var(--green-dark); font-weight: 600; }
.lang-switch a.active:hover { color: var(--green-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; text-align: center;
  color: var(--white); padding: 110px 0 70px;
  background:
    radial-gradient(circle at 20% 20%, rgba(212,165,58,.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 45%),
    linear-gradient(135deg, var(--green-dark), var(--green));
  position: relative; overflow: hidden;
}
.hero::before {
  content: "☪"; position: absolute; right: -40px; top: 12%;
  font-size: 22rem; opacity: .05; line-height: 1;
}
.hero-inner { position: relative; }
.bismillah { font-family: 'Amiri', serif; font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.25; margin-bottom: 16px; }
.hero-sub { max-width: 640px; margin: 0 auto 30px; opacity: .92; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--green-dark); }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--green-soft); }
.section-title {
  text-align: center; font-size: 2rem; color: var(--green-dark); margin-bottom: 10px;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
  background: var(--gold); margin: 10px auto 0;
}
.section-sub { text-align: center; color: var(--muted); margin: 14px auto 36px; max-width: 600px; }
.section-title + .about-grid, .section-title + .events { margin-top: 36px; }

.card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .25s;
}
.card:hover { transform: translateY(-5px); }
.card h3 { color: var(--green); margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .95rem; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.about-text p { margin-bottom: 16px; color: var(--muted); }
.vm { display: grid; gap: 18px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.activity .icon { font-size: 2.2rem; margin-bottom: 10px; }

.events { list-style: none; display: grid; gap: 14px; max-width: 720px; margin-inline: auto; }
.events li {
  display: flex; gap: 18px; align-items: center;
  background: var(--green-soft); border-left: 5px solid var(--gold);
  border-radius: 12px; padding: 16px 20px;
}
.events .when { min-width: 130px; font-weight: 600; color: var(--green-dark); }
.events .what { display: flex; flex-direction: column; }
.events small { color: var(--muted); }
.note { text-align: center; margin-top: 18px; font-size: .8rem; color: var(--muted); font-style: italic; }

.member { text-align: center; }
.avatar {
  width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--green-soft); display: grid; place-items: center; font-size: 2.2rem;
}

/* Form */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .9rem; }
.form input, .form textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid #cfdad3;
  border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,93,59,.15); }
.form .invalid { border-color: #c0392b; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.address { text-align: center; margin-top: 26px; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.alert.ok { background: #e1f5e9; color: #146c3a; }
.alert.err { background: #fde8e6; color: #a8322a; }

/* Footer */
.footer { background: var(--green-dark); color: #cfe3d8; text-align: center; padding: 24px 0; font-size: .85rem; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--gold); color: var(--green-dark); font-size: 1.2rem; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--green-dark); max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav.open { max-height: 460px; padding-bottom: 16px; }
  .nav a { padding: 12px 0; }
  .lang-switch { margin-top: 8px; }
  .lang-switch a { padding: 3px 18px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-3 { grid-template-columns: 1fr; }
  .events li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
