@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
  --ink: #272727;
  --muted: #5a5a5a;
  --bg: #ffffff;
  --bg-soft: #f2f0ec;
  --border: #e1ded6;
  --dark: #3b3b3b;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.brand img { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--ink);
  font-weight: 400;
  font-size: 0.95rem;
}
nav.main-nav a.current { font-weight: 700; }

.btn-donate {
  font-weight: 700 !important;
  white-space: nowrap;
}
.btn-donate::after { content: " \2197"; }

.nav-toggle { display: none; }

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; }
  nav.main-nav { gap: 12px 16px; font-size: 0.9rem; }
}

/* Hero */
.hero {
  padding: 56px 0 48px;
  text-align: center;
}
.hero img.hero-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 32px;
  object-fit: cover;
}
.hero h1 {
  font-size: 3.4rem;
  line-height: 1.2;
  margin: 0 0 32px;
}
.hero-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-links a {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 400;
}
.hero-links a:first-child {
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
}
.hero-links a:last-child {
  background: var(--dark);
  color: #fff;
}
.hero-links a:hover { text-decoration: none; opacity: 0.85; }

/* Pillars intro band */
.pillars-intro-band {
  background: var(--bg-soft);
  padding: 56px 0;
}
.pillars-intro {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}
.pillars-intro img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pillars-intro-text h2 { font-size: 1.6rem; margin: 0 0 16px; line-height: 1.4; }
.pillars-intro-text p { color: var(--muted); margin: 0; }
@media (max-width: 700px) {
  .pillars-intro { flex-direction: column; text-align: center; gap: 24px; }
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 800px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar-card img {
  border-radius: var(--radius);
  margin-bottom: 16px;
  height: 220px;
  width: 100%;
  object-fit: cover;
}
/* Connect / Support photos are full-length portrait shots; bias the crop
   toward the top so faces survive the wide, short card aspect ratio. */
.pillar-card:nth-child(2) img { object-position: center 12%; }
.pillar-card:nth-child(3) img { object-position: center 30%; }
.pillar-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.pillar-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Gallery + Discover */
.gallery {
  padding: 56px 0 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.discover {
  text-align: center;
  padding: 40px 0 64px;
}
.discover a {
  display: inline-block;
  background: var(--dark);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
}
.discover a:hover { opacity: 0.85; }

/* Generic page content */
.page-content {
  padding: 56px 0 72px;
}
.page-content h1 {
  font-size: 2.6rem;
  margin-bottom: 28px;
}
.page-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
}
.page-content p { margin: 0 0 16px; color: var(--ink); }
.page-content img.inline-image {
  border-radius: var(--radius);
  margin: 24px 0;
}

.intro-pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  text-align: right;
}
.intro-pillars li {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.team-card {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 16px;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
  background: var(--bg-soft);
}
/* Several headshots are framed close to the hairline; the default
   center crop cuts the top of the head off. Bias those toward the top,
   tuned per photo since the source framing varies. */
.team-card img.crop-top-0 { object-position: center 0%; }
.team-card img.crop-top-10 { object-position: center 10%; }
.team-card img.crop-top-20 { object-position: center 20%; }
.team-card h3 { margin: 0 0 2px; font-size: 1rem; font-family: 'Playfair Display', serif; font-weight: 700; }
.team-card .role { color: #808080; font-weight: 400; font-size: 0.9rem; margin-bottom: 10px; }
.team-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.team-card details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 640px;
}
form.contact-form {
  display: grid;
  gap: 16px;
}
form.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form button {
  justify-self: start;
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
form.contact-form button:hover { opacity: 0.85; }
.form-note { display: none; }

.empty-page {
  color: var(--muted);
  padding: 40px 0;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site-footer a { color: var(--muted); }
footer.site-footer .social { margin-bottom: 12px; }
.social-icon { display: inline-flex; }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
