/* Friends of TASPE: styles. Tokens copied from taspe.org (src/styles/global.css). */
:root {
  --color-primary: #500000;       /* Aggie maroon */
  --color-primary-dark: #3a0000;
  --color-white: #fff;
  --color-bg-alt: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-accent: #b08d57;        /* muted gold: large text, borders, on maroon */
  --color-accent-dark: #8a6a3a;   /* darker gold for small text/icons on white (5:1 contrast) */
  --color-border: #e2e2e2;
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 1120px;
  --gutter: 1rem;
  --radius: 8px;
  --shadow: 0 2px 10px #0000000f;
  --nav-height: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--color-text-muted); }
.note { color: var(--color-text-muted); margin: 2rem auto 0; max-width: 60ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-primary); color: var(--color-white); padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Sections (anchor offset accounts for sticky header) */
.section { padding: 4rem 0; }
.section--alt { background: var(--color-bg-alt); }
section[id] { scroll-margin-top: var(--nav-height); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 2.75rem; }
.section__head p:last-child { margin-bottom: 0; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--color-accent-dark); margin-bottom: 0.6rem;
}

/* ---------- Buttons (from taspe.org) ---------- */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; text-align: center; line-height: 1.4;
  border: 2px solid var(--color-primary);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white); }
.btn--secondary { background: transparent; color: var(--color-primary); }
.btn--secondary:hover { background: var(--color-primary); color: var(--color-white); }
.btn--light { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }
.btn--light:hover { background: var(--color-bg-alt); border-color: var(--color-bg-alt); color: var(--color-primary); }
.btn--outline-light { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.75); }
.btn--outline-light:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-primary); }

/* ---------- Header ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-height); position: relative;
}
.brand { display: flex; align-items: center; text-decoration: none; padding: 0.35rem 0; }
.brand__logo { height: 58px; width: auto; }

.navbar__toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
}
.navbar__bar { display: block; height: 2px; background: var(--color-primary); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.navbar__toggle[aria-expanded="true"] .navbar__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] .navbar__bar:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] .navbar__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__menu {
  display: none; padding: 0.5rem 0 1rem;
  position: absolute; top: calc(100% + 3px); left: 0; right: 0;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.navbar__menu.is-open { display: block; }
.navbar__link {
  display: block; padding: 0.75rem var(--gutter);
  color: var(--color-text); text-decoration: none; font-weight: 500;
}
.navbar__link:hover { color: var(--color-primary); background: var(--color-bg-alt); }
.navbar__link[aria-current="page"] {
  color: var(--color-primary); text-decoration: underline; text-underline-offset: 6px;
  text-decoration-color: var(--color-accent); text-decoration-thickness: 2px;
}
.navbar__link--cta {
  margin: 0.5rem var(--gutter) 0; border-radius: 999px; text-align: center;
  background: var(--color-primary); color: var(--color-white);
}
.navbar__link--cta:hover { background: var(--color-primary-dark); color: var(--color-white); }

@media (min-width: 1000px) {
  .brand__logo { height: 70px; }
  .navbar__toggle { display: none; }
  .navbar__menu {
    display: flex; align-items: center; gap: 0.15rem;
    position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .navbar__link { padding: 0.5rem 0.7rem; border-radius: var(--radius); font-size: 0.95rem; }
  .navbar__link--cta { margin: 0 0 0 0.6rem; padding: 0.55rem 1.2rem; border-radius: 999px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(176,141,87,0.12), transparent 60%), var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 4.5rem;
  border-bottom: 4px solid var(--color-accent);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg canvas { position: absolute; inset: 0; display: block; }
.hero__inner { position: relative; z-index: 1; max-width: 880px; text-align: center; }
.hero__eyebrow {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--color-accent); margin-bottom: 1.1rem;
}
.hero__title { color: var(--color-white); margin-bottom: 1.25rem; }
.hero__tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.6;
  color: rgba(255,255,255,0.92); max-width: 54ch; margin: 0 auto 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero__inner > * { animation: fadeUp 0.8s ease both; }
.hero__inner > :nth-child(2) { animation-delay: 0.12s; }
.hero__inner > :nth-child(3) { animation-delay: 0.24s; }
.hero__inner > :nth-child(4) { animation-delay: 0.36s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Mission ---------- */
.mission { display: grid; gap: 2.5rem; align-items: center; }
.mission__text p:not(.eyebrow) { font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  background: var(--color-white); border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.1rem;
}
.stat__num {
  margin: 0 0 0.35rem; font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.15; color: var(--color-primary);
}
.stat__label { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.4; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem 1.5rem;
}
.card p:last-child { margin-bottom: 0; }
.card--icon p { color: var(--color-text-muted); }
.icon {
  width: 44px; height: 44px; margin-bottom: 1rem;
  fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.55rem; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.3rem;
  width: 0.45rem; height: 0.8rem;
  border: solid var(--color-accent-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.card .checks { margin-top: 1.25rem; }

/* ---------- Tiers ---------- */
.tiers { display: grid; gap: 1.5rem; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-white); border: 1px solid var(--color-border); border-top: 4px solid var(--tier, var(--color-accent));
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.5rem 1.75rem;
}
.tier[data-tier="bronze"] { --tier: #9a6738; }
.tier[data-tier="silver"] { --tier: #8c8f94; }
.tier[data-tier="gold"] { --tier: var(--color-accent); }
.tier[data-tier="platinum"] { --tier: #5b6670; }
.tier--featured { border: 2px solid var(--color-primary); border-top-width: 4px; box-shadow: 0 10px 30px rgba(80,0,0,0.12); }
.tier__ribbon {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 0.3rem 0.95rem; border-radius: 999px; white-space: nowrap;
  background: var(--color-accent); color: var(--color-primary-dark);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.tier__badge {
  align-self: flex-start; margin-bottom: 1rem; padding: 0.2rem 0.7rem; border-radius: 4px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-white); background: var(--tier);
}
.tier[data-tier="silver"] .tier__badge { background: #6b6e73; }
.tier[data-tier="gold"] .tier__badge { background: var(--color-accent-dark); }
.tier__price { margin: 0 0 0.25rem; color: var(--color-primary); }
.tier__amount { font-family: var(--font-heading); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.tier__per { color: var(--color-text-muted); font-size: 0.95rem; }
.tier__tagline { color: var(--color-text-muted); font-style: italic; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--color-border); }
.tier .checks { font-size: 0.95rem; }

.any-amount {
  display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start;
  margin-top: 2.5rem; padding: 2rem 1.75rem; border-radius: var(--radius);
  background: var(--color-primary); color: var(--color-white);
  border-left: 5px solid var(--color-accent);
}
.any-amount h3 { color: var(--color-white); font-size: 1.5rem; }
.any-amount p { margin: 0; color: rgba(255,255,255,0.92); max-width: 62ch; }
.any-amount .btn { flex-shrink: 0; }
.custom-line { text-align: center; margin: 1.5rem 0 0; color: var(--color-text-muted); }
.custom-line a { font-weight: 600; }

/* ---------- How to Give ---------- */
.steps { display: grid; gap: 2rem; counter-reset: none; position: relative; margin-bottom: 3rem; }
.step { text-align: center; position: relative; }
.step__num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; border-radius: 50%;
  background: var(--color-primary); color: var(--color-white);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem;
  box-shadow: 0 0 0 5px var(--color-white), 0 0 0 7px var(--color-accent);
}
.step p { color: var(--color-text-muted); max-width: 32ch; margin: 0 auto; }

.pay-card {
  max-width: 720px; margin: 0 auto;
  background: var(--color-white); border: 1px solid var(--color-border); border-left: 5px solid var(--color-primary);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem;
}
.pay-list { margin: 0; display: grid; gap: 0.9rem; }
.pay-list dt { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.pay-list dd { margin: 0.1rem 0 0; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 820px; margin: 0 auto; display: grid; gap: 2rem; align-items: center;
  background: var(--color-white); border: 1px solid var(--color-border); border-top: 4px solid var(--color-primary);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.75rem;
}
.contact-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--color-primary); margin-bottom: 0.15rem; }
.contact-card__role { color: var(--color-text-muted); margin-bottom: 1rem; }
.contact-card__line { margin: 0; overflow-wrap: anywhere; }
.contact-card__label {
  display: inline-block; min-width: 3.5rem; margin-right: 0.5rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent-dark);
}
.contact-card__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------- Sponsors ---------- */
.placeholder-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.placeholder-grid li {
  display: flex; align-items: center; justify-content: center; min-height: 92px;
  border: 2px dashed #c9b28e; border-radius: var(--radius);
  color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500; background: #fcfaf7;
}
.sponsors__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.sponsors__track:empty { display: none; }
.sponsors__logo {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 180px; height: 96px; padding: 1rem;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.sponsors__logo img { max-height: 64px; width: auto; object-fit: contain; }
/* Marquee (4+ logos): JS duplicates the list once so the loop is seamless */
.sponsors--marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sponsors--marquee .sponsors__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
.sponsors--marquee:hover .sponsors__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 600; color: var(--color-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--color-accent-dark); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--color-primary); color: rgba(255,255,255,0.82); padding: 3.5rem 0 1.75rem; font-size: 0.95rem; }
.footer__inner { display: grid; gap: 2.25rem; }
.footer__logo { height: 96px; width: auto; margin-bottom: 1rem; }
.footer__note { max-width: 34ch; }
.footer__heading {
  font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-accent); margin-bottom: 0.75rem;
}
.footer__links li { margin-bottom: 0.4rem; }
.footer a { color: var(--color-white); text-underline-offset: 3px; }
.footer a:hover { color: var(--color-accent); }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
}
.footer__bottom p { margin: 0 0 0.4rem; }
.footer__disclaimer { font-size: 0.8rem; max-width: 80ch; }

/* ---------- Board Members page (same layout as taspe.org Leadership) ---------- */
.page-header { background: var(--color-bg-alt); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--color-border); }
.page-header p { color: var(--color-text-muted); max-width: 60ch; margin: 0; }
.board__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

.leader { background: var(--color-white); padding: 3rem 0; }
.leader--alt { background: var(--color-bg-alt); }
.leader__inner { display: grid; gap: 1.75rem; }
.leader__media {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1; width: 100%; max-width: 320px;
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.12); background: var(--color-primary);
}
.leader__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.leader__body { max-width: 640px; }
.leader__role {
  color: var(--color-accent-dark); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.5rem;
}
.leader__name { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.leader__class { white-space: nowrap; }
.leader__link {
  color: inherit; text-decoration: underline; text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: color 0.15s;
}
.leader__link:hover, .leader__link:focus-visible { color: var(--color-primary-dark); text-decoration-color: currentColor; }
.leader__bio { color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.75; }


@media (min-width: 768px) {
    .leader { padding: 4.5rem 0; }
    .leader__inner { grid-template-columns: clamp(220px, 26vw, 300px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .leader__media { aspect-ratio: 4 / 5; max-width: none; }
    .leader--reverse .leader__inner { grid-template-columns: 1fr clamp(220px, 26vw, 300px); }
  .leader--reverse .leader__media { order: 2; justify-self: end; }
  .leader--reverse .leader__body { justify-self: end; }
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .placeholder-grid { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  :root { --gutter: 2rem; }
  .section { padding: 6rem 0; }
  .hero { padding: 6rem 0 7rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); row-gap: 2.25rem; }
  .contact-card { grid-template-columns: 1fr auto; padding: 2.5rem; }
  .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; column-gap: 3rem; }
  .pay-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .any-amount { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.25rem 2.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  /* Thin gold line connecting the numbered circles */
  .steps::before {
    content: ""; position: absolute; top: 1.75rem; left: 16.66%; right: 16.66%;
    height: 2px; background: var(--color-accent);
  }
}
@media (min-width: 1024px) {
  .mission { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .tiers { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

/* ---------- Reduced motion: stop everything ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sponsors--marquee { mask-image: none; }
  .sponsors--marquee .sponsors__track { flex-wrap: wrap; justify-content: center; width: auto; }
}
