:root {
  --ink: #152019;
  --green: #0c4638;
  --green-deep: #06352c;
  --green-soft: #e4eee7;
  --cream: #f7f2e7;
  --paper: #fffdf8;
  --gold: #c8a15f;
  --gold-light: #ead7ae;
  --line: rgba(24, 51, 40, 0.14);
  --muted: #647168;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(6, 53, 44, 0.78);
  color: white;
  box-shadow: 0 16px 45px rgba(0, 31, 24, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.brand-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 24, 18, 0.24));
}

.site-header nav {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.site-header nav a {
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: white;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 880px;
  padding: 150px 0 60px;
  background:
    radial-gradient(circle at 14% 16%, rgba(200, 161, 95, 0.18), transparent 28%),
    radial-gradient(circle at 83% 70%, rgba(121, 173, 147, 0.13), transparent 30%),
    linear-gradient(145deg, #0b493a 0%, #06352c 53%, #042a23 100%);
  color: white;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(255,255,255,.22) 49%, rgba(255,255,255,.22) 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, rgba(255,255,255,.18) 49%, rgba(255,255,255,.18) 51%, transparent 52%);
  background-size: 82px 142px;
  mask-image: linear-gradient(to left, black, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -410px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(234, 215, 174, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(234, 215, 174, 0.025), 0 0 0 150px rgba(234, 215, 174, 0.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow.light {
  color: var(--gold-light);
}

.hero h1,
.section-heading h2,
.impact-copy h2,
footer h2 {
  font-family: Georgia, "Times New Roman", Tahoma, serif;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 7.1rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  color: var(--gold-light);
  font-size: 0.73em;
  line-height: 1.18;
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 2;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold-light);
  color: var(--green-deep);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.button.dark {
  background: var(--green-deep);
  color: white;
}

.hero-collage {
  position: relative;
  min-height: 570px;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  background: #315b4d;
  box-shadow: 0 28px 70px rgba(0, 20, 15, 0.38);
  transition: transform 280ms ease;
}

.hero-photo:hover {
  z-index: 6;
  transform: rotate(0) scale(1.025);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-1 {
  top: 26px;
  right: 0;
  width: 68%;
  height: 390px;
  transform: rotate(3deg);
}

.hero-photo-2 {
  bottom: 15px;
  left: 0;
  z-index: 3;
  width: 62%;
  height: 300px;
  transform: rotate(-4deg);
}

.hero-photo-3 {
  right: 34px;
  bottom: -10px;
  z-index: 2;
  width: 42%;
  height: 230px;
  transform: rotate(5deg);
}

.hero-seal {
  position: absolute;
  z-index: 7;
  left: 42%;
  top: 45%;
  display: flex;
  width: 112px;
  height: 112px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: var(--gold);
  color: #173b30;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.hero-seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(6, 53, 44, 0.32);
  border-radius: 50%;
}

.hero-seal strong {
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.hero-seal span {
  font-size: 0.86rem;
}

.hero-stats {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.hero-stats div + div {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats strong {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 2.1rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.84rem;
}

.section {
  padding-block: clamp(82px, 10vw, 135px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading h2,
.impact-copy h2 {
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading > p:last-child,
.split-heading > p,
.impact-copy > p:last-child {
  color: var(--muted);
  line-height: 2;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: 1.05fr 0.8fr;
  align-items: end;
  gap: 70px;
}

.split-heading > p {
  margin: 0;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.program-card {
  min-height: 260px;
  padding: 30px 25px;
}

.program-card + .program-card {
  border-right: 1px solid var(--line);
}

.program-card > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2.3rem;
}

.program-card h3 {
  margin: 54px 0 14px;
  font-size: 1.05rem;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

.media-section {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  color: white;
}

.media-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at center, white 1px, transparent 1px);
  background-size: 26px 26px;
}

.media-section .shell {
  position: relative;
}

.media-section .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 25px 55px rgba(0, 22, 17, 0.25);
}

.video-card:first-child {
  grid-column: span 2;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #021b16;
}

.video-card:first-child .video-frame {
  aspect-ratio: 21 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
}

.video-meta span,
.video-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
}

.video-meta h3 {
  margin: 4px 0 5px;
  font-size: 1.05rem;
}

.video-meta > a {
  flex: 0 0 auto;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-grid {
  columns: 4 250px;
  column-gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 14px;
  break-inside: avoid;
  border-radius: 10px;
  background: var(--green-soft);
}

.gallery-item:nth-child(7n + 1),
.gallery-item:nth-child(7n + 5) {
  min-height: 340px;
}

.gallery-item:nth-child(7n + 3) {
  min-height: 280px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 450ms ease, filter 450ms ease;
}

.gallery-item::after {
  content: "عرض الصورة ↗";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5, 43, 35, 0.86);
  color: white;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item > span {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.82);
  color: var(--green-deep);
  font-family: Georgia, serif;
  font-size: 0.72rem;
  backdrop-filter: blur(10px);
}

.drive-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 48px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
}

.drive-callout > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.drive-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--green-deep);
  color: var(--gold-light);
  font-size: 1.5rem;
}

.drive-callout h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.drive-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.impact-section {
  background: var(--cream);
}

.impact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 90px;
}

.impact-copy > p:last-child {
  margin-top: 26px;
}

.impact-list {
  border-top: 1px solid var(--line);
}

.impact-list > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.impact-list span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.impact-list p {
  margin: 0;
  line-height: 1.75;
}

.support-section {
  background: var(--paper);
}

.support-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(38px, 5vw, 58px);
  border: 1px solid rgba(200, 161, 95, 0.4);
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 161, 95, 0.16), transparent 28%),
    linear-gradient(145deg, #fffdf8 0%, #f4eee0 100%);
  text-align: right;
  box-shadow: 0 24px 70px rgba(27, 60, 47, 0.11);
}

.support-card::before,
.support-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 1px;
  top: 38px;
  background: linear-gradient(to left, transparent, var(--gold), transparent);
}

.support-card::before {
  right: 34px;
}

.support-card::after {
  left: 34px;
}

.support-card .eyebrow {
  margin-bottom: 18px;
}

.support-copy {
  position: relative;
  z-index: 1;
}

.support-foundation-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0 0 22px auto;
  filter: drop-shadow(0 12px 20px rgba(6, 59, 95, 0.12));
}

.support-copy h2 {
  margin: 18px 0;
  color: var(--green-deep);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.35;
}

.support-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 2;
}

.support-visual {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 0;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(200, 161, 95, 0.52);
  border-radius: 26px;
  background: #031f1a;
  box-shadow: 0 20px 42px rgba(3, 31, 26, 0.2);
}

.support-visual img {
  width: min(100%, 300px);
  height: auto;
  border-radius: 18px;
}

footer {
  padding: 90px 0 45px;
  background: #031f1a;
  color: white;
}

.footer-content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.footer-association-logo {
  width: min(100%, 470px);
  height: auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

footer h2 {
  margin: 24px 0 12px;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 600;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.8;
}

footer > .footer-content > a {
  flex: 0 0 auto;
  color: var(--gold-light);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-content,
  .split-heading,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 36px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-collage {
    width: min(620px, 100%);
    min-height: 520px;
    margin-inline: auto;
  }

  .split-heading,
  .impact-grid {
    gap: 30px;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-card:nth-child(3) {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .program-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px 12px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .support-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 22px;
    border-radius: 24px;
    text-align: center;
  }

  .support-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .support-foundation-logo {
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .support-visual {
    width: min(100%, 340px);
    margin-inline: auto;
    padding: 8px;
    border-radius: 22px;
  }

  .support-card::before,
  .support-card::after {
    width: 64px;
    top: 28px;
  }

  .support-card::before {
    right: 20px;
  }

  .support-card::after {
    left: 20px;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .hero-collage {
    min-height: 390px;
  }

  .hero-photo-1 {
    width: 76%;
    height: 270px;
  }

  .hero-photo-2 {
    width: 65%;
    height: 210px;
  }

  .hero-photo-3 {
    height: 170px;
  }

  .hero-seal {
    left: 37%;
    width: 86px;
    height: 86px;
  }

  .hero-seal strong {
    font-size: 1.25rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .hero-stats div {
    justify-content: space-between;
    padding: 15px 4px;
  }

  .hero-stats div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 0;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .impact-copy h2 {
    font-size: 2.5rem;
  }

  .program-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: auto;
  }

  .program-card + .program-card,
  .program-card:nth-child(3),
  .program-card:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .program-card h3 {
    margin-top: 26px;
  }

  .video-card:first-child {
    grid-column: auto;
  }

  .video-card:first-child .video-frame {
    aspect-ratio: 16 / 9;
  }

  .video-meta {
    padding: 18px;
  }

  .gallery-grid {
    columns: 2 145px;
    column-gap: 9px;
  }

  .gallery-item {
    min-height: 155px;
    margin-bottom: 9px;
  }

  .gallery-item:nth-child(7n + 1),
  .gallery-item:nth-child(7n + 5) {
    min-height: 235px;
  }

  .gallery-item:nth-child(7n + 3) {
    min-height: 195px;
  }

  .gallery-item::after {
    display: none;
  }

  .drive-callout,
  .footer-content {
    align-items: stretch;
    flex-direction: column;
  }

  .drive-callout {
    padding: 22px;
  }

  .drive-callout > div {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
