/* ============================================
   RBV Longhorn Volleyball — Stylesheet v2
   Brand: Maroon #692530 / White / Silver
   Font: Inter via Google Fonts
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --maroon:       #692530;
  --maroon-dark:  #541e27;
  --maroon-light: #7d3040;
  --silver:       #C0C0C0;
  --surface:      #ffffff;
  --surface-alt:  #f8f5f5;
  --bg:           #f4efef;
  --text:         #1a1a1a;
  --text-muted:   #6b6b6b;
  --shadow-sm:    0 1px 4px rgba(105,37,48,0.07);
  --shadow-md:    0 4px 16px rgba(105,37,48,0.1);
  --shadow-lg:    0 8px 32px rgba(105,37,48,0.15);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* clip avoids horizontal scroll without breaking sticky header */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

a {
  color: var(--maroon);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--maroon-dark);
  text-decoration: underline;
}

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

/* ---- Navigation ---- */
.site-header {
  background: var(--maroon);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  /* containing block for absolute mobile menu */
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  height: 42px;
  width: auto;
}

.logo-area span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255,255,255,0.12);
  outline: none;
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,0.16);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 22px 16px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color var(--transition);
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background: var(--silver);
  transition: left var(--transition), right var(--transition);
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a.active {
  color: #fff;
  font-weight: 700;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  left: 0;
  right: 0;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 60px;
  }

  .logo-area { gap: 10px; }
  .logo-area img { height: 36px; }
  .logo-area span { font-size: 0.95rem; }

  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--maroon-dark);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open { max-height: min(70vh, 480px); overflow-y: auto; }

  .main-nav ul { flex-direction: column; gap: 0; }

  .main-nav a {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    letter-spacing: 0.6px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .main-nav a::after { display: none; }

  .main-nav a:active {
    background: rgba(255,255,255,0.06);
  }
}

/* ---- Hero (inner pages) ---- */
.hero {
  background: linear-gradient(135deg, #541e27 0%, #692530 50%, #4a1a22 100%);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  animation: fadeSlideUp 0.6s ease both;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto;
  font-weight: 500;
  animation: fadeSlideUp 0.6s ease 0.1s both;
  position: relative;
  z-index: 1;
}

/* Hero mobile sizing handled in unified mobile section below */

/* ---- Hero Banner (home page photo) ---- */
.hero-banner {
  padding: 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a0e13;
}

.hero-banner .hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 1;
}

.hero-banner .hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(84,30,39,0.45)  0%,
    rgba(105,37,48,0.62) 50%,
    rgba(42,14,19,0.90)  100%
  );
  z-index: 2;
}

.hero-banner .hero-text {
  position: relative;
  z-index: 3;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.hero-banner .hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: fadeSlideUp 0.6s ease both;
}

.hero-banner .hero-text p {
  font-size: 1.15rem;
  opacity: 0.9;
  font-weight: 500;
  animation: fadeSlideUp 0.6s ease 0.12s both;
}

/* Inner page banners — shorter than home */
.hero-banner-page {
  min-height: 360px;
}

.hero-banner-page .hero-text {
  padding: 48px 20px;
}

.hero-banner-page .hero-text h1 {
  font-size: 2.4rem;
  letter-spacing: 2px;
}

.hero-bg-pos-top {
  object-position: center 35%;
}

/* Banner mobile sizing handled in unified mobile section below */

/* ---- Main Content ---- */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-title {
  font-size: 1.55rem;
  color: var(--maroon);
  font-weight: 800;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--silver);
  letter-spacing: 0.2px;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--maroon);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  color: var(--maroon);
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 18px;
  line-height: 1.65;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon);
  color: #fff;
  padding: 12px 28px;
  min-height: 44px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: var(--maroon-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(105,37,48,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}

.btn-outline:hover {
  background: var(--maroon);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--maroon);
  border: 2px solid var(--maroon);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--maroon);
}

/* ---- Badges (schedule) ---- */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-home       { background: var(--maroon); color: #fff; }
.badge-away       { background: #e8e8e8; color: #555; }
.badge-tournament { background: #f5e8ea; color: var(--maroon); border: 1px solid var(--maroon); }

/* ---- Schedule Table (clean & light) ---- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(105,37,48,0.04);
  border: 1px solid #e8d9db;
}

.schedule-table thead {
  background: #f8f0f1;
  color: var(--maroon);
  border-bottom: 2px solid var(--maroon);
  position: static;
}

.schedule-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 700;
}

.schedule-table td {
  padding: 13px 16px;
  font-size: 0.93rem;
  border-bottom: 1px solid #f0e8e9;
  vertical-align: middle;
}

.schedule-table tbody tr:nth-child(even):not(.month-header):not(.tournament-row) {
  background: #fdf9f9;
}

.schedule-table tbody tr:hover:not(.month-header) {
  background: #f9f3f4;
}

.month-header td {
  background: #f8f0f1;
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-bottom: 1px solid #e8d9db;
}

.tournament-row { background: #fdf2f4 !important; }
.tournament-row td { font-weight: 600; }

.date-cell .date-main {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.date-cell .date-day {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 700px) {
  .schedule-table thead { display: none; }

  .schedule-table tr:not(.month-header) {
    display: block;
    margin-bottom: 12px;
    background: var(--surface) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--maroon);
    padding: 14px 18px;
  }

  .month-header td {
    display: block;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    margin-top: 8px;
  }

  .schedule-table td {
    display: block;
    padding: 4px 0;
    border: none;
    font-size: 0.9rem;
  }

  .schedule-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--maroon);
    display: inline-block;
    width: 82px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .badge { margin-left: 4px; }
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin: 32px 0;
}

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-grid img:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-lg);
}

/* ---- Program Sponsor (full-width section) ---- */
.program-sponsor {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid #e8d9db;
  padding: 48px 24px 44px;
  margin-top: 40px;
  text-align: center;
}

.program-sponsor-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.program-sponsor .section-title {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.program-sponsor-intro {
  color: #666;
  font-size: 0.95rem;
  margin: 0 auto 24px;
  max-width: 420px;
  line-height: 1.5;
}

.sponsor-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.sponsor-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 28px;
  background: var(--surface-alt);
  border: 1px solid #e8d9db;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  box-sizing: border-box;
}

.sponsor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #d4b8bc;
  color: inherit;
  text-decoration: none !important;
}

/* Non-clickable sponsor cards (no website link) shouldn't fake interactivity */
div.sponsor-card:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
  border-color: #e8d9db;
}

.sponsor-card-logo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.sponsor-card-logo img,
img.sponsor-logo {
  display: block;
  width: 100% !important;
  max-width: 76px !important;
  height: auto !important;
  max-height: 76px !important;
  object-fit: contain;
  margin: 0 auto;
}

.sponsor-card-copy {
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}

.sponsor-card-copy .sponsor-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 4px;
}

.sponsor-card-copy .sponsor-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 2px;
  line-height: 1.25;
}

.sponsor-card-copy .sponsor-tag {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.sponsor-card-copy .sponsor-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--maroon);
}

/* Sponsor stack on small screens handled in unified mobile section below */

/* legacy class aliases (safe if old markup cached) */
.program-sponsor-inner { width: 100%; max-width: 1100px; margin: 0 auto; text-align: center; }
.program-sponsor-label { display: none; }
.program-sponsor-card { /* superseded by .sponsor-card */ }

/* ---- Footer ---- */
.site-footer {
  background: #3d1118;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 36px 24px;
  margin-top: 0;
}

.site-footer a {
  color: var(--silver);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.site-footer p {
  font-size: 0.8rem;
  opacity: 0.55;
}

/* ---- Philosophy Section ---- */
.philosophy { margin: 10px 0; }

.philosophy-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 28px;
  font-weight: 500;
}

.philosophy-list {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 32px 24px 40px;
  box-shadow: var(--shadow-sm);
  list-style-type: disc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.philosophy-list li {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  padding-left: 4px;
}

.philosophy-list li::marker {
  color: var(--maroon);
}

.philosophy-quote {
  margin-top: 28px;
  padding: 22px 28px;
  background: var(--surface);
  border-left: 4px solid var(--maroon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--maroon);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.info-callout {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--maroon);
  line-height: 1.75;
  color: var(--text);
}

/* ---- Picture Day ---- */
.picture-day-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}

.picture-day-flyer-link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.picture-day-flyer-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.picture-day-flyer-link img {
  width: 100%;
  height: auto;
}

.picture-day-details .btn {
  margin-top: 4px;
}

.picture-day-fine-print {
  margin-top: 20px !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
}

@media (max-width: 768px) {
  .picture-day-grid {
    grid-template-columns: 1fr;
  }

  .picture-day-flyer-link {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ---- Instagram Section ---- */
.instagram-section { margin: 10px 0 0; }

.ig-feed-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.ig-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ig-grid blockquote { margin: 0 auto !important; }

.ig-placeholder {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px dashed #ddd0d2;
}

.ig-placeholder .ig-handle {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 10px;
}

.ig-placeholder p {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 0.97rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- QR Code Display ---- */
.qr-section { margin: 10px 0 0; }

/* ---- Booster flyer ---- */
.booster-flyer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 8px 0 28px;
  width: 100%;
}

.booster-flyer-section > .section-title,
.booster-flyer-section > p {
  width: 100%;
  max-width: 640px;
}

.booster-flyer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 4px auto 0;
}

.booster-flyer-wrap {
  display: block;
  width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e8d9db;
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}

a.booster-flyer-wrap:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}

.booster-flyer-wrap img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.booster-flyer-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.qr-image {
  width: 200px;
  height: 200px;
  border: 3px solid var(--maroon);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.qr-url {
  margin-top: 10px;
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ---- Animations ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Utility ---- */
.text-center  { text-align: center; }
.mt-20        { margin-top: 20px; }
.mb-20        { margin-bottom: 20px; }

.silver-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  margin: 36px 0;
}

/* ---- Announcements (simple & clean) ---- */
.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin: 24px 0 12px;
}

.announcement {
  background: var(--surface);
  border-left: 5px solid var(--maroon);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.announcement .date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.announcement h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: #1a1a1a;
  font-weight: 700;
}

.announcement p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}

.announcement p + p {
  margin-top: 8px;
}

.announcement .link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
}

.announcement .link:hover {
  text-decoration: underline;
}

/* ============================================
   Mobile polish — clean, consistent, touch-first
   ============================================ */

/* Prefer no layout-shifting hover motion on touch devices */
@media (hover: none), (pointer: coarse) {
  .card:hover,
  .announcement:hover,
  .sponsor-card:hover,
  .gallery-grid img:hover,
  .picture-day-flyer-link:hover,
  a.booster-flyer-wrap:hover,
  .btn:hover {
    transform: none;
  }

  .card:hover,
  .announcement:hover {
    box-shadow: var(--shadow-sm);
  }

  .sponsor-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: #e8d9db;
  }
}

@media (max-width: 768px) {
  /* Spacing rhythm */
  .content {
    padding: 28px 16px 36px;
  }

  .section-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .silver-divider {
    margin: 28px 0;
  }

  /* Hero — less chrome, tighter type */
  .hero {
    padding: 44px 16px;
  }

  .hero h1 {
    font-size: 1.7rem;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 0 4px;
  }

  .hero-banner {
    min-height: 280px;
  }

  .hero-banner .hero-text {
    padding: 40px 16px;
  }

  .hero-banner .hero-text h1 {
    font-size: 1.65rem;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .hero-banner .hero-text p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .hero-banner-page {
    min-height: 220px;
  }

  .hero-banner-page .hero-text {
    padding: 36px 16px;
  }

  .hero-banner-page .hero-text h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  /* Stacked content blocks */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0;
  }

  .card {
    padding: 20px 18px;
  }

  .card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .card p {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

  .card .btn {
    width: 100%;
    align-self: stretch;
  }

  .announcements-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0 8px;
  }

  .announcement {
    padding: 14px 16px;
  }

  .announcement .date {
    font-size: 0.72rem;
    letter-spacing: 0.4px;
  }

  .announcement h4 {
    font-size: 1rem;
  }

  .announcement p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0;
  }

  .gallery-grid img {
    border-radius: 10px;
  }

  /* Philosophy & callouts */
  .philosophy-list {
    padding: 18px 18px 18px 28px;
    gap: 8px;
  }

  .philosophy-list li {
    font-size: 0.98rem;
  }

  .philosophy-quote {
    margin-top: 18px;
    padding: 16px 18px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .info-callout {
    padding: 18px 18px;
    font-size: 0.95rem;
  }

  /* Instagram placeholder */
  .ig-placeholder {
    padding: 28px 18px;
  }

  .ig-placeholder .ig-handle {
    font-size: 1.4rem;
  }

  .ig-placeholder p {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  /* Sponsor */
  .program-sponsor {
    padding: 32px 16px 28px;
    margin-top: 24px;
  }

  .program-sponsor-intro {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .sponsor-card {
    max-width: 100%;
    padding: 18px 16px;
  }

  /* Footer */
  .site-footer {
    padding: 28px 16px 32px;
  }

  .footer-links {
    gap: 10px 16px;
    margin-bottom: 14px;
  }

  .footer-links a {
    font-size: 0.75rem;
    padding: 6px 2px;
  }

  .site-footer p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* Picture day */
  .picture-day-grid {
    gap: 18px;
  }

  .picture-day-flyer-link {
    max-width: 100%;
  }

  /* Booster flyer */
  .booster-flyer-wrap {
    width: min(100%, 360px);
  }

  .booster-flyer-caption {
    font-size: 0.8rem;
  }

  /* Schedule cards already stack — tighten a bit */
  .schedule-table tr:not(.month-header) {
    margin-bottom: 10px;
    padding: 12px 14px;
  }

  /* Body copy breathing room */
  .content > p {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .mb-20 { margin-bottom: 14px; }
}

@media (max-width: 480px) {
  .content {
    padding: 22px 14px 30px;
  }

  .hero-banner {
    min-height: 240px;
  }

  .hero-banner .hero-text h1 {
    font-size: 1.45rem;
    letter-spacing: 0.6px;
  }

  .hero-banner-page {
    min-height: 190px;
  }

  .hero-banner-page .hero-text h1 {
    font-size: 1.35rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .card {
    padding: 18px 16px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    width: 100%;
  }

  .card .btn {
    width: 100%;
  }

  .sponsor-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .sponsor-card-copy {
    text-align: center;
  }

  .sponsor-card-logo {
    width: 88px;
    height: 88px;
  }

  .footer-links {
    gap: 8px 12px;
  }

  .silver-divider {
    margin: 22px 0;
  }

  .logo-area span {
    font-size: 0.9rem;
  }
}

/* Prevent sticky hover + ensure readable text when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .card,
  .announcement,
  .sponsor-card,
  .gallery-grid img,
  .btn,
  .main-nav,
  .fade-in {
    transition: none !important;
  }

  .hero h1,
  .hero p,
  .hero-banner .hero-text h1,
  .hero-banner .hero-text p {
    animation: none !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}