:root {
  --navy: #071d38;
  --navy-deep: #04162c;
  --gold: #c99522;
  --gold-light: #d8aa3b;
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #101827;
  --muted: #4a5565;
  --border: #e3e5ea;
  --shadow: 0 18px 45px rgba(7, 29, 56, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 82px;
  padding: 10px clamp(28px, 4vw, 54px);
  background: #ffffff;
  border-bottom: 1px solid rgba(7, 29, 56, 0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: clamp(140px, 15vw, 178px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2.1vw, 34px);
  color: #071d38;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  color: #071d38;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:not(.nav-donate):not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: #c99522;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:not(.nav-donate):not(.nav-contact):hover::after,
.main-nav a:not(.nav-donate):not(.nav-contact):focus-visible::after,
.main-nav a.active:not(.nav-donate):not(.nav-contact)::after {
  transform: scaleX(1);
}

.nav-donate,
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 40px;
  padding: 11px 20px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.nav-donate {
  color: #ffffff;
  background: linear-gradient(135deg, #d8aa3b, #c99522);
  box-shadow: 0 10px 22px rgba(201, 149, 34, 0.24);
}

.nav-contact {
  color: #071d38;
  background: #ffffff;
  border: 2px solid #071d38;
}

.nav-donate:hover,
.nav-donate:focus-visible,
.nav-contact:hover,
.nav-contact:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
  }

  .brand img {
    width: 150px;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .nav-donate,
  .nav-contact {
    min-width: 100px;
    min-height: 38px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 16px 18px;
  }

  .main-nav {
    font-size: 11px;
  }

  .nav-donate,
  .nav-contact {
    width: calc(50% - 10px);
  }
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 40%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(90deg, var(--navy-deep) 0%, #08213f 44%, #16110b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 55%;
  background:
    linear-gradient(
      90deg,
      rgba(4, 22, 44, 0.95),
      rgba(4, 22, 44, 0.82) 68%,
      rgba(4, 22, 44, 0.10)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0 2px,
      transparent 2px 46px
    );
  opacity: 0.95;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 57%;
  background-image: url("assets/hero-family.PNG");
  background-size: cover;
  background-position: center center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(4, 22, 44, 0.95) 0%,
      rgba(4, 22, 44, 0.86) 37%,
      rgba(4, 22, 44, 0.26) 58%,
      rgba(4, 22, 44, 0.00) 82%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.10));
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding: 96px clamp(24px, 4.4vw, 52px) 150px;
  color: var(--white);
}

.hero h1 {
  margin: 0 0 26px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
  color: var(--gold-light);
}

.hero p {
  max-width: 525px;
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.button-gold {
  color: var(--white);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.button-outline-light {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.03);
}

.button:hover,
.button:focus-visible,
.nav-donate:hover,
.nav-donate:focus-visible,
.nav-contact:hover,
.nav-contact:focus-visible {
  transform: translateY(-1px);
}

.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  height: 118px;
  pointer-events: none;
}

.hero-curve svg {
  width: 100%;
  height: 100%;
}

.curve-gold {
  fill: var(--gold);
}

.curve-white {
  fill: var(--white);
}

.pillars {
  padding: 22px clamp(24px, 7vw, 105px) 22px;
  background: var(--white);
  text-align: center;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gold-text {
  color: var(--gold);
}

.pillars h2,
.wealth-gap h2,
.newsletter h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.pillars h2 {
  margin: 0 0 56px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4.6vw, 58px);
  max-width: 1040px;
  margin: 0 auto;
}

.pillar-card {
  position: relative;
  min-height: 230px;
  padding: 72px 34px 28px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 29, 56, 0.035);
}

.pillar-icon {
  position: absolute;
  top: -47px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--navy);
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
}

.pillar-icon svg {
  width: 54px;
  height: 54px;
  stroke: var(--white);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pillar-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.25;
}

.pillar-card p {
  max-width: 230px;
  margin: 0 auto 24px;
  color: #263246;
  font-size: 16px;
  line-height: 1.55;
}

.pillar-card a,
.wealth-copy a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pillar-card a span,
.wealth-copy a span {
  margin-left: 8px;
}

.wealth-gap {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(520px, 1.5fr);
  gap: 56px;
  align-items: center;
  padding: 36px clamp(24px, 5.4vw, 68px) 32px;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 40%, rgba(201, 149, 34, 0.08), transparent 30%),
    linear-gradient(135deg, var(--navy-deep), #062447 55%, #04162c);
}

.wealth-copy h2 {
  max-width: 430px;
  margin: 6px 0 16px;
  color: var(--white);
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.wealth-copy p:not(.section-kicker) {
  max-width: 455px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.6;
}

.wealth-copy a {
  color: var(--gold-light);
}

.stats-wrap {
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.stat-card {
  position: relative;
  min-height: 160px;
  padding: 0 26px;
  text-align: center;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  width: 1px;
  height: 118px;
  background: rgba(255, 255, 255, 0.32);
}

.stat-card.no-divider::after {
  display: none;
}

.stat-icon {
  display: grid;
  place-items: center;
  min-height: 46px;
  margin-bottom: 8px;
}

.stat-icon svg {
  width: 43px;
  height: 43px;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.stat-card strong {
  display: block;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3vw, 43px);
  font-weight: 500;
  line-height: 1.08;
}

.stat-card p {
  max-width: 155px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.45;
}

.source-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  text-align: right;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 34px clamp(24px, 5.4vw, 68px);
  color: var(--white);
  background: linear-gradient(135deg, #c18a17, var(--gold) 48%, #b98214);
}

.newsletter-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.newsletter-icon {
  flex: 0 0 auto;
}

.newsletter-icon svg {
  width: 54px;
  height: 54px;
  stroke: var(--white);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.newsletter h2 {
  margin: 0 0 2px;
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.2;
}

.newsletter p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.94);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 148px;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.newsletter-form input,
.newsletter-form button {
  min-height: 54px;
  border: 0;
  font: inherit;
}

.newsletter-form input {
  padding: 0 24px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.newsletter-form input:focus {
  box-shadow: inset 0 0 0 3px rgba(7, 29, 56, 0.25);
}

.newsletter-form button {
  cursor: pointer;
  color: var(--white);
  background: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  background: var(--navy-deep);
}

@media (max-width: 1060px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .nav-donate,
  .nav-contact {
    min-width: 102px;
    min-height: 40px;
  }

  .wealth-gap,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .source-note {
    text-align: left;
  }

  .newsletter-form {
    margin-left: 0;
  }
}

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

  .hero::before {
    width: 100%;
  }

  .hero-photo {
    width: 100%;
    opacity: 0.35;
  }

  .hero-shade {
    background: rgba(4, 22, 44, 0.78);
  }

  .hero-content {
    max-width: none;
    padding: 76px 24px 132px;
  }

  .hero-actions {
    gap: 14px;
  }

  .button {
    min-width: 146px;
  }

  .pillars {
    padding-top: 12px;
  }

  .pillars h2 {
    margin-bottom: 58px;
  }

  .pillar-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    gap: 66px;
  }

  .stat-card {
    min-height: auto;
    padding: 28px 0;
  }

  .stat-card::after {
    top: auto;
    right: 50%;
    bottom: 0;
    width: 160px;
    height: 1px;
    transform: translateX(50%);
  }

  .stat-card.no-divider::after {
    display: none;
  }

  .newsletter-left {
    align-items: flex-start;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: auto;
    padding: 18px;
  }

  .main-nav {
    font-size: 11px;
  }

  .nav-donate,
  .nav-contact {
    width: calc(50% - 10px);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .newsletter-left {
    flex-direction: column;
    gap: 12px;
  }
}
.ejaa-footer {
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  background: #04162c;
}

.ejaa-footer-main {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.2fr)
    minmax(120px, 0.55fr)
    minmax(190px, 0.85fr)
    minmax(140px, 0.65fr)
    minmax(250px, 1fr);
  gap: clamp(26px, 4vw, 54px);
  padding: 44px clamp(28px, 5vw, 72px);
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 149, 34, 0.12), transparent 32%),
    linear-gradient(135deg, #04162c, #071d38);
}

.ejaa-footer-brand img {
  width: 190px;
  height: auto;
  margin-bottom: 18px;
  background: transparent;
}

.ejaa-footer-brand p {
  max-width: 285px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

.ejaa-social-links {
  display: flex;
  gap: 12px;
}

.ejaa-social-links a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #04162c;
  background: #c99522;
  border-radius: 50%;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.ejaa-footer-column,
.ejaa-footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
  font-style: normal;
}

.ejaa-footer-column h2,
.ejaa-footer-contact h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ejaa-footer-column a,
.ejaa-footer-contact a,
.ejaa-footer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.ejaa-footer-column a:hover,
.ejaa-footer-column a:focus-visible,
.ejaa-footer-contact a:hover,
.ejaa-footer-contact a:focus-visible {
  color: #d8aa3b;
}

.ejaa-footer-contact p {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.footer-contact-icon svg {
  width: 23px;
  height: 23px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.95;
}

.ejaa-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(28px, 5vw, 72px);
  background: #031224;
  font-size: 12px;
}

.ejaa-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.ejaa-footer-bottom nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.ejaa-footer-bottom a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.ejaa-footer-bottom a:hover,
.ejaa-footer-bottom a:focus-visible {
  color: #d8aa3b;
}

@media (max-width: 1080px) {
  .ejaa-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ejaa-footer-brand {
    grid-column: 1 / -1;
  }

  .ejaa-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .ejaa-footer-main {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .ejaa-footer-bottom {
    padding: 18px 24px;
  }

  .ejaa-footer-bottom nav {
    gap: 16px;
  }
}
/* =========================================================
   EJAA GLOBAL COMPACT HEADER OVERRIDE
   Paste this at the VERY END of styles.css.
   It overrides the earlier header rules and the later tablet media queries.
   ========================================================= */

.site-header {
  min-height: 104px;
  padding: 0 clamp(42px, 4.8vw, 66px);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  flex-direction: row;
}

.brand {
  width: clamp(175px, 14vw, 205px);
  height: 84px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(22px, 2vw, 32px);
  font-size: 11px;
  line-height: 1;
}

.main-nav a:not(.nav-donate):not(.nav-contact)::after {
  bottom: -15px;
}

.nav-donate,
.nav-contact {
  min-width: 106px;
  min-height: 40px;
  padding: 0 18px;
  line-height: 1;
}

/* Keep the header in one row on tablets/iPads.
   Your earlier CSS stacks it too early at 980px and 1060px. */
@media (max-width: 1060px) {
  .site-header {
    min-height: 98px;
    padding: 0 28px;
    gap: 22px;
    align-items: center;
    flex-direction: row;
  }

  .brand {
    width: 165px;
    height: 76px;
  }

  .main-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 10.5px;
  }

  .nav-donate,
  .nav-contact {
    min-width: 94px;
    min-height: 36px;
    padding: 0 14px;
  }
}

/* Only stack the header on genuinely small phones. */
@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    width: 155px;
    height: 72px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 10.5px;
  }

  .nav-donate,
  .nav-contact {
    width: auto;
    min-width: 96px;
  }
}

@media (max-width: 420px) {
  .nav-donate,
  .nav-contact {
    width: calc(50% - 8px);
  }
}
