/* Saguaro Creek PTSA — desert Sidewinder theme */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-600.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-800.woff2") format("woff2");
}

:root {
  --green: #365949;
  --green-dark: #2b483b;
  --brown: #96604a;
  --copper: #b87347;
  --cream: #f7f3e8;
  --paper: #fbfaf6;
  --ink: #26302b;
  --line: #ddd6c6;
  --display: "Bricolage Grotesque", "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--green); }
a:hover { color: var(--copper); }

/* Header */
.topbar {
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  max-width: 1100px;
  margin: 0 auto;
}
.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.25rem; letter-spacing: 0.02em; font-family: var(--display); font-weight: 800; }
.brand-text small { opacity: 0.9; }

/* Nav */
.mainnav {
  background: var(--brown);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  padding: 0.55rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.mainnav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover { border-bottom-color: #fff; color: #fff; }
.mainnav .nav-join {
  background: var(--copper);
  border-radius: 999px;
  padding: 0.1rem 0.9rem;
  border-bottom: none;
}
.mainnav .nav-join:hover { background: var(--green); }

/* Layout */
.page { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
h1, h2, h3 { color: var(--green-dark); line-height: 1.25; font-family: var(--display); font-weight: 800; }
h3 { font-weight: 600; }
.section > h1:first-child, .section > h2:first-child { margin-top: 0.25rem; }

.hero {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
  display: block;
}

.page-banner {
  margin-top: 1rem;
  background:
    radial-gradient(1200px 300px at 85% -50%, rgba(184, 115, 71, 0.5), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream);
  border-radius: 10px;
  padding: 2.25rem 1.75rem;
  text-align: center;
}
.page-banner h1 {
  color: #fff;
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.page-banner p { margin: 0; font-size: 1.1rem; }

/* Home hero */
.hero-card {
  margin-top: 1rem;
  background:
    radial-gradient(1200px 340px at 88% -60%, rgba(184, 115, 71, 0.55), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream);
  border-radius: 10px;
  padding: 2.5rem 2rem 2rem;
}
.hero-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.hero-card h1 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}
.hero-sub { margin: 0 0 1.25rem; font-size: 1.1rem; max-width: 46rem; }
.hero-card .button-row { justify-content: flex-start; margin-bottom: 1.5rem; }
.hero-card .btn { background: var(--copper); }
.hero-card .btn:hover { background: #fff; color: var(--green-dark); }
.hero-card .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero-card .btn-outline:hover { border-color: #fff; }
.hero-next {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.hero-next:hover { background: #fff; color: var(--ink); }
.hero-next .event-date { background: var(--copper); }
.hero-next-body { display: flex; flex-direction: column; line-height: 1.35; }
.hero-next-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
}
.hero-next-more { margin-left: auto; font-weight: 700; color: var(--green); white-space: nowrap; }

/* Membership goal bar */
.goal-line { margin: 0 0 0.5rem; text-align: center; }
.goal-bar {
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.goal-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--copper));
  min-width: 14px;
}

/* Tinted call-to-action sections */
.section-cta { background: var(--cream); }

.event-actions a { font-weight: 700; }

.callout {
  font-weight: 700;
  color: var(--green-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  text-align: center;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0 0.25rem;
}
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.btn:hover { background: var(--copper); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-big { font-size: 1.15rem; padding: 0.8rem 1.6rem; }
.btn-small { padding: 0.3rem 0.8rem; font-size: 0.9rem; }

/* Home page split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.split-img { width: 100%; border-radius: 8px; }
.feature-list { padding-left: 1.1rem; }
.feature-list li { margin-bottom: 0.5rem; }
.fine-print { font-size: 0.85rem; color: #5a6360; }

/* Events */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--copper);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
  background: var(--cream);
}
.event-date {
  flex: 0 0 4.5rem;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  align-self: flex-start;
  padding: 0.5rem 0.25rem;
}
.event-mon { display: block; font-size: 0.85rem; letter-spacing: 0.1em; }
.event-day { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.event-body h3 { margin: 0 0 0.25rem; }
.event-body p { margin: 0.15rem 0; }
.event-meta { color: #4c5652; font-size: 0.95rem; }
.event-flyer { max-width: min(420px, 100%); border-radius: 6px; margin-top: 0.5rem; }

/* Sponsorship tiers */
.steps li { margin-bottom: 0.4rem; }
.tier-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: var(--cream);
}
.tier-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.tier-head h3 { margin: 0; }
.tier-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
}
.tier-titanium .tier-badge { background: #4a4f55; }
.tier-diamond .tier-badge { background: #6d7f8f; }
.tier-platinum .tier-badge { background: #8b8f94; }
.tier-gold .tier-badge { background: #a97e2f; }
.tier-silver .tier-badge { background: #7f8c8d; }
.tier-bronze .tier-badge { background: var(--brown); }
.tier-tagline { font-style: italic; margin: 0.5rem 0 0.25rem; }
.tier-sub { text-decoration: underline; margin: 0.25rem 0; }

.tier-heading { border-bottom: 3px solid var(--copper); padding-bottom: 0.35rem; }

/* Sponsor cards */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.sponsor-card {
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: #fff;
}
.sponsor-card h3 { margin: 0.25rem 0 0.5rem; }
.sponsor-logo { max-height: 80px; max-width: 100%; object-fit: contain; }
.sponsor-facts { list-style: none; padding: 0; margin: 0; }
.sponsor-facts li { margin-bottom: 0.3rem; }

/* Officers */
.officer-table { width: 100%; border-collapse: collapse; }
.officer-table th, .officer-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.officer-table thead th {
  background: var(--green);
  color: #fff;
}
.officer-table tbody tr:nth-child(even) { background: var(--cream); }

/* Minutes */
.minutes-list { list-style: none; margin: 0; padding: 0; }
.minutes-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.minutes-date { font-weight: 800; color: var(--green-dark); flex: 0 0 15rem; }
.minutes-title { flex: 1 1 12rem; }

/* Footer */
.footer {
  background: var(--green-dark);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}
.footer h2 { color: #fff; margin-top: 0; }
.footer a { color: #fff; }
.footer-small { font-size: 0.85rem; opacity: 0.85; }

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .minutes-date { flex-basis: 100%; }
  .brand-text small { display: none; }
  .hero-card { padding: 1.75rem 1.25rem 1.25rem; }
  .hero-next { flex-wrap: wrap; }
  .hero-next-more { display: none; }
}

/* ------------------------------------------------------------------ */
/* Seasonal themes.                                                    */
/* The active theme is a class on <body> (set from site/_data/theme.yaml
   at build time). Each theme only re-tints the shared palette variables
   above — layout, text, and images never change, so a theme can't break
   the site. Keep --ink/--paper close to the defaults for readability.  */

.theme-banner {
  background: var(--cream);
  color: var(--green-dark);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  padding: 0.45rem 1rem;
}

/* 🎒 Back to School — chalkboard green, apple red, manila paper */
.theme-back-to-school {
  --green: #2f6136;
  --green-dark: #24492a;
  --brown: #a63a2b;
  --copper: #c77f2a;
  --cream: #fdf4dd;
  --line: #e6d9b8;
}

/* 🎃 Halloween — twilight purple, charcoal, pumpkin */
.theme-halloween {
  --green: #4b2e63;
  --green-dark: #37224a;
  --brown: #33303a;
  --copper: #c05f21;
  --cream: #f8efe0;
  --line: #e0d3bd;
}

/* 🍂 Thanksgiving — harvest browns and amber */
.theme-thanksgiving {
  --green: #7a4419;
  --green-dark: #5c3312;
  --brown: #8a5520;
  --copper: #c2601c;
  --cream: #f9efdf;
  --line: #e6d5b8;
}

/* ❄️ Winter / Holidays — pine blue and ice */
.theme-winter {
  --green: #1f4e66;
  --green-dark: #173b4e;
  --brown: #446b83;
  --copper: #35708f;
  --cream: #edf4f9;
  --line: #d2e0ea;
}

/* 🌸 Spring Fling (manual only) — garden green and blossom */
.theme-spring-fling {
  --green: #397a45;
  --green-dark: #2b5c34;
  --brown: #a34d74;
  --copper: #d07a2f;
  --cream: #f4f9ec;
  --line: #dbe6c8;
}

/* 🚗🍬 Trunk-or-Treat (manual only) — night black, candy purple, pumpkin */
.theme-trunk-or-treat {
  --green: #251d31;
  --green-dark: #191423;
  --brown: #5e3d99;
  --copper: #d96e1a;
  --cream: #fdeed6;
  --line: #e8d3b0;
}
