/* St Peter's PTA — stpeterspta.com
   Palette drawn from the school crest and website:
   navy shield, gold keys, cyan headings, paper white. */

:root {
  --navy: #16295b;
  --navy-deep: #0c1834;
  --gold: #efaf1f;
  --gold-deep: #c8901a;
  --sky: #2e9bc6;
  --paper: #faf9f6;
  --ink: #22283a;
  --ink-soft: #4c5468;
  --line: #e3e0d8;
  --radius: 10px;
  --max: 1080px;
}

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

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

body {
  font-family: "Albert Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
a { color: var(--sky); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

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

/* Eyebrow labels — cyan, echoing the school's document headings */
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}
.brand-name small {
  display: block;
  font-family: "Albert Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  color: #dfe5f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--gold); color: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(46, 155, 198, 0.35), transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .eyebrow { color: var(--gold); }
.hero p {
  max-width: 56ch;
  font-size: 1.15rem;
  color: #ccd6ea;
  margin-top: 1rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #f7c145; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Ribbon (signature element, echoing the crest scroll) ---------- */
.ribbon {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.9rem 0;
  border-top: 3px solid var(--gold-deep);
  border-bottom: 3px solid var(--gold-deep);
}
.ribbon .wrap {
  display: flex;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.ribbon strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
}
.ribbon span { font-size: 0.9rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy); color: #dfe5f2; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--gold); }

.lede { font-size: 1.15rem; max-width: 62ch; color: var(--ink-soft); }
.section-navy .lede { color: #b9c4dd; }

.grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section-alt .card { background: var(--paper); }
.card p:last-child { margin-bottom: 0; }
.card .amount {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  color: var(--navy);
  display: block;
  margin-bottom: 0.25rem;
}

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; text-align: center; }
.stat b {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  font-weight: 600;
}
.stat span { font-size: 0.95rem; }

/* Key divider — simple gold key motif */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 320px;
  padding: 0.5rem 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--gold); }
.divider svg { flex-shrink: 0; }

/* ---------- Events ---------- */
.event {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  align-items: start;
}
.event + .event { margin-top: 1rem; }
.event-date {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.event-date b {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
}
.event-date small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.event h3 { margin-bottom: 0.2rem; }
.event .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.3rem;
}
.event p { margin-bottom: 0; color: var(--ink-soft); }

@media (max-width: 520px) {
  .event { grid-template-columns: 1fr; }
  .event-date { max-width: 110px; }
}

/* ---------- Tables (key dates) ---------- */
.dates-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dates-table caption { text-align: left; font-weight: 700; padding-bottom: 0.75rem; color: var(--navy); }
.dates-table th, .dates-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.dates-table th { background: var(--navy); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.dates-table tr:last-child td { border-bottom: none; }
.dates-table td:first-child { font-weight: 700; white-space: nowrap; color: var(--navy); }
@media (max-width: 560px) {
  .dates-table td:first-child { white-space: normal; }
  .dates-table th, .dates-table td { padding: 0.6rem 0.7rem; font-size: 0.95rem; }
}

/* Committee list */
.committee { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.committee li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: 8px; padding: 1rem 1.25rem; }
.committee b { display: block; color: var(--navy); }
.committee span { font-size: 0.9rem; color: var(--ink-soft); }

/* Notice / callout */
.notice {
  background: #fff8e8;
  border: 1px solid #ecd9a6;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9c4dd;
  padding: 2.5rem 0 2rem;
  margin-top: 0;
  border-top: 4px solid var(--gold);
  font-size: 0.95rem;
}
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #dfe5f2; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-align: center;
  color: #8b97b5;
}
