/* Wildcat Mountain Elementary PTO — companion site
   Palette: navy / gold / teal wildcat energy */

:root {
  --navy: #0f2744;
  --navy-deep: #0a1a2e;
  --navy-soft: #1e3a5f;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-pale: #f7efd0;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-pale: #ccfbf1;
  --ink: #1a2332;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --paper: #ffffff;
  --sand: #f6f3ec;
  --sand-2: #efeae0;
  --shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
  --shadow-hover: 0 18px 40px rgba(15, 39, 68, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
code, .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--gold-pale);
  color: var(--navy);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.92em;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--navy);
}
.brand img {
  width: 48px; height: 48px; object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-text span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 4px 0; border-radius: 2px;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.35rem; align-items: center; }
.site-nav a {
  text-decoration: none;
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--sand-2); color: var(--navy); }
.site-nav a.is-active {
  background: var(--navy);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(201,162,39,0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(13,148,136,0.22), transparent 50%),
    linear-gradient(160deg, #0f2744 0%, #163a5c 45%, #0f766e 120%);
  color: #fff;
  padding: 3.5rem 1.25rem 3.75rem;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -10% -40% 40%;
  height: 280px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%23ffffff' fill-opacity='0.06' d='M0 40 Q50 0 100 40 T200 40 V80 H0Z'/%3E%3C/svg%3E") center/cover no-repeat;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 0.75rem;
}
.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}
.hero-card h2 {
  color: #fff; font-size: 1.05rem; margin-bottom: 0.6rem;
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { margin: 0.45rem 0; }
.hero-card a { color: #fff; font-weight: 600; text-decoration: none; }
.hero-card a:hover { color: var(--gold-light); }

.page-hero {
  background:
    linear-gradient(135deg, rgba(15,39,68,0.95), rgba(15,118,110,0.85)),
    var(--navy);
  color: #fff;
  padding: 2.5rem 1.25rem 2.25rem;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 40rem; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(201,162,39,0.35);
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-teal {
  background: var(--teal);
  color: #fff;
}
.btn-teal:hover { background: var(--teal-dark); color: #fff; }

/* Layout */
.section {
  padding: 3rem 1.25rem;
}
.section-tight { padding: 2rem 1.25rem; }
.section-alt { background: #fff; }
.section-navy {
  background: var(--navy);
  color: #fff;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.container {
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  display: flex; flex-wrap: wrap; align-items: end;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.section-head p { margin: 0.35rem 0 0; color: var(--muted); max-width: 36rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

/* Event tiles — the star feature */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}
.event-tile {
  --cat: var(--teal);
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.9rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,39,68,0.06);
  border-left: 5px solid var(--cat);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 168px;
}
.event-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.event-tile.is-past {
  opacity: 0.72;
  background: #fafafa;
  filter: saturate(0.75);
}
.event-tile.is-past:hover { opacity: 0.9; }

.event-badge {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.4rem;
  text-align: center;
  min-height: 88px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.event-badge-month {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.event-badge-day {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.event-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  margin-bottom: 0.35rem;
}
.event-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cat);
  background: #f0faf8;
  background: color-mix(in srgb, var(--cat) 12%, white);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.event-past-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--sand-2);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.event-title {
  font-size: 1.12rem;
  margin: 0 0 0.25rem;
}
.event-date-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.event-blurb {
  font-size: 0.92rem;
  color: #3d4b5c;
  margin: 0 0 0.65rem;
}
.event-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy-soft);
}
.chip-cost { background: var(--gold-pale); color: #7a5d0a; }
.chip-time { background: #e8eef7; color: var(--navy-soft); }
.chip-place { background: var(--teal-pale); color: var(--teal-dark); }

.empty-note { color: var(--muted); font-style: italic; }

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.15rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,39,68,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  font-weight: 800;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.card .facts { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.card .facts li {
  padding: 0.35rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
}
.card .facts li:first-child { border-top: 0; }

/* Marquee banner */
.marquee-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(90deg, var(--gold-pale), #fff 40%, var(--teal-pale));
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.marquee-banner .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy); color: var(--gold-light);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.marquee-banner h2 { font-size: 1.15rem; margin: 0 0 0.2rem; }
.marquee-banner p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Connect strip */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}
.connect-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.connect-item:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); color: #fff; }
.connect-item strong { display: block; margin-bottom: 0.2rem; }
.connect-item span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* Directory */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.dir-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dir-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold-pale);
}
.dir-role { margin: 0.55rem 0; }
.dir-role .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dir-role .names { font-weight: 600; color: var(--navy); }
.dir-role .note { font-size: 0.85rem; color: #b45309; font-style: italic; }

/* Program blocks */
.program {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.15rem;
  border-top: 4px solid var(--teal);
}
.program.gold-top { border-top-color: var(--gold); }
.program.navy-top { border-top-color: var(--navy); }
.program.purple-top { border-top-color: #7c3aed; }
.program h2 { font-size: 1.45rem; }
.fact-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
}
.pill {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-soft);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.82);
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 1rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.footer-tagline {
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}
.footer-note {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-note a { color: rgba(255,255,255,0.7); }

/* Utilities */
.stack > * + * { margin-top: 0.75rem; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .marquee-banner { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (max-width: 420px) {
  .event-tile { grid-template-columns: 68px 1fr; }
  .event-badge-day { font-size: 1.55rem; }
}
