:root {
  --navy: #12304a;
  --navy-deep: #0a2237;
  --gold: #c79a32;
  --light: #f5f7f9;
  --ink: #14202b;
  --muted: #607080;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: 72px;
}

h1,
h2,
h3 {
  color: var(--navy-deep);
  letter-spacing: 0;
  line-height: 1.12;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 750;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 750;
}

p {
  color: var(--muted);
}

a {
  color: var(--navy);
}

.btn {
  border-radius: var(--radius);
  font-weight: 700;
  min-height: 44px;
}

.btn-primary {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy-deep);
  --bs-btn-hover-border-color: var(--navy-deep);
}

.skip-link {
  background: var(--navy-deep);
  color: #fff;
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 2000;
}

.skip-link:focus {
  top: 1rem;
}

.navbar {
  min-height: 72px;
}

.navbar-brand {
  color: var(--navy-deep);
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: .75rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav-link {
  color: var(--ink);
  font-weight: 650;
}

.nav-link.active,
.nav-link:hover {
  color: var(--gold);
}

.language-switcher {
  display: flex;
  gap: .35rem;
}

.language-switcher button {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 999px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  height: 34px;
  width: 42px;
}

.language-switcher button.active,
.language-switcher button:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  outline: 3px solid rgba(199, 154, 50, .28);
}

.hero,
.page-hero {
  background-position: center;
  background-size: cover;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  position: relative;
}

.page-hero {
  align-items: center;
  display: flex;
  min-height: 62vh;
}

.hero-home {
  background-image: url("../img/hero/children-reading.jpg");
}

.hero-sitti {
  background-image: url("../img/people/sitti-family.jpg");
}

.hero-donate {
  background-image: url("../img/hero/child-drawing.jpg");
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(7, 28, 48, .82), rgba(7, 28, 48, .48), rgba(7, 28, 48, .15));
  inset: 0;
  position: absolute;
}

.eyebrow {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.section {
  padding: 6rem 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 3rem;
}

.rounded-1 {
  border-radius: var(--radius) !important;
}

.mission-card,
.impact-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: 0 14px 35px rgba(18, 48, 74, .07);
}

.mission-card .card-body,
.impact-card .card-body {
  padding: 2rem;
}

.mission-card i,
.impact-card i {
  color: var(--gold);
  display: inline-block;
  font-size: 2.1rem;
  margin-bottom: 1.25rem;
}

.timeline {
  border-left: 2px solid #dce4ec;
  display: grid;
  gap: 2rem;
  padding-left: 2rem;
}

[dir="rtl"] .timeline {
  border-left: 0;
  border-right: 2px solid #dce4ec;
  padding-left: 0;
  padding-right: 2rem;
}

.timeline article {
  position: relative;
}

.timeline article::before {
  background: var(--gold);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold);
  content: "";
  height: 18px;
  left: calc(-2rem - 10px);
  position: absolute;
  top: .25rem;
  width: 18px;
}

[dir="rtl"] .timeline article::before {
  left: auto;
  right: calc(-2rem - 10px);
}

.timeline span {
  color: var(--gold);
  font-weight: 850;
}

.gallery-note {
  max-width: 420px;
}

.gallery-grid img,
.gallery-item img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-item {
  background: none;
  border: 0;
  display: block;
  padding: 0;
  width: 100%;
}

.gallery-item:focus-visible {
  outline: 4px solid rgba(199, 154, 50, .45);
  outline-offset: 4px;
}

.quote-band {
  background: var(--navy-deep);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.quote-band blockquote,
.story-quote {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
}

.cta-section {
  background: linear-gradient(135deg, var(--navy), #235173);
  color: #fff;
  padding: 5rem 0;
}

.cta-section h2 {
  color: #fff;
}

.site-footer {
  background: #071c30;
  color: #dce8f2;
  padding: 4rem 0 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: #dce8f2;
  display: block;
  margin-bottom: .45rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer p {
  color: #b7c8d8;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
}

.narrow {
  max-width: 980px;
}

.story-section {
  padding: 5rem 0;
}

.story-block {
  margin: 0 auto 2.5rem;
  max-width: 760px;
}

.story-image {
  margin: 0 0 5rem;
}

.story-image img {
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(18, 48, 74, .12);
  height: min(72vh, 720px);
  object-fit: cover;
  width: 100%;
}

.story-image:not(.wide) {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.story-quote {
  border-left: 6px solid var(--gold);
  color: var(--navy-deep);
  margin: 1rem auto 5rem;
  max-width: 920px;
  padding-left: 2rem;
}

[dir="rtl"] .story-quote {
  border-left: 0;
  border-right: 6px solid var(--gold);
  padding-left: 0;
  padding-right: 2rem;
}

.donate-panel {
  align-items: center;
  background: var(--light);
  border-radius: var(--radius);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 260px;
  padding: 3rem;
}

.qr-placeholder {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 2px dashed #c5cfda;
  border-radius: var(--radius);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  font-weight: 800;
  gap: 1rem;
  justify-content: center;
  text-align: center;
}

.qr-placeholder i {
  font-size: 5rem;
}

.lightbox {
  align-items: center;
  background: rgba(4, 15, 27, .92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: fixed;
  z-index: 3000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  object-fit: contain;
}

.lightbox-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 44px;
}

[dir="rtl"] .lightbox-close {
  left: 1.5rem;
  right: auto;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 68px;
  }

  .navbar-collapse {
    padding: 1rem 0;
  }

  .section {
    padding: 4rem 0;
  }

  .hero,
  .page-hero {
    min-height: 70vh;
  }

  .donate-panel {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .qr-placeholder {
    max-width: 280px;
  }
}

@media (max-width: 575.98px) {
  .container {
    overflow-x: clip;
  }

  .display-2 {
    font-size: 3.1rem;
  }

  .display-3 {
    font-size: 2.55rem;
  }

  .story-image img {
    height: 430px;
  }
}
