/* Gold Beach Youth Wrestling — color tokens and the shared light header.
   Loaded by every page (before site.css); the tournament page loads only this file. */

:root {
  --black: #0B0B0C;        /* page base, hero, stats, coaches, footer */
  --charcoal: #141416;     /* alternate bands: info band, about, sponsors */
  --line: #2A2A2D;         /* hairlines and card borders on dark */
  --gold: #F2B705;         /* buttons, banner, key words, stat numerals, tier panel border */
  --gold-hover: #FFCB2E;   /* hover state for --gold fills and links */
  --gold-antique: #C9A23A; /* header rule, small labels, photo offset block, outlined buttons on dark */
  --gold-deep: #7A5C00;    /* gold text on cream only (header tagline, nav hover) */
  --cream: #F5F2EA;        /* header background */
  --offwhite: #F2EFE6;     /* headings on dark, sponsor logo tiles */
  --text: #D6D2C6;         /* body text on dark */
  --muted: #A8A59C;        /* secondary text on dark */
  --bronze: #C98A4B;       /* bronze tier label */
  --danger: #E3897A;       /* errors and cancellations (unchanged semantic color) */
}

.site-header, .site-header *, .mobile-menu, .mobile-menu * { box-sizing: border-box; }
.site-header a:focus-visible, .site-header button:focus-visible, .mobile-menu a:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

/* ---- Header (light) ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 3px solid var(--gold-antique); box-shadow: 0 6px 22px rgba(0,0,0,0.35); }
.site-header .header-inner { max-width: 1180px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 28px); display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; transition: padding 220ms ease; }
.site-header.is-scrolled .header-inner { padding: 8px clamp(16px, 4vw, 28px); }

.logo-link { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.logo-link:hover { opacity: 0.85; }
.logo-link img { height: 72px; width: auto; flex: 0 0 auto; display: block; transition: height 220ms ease; }
.site-header.is-scrolled .logo-link img { height: 44px; }

.logo-text { display: grid; gap: 3px; min-width: 0; }
.logo-wordmark { display: block; font-family: Oswald, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.1; letter-spacing: 0.09em; text-transform: uppercase; color: var(--black); white-space: nowrap; }
.logo-tagline { display: block; font-family: Oswald, sans-serif; font-weight: 500; font-size: 11px; line-height: 1.1; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; transition: font-size 220ms ease; }
.site-header.is-scrolled .logo-tagline { font-size: 9.5px; }

.nav-desktop { margin-left: auto; display: flex; align-items: center; gap: clamp(13px, 2vw, 22px); font-family: Oswald, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.nav-desktop a.nav-link { color: var(--black); }
.nav-desktop a.nav-link:hover { color: var(--gold-deep); }
.nav-desktop a.nav-link.is-active { color: var(--gold-deep); border-bottom: 2px solid var(--gold-antique); padding-bottom: 3px; }
.nav-register { background: var(--gold); color: var(--black); padding: 12px 18px; font-weight: 600; letter-spacing: 0.14em; min-height: 44px; display: flex; align-items: center; }
.nav-register:hover { background: var(--gold-hover); color: var(--black); }

.nav-toggle { display: none; margin-left: auto; flex: 0 0 auto; align-items: center; gap: 9px; background: transparent; border: 1px solid rgba(11,11,12,0.4); color: var(--black); padding: 0; width: 46px; height: 44px; justify-content: center; cursor: pointer; }
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars span { display: block; width: 18px; height: 2px; background: var(--black); }

.mobile-menu { display: none; border-top: 1px solid rgba(11,11,12,0.15); background: var(--cream); padding: 8px clamp(16px, 4vw, 28px) 20px; grid-template-columns: 1fr; gap: 2px; font-family: Oswald, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.mobile-menu.is-open { display: grid; }
.mobile-menu a { color: var(--black); padding: 15px 2px; border-bottom: 1px solid rgba(11,11,12,0.12); }
.mobile-menu a.is-active { color: var(--gold-deep); }
.mobile-menu a.mobile-register { margin-top: 14px; background: var(--gold); color: var(--black); font-weight: 600; letter-spacing: 0.14em; text-align: center; padding: 16px 20px; border-bottom: none; }

@media (min-width: 1040px) {
  .nav-toggle, .mobile-menu { display: none !important; }
}
@media (max-width: 1039px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .logo-link img, .site-header.is-scrolled .logo-link img { height: 44px; }
  .logo-wordmark { font-size: 13px; letter-spacing: 0.05em; white-space: normal; }
  .logo-tagline, .site-header.is-scrolled .logo-tagline { font-size: 9px; letter-spacing: 0.13em; }
}
