﻿:root {
  --ink: #10231f;
  --muted: #5e6f69;
  --paper: #f7f4eb;
  --warm: #e9dcc2;
  --green: #0c5c4c;
  --green-2: #123e36;
  --gold: #c99d42;
  --clay: #8f4634;
  --white: #ffffff;
  --line: rgba(16, 35, 31, 0.14);
  --shadow: 0 24px 80px rgba(16, 35, 31, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(5, 16, 14, 0.76), rgba(5, 16, 14, 0));
}

.brand, .nav-links, .hero-actions, .site-footer, .visit-list, .donate-section {
  display: flex;
  align-items: center;
}

.brand { gap: 12px; min-width: 0; }

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  font-family: Amiri, serif;
  font-size: 1.45rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; line-height: 1.1; }
.brand small { margin-top: 2px; color: rgba(255, 255, 255, 0.78); font-size: 0.74rem; }

.nav-links {
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.nav-links a, .header-action {
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
}

.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255, 255, 255, 0.18); }

.header-action {
  justify-self: end;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px clamp(20px, 6vw, 86px) 56px;
  color: var(--white);
  isolation: isolate;
}

.hero-photo, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  z-index: -3;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 13, 12, 0.84), rgba(4, 13, 12, 0.5) 42%, rgba(4, 13, 12, 0.12)),
    linear-gradient(0deg, rgba(4, 13, 12, 0.78), rgba(4, 13, 12, 0.02) 45%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(247, 244, 235, 0), var(--paper));
}

.hero-content { width: min(720px, 100%); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1, .section-heading h2, .intro-copy h2, .visit-content h2, .donate-section h2 {
  margin: 0;
  font-family: Amiri, Georgia, serif;
  font-weight: 700;
  line-height: 1;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 10vw, 7.8rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions { flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
}

.button.primary { color: var(--ink); background: var(--gold); }
.button.secondary { color: var(--white); border: 1px solid rgba(255,255,255,0.48); background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); }
.button.dark { color: var(--white); background: var(--green-2); }

.prayer-band, .intro-section, .programs-section, .visit-section, .donate-section, .site-footer {
  padding-inline: clamp(20px, 6vw, 86px);
}

.prayer-band { padding-top: 54px; padding-bottom: 66px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2, .intro-copy h2, .visit-content h2, .donate-section h2 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  text-wrap: balance;
}

.prayer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

.prayer-card, .program-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.prayer-card {
  min-height: 132px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 50px rgba(16, 35, 31, 0.06);
}

.prayer-card span, .visit-list span { color: var(--muted); }
.prayer-card strong { color: var(--green-2); font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1; }
.prayer-card.jummah { color: var(--white); border-color: rgba(12, 92, 76, 0); background: var(--green); }
.prayer-card.jummah span, .prayer-card.jummah strong { color: var(--white); }

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-top: 64px;
  padding-bottom: 76px;
  background:
    linear-gradient(135deg, rgba(201, 157, 66, 0.14), transparent 45%),
    var(--white);
}

.intro-copy p:not(.eyebrow), .visit-content p, .donate-section p {
  margin: 22px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-panel {
  position: relative;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(201, 157, 66, 0.42);
  border-radius: 8px;
  color: var(--white);
  background: var(--green-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intro-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.intro-panel p { position: relative; margin: 0; }
.intro-panel .arabic { margin-bottom: 22px; color: var(--warm); font-family: Amiri, serif; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.35; }

.programs-section { padding-top: 74px; padding-bottom: 82px; }
.program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.program-card {
  min-height: 286px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--clay);
  font-weight: 800;
  font-size: 0.9rem;
}

.program-card h3 { margin: 30px 0 10px; color: var(--green-2); font-size: 1.35rem; line-height: 1.2; }
.program-card p { margin: 0; color: var(--muted); }

.visit-section {
  padding-top: 92px;
  padding-bottom: 92px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 92, 76, 0.96), rgba(18, 62, 54, 0.98)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 22px);
}

.visit-content { width: min(900px, 100%); }
.visit-content p { color: rgba(255, 255, 255, 0.78); }
.visit-list { align-items: stretch; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.visit-list div { flex: 1 1 230px; min-height: 118px; padding: 18px; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; background: rgba(255,255,255,0.08); }
.visit-list strong, .visit-list span { display: block; }
.visit-list strong { margin-bottom: 8px; }
.visit-list span { color: rgba(255,255,255,0.74); }

.donate-section {
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  padding-top: 56px;
  padding-bottom: 56px;
  background: var(--warm);
}

.donate-section > div, .donate-section p { flex: 1 1 280px; }
.donate-section p { margin-top: 0; }

.site-footer {
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
  background: #071614;
}

.site-footer strong { display: block; color: var(--white); }
.site-footer p { margin: 4px 0 0; }
.site-footer div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); }

.story-header {
  background: linear-gradient(180deg, rgba(5, 16, 14, 0.9), rgba(5, 16, 14, 0.32));
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: center;
  min-height: 100svh;
  padding: 128px clamp(20px, 6vw, 86px) 72px;
  background:
    linear-gradient(135deg, rgba(201, 157, 66, 0.2), transparent 38%),
    linear-gradient(180deg, var(--green-2), #0b211d);
}

.story-hero-copy {
  color: var(--white);
}

.story-hero h1,
.story-timeline h2 {
  margin: 0;
  font-family: Amiri, Georgia, serif;
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

.story-hero h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 8vw, 7rem);
}

.story-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.story-photo-frame {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.story-photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 6px;
}

.story-photo-frame figcaption {
  padding: 12px 4px 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.story-values,
.story-timeline {
  padding-inline: clamp(20px, 6vw, 86px);
}

.story-values {
  padding-top: 72px;
  padding-bottom: 74px;
}

.story-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-value-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 50px rgba(16, 35, 31, 0.06);
}

.story-value-grid span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.story-value-grid h3 {
  margin: 34px 0 10px;
  color: var(--green-2);
  font-size: 1.35rem;
  line-height: 1.2;
}

.story-value-grid p {
  margin: 0;
  color: var(--muted);
}

.story-timeline {
  padding-top: 78px;
  padding-bottom: 84px;
  background: var(--white);
}

.story-timeline h2 {
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.timeline-list {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.timeline-list div {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list strong {
  color: var(--green-2);
  font-size: 1.1rem;
}

.timeline-list p {
  margin: 0;
  color: var(--muted);
}

.staff-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.68fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  min-height: 100svh;
  padding: 128px clamp(20px, 6vw, 86px) 82px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(201, 157, 66, 0.2), transparent 36%),
    linear-gradient(180deg, var(--green-2), #0b211d);
}

.staff-intro h1,
.staff-nameplate h2 {
  margin: 0;
  font-family: Amiri, Georgia, serif;
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

.staff-intro h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
}

.staff-intro p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.food-callout {
  width: min(520px, 100%);
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(201, 157, 66, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.food-callout strong,
.food-callout span {
  display: block;
}

.food-callout strong {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.food-callout span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.84);
}

.staff-profile {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.staff-list {
  display: grid;
  gap: 18px;
}

.staff-nameplate {
  padding: 24px 24px 18px;
  background: rgba(255, 255, 255, 0.08);
}

.staff-nameplate h2 {
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.staff-profile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
}

.staff-profile img.staff-small-photo {
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(201, 157, 66, 0.12), transparent),
    rgba(7, 22, 20, 0.72);
  object-fit: contain;
  object-position: center;
}

.legal-photo {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 32px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201, 157, 66, 0.16), transparent),
    rgba(7, 22, 20, 0.72);
}

.legal-photo strong,
.legal-photo span {
  display: block;
}

.legal-photo strong {
  color: var(--white);
  font-family: Amiri, Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}

.legal-photo span {
  margin-top: 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-profile-copy {
  padding: 22px 24px 26px;
}

.staff-profile-copy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-profile-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-hero {
  padding: 136px clamp(20px, 6vw, 86px) 58px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(201, 157, 66, 0.22), transparent 36%),
    linear-gradient(180deg, var(--green-2), #0b211d);
}

.gallery-hero h1 {
  max-width: 960px;
  margin: 0;
  font-family: Amiri, Georgia, serif;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  line-height: 1;
  text-wrap: balance;
}

.gallery-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.gallery-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 42px clamp(20px, 6vw, 86px) 84px;
  background: var(--paper);
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(16, 35, 31, 0.07);
}

.gallery-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 50% 28%;
}

.gallery-card.featured img {
  height: 710px;
}

.gallery-card div {
  padding: 18px 20px 20px;
}

.gallery-card strong,
.gallery-card span {
  display: block;
}

.gallery-card strong {
  color: var(--green-2);
  font-size: 1.15rem;
}

.gallery-card span {
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand donate"
      "nav nav";
    gap: 10px 14px;
    padding: 12px 14px 10px;
    background: linear-gradient(180deg, rgba(5, 16, 14, 0.94), rgba(5, 16, 14, 0.64));
    backdrop-filter: blur(14px);
  }

  .brand { grid-area: brand; }
  .header-action { grid-area: donate; }

  .nav-links {
    grid-area: nav;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    padding: 5px;
    border-radius: 8px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 9px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .prayer-grid, .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-section { grid-template-columns: 1fr; }
  .hero-photo { object-position: 54% 22%; }
  .story-hero { grid-template-columns: 1fr; }
  .story-value-grid { grid-template-columns: 1fr; }
  .staff-hero { grid-template-columns: 1fr; }
  .gallery-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card.featured { grid-column: span 2; }
}

@media (max-width: 680px) {
  body { overflow-x: hidden; }

  .site-header { padding: 10px 12px 9px; }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .brand strong { font-size: 0.92rem; }
  .brand small { display: none; }
  .header-action { min-height: 38px; padding: 10px 13px; }
  .hero { min-height: 88svh; padding: 138px 18px 46px; }
  .hero h1 { font-size: clamp(2.85rem, 16vw, 4.2rem); }
  .hero-copy { font-size: 1rem; }
  .button { width: 100%; }
  .hero-shade { background: linear-gradient(180deg, rgba(4,13,12,0.18), rgba(4,13,12,0.78)), linear-gradient(90deg, rgba(4,13,12,0.52), rgba(4,13,12,0.1)); }
  .section-heading { grid-template-columns: 1fr; gap: 6px; }
  .section-heading h2, .intro-copy h2, .visit-content h2, .donate-section h2 { font-size: clamp(2.15rem, 12vw, 3.4rem); }
  .prayer-grid, .program-grid { grid-template-columns: 1fr; }
  .prayer-card { min-height: 104px; }
  .program-card { min-height: 230px; }
  .donate-section, .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer div:last-child { justify-content: flex-start; }
  .story-hero { padding-top: 138px; }
  .story-hero h1 { font-size: clamp(2.75rem, 14vw, 4.05rem); }
  .story-photo-frame img { aspect-ratio: 3 / 4; }
  .timeline-list div { grid-template-columns: 1fr; gap: 8px; }
  .staff-hero { padding-top: 138px; }
  .staff-intro h1 { font-size: clamp(2.75rem, 14vw, 4.05rem); }
  .staff-nameplate { padding: 18px 18px 14px; }
  .staff-nameplate h2 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .staff-profile img { aspect-ratio: 3 / 4; }
  .legal-photo { min-height: 260px; }
  .gallery-hero { padding-top: 138px; }
  .gallery-hero h1 { font-size: clamp(2.85rem, 15vw, 4.2rem); }
  .gallery-section { grid-template-columns: 1fr; }
  .gallery-card.featured { grid-column: span 1; grid-row: span 1; }
  .gallery-card img,
  .gallery-card.featured img { height: auto; aspect-ratio: 4 / 5; }
}
