/* ===== CUSTOM PROPERTIES (brand colors) ===== */
:root {
  --green: #3d6b35;
  --green-dark: #2d5227;
  --sage: #f0ede6;
  --white: #ffffff;
  --text: #222222;
  --text-light: #555555;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== ANNOUNCEMENT BANNER ===== */
.banner {
  background: #111;
  color: white;
  text-align: center;
  padding: 0.5rem 3rem;
  font-size: 0.85rem;
  position: relative;
}
.banner-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== NAVIGATION ===== */
nav {
  background: white;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  font-weight: 600;
  color: var(--green);
  font-size: 0.95rem;
}
.nav-links a:hover { text-decoration: underline; }
.nav-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-social {
  display: flex;
  gap: 0.5rem;
  font-size: 1.25rem;
}
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--green);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem;
}
.hero-title {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

/* ===== PAGE SECTIONS ===== */
.section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-sage {
  background: var(--sage);
  padding: 3rem 2rem;
}
.section-sage .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 1rem; color: var(--text); }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
p { line-height: 1.75; color: var(--text-light); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== FEATURE CARDS (home page) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--sage);
  padding: 1.5rem;
  border-radius: 8px;
}
.feature-card h3 { color: var(--green); }

/* ===== TWO-PHOTO GRID (home page) ===== */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.photo-pair img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== ABOUT PAGE ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.about-photo {
  width: 100%;
  border-radius: 8px;
}
.blockquote {
  border-left: 4px solid var(--green);
  padding: 1rem 1.5rem;
  background: #f5f9f3;
  margin: 2rem 0;
  font-style: italic;
  line-height: 1.85;
  color: var(--text);
}
.blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== PRICING TABLE (playgroups page) ===== */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.price-table th {
  background: var(--green);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}
.price-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.9rem;
}
.price-table tr:hover td { background: var(--sage); }
.price-table .tbd { color: #999; font-style: italic; }

/* ===== GALLERY PAGE ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery-grid img:hover { opacity: 0.82; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ===== FUNDRAISING PAGE ===== */
.fundraising-hero {
  text-align: center;
  padding: 3rem 2rem 1rem;
}
.fundraising-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-card { text-align: center; padding: 1.25rem; }
.why-card h3 { color: var(--green); font-size: 1rem; }

/* ===== ENROLL PAGE ===== */
.password-gate {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border: 2px solid var(--sage);
}
.password-gate .lock-icon { font-size: 3rem; margin-bottom: 1rem; }
.password-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  margin: 1rem 0;
  text-align: center;
  letter-spacing: 0.1em;
}
.password-input:focus { outline: none; border-color: var(--green); }
.password-error {
  color: #cc0000;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}
.enroll-content { display: none; }

.form-section { max-width: 600px; margin: 0 auto 3rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--green); }
.checkbox-group { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.25rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; cursor: pointer; }

.pay-section { max-width: 700px; margin: 0 auto; }
.pay-btn {
  background: var(--green);
  color: white;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.pay-btn:hover { background: var(--green-dark); }
.pay-table { width: 100%; border-collapse: collapse; }
.pay-table th {
  background: var(--green);
  color: white;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.85rem;
}
.pay-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
}
.pay-table tr:hover td { background: var(--sage); }

/* ===== FOOTER ===== */
footer {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
}
footer a { color: white; }
footer a:hover { text-decoration: underline; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { flex-wrap: wrap; position: relative; padding: 0.75rem 1rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    padding: 0.75rem 0;
    gap: 0.75rem;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-menu-btn { display: block; }
  .about-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .photo-pair { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 1rem; }
}
