/* ---------- Custom Properties ---------- */
:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #142a45;
  --color-accent: #c98a2c;
  --color-text: #2b2f33;
  --color-text-muted: #5a6169;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-border: #e2e6ea;

  --font-base: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;

  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #b57a24;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.04);
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.hero-cta:hover .cta-arrow {
  transform: translateX(5px);
}

.btn-donate {
  background: var(--color-primary);
  color: #fff;
  font-size: 1.05rem;
  padding: 14px 36px;
}

.btn-donate:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.nav-donate {
  background: var(--color-accent);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius);
}

.nav-donate:hover {
  border-color: transparent !important;
  background: #b57a24;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(30, 58, 95, 0.45), rgba(20, 42, 69, 0.5)),
    url("../images/school-building.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.hero h1 {
  font-size: 2.75rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.1s forwards;
}

.hero p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 620px;
  margin: 0 auto 2em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.45s forwards;
}

.hero .btn {
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.8s forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero p,
  .hero .btn {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1.2em;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.about-subsection {
  margin-top: 3em;
  padding-top: 2.5em;
  border-top: 1px solid var(--color-border);
}

.about-subsection h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  text-align: center;
}

.quote {
  margin: 2em 0;
  padding: 28px 32px;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  text-align: left;
}

.quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 0.6em;
}

.quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---------- Staff ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.staff-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 32px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.staff-name {
  font-size: 1.1rem;
  margin-bottom: 0.2em;
}

.staff-title {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-details h3 {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-top: 1.2em;
}

.contact-details h3:first-child {
  margin-top: 0;
}

.contact-email-btn {
  display: inline-block;
  margin-top: 1.2em;
}

.contact-map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Donate ---------- */
.section-donate {
  background: var(--color-bg-alt);
  text-align: center;
}

.donate-inner {
  max-width: 560px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 28px 0;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .logo-img {
    height: 46px;
  }

  .site-nav {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 300px;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .site-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav li:last-child {
    border-bottom: none;
    padding-top: 12px;
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
  }

  .nav-donate {
    display: inline-block;
    margin-top: 4px;
  }

  .hero {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  .section {
    padding: 56px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.staff-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.staff-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.staff-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.staff-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.staff-card.reveal:nth-child(6) { transition-delay: 0.4s; }
.staff-card.reveal:nth-child(7) { transition-delay: 0.48s; }
.staff-card.reveal:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
