/* GWMS PTA concept mockup
   Palette (brand packet, Sept 2026):
   Navy #002D62 | Bright Blue #0072CE | Gold #FFC72C | White #FFFFFF */

:root {
  --navy: #002D62;
  --navy-deep: #001B3D;
  --blue: #0072CE;
  --gold: #FFC72C;
  --gold-deep: #E5AC0E;
  --white: #FFFFFF;
  --ice: #EFF5FC;
  --ink: #14243A;
  --line: #D7E2EF;
  --radius: 14px;
  --wrap: 1120px;
  --font-display: "Lilita One", "Arial Black", sans-serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: 0.01em; }
h3 { font-size: 1.25rem; }

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

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--navy);
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-weight: 700; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: #005EA8; border-color: #005EA8; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.link-quiet {
  color: var(--navy);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link-quiet:hover { color: var(--blue); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand img { border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.brand-name em { font-style: normal; color: var(--gold); }

.site-nav ul {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 9px 14px;
  border-radius: 999px;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); }
.nav-cta a {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 9px 20px;
}
.nav-cta a:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 10px;
}
.nav-toggle-bar {
  display: block; width: 26px; height: 3px;
  background: var(--white); border-radius: 2px;
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 550px at 78% -10%, rgba(0,114,206,0.55), transparent 62%),
    linear-gradient(168deg, #003A7C 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.hero-photo {
  position: absolute; inset: 0;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: luminosity;
}
.hero-watermark {
  position: absolute;
  width: 620px;
  right: -140px; bottom: -120px;
  opacity: 0.08;
  transform: rotate(-12deg);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 64px 24px 110px;
  display: flex; flex-direction: column; align-items: center;
}
.hero-logo {
  width: min(420px, 74vw);
  /* white halo keeps the navy script tagline legible on the navy field */
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff)
          drop-shadow(0 12px 30px rgba(0,0,0,0.4));
}
.hero-lede {
  max-width: 34em;
  margin: 28px auto 0;
  font-size: 1.15rem;
  color: #D8E6F6;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 30px;
}

/* Bunting divider: pennant string, the signature device */
.bunting {
  position: absolute; left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.bunting svg { width: 100%; height: 34px; transform: rotate(180deg); }
.hero .bunting svg path { fill: var(--white); }

/* Quick actions */
.quick { padding: 64px 0 26px; }
.quick-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.quick-grid a {
  display: block; height: 100%;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.quick-grid a:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(0,45,98,0.10);
}
.quick-grid h3 { margin-bottom: 6px; }
.quick-grid p { font-size: 0.94rem; color: #46586F; }

/* Events */
.events { padding: 58px 0 72px; }
.section-head { max-width: 46em; margin-bottom: 34px; }
.section-head p { color: #46586F; margin-top: 8px; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.event-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(0,45,98,0.12);
}
.event-top {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 18px 0;
}
.date-tile {
  flex: 0 0 auto;
  width: 66px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--navy);
  text-align: center;
  background: var(--white);
}
.date-tile .dt-month {
  display: block;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 3px 0 2px;
}
.date-tile .dt-day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
  line-height: 1.25;
}
.event-chip {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
}
.chip-meeting  { background: #E1EEFB; color: #084C8D; }
.chip-noschool { background: #EEF1F6; color: #3D4E66; }
.chip-arts     { background: #FFF3D1; color: #8A6400; }
.chip-fundraiser { background: #E4F4E4; color: #1F6B2D; }
.chip-community { background: #FBE9F1; color: #93275C; }

.event-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-body h3 { font-size: 1.18rem; }
.event-meta {
  font-size: 0.92rem;
  color: #46586F;
}
.event-meta span { display: block; }
.event-desc {
  font-size: 0.92rem;
  color: #46586F;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.event-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--blue);
}
.event-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.events-foot {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin-top: 36px;
}

/* About */
.about {
  background: var(--ice);
  padding: 72px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { margin: 16px 0; max-width: 34em; }
.about-copy .btn { margin-top: 8px; }
.about-stats {
  list-style: none;
  display: grid; gap: 16px;
}
.about-stats li {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex; align-items: baseline; gap: 14px;
}
.about-stats strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--blue);
  min-width: 3.2em;
}
.about-stats span { color: #46586F; font-size: 0.97rem; }

/* Newsletter */
.newsletter {
  background: var(--navy);
  color: var(--white);
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding-top: 56px; padding-bottom: 56px;
}
.newsletter h2 { color: var(--gold); }
.newsletter p { color: #C9DAEE; max-width: 30em; margin-top: 6px; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  font: inherit;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  min-width: 270px;
}
.newsletter-form input::placeholder { color: #9FB8D6; }

/* Sponsors */
.sponsors { padding: 64px 0 72px; }
.sponsor-row {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.sponsor-row li {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  color: #46586F;
  background: var(--white);
}
.sponsor-row li:last-child {
  border-style: dashed;
  color: var(--blue);
  border-color: var(--blue);
}
.sponsors-foot { margin-top: 26px; }

/* Footer */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: #C9DAEE;
  padding-top: 26px;
}
.bunting-footer {
  position: relative; top: -26px; bottom: auto;
}
.bunting-footer svg { transform: none; height: 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-top: 26px; padding-bottom: 40px;
}
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand strong { color: var(--white); font-size: 1.1rem; }
address { font-style: normal; line-height: 1.8; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: #C9DAEE; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px; padding-bottom: 22px;
  font-size: 0.88rem;
  color: #7E96B5;
}

/* Responsive */
@media (max-width: 960px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none;
    position: absolute; left: 0; right: 0; top: 74px;
    background: var(--navy);
    flex-direction: column; align-items: stretch;
    padding: 10px 16px 18px;
    border-bottom: 4px solid var(--gold);
  }
  .site-nav ul.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .quick-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .newsletter-form { width: 100%; }
}

/* WordPress additions (gwms26) */
.newsletter-thanks {
  color: var(--gold);
  font-size: 1.15rem;
}
.events-empty { color: #46586F; }
.page-content h1 { margin-bottom: 18px; }

/* No School cards: faded gray so real events stand out */
.event-card-muted {
  background: #F2F5F9;
  border-color: #E2E9F1;
}
.event-card-muted:hover {
  border-color: #B8C7D9;
  box-shadow: 0 6px 16px rgba(0,45,98,0.07);
}
.event-card-muted .date-tile {
  border-color: #93A6BD;
  background: #F2F5F9;
}
.event-card-muted .date-tile .dt-month {
  background: #93A6BD;
  color: #FFFFFF;
}
.event-card-muted .date-tile .dt-day { color: #5B6E85; }
.event-card-muted h3 { color: #46586F; }
.event-card-muted .event-meta { color: #6B7C90; }
.event-card-muted .event-link { color: #5B6E85; }

/* Sponsor tiers: logos normalized to one height, grouped by level */
.sponsor-tier { margin-bottom: 30px; }
.sponsor-tier:last-of-type { margin-bottom: 0; }
.sponsor-tier-name {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
.sponsor-tier-name span { color: #8CA0B8; }
.sponsor-logos {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 28px;
}
.sponsor-logos a { display: block; }
.sponsor-logos img {
  height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
/* Progressive sizing by tier: President (Chadwicks) largest, Colonel (RT7) mid, Major (Yates) uses the base size above. */
.sponsor-tier-president .sponsor-logos img { height: 104px; max-width: 340px; }
.sponsor-tier-colonel .sponsor-logos img { height: 78px; max-width: 260px; }
.sponsor-tier-major .sponsor-logos img { height: 105px; max-width: 385px; }
.sponsor-logos a:hover img { opacity: 0.85; }
.sponsor-name-pill {
  display: inline-block;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  color: #46586F;
  background: var(--white);
}
@media (max-width: 680px) {
  .sponsor-logos img { height: 46px; max-width: 160px; }
  .sponsor-tier-president .sponsor-logos img { height: 74px; max-width: 240px; }
  .sponsor-tier-colonel .sponsor-logos img { height: 58px; max-width: 200px; }
  .sponsor-tier-major .sponsor-logos img { height: 81px; max-width: 280px; }
}

/* From ParentSquare: announcement strip under the events grid */
.ps-strip {
  margin-top: 44px;
  background: var(--ice);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 20px;
}
.ps-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.ps-head h3 { font-size: 1.25rem; }
.ps-head p { font-size: 0.9rem; color: #46586F; }
.ps-list { list-style: none; }
.ps-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ps-date {
  flex: 0 0 auto;
  width: 48px;
  text-align: center;
  border: 1.5px solid #93A6BD;
  border-radius: 9px;
  overflow: hidden;
  background: var(--white);
}
.ps-date .ps-month {
  display: block;
  background: #93A6BD;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 2px 0 1px;
}
.ps-date .ps-day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.4;
}
.ps-body { font-size: 0.95rem; line-height: 1.45; padding-top: 2px; }
.ps-body strong { color: var(--navy); display: block; }
.ps-meta { color: #46586F; font-size: 0.88rem; }
@media (max-width: 680px) {
  .ps-strip { padding: 20px 18px 14px; }
}

/* ParentSquare strip repositioned above the calendar cards */
.events .events-head { margin-bottom: 20px; }
.events .ps-strip { margin: 0 0 30px; }

/* ParentSquare strip: centered title, two-column list */
.ps-head {
  display: block;
  text-align: center;
  margin-bottom: 18px;
}
.ps-head h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.ps-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}
@media (max-width: 800px) {
  .ps-list { grid-template-columns: 1fr; }
}

/* Inner-page hero (Resources etc.): navy band + bunting */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 400px at 78% -10%, rgba(0,114,206,0.5), transparent 62%),
    linear-gradient(168deg, #003A7C 0%, var(--navy) 60%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.page-hero-inner { padding: 54px 24px 78px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: var(--white);
}
.page-hero p {
  margin-top: 10px;
  color: #D8E6F6;
  font-size: 1.05rem;
}
.page-hero .bunting svg path { fill: var(--white); }

/* Resources page */
.resources { padding: 56px 0 72px; }
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.resource-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
}
.resource-card h2 { font-size: 1.5rem; }
.resource-blurb {
  color: #46586F;
  font-size: 0.93rem;
  margin: 4px 0 14px;
}
.resource-card ul { list-style: none; display: grid; gap: 9px; }
.resource-card li a {
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.resource-card li a:hover { color: var(--navy); }
.resource-note {
  margin-top: 30px;
  color: #46586F;
  font-size: 0.95rem;
}
@media (max-width: 800px) {
  .resource-grid { grid-template-columns: 1fr; }
}

/* Nav dropdown (About > Leadership) */
.site-nav .has-sub { position: relative; }
.sub-caret { font-size: 0.72em; opacity: 0.75; }
.site-nav .sub-menu {
  display: none;
  position: absolute; left: 0; top: 100%;
  min-width: 175px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 12px 12px;
  padding: 8px;
  list-style: none;
  box-shadow: 0 12px 26px rgba(0,27,61,0.35);
}
.site-nav .has-sub:hover .sub-menu,
.site-nav .has-sub:focus-within .sub-menu { display: block; }
.site-nav .sub-menu a { border-radius: 9px; }

/* Anchored sections land clear of the sticky header */
#leadership { scroll-margin-top: 92px; }

/* About page: editor content (the "PTA does..." list) */
.about-page { padding: 56px 0 8px; }
.about-editor > p {
  max-width: 46em;
  color: #46586F;
  margin-bottom: 26px;
}
.about-editor h2 { margin-bottom: 18px; }
.about-editor ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}
.about-editor ul li {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 14px 48px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}
.about-editor ul li::before {
  content: "\2605"; /* star */
  position: absolute;
  left: 17px; top: 12px;
  color: var(--gold-deep);
  font-size: 1.05rem;
}

/* Leadership roster */
.leadership { padding: 48px 0 80px; }
.leader-table {
  width: 100%;
  max-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.leader-table th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-align: left;
  background: var(--navy);
  color: var(--gold);
  padding: 12px 22px;
}
.leader-table td {
  padding: 13px 22px;
  border-top: 1px solid var(--line);
}
.leader-table tbody tr:nth-child(even) { background: var(--ice); }
.leader-role { font-weight: 700; color: var(--navy); width: 42%; }
.leader-name { color: #2C3E55; }

@media (max-width: 680px) {
  /* Mobile menu: submenu renders inline, indented under About */
  .site-nav .sub-menu,
  .site-nav .has-sub:hover .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    border: 0;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,255,255,0.06);
    margin: 2px 0 4px 14px;
    padding: 2px 4px;
  }
  .sub-caret { display: none; }
  .about-editor ul { grid-template-columns: 1fr; }
  .leader-table th, .leader-table td { padding: 11px 14px; }
  .leader-role { width: 46%; }
}
