/* For The Kids Foundation — static site styles
   Clean white layout, black serif headings, sans-serif body.
   Accents sampled from the FTK logo: green #009474, blue #53a4b8. */

:root {
  --green: #009474;
  --green-dark: #00755d;
  --blue: #53a4b8;
  --blue-dark: #3d8296;
  --ink: #1a1a1a;
  --muted: #555;
  --light: #f4f8f7;
  --border: #e2e8e6;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--blue-dark); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

main { padding: 2.2rem 0 3rem; }

.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--green-dark); }
.main-nav a.active { font-weight: 700; }

.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a::after { content: " ▾"; font-size: 0.75em; color: var(--muted); }
.submenu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
  min-width: 240px;
  flex-direction: column;
  gap: 0 !important;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: flex !important; }
.submenu li { width: 100%; }
.submenu a { display: block; padding: 0.45rem 1rem; white-space: nowrap; }
.submenu a:hover { background: var(--light); }

/* ---------- Hero & sections ---------- */
.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero img.hero-photo {
  margin: 1.5rem auto 0;
  border-radius: 12px;
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}
.hero .mission-line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.5;
  max-width: 820px;
  margin: 0.5rem auto 0;
  color: #222;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2.2rem 0;
}
.pillar {
  background: var(--light);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  padding: 1.3rem 1.2rem;
}
.pillar:nth-child(2) { border-top-color: var(--blue); }
.pillar h3 { margin-bottom: 0.4rem; }
.pillar p { margin: 0; color: var(--muted); }

.feature {
  background: var(--light);
  border-radius: 12px;
  padding: 1.8rem;
  margin: 2rem 0;
}
.feature h2 { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  margin: 0.3rem 0.4rem 0.3rem 0;
}
.btn:hover { background: var(--green-dark); }
.btn.blue { background: var(--blue-dark); }
.btn.blue:hover { background: var(--blue); }
.btn.outline {
  background: transparent;
  color: var(--green-dark) !important;
  border: 2px solid var(--green);
}
.btn.disabled { opacity: 0.55; pointer-events: none; }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.6rem;
  margin-top: 1.5rem;
}
.team-member { text-align: center; }
.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
}
.team-member h3 { margin-bottom: 0.1rem; font-size: 1.1rem; }
.team-member .role { color: var(--green-dark); font-weight: 600; margin: 0; }
.team-member .school { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Photo grids ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- Sponsor list ---------- */
.sponsor-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.6rem 1.5rem;
}
.sponsor-list li {
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
}
.sponsor-list a { text-decoration: none; font-weight: 600; }

/* ---------- Info cards / tiers ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-bottom: 0.3rem; }
.card .amount { font-size: 1.5rem; font-family: Georgia, serif; color: var(--green-dark); }
.card p { margin: 0; color: var(--muted); }

.contact-block {
  background: var(--light);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}
.contact-block p { margin: 0.3rem 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--light);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer img { width: 64px; height: 64px; object-fit: contain; }
.site-footer p { margin: 0.25rem 0; color: var(--muted); font-size: 0.95rem; }
.site-footer a { text-decoration: none; }
.footer-donate { text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  h1 { font-size: 1.8rem; }
  .hero .mission-line { font-size: 1.2rem; }
  .pillars { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 0.6rem 0 1rem; }
  .submenu {
    display: flex !important;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .footer-donate { text-align: left; }
}
