:root {
  --bg: #f8f7f6;
  --text: #111111;
  --muted: #6b7280;
  --accent: #0f766e;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 6px 28px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid #eef2f7;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
  gap: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; flex: 1; min-width: 0; }
.brand img { height: 40px; width: auto; }
.brand span {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: .4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
nav a { font-weight: 600; letter-spacing: .3px; }
nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 12px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
  .brand img { height: 32px; }
  .brand span { font-size: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav ul {
    display: none;
    position: absolute; right: 0; top: 56px;
    background: var(--card);
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px 14px;
    min-width: 220px;
  }
  nav ul.open { display: block; }
  nav li { margin: 6px 0; }
}
@media (min-width: 769px) {
  nav ul { display: flex; gap: 26px; }
  .nav-toggle { display: none; }
}

.hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0 36px;
}
.hero img {
  max-width: 740px;
  width: 92%;
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.09));
}

/* Grid + Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0 70px;
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.content.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 901px) {
  .content.grid > .card:not(.full-width):last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card .content { padding: 18px 18px 20px; }
.card h3 { margin: 6px 0 0; font-size: 20px; }

.page-hero { text-align: center; padding-bottom: 1rem; }
.page-hero .lead { font-size: 1.15rem; line-height: 1.6; opacity: .95; }
.hero-image {
  display: block;
  max-width: 320px;
  width: 60%;
  margin: 1rem auto 0;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.card--link { display: block; text-decoration: none; }
.card--link img.thumb {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: filter .2s ease, transform .25s ease, box-shadow .25s ease;
}
.card--link:hover,
.card--link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.12), 0 0 0 3px var(--accent);
  outline: none;
}
.card--link:hover img.thumb,
.card--link:focus-visible img.thumb {
  filter: brightness(0.95) saturate(1.08);
  transform: scale(1.02);
}
.card--link .content h3 { transition: color .18s ease; }
.card--link:hover .content h3,
.card--link:focus-visible .content h3 { color: var(--accent); }

ul.donor-list {
  columns: 3;
  -webkit-columns: 3;
  -moz-columns: 3;
  column-gap: 3rem;
  padding-left: 1.25rem;
  margin: .5rem 0 0;
  list-style: disc;
  font-size: 1rem;
}
@media (max-width: 980px) { ul.donor-list { columns: 2; } }
@media (max-width: 640px) { ul.donor-list { columns: 1; } }

.card.full-width {
  grid-column: 1 / -1;
  padding: 2rem;
}
.card.full-width h3 {
  text-align: center;
  margin-bottom: 1rem;
}
.gratitude-photo {
  width: 260px;
  height: 260px;
  border-radius: 9999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  border: 3px solid #fff;
}

@media (max-width: 480px) {
  .gratitude-photo {
    width: 132px;
    height: 132px;
  }
}
.with-gratitude {
  text-align: center;
}

.family-card {
  text-align: center;
}

.family-photo {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  border: 3px solid #fff;
}

@media (max-width: 480px) {
  .family-photo {
    max-width: 260px;
  }
}

@media (min-width: 901px) {
  .content.grid > .card:not(.full-width):last-child:nth-child(odd) {
    grid-column: span 2;
  }
}
@media (min-width: 901px) {
  .no-span { grid-column: auto !important; }
}
@media (min-width: 901px) {
  .wide-card { grid-column: 1 / span 2; }
}
footer {
  padding: 40px 0 60px;
  color: var(--muted);
  border-top: 1px solid #eef2f7;
}
