@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --cream: #fdfaf1;
  --blue: #6ca9dc;
  --blue-dark: #4a8abf;
  --blue-light: #e8f3fb;
  --text: #1a1a2e;
  --text-muted: #555;
  --white: #ffffff;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--blue-dark);
}

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

/* ─── NAVBAR ─────────────────────────────────────────── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  height: 85px;
}

.tabs {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.img-tab img {
  height: 62px;
  filter: brightness(0);
  transition: filter 0.25s ease;
  display: block;
}

.img-tab:hover img,
.img-tab.active img {
  filter: brightness(0)
    saturate(100%)
    invert(58%)
    sepia(37%)
    saturate(458%)
    hue-rotate(174deg)
    brightness(92%)
    contrast(92%);
}

/* ─── HEADER ──────────────────────────────────────────── */
header {
  background-color: var(--blue);
  color: var(--white);
  padding: 2rem 1.5rem;
}

.split-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-image {
  width: 220px;
  max-width: 40vw;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(40px);
  animation: headerReveal 1.2s forwards;
  animation-delay: 0.3s;
}

@keyframes headerReveal {
  to { opacity: 1; transform: translateY(0); }
}

.vertical-line {
  width: 5px;
  height: 130px;
  background-color: rgba(255,255,255,0.6);
  border-radius: 3px;
  flex-shrink: 0;
}

.header-text { max-width: 500px; }
.header-text h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 0.75rem; line-height: 1.2; }
.header-text p { font-size: clamp(0.9rem, 2.5vw, 1.05rem); line-height: 1.7; opacity: 0.92; }

/* ─── SHARED UTILITIES ───────────────────────────────── */
.intro-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-light);
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--text); }

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.inline-link { color: var(--blue-dark); text-decoration: underline; }
.inline-link:hover { opacity: 0.75; }

/* ─── STATS STRIP ─────────────────────────────────────── */
.stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  padding: 2rem 1rem;
  border-bottom: 1px solid #e8e0cc;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
  text-transform: uppercase;
  text-align: center;
}

.stat-divider { width: 1px; height: 50px; background: #ddd; }

/* ─── HOME INTRO ──────────────────────────────────────── */
.home-intro {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.home-intro-inner { flex: 1; min-width: 0; }

.intro-heading {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.intro-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.intro-decoration { flex: 0 0 300px; display: flex; align-items: center; justify-content: center; }

.props-image {
  width: 200%;
  max-width: 500px;
  height: auto;
  display: block;
}

/* ─── PILLARS ─────────────────────────────────────────── */
.pillars { background: var(--white); padding: 5rem 2rem; }
.pillars-header { text-align: center; margin-bottom: 3rem; }
.pillars-header h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pillar-card {
  padding: 2.25rem 1.75rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid #e5ddc8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(108,169,220,0.15); }
.pillar-card.featured { background: var(--blue); color: var(--white); border-color: var(--blue); }
.pillar-card.featured h3,
.pillar-card.featured p { color: var(--white); }
.pillar-card.featured .pillar-link { color: rgba(255,255,255,0.85); }

.pillar-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.pillar-card p { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.25rem; }
.pillar-link { font-size: 0.875rem; font-weight: 500; color: var(--blue-dark); transition: opacity 0.2s; }
.pillar-link:hover { opacity: 0.7; }

/* ─── CTA BANNER ──────────────────────────────────────── */
.cta-banner { background: var(--blue); padding: 5rem 2rem; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 0.75rem; }
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── COMING SOON ─────────────────────────────────────── */
.coming-soon-section {
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.coming-soon-inner {
  max-width: 640px;
  text-align: center;
}

.coming-soon-inner h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.coming-soon-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ─── MISSION PAGE ────────────────────────────────────── */
.mission-statement { max-width: 800px; margin: 5rem auto; padding: 0 2rem; text-align: center; }

.mission-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  line-height: 1.7;
  color: var(--text);
  border: none;
  padding: 2rem 2.5rem;
  background: var(--white);
  border-radius: 12px;
  border-left: 6px solid var(--blue);
}

.values { background: var(--white); padding: 5rem 2rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.value-card {
  padding: 2rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid #e5ddc8;
  position: relative;
  overflow: hidden;
}

.value-accent { position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--blue); }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; margin-left: 0.5rem; }
.value-card p { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); margin-left: 0.5rem; }

.gfm-card { max-width: 700px; margin: 3rem auto; background: var(--white); padding: 2.5rem; border-left: 6px solid var(--blue); border-radius: 8px; }

/* ─── CONTACT SIMPLE ──────────────────────────────────── */
.contact-simple {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-simple-inner { max-width: 800px; margin: 0 auto; }

.contact-simple-inner h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

.contact-simple-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.email-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3.5vw, 1.85rem);
  color: var(--blue-dark);
  font-weight: 700;
  background: var(--blue-light);
  padding: 1rem 2rem;
  border-radius: 12px;
  border: 2px solid var(--blue);
  margin-bottom: 3.5rem;
  transition: background 0.2s, transform 0.2s;
  word-break: break-all;
}

.email-hero-link:hover {
  background: #d2e9f8;
  transform: translateY(-2px);
}

/* Reason cards */
.reason-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.reason-card {
  background: var(--white);
  border: 1px solid #e5ddc8;
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.reason-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(108,169,220,0.12);
}

.reason-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.reason-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.reason-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-dark);
  transition: opacity 0.2s;
}

.reason-link:hover { opacity: 0.65; }

/* Location note strip */
.contact-note {
  background: var(--white);
  border-top: 1px solid #e8e0cc;
  padding: 1.5rem 2rem;
  text-align: center;
}

.contact-note-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ─── MEET THE TEAM ───────────────────────────────────── */
.team-section {
  padding: 5rem 2rem;
  background: var(--cream);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #e5ddc8;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(108,169,220,0.15);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--blue-light);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-info {
  padding: 1.5rem 1.5rem 1.75rem;
}

.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.team-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.85rem;
}

.team-bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ─── LEGACY CARD ─────────────────────────────────────── */
.card {
  max-width: 700px;
  margin: 3rem auto;
  background-color: var(--white);
  padding: 2rem;
  border-left: 6px solid var(--blue);
  border-radius: 8px;
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid #e8e0cc;
  padding: 3rem 2rem;
}

.footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer-logo img { height: 60px; opacity: 0.75; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; font-style: italic; }
.footer-copy { font-size: 0.8rem; color: #aaa; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  /* Nav */
  .top-nav {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  .logo img { height: 54px; }
  .tabs { gap: 0.4rem; }
  .img-tab img { height: 40px; }

  /* Header */
  .split-header {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
  }
  .header-image {
    width: 150px;
    max-width: 60vw;
  }
  .vertical-line {
    width: 60px;
    height: 4px;
  }

  /* Grids */
  .pillars-grid,
  .values-grid,
  .reason-cards,
  .team-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-strip { flex-direction: column; gap: 1rem; padding: 1.5rem 1rem; }
  .stat { padding: 0.25rem 1rem; }
  .stat-divider { display: none; }

  /* Home intro */
  .home-intro {
    flex-direction: column;
    gap: 2rem;
    margin: 3rem auto;
  }
  .intro-decoration { display: none; }
  .intro-body { max-width: 100%; }

  /* Contact */
  .email-hero-link {
    padding: 0.75rem 1rem;
    word-break: break-all;
  }

  /* Sections */
  .contact-simple,
  .mission-statement { padding: 3rem 1.25rem; }
  .values { padding: 3rem 1.25rem; }
  .how-it-works,
  .eligibility { padding: 3rem 1.25rem; }
  .cta-banner { padding: 3rem 1.25rem; }
  .pillars { padding: 3rem 1.25rem; }

  /* Mission quote */
  .mission-quote { padding: 1.5rem 1.25rem; }

  /* Coming soon */
  .coming-soon-section { padding: 4rem 1.5rem; min-height: 40vh; }

  /* Buttons */
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; }
}
