/* Gesher Early Childhood Center — shared styles */
:root {
  --blue: #2e75b6;
  --blue-dark: #1f5688;
  --blue-light: #eaf2fa;
  --green: #6ab04c;
  --orange: #e8804a;
  --ink: #24303c;
  --muted: #5a6a78;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 86, 136, 0.10);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e3ebf2;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 700; font-size: 0.98rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a.active { color: var(--blue); }
.nav .btn-donate {
  background: var(--orange); color: #fff; padding: 9px 20px;
  border-radius: 999px; font-weight: 800;
}
.nav .btn-donate:hover { background: #d66f3b; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(23, 58, 89, 0.60), rgba(23, 58, 89, 0.72)), url("images/gallery-5.jpg") center/cover no-repeat;
  padding: 110px 0 120px;
  text-align: center;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: 0.5px; }
.hero p { max-width: 720px; margin: 18px auto 30px; font-size: 1.15rem; }

.btn {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 13px 32px; border-radius: 999px; font-weight: 800; font-size: 1.05rem;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn.secondary { background: var(--green); }
.btn.secondary:hover { background: #58963e; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: 2rem; font-weight: 900; color: var(--blue-dark); margin-bottom: 14px; }
.section-lede { text-align: center; max-width: 780px; margin: 0 auto 44px; color: var(--muted); font-size: 1.08rem; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 24px; text-align: center;
}
.card h3 { color: var(--blue); font-size: 1.15rem; margin-bottom: 10px; }
.card p, .card li { color: var(--muted); font-size: 0.98rem; }
.card ul { list-style: none; }
.card li { padding: 4px 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); }

/* School logos */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 34px; }
.logo-row img { height: 64px; width: auto; object-fit: contain; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.testimonial { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.testimonial img { width: 100%; height: 210px; object-fit: cover; }
.testimonial .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; font-weight: 800; padding: 26px 12px 10px; font-size: 0.95rem; text-align: center;
}
.testimonial .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.quote {
  max-width: 820px; margin: 48px auto 0; text-align: center;
  font-size: 1.15rem; font-style: italic; color: var(--ink);
}
.quote .who { margin-top: 16px; font-style: normal; font-weight: 800; color: var(--blue-dark); }
.quote .who span { display: block; font-weight: 600; color: var(--muted); font-size: 0.95rem; }

/* Video modal */
.modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 20, 30, 0.85);
  align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal video { max-width: min(900px, 92vw); max-height: 82vh; border-radius: 10px; background: #000; }
.modal .close {
  position: absolute; top: 18px; right: 26px; font-size: 2.2rem; color: #fff;
  background: none; border: 0; cursor: pointer;
}

/* Bio blocks (About) */
.bio { display: grid; grid-template-columns: 1fr; gap: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; margin-bottom: 32px; }
.bio h2 { color: var(--blue-dark); font-size: 1.5rem; }
.bio .role { color: var(--orange); font-weight: 800; margin-bottom: 12px; }
.bio p { color: var(--muted); margin-bottom: 12px; }

/* Staff */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.staff-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 20px; text-align: center; }
.staff-card h3 { color: var(--blue-dark); font-size: 1.1rem; }
.staff-card p { color: var(--muted); font-size: 0.95rem; }

/* PAC */
.pac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pac-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; }
.pac-card h3 { color: var(--blue-dark); font-size: 1.08rem; margin-bottom: 2px; }
.pac-card .town { color: var(--orange); font-weight: 800; font-size: 0.92rem; margin-bottom: 10px; }
.pac-card p { color: var(--muted); font-size: 0.92rem; }

/* Donate */
.donate-frame { width: 100%; height: 1200px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; }
.page-hero p { max-width: 700px; margin: 12px auto 0; opacity: 0.92; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--green)); color: #fff; text-align: center; }
.cta-band h2 { font-size: 1.7rem; margin-bottom: 10px; }
.cta-band p { max-width: 680px; margin: 0 auto 26px; }
.cta-band .btn { background: #fff; color: var(--blue-dark); }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label { display: block; font-weight: 700; font-size: 0.92rem; margin: 14px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #cdd9e4; border-radius: 8px;
  font: inherit; background: #fbfdfe;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* Footer */
.site-footer { background: #17394f; color: #cfdde8; padding: 56px 0 28px; margin-top: 0; }
.site-footer h3 { color: #fff; margin-bottom: 10px; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 36px; }
.site-footer a { color: #9fc4de; }
.site-footer .fine { text-align: center; font-size: 0.85rem; color: #8aa4b6; border-top: 1px solid #24506e; padding-top: 20px; }

/* Responsive */
@media (max-width: 920px) {
  .grid-4, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .staff-grid, .pac-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px 24px; gap: 14px;
    border-bottom: 1px solid #e3ebf2; align-items: flex-start; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3, .grid-2, .staff-grid, .pac-grid, .gallery, .testimonials { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
}

/* Accessibility */
.testimonial:focus-visible { outline: 3px solid #173a59; outline-offset: 3px; }
.site-footer a { color: inherit; }
