:root {
  --saffron: #e07a1f;
  --saffron-dark: #b85e0f;
  --green: #2f5d50;
  --green-dark: #1f3f36;
  --cream: #fbf6ee;
  --sand: #f3e9da;
  --ink: #2a2622;
  --muted: #6b625a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 38, 34, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.6em; color: var(--green-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--saffron-dark); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-dark);
  margin-bottom: 0.6em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--saffron);
  color: var(--white);
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--saffron);
  font-weight: 600;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-small { padding: 0.5em 1.1em; font-size: 0.92rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42, 38, 34, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-dark); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.96rem; }
.site-nav a:not(.btn):hover { color: var(--saffron-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

/* Photo placeholders (swap for <img> once photos arrive) */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, rgba(224, 122, 31, 0.35), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(47, 93, 80, 0.35), transparent 60%),
    var(--sand);
  color: var(--green-dark);
  font-weight: 600;
  padding: 20px;
}
.photo-placeholder small { font-weight: 400; color: var(--muted); }
.photo-placeholder.tall { aspect-ratio: 4 / 5; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo.tall { aspect-ratio: 4 / 5; }

/* Pillars */
.pillars { background: var(--green); color: var(--white); padding: 22px 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.98rem; }
.pillar-icon { font-size: 1.6rem; line-height: 1; }

/* Mission statement */
.mission-band { padding: 72px 0 8px; text-align: center; }
.mission-band .container { max-width: 900px; }
.mission-statement {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--green-dark);
  margin: 0;
}
.mission-statement strong { font-weight: 700; }
.impact-counters { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; margin-top: 36px; }
.meal-counter { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 180px; max-width: 280px; }
.impact-counters .meal-counter:only-child { max-width: none; }
[hidden] { display: none !important; }
.meal-count {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--saffron);
  font-variant-numeric: tabular-nums;
}
.meal-count-label { color: var(--muted); font-weight: 600; }

/* Sections */
.section { padding: 88px 0; }
.section-tinted { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.mission-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--saffron);
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 26px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.small-note { font-size: 0.88rem; margin: 14px 0 0; }
.vision { border-left: 4px solid var(--saffron); padding-left: 16px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .photo-placeholder, .card .photo { border-radius: 0; }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); flex: 1; }
.action-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.action-card .pillar-icon { display: block; font-size: 2rem; margin-bottom: 12px; }
.action-card p { color: var(--muted); }

/* College campuses */
.campus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr)); gap: 18px; }
.campus-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--green);
}
.campus-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.campus-card p { margin: 0; }
.campus-card .when { font-weight: 600; color: var(--saffron-dark); }
.campus-card { display: flex; flex-direction: column; }
.campus-card .where { color: var(--muted); margin-top: 4px; flex: 1; }
.whatsapp-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: #1f8a4c;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.whatsapp-link:hover { background: #176b3a; }

.college-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.college-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Kids gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.gallery-cta { margin: 32px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Gallery page */
.gallery-page h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
}
.filter-btn.is-active, .filter-btn:hover { background: var(--green); color: var(--white); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.photo-tile {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sand);
  aspect-ratio: 1 / 1;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-tile:hover img, .photo-tile:focus-visible img { transform: scale(1.05); }
.photo-tile:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--saffron-dark); }

/* Program pages (volunteer, kids, college, donate) */
.subpage h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.subpage .lead { margin-bottom: 0; }
@media (min-width: 761px) and (max-width: 1100px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.btn) { font-size: 0.9rem; }
}

/* Slideshow */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 20, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px 72px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 8px; }
.lb-caption { color: #e9efe9; margin-top: 12px; text-align: center; font-size: 0.98rem; }
.lb-close, .lb-nav, .lb-play {
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  cursor: pointer;
}
.lb-close:hover, .lb-nav:hover, .lb-play:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 10px; font-size: 2.2rem; line-height: 1; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-bar { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 18px; color: #e9efe9; font-size: 0.92rem; }
.lb-play { padding: 0.5em 1.2em; border-radius: 999px; font-weight: 600; font-size: 0.92rem; }

/* Food info */
.info-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 24px 0 28px;
}
.info-box h3 { font-size: 1.1rem; }
.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-list li { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(42, 38, 34, 0.1); }
.schedule-list .day { font-weight: 600; min-width: 140px; color: var(--green-dark); }
.partner-note { margin: -6px 0 8px; font-size: 0.88rem; color: var(--muted); font-style: italic; }
.goal-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(42, 38, 34, 0.1); font-size: 0.95rem; }

/* Schedule table */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.schedule-table th, .schedule-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--sand); }
.schedule-table th { background: var(--green); color: var(--white); font-weight: 600; font-size: 0.92rem; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table td:first-child { font-weight: 600; color: var(--green-dark); }

/* Contact */
.section-dark { background: var(--green-dark); color: #e9efe9; }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: #f4b26b; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; flex-direction: column; margin-bottom: 16px; }
.contact-list a { color: #e9efe9; }
.contact-list strong { color: #f4b26b; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7em 0.9em;
  border: 1px solid #d8cfc3;
  border-radius: 10px;
  background: var(--cream);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--saffron);
  border-color: transparent;
}
.contact-form .btn { justify-self: start; }

/* Volunteer impact log (log.html) */
.log-body { background: var(--sand); }
.log-page { max-width: 640px; margin: 0 auto; padding: 28px 16px 64px; display: grid; gap: 24px; }
.log-page h1 { font-size: 1.8rem; margin: 0; }
.log-page h2 { font-size: 1.3rem; margin: 0; }
.log-help { color: var(--muted); font-size: 0.92rem; margin: 0; }
.log-error { color: #b42318; font-weight: 600; margin: 0; }
.log-ok { color: var(--green); font-weight: 600; margin: 0; }
.log-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.log-programs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.log-programs legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.log-programs label { display: block; }
.log-programs input { position: absolute; opacity: 0; pointer-events: none; }
.log-programs span {
  display: inline-block;
  padding: 0.5em 1em;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-dark);
  cursor: pointer;
}
.log-programs input:checked + span { background: var(--green); color: var(--white); }
.log-programs input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.log-totals > div { background: var(--white); border-radius: var(--radius); padding: 18px; display: grid; gap: 2px; }
.log-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--saffron); font-variant-numeric: tabular-nums; line-height: 1.1; }
.log-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.log-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.log-history { display: grid; gap: 12px; }
.log-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); }
.log-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.log-table th, .log-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand); white-space: nowrap; }
.log-table th { color: var(--muted); font-weight: 600; }
.log-delete { font: inherit; font-size: 0.85rem; color: #b42318; background: none; border: 0; cursor: pointer; padding: 0; }
@media (max-width: 420px) { .log-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #17302a; color: #bfcac4; padding: 48px 0 28px; font-size: 0.95rem; }
.site-footer strong { color: var(--white); font-family: var(--serif); font-size: 1.2rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: start; }
.footer-nav a { color: #bfcac4; text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; margin: 0; font-size: 0.85rem; }

/* Thank-you and 404 pages */
.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}
.simple-page img { margin-bottom: 20px; }
.simple-page .lead { margin-bottom: 1.6em; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 44px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  #food .photo-placeholder, #food .photo { order: 2; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(42, 38, 34, 0.1);
    padding: 8px 16px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(42, 38, 34, 0.06); }
  .site-nav .btn { margin-top: 14px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .schedule-list li { flex-direction: column; gap: 2px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .college-photos { grid-template-columns: 1fr; }
  .lightbox { padding: 56px 8px 72px; }
  .lb-nav { width: 40px; height: 52px; font-size: 1.8rem; background: rgba(0, 0, 0, 0.35); }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}

@media (max-width: 420px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .mission-card, .contact-form, .action-card { padding: 24px; }
}
