/*
Theme Name:        WBA Theme
Theme URI:         https://warragulbasketball.com.au/
Author:            Warragul Basketball Association
Description:       Custom WordPress theme for the Warragul Basketball Association — Campaign-style design, mobile-first, WooCommerce-ready.
Version:           8.0
Requires at least: 6.0
Requires PHP:      7.4
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       wba
*/

/* =============================================================
   BRAND TOKENS
   ============================================================= */
:root {
  --wba-white:    #FFFFFF;
  --wba-offwhite: #F8F8F6;
  --wba-cream:    #FAF6EE;
  --wba-dark:     #1A1A1A;
  --wba-red:      #C1272D;
  --wba-red-d:    #9B1D22;
  --wba-orange:   #F7931E;
  --wba-border:   #E6E6E2;
  --wba-muted:    #888888;
  --font-sans:    'Montserrat', system-ui, -apple-system, sans-serif;
  --container:    1400px;
  --container-narrow: 1180px;
  --gutter-d:     56px;
  --gutter-m:     24px;
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--wba-dark);
  background: var(--wba-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--wba-red); }
a:hover { color: var(--wba-dark); }

/* WP admin bar offset */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--wba-dark);
  color: var(--wba-white);
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* =============================================================
   TYPE UTILITIES
   ============================================================= */
.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wba-muted);
  margin: 0;
}
.tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-style: italic;
  color: var(--wba-red);
  margin: 0;
  text-transform: lowercase;
}

/* Bracket-style tag pill — Campaign signature */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--wba-white);
  background: var(--wba-red);
  padding: 8px 16px;
  text-decoration: none;
  font-family: inherit;
}
.tag::before { content: "[ "; opacity: 0.55; font-weight: 400; }
.tag::after  { content: " ]"; opacity: 0.55; font-weight: 400; }
.tag--white { background: var(--wba-white); color: var(--wba-dark); }
.tag--ghost { background: transparent; color: var(--wba-red); border: 1px solid currentColor; }

/* Lowercase display heading — Campaign signature */
.h-display {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-transform: lowercase;
  margin: 0;
  color: var(--wba-dark);
}
.h-display em { font-style: italic; font-weight: 300; }
.h-display strong { font-weight: 800; font-style: normal; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  padding: 18px 30px;
  text-decoration: none;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn--primary { background: var(--wba-red); color: var(--wba-white); border-color: var(--wba-red); }
.btn--primary:hover { background: var(--wba-dark); color: var(--wba-white); border-color: var(--wba-dark); }
.btn--white { background: var(--wba-white); color: var(--wba-dark); border-color: var(--wba-white); }
.btn--white:hover { background: transparent; color: var(--wba-white); border-color: var(--wba-white); }
.btn--ghost-light { color: var(--wba-white); border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: var(--wba-white); color: var(--wba-dark); border-color: var(--wba-white); }
.btn--ghost-dark { color: var(--wba-dark); border-color: var(--wba-dark); }
.btn--ghost-dark:hover { background: var(--wba-dark); color: var(--wba-white); }
.btn__icon { font-size: 1.05em; line-height: 1; display: inline-flex; align-items: center; }

/* Inline animated link */
.learn-more {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--wba-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
  align-self: flex-start;
  transition: gap 0.25s ease, color 0.25s ease;
}
.learn-more::after { content: "→"; }
.learn-more:hover { gap: 14px; color: var(--wba-dark); }

/* =============================================================
   FOCUS STATES (accessibility)
   ============================================================= */
:focus-visible {
  outline: 2px solid var(--wba-orange);
  outline-offset: 2px;
}
.btn:focus-visible,
.tag:focus-visible {
  outline-offset: 4px;
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
