/* DMV Throwers — Shared stylesheet for all main site pages */

/* RESET + VARIABLES */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #D42B2B;
  --red-dark: #b01f1f;
  --navy: #1a2744;
  --navy-deep: #0e1833;
  --cream: #f5f0e8;
  --cream-mid: #f0ebe0;
  --border: #d4cebc;
  --text-muted: #6a7a9a;
  --text-body: #3a4a6a;
  --caps-track: 0.12em;
  --caps-track-tight: 0.1em;
}
html {
  scroll-behavior: smooth;
}
body { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; background: var(--cream); color: var(--navy); line-height: 1.6; text-rendering: optimizeLegibility; }
img, svg, video, canvas { max-width: 100%; height: auto; }
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }

/* Better keyboard visibility and readability */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* TOP BAR */
#top-bar { background: var(--red); padding: 9px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
#top-bar span { font-size: 0.72rem; color: white; letter-spacing: var(--caps-track); font-weight: 600; }
#top-bar a { font-size: 0.72rem; color: white; letter-spacing: var(--caps-track-tight); font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* NAV */
nav { background: var(--cream); border-bottom: 1px solid var(--border); padding: 0 24px; position: sticky; top: 0; z-index: 200; will-change: transform; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.nav-brand-text-main { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.1rem; line-height: 1; color: var(--navy); }
.nav-brand-text-sub { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--red); font-weight: 700; margin-top: 2px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { cursor: pointer; letter-spacing: 0.11em; font-size: 0.72rem; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; color: var(--navy); text-decoration: none; }
.nav-link:hover, .nav-link.active { border-bottom-color: var(--red); color: var(--red); }
.nav-vsyc { background: var(--navy); color: white !important; padding: 7px 14px !important; font-size: 0.68rem !important; font-weight: 700 !important; border-bottom: none !important; white-space: nowrap; transition: background 0.2s !important; }
.nav-vsyc:hover { background: var(--red) !important; border-bottom: none !important; }
.nav-donate { background: #13C3A3; color: white !important; padding: 7px 14px !important; font-size: 0.68rem !important; font-weight: 700 !important; border-bottom: none !important; white-space: nowrap; transition: background 0.2s !important; }
.nav-donate:hover { background: #0f9d84 !important; border-bottom: none !important; }

/* HAMBURGER / MOBILE MENU */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); }
.mobile-menu { display: none; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; gap: 16px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.85rem; letter-spacing: 0.12em; font-weight: 600; color: var(--navy); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .mobile-vsyc { background: var(--navy); color: white; padding: 10px 16px; border-bottom: none; font-weight: 700; }
.mobile-menu .mobile-donate { background: #13C3A3; color: white; padding: 10px 16px; border-bottom: none; font-weight: 700; }

/* SECTIONS */
.section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.section-bg-white { background: white; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-bg-navy { background: var(--navy); content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-bg-cream { background: var(--cream); }
.red-tag { display: inline-block; background: var(--red); color: white; font-size: 0.65rem; letter-spacing: 0.18em; padding: 4px 12px; font-weight: 700; margin-bottom: 16px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.05; color: var(--navy); margin-bottom: 8px; }
.section-title.light { color: white; }
.divider { width: 48px; height: 3px; background: var(--red); margin: 16px 0 28px; }

/* Shared section intro rhythm for long-form readability */
.section-intro,
.about-desc,
.events-desc,
.resources-desc,
.contact-desc,
.gallery-desc-p {
  max-width: 68ch;
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 14px 32px; font-weight: 700; letter-spacing: 0.095em; font-size: 0.82rem; text-decoration: none; cursor: pointer; border: none; transition: background 0.2s, transform 0.1s; font-family: 'DM Sans', sans-serif; touch-action: manipulation; }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline-red { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: white; }
.btn-outline-white { background: transparent; border: 2px solid white; color: white; }
.btn-outline-white:hover { background: white; color: var(--navy); }

/* IMAGES */
.header-logo, .nav-logo { width: 38px; height: 38px; object-fit: contain; }
.footer-logo { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.8; }

/* FOOTER */
footer { background: var(--navy); padding: 40px 24px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-link { color: #a0a8c0; font-size: 0.8rem; text-decoration: none; margin: 0 10px; transition: color 0.2s; }
.footer-link:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #2a3a5a; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 0.75rem; color: #4a5a7a; }
/* footer brand text — two naming conventions used across pages */
.footer-title, .footer-brand-main { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1rem; color: white; }
.footer-subtitle, .footer-brand-sub { font-size: 0.6rem; letter-spacing: 0.16em; color: #D42B2B; font-weight: 700; }
.footer-vsyc, .footer-vsyc-link { color: #C9A84C; font-weight: 700; }

/* HERO SKYLINE DECORATION (full-screen #hero pages) */
.hero-skyline { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; pointer-events: none; }
.hero-skyline img { width: 100%; height: 100%; opacity: 0.18; display: block; }

/* PAGE HERO (compact header for sub-pages) */
.page-hero { background: var(--navy); position: relative; overflow: hidden; padding: 48px 24px 80px; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 32px 32px; }
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-title { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.5rem); color: white; line-height: 1.05; margin: 10px 0 8px; }
.page-hero-sub { font-size: 0.75rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.55); font-weight: 600; }
.page-hero-skyline { position: absolute; bottom: 0; left: 0; right: 0; height: 70px; pointer-events: none; }
.page-hero-skyline img { width: 100%; height: 100%; opacity: 0.15; display: block; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  #top-bar { justify-content: center; text-align: center; padding: 8px 12px; gap: 8px; }
  #top-bar span { flex: 1 1 100%; }
  #top-bar span, #top-bar a { font-size: 0.66rem; letter-spacing: 0.09em; }
  #top-bar a { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.55); text-decoration: none; }
  nav { padding: 0 14px; }
  .nav-brand-text-main { font-size: 0.95rem; }
  .nav-brand-text-sub { font-size: 0.52rem; letter-spacing: 0.12em; }
  .section { padding: 64px 18px; }
  .page-hero { padding: 40px 18px 72px; }
  .page-hero-sub { letter-spacing: 0.14em; }
  .btn { font-size: 0.76rem; padding: 12px 22px; letter-spacing: 0.08em; }
  .footer-link { margin: 0 6px 8px 0; display: inline-block; }
  .footer-copy { font-size: 0.72rem; line-height: 1.5; }
}

@media (max-width: 375px) {
  #top-bar span, #top-bar a { letter-spacing: 0.075em; }
  .page-hero-sub { font-size: 0.68rem; letter-spacing: 0.1em; line-height: 1.45; }
  .footer-copy { font-size: 0.69rem; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  #top-bar, nav, .mobile-menu, .hero-skyline, .page-hero-skyline,
  .hero-dots, .mobile-quick-actions, .skip-link,
  .hamburger { display: none !important; }
  body { background: #fff; color: #000; }
  .section-bg-navy { background: #fff; }
  .section-title { color: #000; }
  .red-tag { background: #000; color: #fff; }
  footer { background: #fff; border-top: 1px solid #ccc; }
  .footer-title, .footer-brand-main, .footer-copy { color: #333; }
  a { color: #000; text-decoration: underline; }
}
