/* =========================================================
   Fightin' Roo Band — Weatherford Band Fan Club
   Design system & global styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — Weatherford ISD: royal blue + silver/gray (per brand guide) */
  --blue:        #0033a0;
  --blue-dark:   #00226b;
  --blue-deep:   #001645;
  --blue-light:  #2f6fe0;
  --blue-wash:   #eaf1ff;
  --silver:      #a2aaad;
  --silver-dark: #7f8a90;
  --ink:         #14213d;
  --slate:       #4a5670;
  --line:        #e3e8f2;
  --paper:       #f6f8fc;
  --white:       #ffffff;

  /* Typography */
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16,32,72,.08), 0 1px 2px rgba(16,32,72,.06);
  --shadow:    0 10px 30px rgba(16,32,72,.10);
  --shadow-lg: 0 24px 60px rgba(16,32,72,.18);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--wash { background: var(--paper); }
.section--blue { background: var(--blue-deep); color: #dfe7fb; }
.section--blue h2, .section--blue h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 56ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; color: var(--blue-light);
  margin-bottom: .6rem;
}
.section--blue .eyebrow { color: var(--silver); }
.muted { color: var(--slate); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Home page "What's happening" + "Upcoming" — wide news / narrow events.
   Stacks to a single column on mobile (see the 860px breakpoint below). */
.home-feeds { grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary   { background: var(--silver); color: var(--blue-deep); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--silver-dark); color: #fff; }
.btn--blue   { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost  { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-wash); }
.btn--light  { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--light:hover { background: rgba(255,255,255,.24); }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-top .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand__badge {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--blue); color: var(--silver);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}
/* Weatherford Roo logo mark. The source has a white background, so it blends
   into the white header and reads as a clean white badge on the dark footer. */
.brand__logo { height: 50px; width: auto; flex: none; display: block; border-radius: 9px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-family: var(--font-display); font-size: 1.12rem; color: var(--blue); font-weight: 400; }
.brand__text span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }

/* Secondary bar: page links sit in a slim row beneath the top of the header. */
.header-nav { background: var(--blue); }
.nav__links { display: flex; align-items: center; justify-content: space-between; gap: 4px; list-style: none; margin: 0; padding: 0; height: 46px; }
.nav__links a:not(.btn) {
  display: block; padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; color: #fff;
}
.nav__links a:not(.btn):hover { background: rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.nav__links a.is-active { color: #fff; background: rgba(255,255,255,.2); }
.nav__links-donate { display: none; }   /* desktop: Donate lives in the top row */
.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 0 auto; position: relative; transition: .2s;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after  { position: absolute; top: 7px; }
.site-header.is-open .nav__toggle span { background: transparent; }
.site-header.is-open .nav__toggle span::before { transform: rotate(45deg); top: 0; }
.site-header.is-open .nav__toggle span::after  { transform: rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, var(--blue-dark), var(--blue-deep));
  display: flex; align-items: center;
  min-height: clamp(560px, 84vh, 820px);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img,
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
/* If the visitor prefers reduced motion, hide the moving video and let the
   poster image show through instead. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
/* Lighter, directional scrim: darkens the left + bottom (where the text sits)
   for legibility while letting the video read clearly on the right and top. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(0,18,58,.85) 0%, rgba(0,18,58,.55) 38%, rgba(0,18,58,.12) 74%, rgba(0,18,58,0) 100%),
    linear-gradient(0deg, rgba(0,18,58,.6) 0%, rgba(0,18,58,0) 42%);
}
.hero__inner { position: relative; padding: 48px 0; max-width: 640px; }
.hero h1 { color: #fff; text-shadow: 0 2px 22px rgba(0,8,30,.5); }
.hero__tag { color: #eaf0fb; font-size: 1.25rem; margin: 1rem 0 1.8rem; text-shadow: 0 1px 12px rgba(0,8,30,.45); }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.2rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: #fff;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 0 4px rgba(162,170,173,.3); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcfa; text-decoration: none; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-wash); color: var(--blue); margin-bottom: 16px; font-size: 1.5rem;
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card__more { font-weight: 700; color: var(--blue); margin-top: 14px; display: inline-block; }

/* Quick action tiles (home) */
.quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.quick a {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.quick a:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.quick .ico { font-size: 1.7rem; }
.quick b { font-size: 1.1rem; }
.quick small { color: var(--slate); }

/* ---------- News ---------- */
.news-item {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}

/* News accordion (News page) */
.news-acc__head { cursor: pointer; padding: 20px 22px; }
.news-acc__head:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.news-acc__top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.news-acc__top .tag { margin-bottom: 0; }
.news-acc__top time { color: var(--slate); font-size: .85rem; font-weight: 600; }
.news-acc h3 { margin: 0 0 6px; }
.news-acc__excerpt { color: var(--slate); margin: 0; }
.news-acc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--blue); font-size: .92rem; }
.news-acc__more .chev { transition: transform .2s ease; }
.news-acc.is-open .news-acc__more .chev { transform: rotate(180deg); }
.news-acc.is-open .news-acc__excerpt { display: none; }
.news-acc__body { display: none; padding: 0 22px 22px; }
.news-acc.is-open .news-acc__body { display: block; }
.news-acc__body > :first-child { margin-top: 0; }
.news-item .body { padding: 22px 24px; }
.news-item .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); background: var(--blue-wash);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.news-item h3 { color: var(--ink); margin-bottom: .35rem; }
.news-item time { color: var(--slate); font-size: .85rem; font-weight: 600; }
.news-item p { color: var(--slate); margin: .5rem 0 0; }

/* ---------- Events ---------- */
.event {
  display: flex; gap: 18px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.event + .event { margin-top: 12px; }
.event__date {
  flex: none; width: 64px; text-align: center; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.event__date .m { background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 4px 0; letter-spacing: .06em; }
.event__date .d { font-size: 1.4rem; font-weight: 800; padding: 4px 0; }
.event__info h4 { margin: 0 0 2px; font-size: 1.05rem; }
.event__info span { color: var(--slate); font-size: .9rem; }

/* ---------- Donation tiers ---------- */
.tier { position: relative; text-align: center; }
.tier.is-featured { border-color: var(--blue); box-shadow: var(--shadow); }
.tier__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-weight: 800; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.tier .amount { font-family: var(--font-display); font-size: 2.4rem; color: var(--blue); margin: 6px 0 2px; }
.tier .amount span { font-size: 1rem; color: var(--slate); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 22px; text-align: left; }
.tier li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); }
.tier li::before { content: "✓"; position: absolute; left: 4px; color: var(--blue); font-weight: 800; }

/* ---------- Store ---------- */
.product { overflow: hidden; padding: 0; }
.product__img { aspect-ratio: 4/3; background: var(--blue-wash); display: grid; place-items: center; font-size: 3rem; }
.product .body { padding: 18px 20px 22px; }
.product .price { font-weight: 800; color: var(--blue); font-size: 1.15rem; }
.product h3 { font-size: 1.1rem; margin-bottom: .2rem; }

/* ---------- Roster / people ---------- */
.person { display: flex; gap: 14px; align-items: flex-start; }
.person__avatar {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-family: var(--font-display); overflow: hidden;
}
.person__avatar--photo { background: var(--blue-wash); }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.person b { display: block; }
.person .role { color: var(--blue); font-weight: 600; font-size: .9rem; }
.person a { font-size: .92rem; word-break: break-word; }
.person .muted { font-size: .9rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px var(--blue-wash);
}

/* ---------- Embed frame ---------- */
.embed {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff;
}
.embed iframe { display: block; width: 100%; border: 0; }

/* Empty-state placeholder ("Coming soon") spanning a full grid row */
.coming-soon {
  grid-column: 1 / -1; text-align: center; padding: 60px 24px;
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
}
.coming-soon h3 { margin: 0 0 4px; font-size: 1.6rem; color: var(--blue); }
.coming-soon p { margin: 0; }
/* Upcoming-events grid on the Calendar page: drop the stacked-list top margin */
.cal-events .event + .event { margin-top: 0; }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
  color: #fff; padding: 64px 0 56px;
}
.page-banner h1 { color: #fff; }
.page-banner p { color: #cdd9f5; max-width: 60ch; margin: 0; font-size: 1.15rem; }
.breadcrumb { color: #9db4e8; font-size: .9rem; margin-bottom: .8rem; }
.breadcrumb a { color: #cdd9f5; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e2fb; max-width: 52ch; margin: 0 auto 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #aebfe4; padding: 56px 0 28px; }
.site-footer a { color: #cdd9f5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .brand__text b { color: #fff; }
.footer-brand .brand__text span { color: #8fa6da; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: #8fa6da;
}
/* Discreet board login — blends into the footer fine print. */
.footer-login { color: #6d80ad; }
.footer-login:hover { color: #fff; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .home-feeds { grid-template-columns: 1fr; gap: 36px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 10px 14px; font-size: .84rem; }
  .header-actions .btn--primary { display: none; }   /* Donate moves into the menu */
  /* Collapse the slim page-link bar into the hamburger dropdown */
  .header-nav {
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
  }
  .site-header.is-open .header-nav { max-height: 80vh; overflow: auto; box-shadow: var(--shadow); }
  .header-nav .wrap { padding: 10px 16px 16px; }
  .header-nav .nav__links {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 2px; height: auto;
  }
  .nav__links a:not(.btn) { padding: 13px 12px; font-size: 1.05rem; }
  .nav__links-donate { display: block; margin-top: 10px; }
  .nav__links-donate .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .brand__text { display: none; }
  .header-actions .btn { padding: 9px 12px; font-size: .8rem; }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band, .hero__inner { padding-left: 4px; padding-right: 4px; }
  .cta-band { padding: 32px 22px; }
  .brand__text span { display: none; }
}
