:root {
  --blue: #103f77;
  --blue-dark: #08294f;
  --gold: #d5a63a;
  --cream: #fff8ed;
  --text: #20242a;
  --muted: #667085;
  --white: #ffffff;
  --shadow: 0 15px 40px rgba(16, 63, 119, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f7f8fb;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-dark);
}

.logo-mark {
  background: var(--blue);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
}

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

.logo small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--blue-dark);
}

.nav-donate {
  background: var(--gold);
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--blue-dark);
}

.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 41, 79, 0.9), rgba(8, 41, 79, 0.4));
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 13px;
}

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--blue-dark);
}

.hero p {
  font-size: 20px;
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 24px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid transparent;
}

.button.primary {
  background: var(--gold);
  color: var(--blue-dark);
}

.button.secondary {
  border-color: var(--white);
  color: var(--white);
}

.button.full {
  width: 100%;
  text-align: center;
}

.section {
  padding: 80px 0;
}

.two-col,
.donate-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.card,
.donation-card,
.contact-box {
  background: var(--white);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.highlight-card {
  border-top: 6px solid var(--gold);
}

.photo-section,
.donate-hero {
  background: var(--cream);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.photo-note,
.small-text,
.secure-note {
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-item {
  background: var(--white);
  padding: 22px;
  border-left: 6px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.event-item strong,
.event-item span {
  display: block;
}

.event-item span {
  color: var(--muted);
}

.contact-box {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.donate-page h1 {
  color: var(--blue-dark);
}

.donation-card h2 {
  text-align: center;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.amount-grid button {
  border: 2px solid #dce4ef;
  background: #f8fbff;
  border-radius: 14px;
  padding: 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-dark);
}

footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 28px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 850px) {
  .nav-wrap,
  nav {
    justify-content: center;
  }

  .two-col,
  .donate-layout,
  .cards,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }
}

/* Mobile-friendly improvements */
img {
  max-width: 100%;
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.button,
.nav-donate,
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    position: static;
  }

  .nav-wrap {
    min-height: auto;
    padding: 14px 0 16px;
    flex-direction: column;
    gap: 14px;
  }

  .logo {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .logo small {
    font-size: 11px;
  }

  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  nav a {
    width: 100%;
    padding: 10px 8px;
    border-radius: 12px;
    background: #f3f6fa;
    font-size: 14px;
    text-align: center;
  }

  nav .nav-donate {
    grid-column: 1 / -1;
    background: var(--gold);
    padding: 11px 16px;
  }

  .hero {
    min-height: 0;
    padding: 82px 0 72px;
    background-position: 60% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 41, 79, 0.94), rgba(8, 41, 79, 0.62));
  }

  h1 {
    font-size: clamp(38px, 13vw, 52px);
    margin-bottom: 16px;
  }

  h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .hero p {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-buttons .button,
  .contact-box .button {
    width: 100%;
  }

  .button {
    padding: 13px 18px;
  }

  .section {
    padding: 54px 0;
  }

  .two-col,
  .donate-layout {
    gap: 24px;
  }

  .card,
  .donation-card,
  .contact-box {
    border-radius: 18px;
    padding: 22px;
  }

  .cards {
    gap: 16px;
  }

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

  .gallery img {
    height: 170px;
    border-radius: 14px;
  }

  .event-item {
    padding: 20px;
  }

  .event-item strong {
    font-size: 18px;
  }

  .event-item span {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue-dark);
  }

  .contact-box p {
    overflow-wrap: anywhere;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }
}
