:root {
  --green: #41665a;
  --green-dark: #083f36;
  --gold: #d4af37;
  --ink: #153a33;
  --muted: #63736e;
  --paper: #f8f6f4;
  --white: #ffffff;
  --coral: #b96654;
  --line: #e4ded1;
  --shadow: 0 22px 60px rgba(16, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.wip-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(8, 63, 54, 0.08), rgba(212, 175, 55, 0.12)),
    var(--paper);
}

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

button,
input {
  font: inherit;
}

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

.topbar {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.topbar__inner,
.topbar__links,
.topbar__actions,
.nav,
.nav-links,
.hero__actions,
.section-heading,
.program-card__meta,
.footer__bottom {
  display: flex;
  align-items: center;
}

.topbar__inner {
  justify-content: space-between;
  min-height: 42px;
  gap: 18px;
}

.topbar__links,
.topbar__actions {
  gap: 18px;
  flex-wrap: wrap;
}

.icon-button,
.menu-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
}

.topbar .icon-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 246, 244, 0.94);
  border-bottom: 1px solid rgba(65, 102, 90, 0.12);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 82px;
  width: 82px;
  min-width: 82px;
  overflow: hidden;
}

.brand__logo {
  display: block;
  width: 76px !important;
  max-width: 76px;
  max-height: 38px;
  height: auto;
  object-fit: contain;
}

.brand__mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--gold);
  font-weight: 900;
  font-size: 28px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 21px;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  justify-content: center;
  gap: 13px;
  flex: 1;
  color: #2e3c38;
  font-size: 14px;
  font-weight: 700;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: 18px 0;
}

.nav-links a::after {
  position: absolute;
  content: "";
  right: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 180ms ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta,
.button {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta,
.button--primary {
  background: var(--green);
  color: var(--white);
}

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

.button--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.whatsapp-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: transparent;
}

.whatsapp-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  margin-inline-start: auto;
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.hero {
  min-height: 660px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  background-image: url("assets/ayan-hero-bg.png?v=no-bg-text-1");
  background-size: cover;
  background-position: center;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(8, 63, 54, 0.1), rgba(8, 63, 54, 0.92) 58%),
    linear-gradient(0deg, rgba(8, 63, 54, 0.2), rgba(8, 63, 54, 0.06));
}

.hero__content {
  position: relative;
  color: var(--white);
  padding-block: 86px 112px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.9;
}

.hero__actions {
  gap: 12px;
  flex-wrap: wrap;
}

.quick-donate {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.quick-donate__inner {
  display: grid;
  grid-template-columns: 1fr auto minmax(150px, 190px) auto;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid rgba(15, 107, 80, 0.14);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.quick-donate h2,
.section-copy h2,
.section-heading h2,
.impact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 900;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 8px;
}

.amounts button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fbfaf7;
  border-radius: 8px;
  font-weight: 800;
  color: var(--green-dark);
  cursor: pointer;
}

.amounts button.is-selected {
  border-color: var(--green);
  background: rgba(15, 107, 80, 0.09);
}

.custom-amount span,
.phone-contact span,
.newsletter span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.phone-contact {
  min-height: 58px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fbfaf7;
}

.phone-contact strong {
  display: block;
  direction: ltr;
  unicode-bidi: plaintext;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfaf7;
  color: var(--ink);
}

.section {
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.section-copy p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.9;
  font-size: 18px;
}

.values-grid,
.program-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.values-grid article,
.program-card,
.news-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.values-grid article {
  min-height: 210px;
}

.values-grid svg,
.program-card__icon svg,
.service-list svg {
  color: var(--green);
  width: 30px;
  height: 30px;
}

h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.values-grid p,
.program-card p,
.news-grid p,
.footer p {
  color: var(--muted);
  line-height: 1.75;
}

.programs,
.news {
  background: #eeeadf;
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading a {
  color: var(--green);
  font-weight: 900;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.program-card .button {
  margin-top: auto;
}

.program-card > span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  color: #6e422f;
  background: rgba(213, 166, 70, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.program-card h3,
.program-card p {
  margin: 0;
}

.progress {
  height: 9px;
  border-radius: 99px;
  background: #ece6d8;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.program-card__meta {
  justify-content: space-between;
  gap: 12px;
  color: var(--green-dark);
}

.program-card__meta small {
  color: var(--muted);
}

.services {
  background: var(--white);
}

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

.service-list a {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfaf7;
  font-weight: 900;
}

.impact {
  padding: 84px 0;
  background: var(--green-dark);
  color: var(--white);
}

.impact__inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 36px;
  align-items: center;
}

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

.stats div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.07);
}

.stats strong {
  display: block;
  color: var(--gold);
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 900;
  line-height: 1.2;
  direction: ltr;
  unicode-bidi: plaintext;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.stats span {
  color: rgba(255, 255, 255, 0.8);
}

.news-grid article {
  min-height: 210px;
}

.news-grid time {
  color: var(--coral);
  font-weight: 900;
}

.news-grid svg {
  width: 32px;
  height: 32px;
  color: var(--green);
}

.partners {
  padding: 44px 0;
  background: var(--white);
}

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

.partner-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  background: #fbfaf7;
  color: var(--muted);
  font-weight: 900;
  padding: 20px;
}

.partner-card img {
  width: min(170px, 82%);
  max-height: 64px;
  object-fit: contain;
}

.partner-card span {
  line-height: 1.5;
}

.footer {
  padding: 62px 0 24px;
  background: #122521;
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr 1fr;
  gap: 32px;
}

.brand--footer small,
.footer p {
  color: rgba(255, 255, 255, 0.68);
}

.brand--footer .brand__logo {
  width: 76px !important;
  max-width: 76px;
  padding: 7px;
  border-radius: 8px;
  background: var(--paper);
}

.vision-badge {
  width: fit-content;
  margin-top: 18px;
}

.vision-badge img {
  display: block;
  width: 138px;
  height: auto;
  object-fit: contain;
}

.wip-shell {
  width: min(760px, 100%);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px 28px;
  box-shadow: var(--shadow);
}

.wip-shell .brand {
  justify-content: center;
  margin-inline: auto;
}

.wip-shell h1 {
  margin: 28px 0 12px;
  color: var(--green-dark);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
  font-weight: 900;
}

.wip-shell p {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.wip-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer h3 {
  font-size: 18px;
  margin-top: 0;
}

.footer a:not(.brand) {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 10px;
}

.newsletter input {
  margin-bottom: 10px;
}

.footer__bottom {
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
}

.footer-legal span {
  direction: rtl;
  white-space: nowrap;
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }

  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.is-open {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .nav-links.is-open a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 620px;
  }

  .hero__shade {
    background: linear-gradient(90deg, rgba(8, 63, 54, 0.24), rgba(8, 63, 54, 0.94) 72%);
  }

  .quick-donate__inner,
  .split,
  .impact__inner,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .program-grid,
  .news-grid,
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand strong {
    font-size: 18px;
  }

  .brand__logo {
    width: 58px !important;
    max-width: 58px;
    max-height: 30px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero__content {
    padding-block: 70px 105px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.5vw, 38px);
    line-height: 1.22;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.75;
  }

  .button {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button {
    flex: 1;
  }

  .quick-donate {
    margin-top: -40px;
  }

  .amounts,
  .values-grid,
  .program-grid,
  .news-grid,
  .service-list,
  .stats,
  .partner-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
