/* Sunset Islam — warm sunset amber, deep emerald, cream */
:root {
  --emerald: #043c24;
  --emerald-mid: #185030;
  --emerald-soft: #2a6040;
  --gold: #c5851b;
  --gold-deep: #b4802c;
  --amber: #fda14e;
  --sunset: #f1b14d;
  --horizon: #fd9f4e;
  --cream: #fbf4ea;
  --cream-dark: #f8e8d0;
  --ivory: #fffcf7;
  --ink: #143226;
  --muted: #4a5d52;
  --line: rgba(4, 60, 36, 0.14);
  --shadow: 0 16px 40px rgba(4, 60, 36, 0.08);
  --radius: 18px;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --header-h: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-mid); }
a:hover { color: var(--gold-deep); }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1rem; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--emerald);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--emerald);
}
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-tag {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  color: var(--gold-deep);
  margin-top: 0.15rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--emerald);
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--gold-deep); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--emerald);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.95rem; }
.btn-emerald { background: var(--emerald); color: var(--ivory); }
.btn-emerald:hover { background: var(--emerald-mid); color: #fff; }
.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { background: var(--sunset); color: #1a1408; }
.btn-outline {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}
.btn-outline:hover { background: var(--emerald); color: var(--ivory); }
.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.4rem auto 1.3rem;
  width: min(16rem, 70%);
}
.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: block;
  background: var(--ivory);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.section {
  padding: 5rem 0;
}
.section-lead {
  max-width: 40rem;
  margin: 0 auto 2.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.15rem;
}
.section h2, .section .eyebrow { text-align: center; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.25rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, #f8e0b8 0%, transparent 55%),
    linear-gradient(180deg, #fff6e8 0%, var(--cream) 70%);
}
.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: auto 0 30% 0;
  height: 40%;
  background: radial-gradient(ellipse at 50% 0%, rgba(253, 161, 78, 0.18), transparent 70%);
}
.hero-inner { position: relative; width: min(760px, 100%); margin-inline: auto; }
.hero-logo {
  width: min(340px, 78vw);
  margin: 0 auto 0.5rem;
}
.hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--emerald);
  margin: 0.1rem 0 0.4rem;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Cards / mission */
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem 1.5rem;
}
.pillar-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar h3, .resource h3 { margin-bottom: 0.4rem; }
.pillar p, .resource p { color: var(--muted); margin-bottom: 0.6rem; }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--emerald-mid);
  background: var(--cream-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.badge-gold { color: #5c3e0a; background: #f3dfb0; }

/* Peace line */
.peace-line {
  background:
    linear-gradient(180deg, var(--cream) 0%, #f3e2c4 50%, var(--cream) 100%);
}
.peace-card {
  text-align: center;
  background: linear-gradient(180deg, #fffaf2, #f8ead0);
  border: 1px solid rgba(197, 133, 27, 0.28);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: 0 20px 50px rgba(197, 133, 27, 0.12);
}
.peace-card .section-lead { margin-bottom: 1.2rem; }
.phone-display {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--emerald);
  letter-spacing: 0.04em;
  margin: 0.4rem 0 0.5rem;
}
.phone-note { color: var(--muted); margin-bottom: 1.4rem; }

/* Tabs */
.tab-list {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.tab-list button {
  font-family: inherit;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--emerald);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
}
.tab-list button[aria-selected="true"] {
  background: var(--emerald);
  color: var(--ivory);
  border-color: var(--emerald);
}
.resources-cta { text-align: center; margin-top: 1.6rem; }

/* Support */
.support { background: var(--ivory); }
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.form-card h3 { margin-bottom: 0.35rem; }
.form-card > p { color: var(--muted); }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--emerald);
}
.optional { font-weight: 400; color: var(--muted); font-size: 0.9em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.segmented {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  gap: 0.5rem;
}
.segmented label {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.4rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--emerald);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked),
.segmented label:has(input:focus-visible) {
  background: var(--emerald);
  color: var(--ivory);
  border-color: var(--emerald);
}
.tiers {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.65rem;
}
.tier {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  background: #fff;
}
.tier:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(197, 133, 27, 0.25);
}
.tier strong { display: block; color: var(--emerald); }
.tier em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold-deep);
}
.tier small { display: block; color: var(--muted); }
.form-note, .form-status { font-size: 0.92rem; color: var(--muted); }
.form-status.is-ok { color: var(--emerald-mid); font-weight: 600; }
.form-status.is-error { color: #8a1f11; font-weight: 600; }

/* Social */
.social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}
.social-link {
  display: inline-flex;
  min-width: 8.2rem;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory);
  text-decoration: none;
  color: var(--emerald);
  font-weight: 600;
}
.social-link[aria-disabled="true"] { opacity: 0.7; }
.social-link:hover { border-color: var(--gold); color: var(--gold-deep); }

/* Footer */
.site-footer {
  background: var(--emerald);
  color: #e7f3ea;
  padding: 3.2rem 0 2.2rem;
  text-align: center;
}
.footer-brand img { margin: 0 auto 0.6rem; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.footer-greeting {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  margin: 0.4rem 0 0.1rem;
  color: #f3dfb0;
}
.footer-greeting-en { margin: 0 0 1.2rem; color: #cfe0d4; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
}
.footer-nav a { color: #e7f3ea; text-decoration: none; }
.footer-nav a:hover { color: #f3dfb0; }
.footer-meta, .copyright { color: #b7cfc0; font-size: 0.92rem; margin: 0.2rem 0; }

@media (max-width: 860px) {
  .pillar-grid, .card-grid, .support-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.2rem 1.2rem;
    gap: 0.8rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0.4rem; }
  .site-nav .btn { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
