/* ========================================
   JUSTICE ROWING - Main Stylesheet
   Design v5 - Wolf greys with navy/burgundy accents
   ======================================== */

:root {
  /* Design v2 color scheme */
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --navy-light: #2a4d7a;
  --burgundy: #8b2942;
  --burgundy-dark: #6b1f33;
  --burgundy-light: #a33350;
  
  /* Wolf greys - primary palette */
  --grey-900: #1a1d21;
  --grey-800: #2d3238;
  --grey-700: #3d4349;
  --grey-600: #4a5058;
  --grey-500: #6b7280;
  --grey-400: #9ca3af;
  --grey-300: #d1d5db;
  --grey-200: #e5e7eb;
  --grey-100: #f3f4f6;
  
  --white: #ffffff;
  --text: #1a1d21;
  --text-muted: #6b7280;
  
  /* Layout */
  --nav-width: 280px;
  --submenu-width: 240px;
  --max-content: 1200px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--grey-900);
}

/* ========================================
   HERO CONTAINER (Homepage)
   ======================================== */

.hero-container {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  background: var(--grey-900);
}

.hero-backgrounds {
  position: absolute;
  left: var(--nav-width);
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
  opacity: 1;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 29, 33, 0.75) 0%,
    rgba(45, 50, 56, 0.5) 50%,
    rgba(26, 29, 33, 0.8) 100%
  );
}

/* Fallback gradient backgrounds */
.hero-bg:nth-child(1) { background-image: linear-gradient(135deg, var(--grey-800) 0%, var(--grey-700) 50%, var(--grey-900) 100%); }
.hero-bg:nth-child(2) { background-image: linear-gradient(135deg, var(--grey-700) 0%, var(--grey-800) 50%, var(--grey-900) 100%); }
.hero-bg:nth-child(3) { background-image: linear-gradient(135deg, var(--grey-900) 0%, var(--grey-700) 50%, var(--grey-800) 100%); }

.hero-accent {
  position: absolute;
  left: var(--nav-width);
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--burgundy), var(--navy));
  z-index: 25;
}

/* ========================================
   VERTICAL NAVIGATION
   ======================================== */

.vertical-nav {
  position: relative;
  z-index: 30;
  width: var(--nav-width);
  min-width: var(--nav-width);
  flex-shrink: 0;
  background: var(--grey-900);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--grey-700);
}

/* Nav Logo with JUSTICE watermark */
.nav-logo {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nav-logo a {
  display: block;
}

.nav-logo img {
  max-width: 160px;
  height: auto;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.nav-logo-brand {
  position: relative;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-watermark {
  position: absolute;
  font-family: 'Oswald', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  line-height: 1;
  user-select: none;
  z-index: 1;
}

.nav-logo-tagline {
  position: relative;
  z-index: 2;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--grey-100);
  font-weight: 600;
}

/* Nav Links */
.nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  color: var(--grey-300);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--burgundy);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  background: var(--grey-800);
  color: var(--white);
  text-decoration: none;
}

.nav-link:hover::before {
  transform: scaleY(1);
}

.nav-link.active {
  background: var(--grey-800);
  color: var(--white);
}

.nav-link.active::before {
  transform: scaleY(1);
}

.nav-link-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  opacity: 0.6;
}

.nav-link-chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  opacity: 0.4;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-item:hover .nav-link-chevron {
  opacity: 0.8;
  transform: translateX(2px);
}

/* Seasonal Tab */
.nav-item.seasonal .nav-link {
  background: var(--navy);
  color: var(--white);
  margin: 0.5rem 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 2px;
}

.nav-item.seasonal .nav-link::before {
  display: none;
}

.nav-item.seasonal .nav-link:hover {
  background: var(--navy-light);
}

.nav-link-badge {
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  margin-left: auto;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Submenu Flyout */
.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  width: var(--submenu-width);
  background: var(--grey-800);
  border-left: 3px solid var(--navy);
  box-shadow: 8px 0 30px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.25s ease;
  z-index: 40;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu-header {
  padding: 1rem 1.25rem 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  border-bottom: 1px solid var(--grey-700);
  margin-bottom: 0.5rem;
}

.submenu-link {
  display: block;
  padding: 0.7rem 1.25rem;
  color: var(--grey-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.submenu-link:hover {
  background: var(--grey-700);
  color: var(--white);
  padding-left: 1.5rem;
  text-decoration: none;
}

.submenu-divider {
  height: 1px;
  background: var(--grey-700);
  margin: 0.5rem 0;
}

/* Nav CTA & Social */
.nav-cta {
  padding: 1rem 1.5rem;
}

.btn-donate {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--burgundy);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-donate--60,
.btn-donate--inline {
  display: inline-block;
  width: auto;
  padding: 0.875rem 2rem;
  margin: 1rem 0;
  font-size: 1.1rem;
}

.donate-box {
  background: var(--grey-100);
  border-left: 4px solid var(--burgundy);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.donate-box-label {
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.donate-box-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.donate-box-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--grey-700);
}

.donate-box-input {
  width: 120px;
  padding: 0.75rem;
  font-size: 1.25rem;
  border: 2px solid var(--grey-700);
  border-radius: 4px;
  text-align: center;
}

.donate-box-input:focus {
  outline: none;
  border-color: var(--burgundy);
}

.donate-box-input--default {
  color: var(--grey-400);
}

.donate-box-error {
  color: var(--burgundy);
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

.btn-donate:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 41, 66, 0.4);
  text-decoration: none;
}

.nav-social {
  padding: 0.75rem 0;
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.nav-social a {
  color: var(--grey-500);
  transition: color 0.3s;
}

.nav-social a:hover {
  color: var(--white);
}

/* ========================================
   HERO CONTENT
   ======================================== */

.hero-content {
  position: absolute;
  left: var(--nav-width);
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12vh 4rem 4rem 4.5rem;
  z-index: 10;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: var(--burgundy);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  max-width: 700px;
  color: var(--white);
}

.hero-title .highlight {
  color: var(--navy-light);
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 500px;
  color: var(--grey-300);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  position: absolute;
  z-index: 20;
  left: calc(var(--nav-width) + 4.5rem);
  bottom: 12rem;
}

/* Per-slide caption — lower-right of hero */
.hero-slide-caption {
  position: absolute;
  z-index: 2;
  bottom: 11rem;
  right: 0;
  text-align: right;
  max-width: 380px;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 4rem 0.6rem 1.5rem;
  background: rgba(26, 29, 33, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-right: 3px solid var(--burgundy);
}

/* 60th Anniversary logo — bottom-right of hero, above stats bar */
.hero-anniversary-logo {
  position: absolute;
  bottom: 10rem;
  right: 2rem;
  width: 200px;
  z-index: 12;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-anniversary-logo {
    display: none;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--burgundy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 41, 66, 0.4);
  text-decoration: none;
}

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

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-dark);
  text-decoration: none;
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
  background: var(--navy);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-content);
  margin: 0 auto;
}

/* Stats bar inside hero-container — anchored to bottom-right of hero */
.hero-container .stats-bar {
  position: absolute;
  bottom: 0;
  left: var(--nav-width);
  right: 0;
  z-index: 15;
}

.hero-container .stats-grid {
  max-width: none;
  margin: 0;
}

.stat-item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
}

/* ========================================
   SECTIONS
   ======================================== */

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey-900);
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--burgundy);
  margin-top: 0.5rem;
}

.section-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.section-link:hover {
  color: var(--burgundy);
  text-decoration: none;
}

/* News Section */
.news-section {
  padding: 5rem 0;
  background: var(--grey-100);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 2px;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.news-card.featured {
  grid-row: span 2;
}

.news-image {
  height: 180px;
  background: var(--grey-300);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.news-card.featured .news-image {
  height: 100%;
  min-height: 350px;
}

.news-content {
  padding: 1.25rem;
}

.news-card.featured .news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26,29,33,0.95) 0%, rgba(26,29,33,0.8) 60%, transparent 100%);
  color: var(--white);
  padding: 3rem 1.5rem 1.5rem;
  text-align: right;
}

.news-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.news-card.featured .news-date {
  color: var(--grey-400);
}

.news-title {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.news-title a {
  color: inherit;
}

.news-title a:hover {
  text-decoration: none;
  color: var(--burgundy);
}

.news-card.featured .news-title {
  font-size: 1.75rem;
  color: var(--white);
}

.news-card.featured .news-title a {
  color: var(--white);
}

.news-card.featured .news-title a:hover {
  color: var(--burgundy-light);
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.news-card.featured .news-excerpt {
  color: var(--grey-400);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--burgundy);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  color: var(--white);
}

.cta-title .highlight {
  color: var(--burgundy-light);
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Sponsors Section */
.sponsors-section {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--grey-200);
}

.sponsors-section .section-header {
  justify-content: center;
  text-align: center;
}

.sponsors-section .section-title {
  color: var(--navy);
}

.sponsors-section .section-title::after {
  margin-left: auto;
  margin-right: auto;
  background: var(--navy);
}

.sponsors-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.sponsor-item {
  display: block;
}

.sponsor-logo {
  max-height: 120px;
  max-width: 300px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.sponsor-item:hover .sponsor-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.sponsors-placeholder-text {
  color: var(--grey-400);
  font-style: italic;
}

.sponsors-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
}

.sponsors-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--grey-900);
  color: var(--grey-400);
  padding: 4rem 2rem 2rem;
  border-top: 4px solid var(--navy);
}

.footer-content {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  padding-right: 2rem;
}

.footer-logo-img {
  max-width: 120px;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--grey-500);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-content);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--grey-600);
}

/* ========================================
   PAGE LAYOUTS (Interior Pages)
   ======================================== */

.page-container {
  display: flex;
  min-height: 100vh;
  background: var(--grey-900);
}

.page-main {
  flex: 1;
  background: var(--white);
  margin-left: 4px; /* For accent stripe */
  position: relative;
}

.page-main::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--burgundy), var(--navy));
}

.page-header {
  background: var(--grey-100);
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid var(--grey-200);
}

.page-header h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.page-header time {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-hero {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,29,33,0.9) 0%, rgba(26,29,33,0.4) 50%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 3rem;
  color: var(--white);
}

.page-hero-content h1 {
  color: var(--white);
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.page-hero-content time {
  color: var(--grey-400);
}

.page-content {
  padding: 3rem;
  max-width: 900px;
}

/* ========================================
   SPONSOR STRIP
   ======================================== */

.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-item img {
  height: 70px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s;
}

a.sponsor-item:hover img {
  filter: grayscale(0%);
}

/* ========================================
   CALENDAR PAGE
   ======================================== */

.cal-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--navy);
  padding: 0.6rem 1rem;
  margin: 0;
}

.cal-wrap {
  border: 1px solid var(--grey-700);
  overflow: hidden;
  margin-bottom: 2rem;
}

.cal-iframe {
  display: block;
  width: 100%;
  border: none;
}

.cal-iframe--agenda {
  height: 460px;
}

.cal-iframe--full {
  height: 640px;
}

.page-content h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--grey-200);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content a {
  color: var(--navy);
  text-decoration: underline;
}

.page-content a:hover {
  color: var(--burgundy);
}

/* Post navigation */
.post-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
}

.post-nav a {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

/* ========================================
   MOBILE HEADER & MENU
   ======================================== */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--grey-900);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--grey-700);
}

.mobile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-logo {
  height: 60px;
}

.mobile-header-wordmark {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grey-900);
  z-index: 99;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--grey-800);
  font-size: 1.25rem;
}

.mobile-menu .nav-link::before {
  display: none;
}

.mobile-menu .seasonal-mobile {
  background: var(--navy);
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 2px;
  border-bottom: none;
}

.mobile-nav-group {
  border-bottom: 1px solid var(--grey-800);
}

.mobile-nav-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--grey-300);
  padding: 1.25rem 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-toggle::after {
  content: '›';
  font-size: 1.5rem;
  opacity: 0.5;
  transition: transform 0.25s ease;
}

.mobile-nav-toggle.open::after {
  transform: rotate(90deg);
}

.mobile-subnav {
  padding-bottom: 0.75rem;
}

.mobile-subnav-link {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--grey-400);
  font-size: 1rem;
  text-decoration: none;
  border-left: 2px solid var(--navy-light);
  margin-left: 0.5rem;
  transition: color 0.2s;
}

.mobile-subnav-link:hover {
  color: var(--white);
  text-decoration: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .news-page-layout {
    grid-template-columns: 1fr;
  }

  .live-links {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }

  .live-link-card {
    flex: 1 1 220px;
  }

  .news-list-item {
    flex-direction: column;
  }

  .news-list-img {
    order: -1;
    width: 100%;
    max-height: 160px;
  }

  .hero-container {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .vertical-nav {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .hero-backgrounds {
    left: 0;
    position: absolute;
  }

  .hero-accent {
    display: none;
  }

  .hero-content {
    position: relative;
    left: auto;
    padding: 8rem 2rem 3rem;
    height: 50vh;
    overflow: hidden;
  }

  .hero-ctas {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: auto;
    padding: 0 2rem 3rem;
  }


  .hero-indicators {
    right: 2rem;
    bottom: 2rem;
  }

  .hero-slide-caption {
    bottom: 4rem;
    padding-right: 2rem;
    font-size: 0.85rem;
  }

  .hero-container .stats-bar {
    position: static;
  }

  .hero-container .stats-grid {
    max-width: var(--max-content);
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .news-section {
    padding: 4rem 2rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-row: span 1;
  }

  .news-card.featured .news-image {
    min-height: 280px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
    padding-right: 0;
  }

  /* Interior pages */
  .page-container {
    flex-direction: column;
  }

  .page-main {
    margin-left: 0;
  }

  .page-main::before {
    display: none;
  }

  .page-header {
    padding: 6rem 2rem 2rem;
  }

  .page-content {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-content {
    padding: 7rem 1.5rem 3rem;
  }

  .cta-section {
    padding: 4rem 1.5rem;
  }

  .sponsors-section {
    padding: 3rem 1.5rem;
  }

  .footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .sponsors-grid {
    gap: 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home .hero-title,
.home .hero-description,
.home .hero-ctas {
  animation: fadeInUp 0.6s ease forwards;
}

.home .hero-title { animation-delay: 0.1s; opacity: 0; }
.home .hero-description { animation-delay: 0.2s; opacity: 0; }
.home .hero-ctas { animation-delay: 0.3s; opacity: 0; }

/* ========================================
   UTILITIES
   ======================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   NEWS LIST PAGE
   ======================================== */

.news-list {
  margin-top: 2rem;
}

.news-list-item {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey-200);
}

.news-list-img {
  flex-shrink: 0;
  width: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.news-list-content {
  flex: 1;
  min-width: 0;
}

.news-list-item:first-child {
  padding-top: 0;
}

.news-list-item time {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-list-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
  margin-top: 0;
}

.news-list-item h2 a {
  color: var(--grey-900);
  text-decoration: none;
}

.news-list-item h2 a:hover {
  color: var(--burgundy);
}

.news-list-item p {
  color: var(--text-muted);
  margin: 0;
}

/* ========================================
   LIVE LINKS CARDS (News page)
   ======================================== */

.news-page-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  align-items: start;
}

.news-page-layout .news-list {
  margin-top: 0;
}

.live-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 1rem;
}

.live-link-card {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--burgundy);
  padding: 0.85rem 1rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.live-link-card:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  color: var(--white);
}

.live-link-badge {
  display: inline-block;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15em 0.45em;
  border-radius: 2px;
  margin-bottom: -0.5rem;
  align-self: flex-start;
}

.live-link-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
}

.live-link-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 0.6rem 0;
  line-height: 1.4;
  flex: 1;
}

.live-link-cta {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy-light);
}

/* ========================================
   DONATE PAGE STYLES
   ======================================== */

/* Donation method card grid */
.donate-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.donate-card {
  background: var(--grey-100);
  border: 1px solid var(--grey-700);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.donate-card-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-900);
}

.donate-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

/* Zelle QR code */
.zelle-qr-link {
  display: inline-block;
  text-decoration: none;
}

.zelle-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 4px solid white;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
  display: block;
}

.zelle-qr-link:hover .zelle-qr {
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

/* ========================================
   CALENDAR EMBED
   ======================================== */

.calendar-embed {
  background: var(--grey-100);
  padding: 2rem;
  border-radius: 4px;
  margin: 2rem 0;
}

.calendar-embed iframe {
  width: 100%;
  border: none;
}

/* ========================================
   STORE TAB (fixed top-right, sitewide)
   ======================================== */

.store-tab {
  position: fixed;
  top: 0;
  right: 2rem;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 0 0 6px 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s;
}

.store-tab:hover {
  background: var(--navy-light);
  color: var(--white);
  text-decoration: none;
}

.store-tab.has-items {
  background: var(--burgundy);
}

.store-tab.has-items:hover {
  background: var(--burgundy-dark);
}

@media (max-width: 768px) {
  .store-tab {
    display: none;
  }
}

/* ========================================
   STORE
   ======================================== */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.store-empty {
  color: var(--text-muted);
  font-style: italic;
}

.store-product {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.store-product:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy);
}

.product-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--grey-900);
  margin: 0;
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.product-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.donation-input-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.donation-prefix {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
}

.donation-amount {
  width: 100px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--grey-300);
  border-radius: 3px;
  font-size: 1.1rem;
  font-family: 'Oswald', sans-serif;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s;
}

.donation-amount:focus {
  outline: none;
  border-color: var(--navy);
}

.donation-amount.input-error {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 2px rgba(139,41,66,0.2);
}

.btn-add-to-cart {
  margin-top: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}

.btn-add-to-cart:hover {
  background: var(--burgundy-dark);
}

/*  Cart trigger  */

.cart-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.15s;
}

.cart-trigger:hover {
  background: var(--burgundy-dark);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*  Cart overlay  */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/*  Cart drawer  */

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  z-index: 1020;
  background: var(--grey-100);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.cart-close:hover {
  opacity: 1;
}

.cart-items {
  padding: 1rem 1.25rem;
}

.cart-empty {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--grey-300);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cart-item-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--grey-500);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.2rem;
  transition: color 0.15s;
}

.cart-remove:hover {
  color: var(--burgundy);
}

.cart-footer {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding: 1.25rem;
}

.cart-totals {
  margin-bottom: 1.25rem;
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.cart-fee {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cart-total {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--grey-900);
  border-top: 1px solid var(--grey-300);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
}

.cart-fee-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

/*  PayPal loading / processing states  */

.paypal-loading {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 1rem 0;
  animation: paypal-pulse 1.5s ease-in-out infinite;
}

@keyframes paypal-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

#paypalButtonContainer {
  position: relative;
}

#paypalLoadingOverlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  z-index: 9999;
  background: rgba(243, 244, 246, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--grey-700);
  font-style: italic;
}

/*  Order success banner  */

.order-success {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
