/* ==========================================================================
   Buckhorn Wrestling — CSS
   Brand: Navy Blue (#1b2a4a), Gold (#c8a84e), Grey (#f4f4f4)
   ========================================================================== */
:root {
  --navy: #1b2a4a;
  --navy-dark: #111d33;
  --navy-light: #2a3f6b;
  --gold: #c8a84e;
  --gold-hover: #b8952f;
  --gold-glow: rgba(200,168,78,0.15);
  --grey: #f4f4f4;
  --grey-dark: #e0e0e0;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --border: #ddd;
  --radius: 8px;
  --max-width: 1100px;
  --transition: 0.2s ease;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Dark theme */
[data-theme="dark"] {
  --grey: #1a1a2e;
  --grey-dark: #111;
  --white: #0f0f1a;
  --text: #e6e6e6;
  --text-light: #aaa;
  --text-muted: #777;
  --border: #333;
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}
[data-theme="dark"] body { background: var(--white); }
[data-theme="dark"] .card,
[data-theme="dark"] .faq-item { background: #1a1a2e; border-color: #333; }
[data-theme="dark"] .section-light { background: #1a1a2e; }
[data-theme="dark"] .section-light h2,
[data-theme="dark"] .section-light h3,
[data-theme="dark"] .section-light p { color: var(--text); }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #0a0f1a 0%, #1b2a4a 100%); }
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: #1a1a2e; color: var(--text); border-color: #444; }

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.3px; color: var(--navy); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: var(--white); }
h1 { font-size: 2.8rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }

/* Skip Link */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  background: var(--gold); color: var(--navy); padding: 12px 24px;
  border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); border-bottom: 2px solid var(--gold);
}
.nav-container {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; min-height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 1.1rem; color: var(--white);
  text-decoration: none;
}
.nav-logo .logo-icon { color: var(--gold); font-size: 1.4rem; }
.nav-logo span { color: var(--gold); }
.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: none;
  cursor: pointer; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius); transition: var(--transition);
  min-height: 44px; display: flex; align-items: center;
}
.nav-links a:hover { color: var(--gold); background: rgba(255,255,255,0.1); }
.nav-links a[aria-current="page"] { color: var(--gold); background: rgba(200,168,78,0.15); border-bottom: 2px solid var(--gold); }

/* Floating Contrast Quick Toggle (right side, above chat) */
.contrast-quick-btn {
  position: fixed; bottom: 92px; right: 24px; z-index: 993;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold); color: var(--gold);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all 0.3s; padding: 0;
}
.contrast-quick-btn:hover { background: var(--gold); color: var(--navy); }
.contrast-quick-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contrast-quick-btn .hc-on { display: none; }
body.high-contrast .contrast-quick-btn .hc-off { display: none; }
body.high-contrast .contrast-quick-btn .hc-on { display: block; }
body.high-contrast .contrast-quick-btn { background: var(--gold); color: var(--navy); }
@media (max-width: 480px) {
  .contrast-quick-btn { bottom: 84px; right: 16px; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px; background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.9rem; text-align: center;
  max-width: 80%; background: rgba(0,0,0,0.5); padding: 8px 16px; border-radius: 6px;
}
.gallery-item { cursor: pointer; }
.gallery-item[tabindex] { outline: none; }
.gallery-item[tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Language Toggle */
.lang-toggle {
  width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); padding: 0; margin-left: 4px;
  font-weight: 800; font-size: 0.75rem; letter-spacing: 0.5px;
  font-family: var(--font);
}
.lang-toggle:hover { background: rgba(255,255,255,0.1); }

.theme-toggle {
  width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); padding: 0; margin-left: 8px;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); }
.theme-toggle svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 16px 24px; gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { width: 100%; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: var(--radius); font-weight: 700;
  font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  min-height: 48px; transition: all var(--transition); line-height: 1.2;
  text-decoration: none; font-family: var(--font);
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--navy); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(200,168,78,0.3); }
.btn-secondary { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; min-height: 40px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 100px 24px 80px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -15%; width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: var(--gold-glow); color: var(--gold);
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
  border: 1px solid rgba(200,168,78,0.3); margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 .accent { color: var(--gold); }
.hero-tagline { font-size: 1.3rem; color: rgba(255,255,255,0.85); font-weight: 400; max-width: 640px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 900; color: var(--gold); display: block; }
.hero-stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 768px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 2rem; }
  .hero-tagline { font-size: 1.1rem; }
  .hero-stats { gap: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 320px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 80px 24px; }
.section-light { background: var(--grey); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.8); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-overline {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--gold); margin-bottom: 8px;
}

@media (max-width: 480px) {
  .section { padding: 48px 16px; }
  .section-title { margin-bottom: 32px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; transition: all 0.3s;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px; height: 48px; background: var(--gold-glow); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--gold);
}
.card-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.6; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden; background: var(--white);
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: none; border: none; color: var(--text);
  font-size: 1rem; font-weight: 600; cursor: pointer; text-align: left;
  min-height: 48px; font-family: var(--font);
}
.faq-question .arrow { font-size: 0.7rem; transition: transform 0.3s; color: var(--text-muted); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 24px 18px; font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* ==========================================================================
   Roster Table
   ========================================================================== */
.roster-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.roster-table th,
.roster-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.roster-table th {
  background: var(--navy); color: var(--gold); font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}
.roster-table tr:hover { background: var(--gold-glow); }
.roster-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   Schedule
   ========================================================================== */
.schedule-list { max-width: 760px; margin: 0 auto; }
.schedule-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.schedule-date {
  flex-shrink: 0; width: 64px; height: 64px; background: var(--navy);
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--white);
}
.schedule-date .month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.schedule-date .day { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.schedule-info h3 { font-size: 1rem; margin-bottom: 4px; }
.schedule-info p { font-size: 0.88rem; color: var(--text-light); margin: 0; }
.schedule-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; letter-spacing: 0.5px;
}
.badge-home { background: var(--gold-glow); color: var(--gold-hover); }
.badge-away { background: rgba(27,42,74,0.1); color: var(--navy); }
[data-theme="dark"] .badge-away { background: rgba(200,168,78,0.1); color: var(--gold); }
.badge-tournament { background: rgba(200,50,50,0.1); color: #c33; }

@media (max-width: 480px) {
  .schedule-item { flex-wrap: wrap; }
  .schedule-badge { margin-left: auto; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 360px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: var(--grey); position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--text-muted); font-size: 0.9rem;
  background: var(--grey);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font); min-height: 48px;
  transition: border-color var(--transition); background: var(--white); color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); outline: none; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { color: var(--gold); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-detail-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px;
  background: rgba(200,168,78,0.15); display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-detail-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-detail-text h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 2px; }
.contact-detail-text p { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin: 0; }
.contact-detail-text a { color: var(--gold); }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-link {
  width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: all var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy); }
.social-link svg { width: 20px; height: 20px; }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 250px; border: 0; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page Content
   ========================================================================== */
.page-content { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.page-content h1 { margin-bottom: 24px; }
.page-content h2 { margin-top: 32px; margin-bottom: 12px; }
.page-content p { margin-bottom: 16px; color: var(--text-light); }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content li { margin-bottom: 8px; color: var(--text-light); }
.page-content strong { color: var(--text); }
.page-content a { color: var(--gold); text-decoration: underline; }

/* Page Hero (for subpages) */
.page-hero {
  background: var(--navy); color: var(--white); padding: 64px 24px; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-dark); border-top: 2px solid var(--gold); padding: 64px 0 0; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-col h2 { font-size: 0.9rem; font-weight: 700; color: var(--gold); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center; padding: 24px 0; margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy); color: var(--white); padding: 20px 24px;
  border-top: 2px solid var(--gold); display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin: 0; flex: 1; }
.cookie-inner a { color: var(--gold); }
.cookie-buttons { display: flex; gap: 12px; }

/* ==========================================================================
   Accessibility Panel
   ========================================================================== */
.a11y-btn {
  position: fixed; bottom: 24px; left: 24px; z-index: 992;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold); color: var(--gold);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: all 0.3s; padding: 0;
}
.a11y-btn:hover { background: var(--gold); color: var(--navy); }
.a11y-btn svg { width: 22px; height: 22px; }

.a11y-dialog { border: none; padding: 0; max-width: 400px; width: 90vw; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
.a11y-dialog::backdrop { background: rgba(0,0,0,0.5); }
.a11y-dialog-inner { padding: 32px; }
.a11y-dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.a11y-dialog-header h2 { font-size: 1.2rem; }
.a11y-dialog-close { width: 40px; height: 40px; background: none; border: 1px solid var(--border); border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; }
.a11y-control-group { margin-bottom: 20px; }
.a11y-control-label { font-size: 0.85rem; font-weight: 700; color: var(--text); display: block; margin-bottom: 8px; }
.a11y-size-btns { display: flex; gap: 8px; }
.a11y-size-btn {
  flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 6px;
  background: none; font-size: 0.82rem; cursor: pointer; min-height: 44px;
  font-family: var(--font); color: var(--text); transition: all var(--transition);
}
.a11y-size-btn.active,
.a11y-size-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.a11y-toggle-row { display: flex; justify-content: space-between; align-items: center; }
.a11y-toggle {
  width: 48px; height: 28px; border-radius: 14px; background: var(--border);
  border: none; cursor: pointer; position: relative; transition: background 0.3s;
}
.a11y-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); transition: transform 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.a11y-toggle[aria-checked="true"] { background: var(--gold); }
.a11y-toggle[aria-checked="true"]::after { transform: translateX(20px); }

/* ==========================================================================
   Accessibility Overrides
   ========================================================================== */
body.high-contrast { background: #000 !important; color: #fff !important; }
body.high-contrast * { border-color: #fff !important; }
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4 { color: #0ff !important; }
body.high-contrast a { color: #ff0 !important; }
body.high-contrast .btn-primary { background: #ff0; color: #000; border-color: #ff0; }
body.high-contrast .card, body.high-contrast .faq-item { background: #111; }

body.link-highlight a { background: rgba(200,168,78,0.2); outline: 2px solid var(--gold); border-radius: 3px; }
.reading-guide {
  position: fixed; left: 0; right: 0; height: 40px; pointer-events: none;
  background: rgba(200,168,78,0.1); border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold); z-index: 9998; display: none;
}
body.reading-guide-active .reading-guide { display: block; }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;
}

/* ==========================================================================
   Utilities & Focus
   ========================================================================== */
*:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }

/* 404 */
.error-page { text-align: center; padding: 120px 24px; }
.error-page .error-code { font-size: 8rem; font-weight: 900; color: var(--gold); line-height: 1; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .card, .faq-item { border: 1px solid ButtonText; }
}
/* ==========================================================================
   Floating Chat Button + Panel
   ========================================================================== */
.chat-stack {
  position: fixed; bottom: 24px; right: 24px; z-index: 993;
}
.chat-btn {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold);
  border: none; color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(200,168,78,0.4); transition: all 0.25s; padding: 0;
}
.chat-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(200,168,78,0.5); }
.chat-btn svg { width: 24px; height: 24px; }
.chat-btn .chat-icon-close { display: none; }
.chat-btn.chat-active .chat-icon-open { display: none; }
.chat-btn.chat-active .chat-icon-close { display: block; }
.chat-btn.chat-active { background: var(--navy); color: var(--gold); border: 2px solid var(--gold); }

.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 994;
  width: 380px; max-height: calc(100vh - 140px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow-y: auto; transform: translateY(20px) scale(0.95);
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.chat-panel.chat-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.chat-panel-inner { padding: 24px; }
.chat-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.chat-panel-header h3 { font-size: 1.1rem; margin: 0; }
.chat-panel-close {
  width: 36px; height: 36px; background: none; border: 1px solid var(--border);
  border-radius: 50%; font-size: 1.2rem; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.chat-panel-sub { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; }
.chat-form { display: flex; flex-direction: column; gap: 14px; }
.chat-form input,
.chat-form textarea {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.92rem; font-family: var(--font); min-height: 44px;
  background: var(--white); color: var(--text);
}
.chat-form textarea { min-height: 80px; resize: vertical; }
.chat-form input:focus,
.chat-form textarea:focus { border-color: var(--gold); outline: none; }
.chat-disclaimer { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

.chat-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 992;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.chat-overlay.chat-open { opacity: 1; visibility: visible; }

@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 90px; }
  .chat-stack { bottom: 16px; right: 16px; }
}

/* ==========================================================================
   Social Embed Containers
   ========================================================================== */
.embed-responsive {
  position: relative; width: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--grey);
}
.embed-responsive-16by9 { aspect-ratio: 16/9; }
.embed-responsive-4by5 { aspect-ratio: 4/5; }
.embed-responsive-9by16 { aspect-ratio: 9/16; max-height: 600px; }
.embed-responsive iframe,
.embed-responsive .embed-placeholder {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.embed-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem; gap: 8px; text-align: center; padding: 24px;
}
.embed-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }
.social-embed-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.social-embed-card { }
.social-embed-card h3 { margin-bottom: 12px; font-size: 1rem; }

/* Calendly responsive */
.calendly-embed { max-width: 700px; margin: 0 auto; }
.calendly-inline-widget { border-radius: var(--radius); overflow: hidden; }
@media (max-width: 480px) {
  .calendly-inline-widget { min-height: 800px !important; height: auto !important; }
}

/* Resource Links */
.resource-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 800px; margin: 0 auto; }
.resource-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: all 0.3s; min-height: 48px;
}
.resource-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.resource-card-icon {
  flex-shrink: 0; width: 44px; height: 44px; background: var(--gold-glow);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.resource-card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.resource-card-text strong { display: block; font-size: 1rem; color: var(--navy); }
[data-theme="dark"] .resource-card-text strong { color: var(--gold); }
.resource-card-text span { font-size: 0.85rem; color: var(--text-light); }

/* Fundraiser cards */
.fundraiser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.fundraiser-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: all 0.3s;
}
.fundraiser-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fundraiser-card-icon {
  width: 56px; height: 56px; background: var(--gold-glow); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--gold);
}
.fundraiser-card-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fundraiser-card h3 { margin-bottom: 8px; }
.fundraiser-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .site-footer, .a11y-btn, .cookie-banner, .skip-link,
  .chat-stack, .chat-panel, .chat-overlay { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8rem; }
}
