@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Lato:wght@300;400;700&display=swap');

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

:root {
  /* ── Logo-accurate palette ── */
  --navy:        #1f3370;   /* dominant bg from logo */
  --navy-dark:   #162b6a;   /* darker navy, footer */
  --navy-mid:    #3a4a7a;   /* hover states, buttons */
  --blue:        #6195ce;   /* griffin circle ring — primary accent */
  --blue-script: #5097d2;   /* "Parent Teacher Org" text */
  --blue-pale:   #e8f0f8;   /* tinted backgrounds, tags */
  --blue-light:  #d0e1f2;   /* borders, dividers */
  --accent-light: #a8c8ec;  /* light accent text on navy */

  /* neutrals */
  --white:       #ffffff;
  --off-white:   #f4f7fc;   /* page background — slight blue tint */
  --text:        #1a2445;   /* near-navy for body text */
  --text-muted:  #5a6a8a;   /* muted, still blue-toned */
  --border:      #ccd8ee;

  --radius:     16px;
  --radius-lg:  24px;
  --shadow:     0 4px 20px rgba(31,51,112,0.10);
  --shadow-md:  0 8px 32px rgba(31,51,112,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo img {
  height: 46px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.nav-logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.18s;
}

.nav-links a:hover { color: white; background: rgba(255,255,255,0.14); }
.nav-links a.active { color: var(--accent-light); background: rgba(97,149,206,0.18); }

.nav-links a.nav-cta {
  background: var(--blue);
  color: white;
  margin-left: 0.4rem;
}
.nav-links a.nav-cta:hover { background: var(--blue-script); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 70px; left: 0; right: 0;
  background: var(--navy-dark);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(22,43,106,0.35);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.4rem;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-script); transform: translateY(-2px); box-shadow: 0 5px 18px rgba(97,149,206,0.45); }

.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.38); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-1px); }

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

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; }
.section-alt { background: white; }

.section-label {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-script);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background-color 0.2s;
}
.card:hover { background: var(--blue-pale); }

.section-alt .card { background: var(--off-white); }
.section-alt .card:hover { background: var(--blue-pale); }

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ── GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

/* ── VALUES BANNER ── */
.values-banner {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 0.85rem 2rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}
.values-banner strong { color: var(--accent-light); }

/* ── INVOLVE CARDS ── */
.involve-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.involve-card-header { padding: 1.85rem 1.85rem 1rem; display: flex; align-items: flex-start; gap: 1.1rem; }

.involve-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.involve-card-body { padding: 0 1.85rem 1.4rem; flex: 1; }
.involve-card-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.85rem; }

.involve-card-footer {
  padding: 1.25rem 1.85rem;
  background: var(--off-white);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--navy);
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0.15rem;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--blue-pale);
  color: var(--blue-script);
}
.badge-gold, .badge-green, .badge-navy, .badge-red {
  background: var(--blue-pale);
  color: var(--blue-script);
}

/* ── CALENDAR ── */
.calendar-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}

.calendar-note {
  background: var(--blue-pale);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.subscribe-box {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-top: 2rem;
}
.subscribe-box h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}
.subscribe-box p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; line-height: 1.6; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 2.75rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(97,149,206,0.18) 0%, transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-inner { position: relative; }
.page-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 480px; margin: 0 auto; }

/* ── MEETING BOX ── */
.meeting-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.meeting-box h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--accent-light);
}
.meeting-box p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ── RESOURCES ── */
.resources-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 3rem;
  align-items: start;
}
.resources-sidebar { position: sticky; top: 86px; }

.sidebar-nav {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-nav-title {
  background: var(--navy);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
}
.sidebar-nav a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s;
}
.sidebar-nav a:hover { color: var(--navy); background: var(--blue-pale); padding-left: 1.3rem; }

.resource-group { margin-bottom: 2.5rem; }
.resource-group-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.resource-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.resource-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 0.18s, color 0.18s;
}
.resource-list a:hover { background: var(--blue-pale); color: var(--navy); }
.resource-list a::before { content: '→'; color: var(--blue); font-size: 1rem; font-weight: 900; transition: transform 0.18s; flex-shrink: 0; }
.resource-list a:hover::before { transform: translateX(3px); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
footer a { color: var(--accent-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-inner { max-width: 680px; margin: 0 auto; }
.footer-logo { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.2rem; color: white; margin-bottom: 0.4rem; }
.footer-address { font-size: 0.84rem; margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; font-size: 0.82rem; margin-bottom: 1.25rem; }
.footer-copy { font-size: 0.74rem; color: rgba(255,255,255,0.3); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav { position: relative; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 2.75rem 0; }
  .container { padding: 0 1.25rem; }
  .involve-card-header, .involve-card-body, .involve-card-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .resources-layout { grid-template-columns: 1fr; }
  .resources-sidebar { position: static; }
  .sidebar-nav { display: none; }
}

/* ── UPCOMING EVENTS SECTION ── */
.events-section {
  padding: 3.5rem 0;
  background: white;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.event-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  background: var(--blue-pale);
}

.event-date-badge {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  overflow: hidden;
}

.event-date-month {
  background: var(--blue);
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 0;
  color: white;
}

.event-date-day {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  padding: 6px 0 7px;
}

.event-info { flex: 1; min-width: 0; }

.event-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.event-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.3rem;
}

.event-meta span { display: flex; align-items: center; gap: 0.25rem; }

.events-footer {
  text-align: center;
}

/* Loading / error states */
.events-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* ── PHOTO HERO ── */
.photo-hero {
  position: relative;
  height: 48vh;
  min-height: 320px;
  max-height: 480px;
  overflow: hidden;
}

.photo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.photo-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
  text-align: center;
}

.photo-hero-inner { max-width: 800px; margin: 0 auto; }

.photo-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: white;
  text-shadow: 0 2px 24px rgba(22,43,106,0.65), 0 1px 3px rgba(22,43,106,0.5);
}

.photo-hero .nowrap { white-space: nowrap; }

@media (max-width: 768px) {
  .photo-hero { height: 38vh; min-height: 260px; }
  .photo-hero-content { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .photo-hero h1 { font-size: 1.85rem; }
}

@media (max-width: 360px) {
  .photo-hero h1 { font-size: 1.5rem; }
}
