/*
Theme Name: Women's Hockey Hub
Theme URI: https://example.com/womens-hockey-hub
Author: Women's Hockey Hub
Author URI: https://example.com
Description: A mobile-first, responsive WordPress theme for sharing women's ice hockey programs across the GTA and Ontario.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: womens-hockey-hub
Tags: custom-logo, custom-background, custom-colors, custom-menu, featured-images, block-styles, wide-blocks, accessibility-ready, responsive-layout, sports
*/

:root {
  --whh-primary: #003b73;
  --whh-secondary: #d71920;
  --whh-accent: #ffffff;
  --whh-black: #07090d;
  --whh-dark: #101624;
  --whh-text: #121826;
  --whh-muted: #596272;
  --whh-bg: #ffffff;
  --whh-surface: #f5f7fb;
  --whh-card: #ffffff;
  --whh-border: #dbe2ee;
  --whh-shadow: 0 18px 45px rgba(6, 12, 24, 0.12);
  --whh-radius: 18px;
  --whh-max-width: 1180px;
}

[data-theme="dark"] {
  --whh-text: #f7f9fc;
  --whh-muted: #bac4d6;
  --whh-bg: #080c14;
  --whh-surface: #111827;
  --whh-card: #141d2d;
  --whh-border: #273348;
  --whh-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--whh-text);
  background-color: var(--whh-bg);
  background-image: var(--whh-bg-image, none);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--whh-bg) 85%, transparent);
  pointer-events: none;
  z-index: -1;
}
a { color: var(--whh-primary); text-decoration-thickness: 0.12em; text-underline-offset: 0.18em; }
a:hover, a:focus { color: var(--whh-secondary); }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto !important; clip-path: none; height: auto; left: 1rem; top: 1rem; width: auto;
  background: var(--whh-secondary); color: #fff; padding: .75rem 1rem; z-index: 9999;
}
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--whh-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--whh-border);
}
.header-inner {
  max-width: var(--whh-max-width); margin: 0 auto; padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-branding { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.site-logo img { display: block; width: auto; max-height: 54px; }
.site-title { margin: 0; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.1; font-weight: 900; letter-spacing: -.03em; }
.site-title a { color: var(--whh-text); text-decoration: none; }
.site-description { margin: .1rem 0 0; color: var(--whh-muted); font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.menu-toggle, .theme-toggle {
  border: 1px solid var(--whh-border); background: var(--whh-card); color: var(--whh-text);
  min-height: 44px; border-radius: 999px; padding: .55rem .8rem; cursor: pointer; font-weight: 800;
}
.menu-toggle { display: inline-flex; align-items: center; gap: .45rem; }
.hamburger, .hamburger::before, .hamburger::after { display:block; width: 20px; height: 2px; background: currentColor; border-radius: 10px; content:""; }
.hamburger::before { transform: translateY(-6px); }
.hamburger::after { transform: translateY(4px); }
.main-navigation { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); background: var(--whh-card); border: 1px solid var(--whh-border); border-radius: var(--whh-radius); box-shadow: var(--whh-shadow); padding: .75rem; }
.main-navigation.is-open { display: block; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a { display: block; padding: .8rem 1rem; color: var(--whh-text); text-decoration: none; border-radius: 12px; font-weight: 800; }
.main-navigation a:hover, .main-navigation a:focus, .main-navigation .current-menu-item > a { background: var(--whh-primary); color: #fff; }
.hero {
  min-height: 180px; max-height: 20vh; overflow: hidden; position: relative; display: grid; place-items: center; isolation: isolate;
  background: linear-gradient(120deg, var(--whh-primary), var(--whh-black));
}
.hero.has-image { background-size: cover; background-position: center; }
.hero::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,59,115,.45), rgba(215,25,32,.35)); z-index:-1; }
.hero-content { width: min(var(--whh-max-width), calc(100% - 2rem)); color: #fff; padding: 2rem 0; }
.hero-kicker { display: inline-flex; align-items: center; gap:.5rem; margin:0 0 .4rem; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 900; }
.hero-kicker::before { content:""; width: 28px; height: 4px; border-radius: 10px; background: var(--whh-secondary); }
.hero h1 { font-size: clamp(1.8rem, 5vw, 4rem); line-height: .95; margin: 0; max-width: 850px; letter-spacing: -.05em; }
.hero p { margin: .7rem 0 0; max-width: 720px; font-size: clamp(1rem, 2vw, 1.2rem); }
.container { max-width: var(--whh-max-width); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 1rem; }
.content-card { background: var(--whh-card); border: 1px solid var(--whh-border); border-radius: var(--whh-radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--whh-shadow); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.03em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--whh-muted); }
.button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; background: var(--whh-secondary); color: #fff !important; padding: .75rem 1.15rem; text-decoration: none; font-weight: 900; border: 0; }
.button:hover, .button:focus, .wp-block-button__link:hover { background: var(--whh-primary); color: #fff !important; }
.grid { display: grid; gap: 1rem; }
.location-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.location-card, .activity-card { background: var(--whh-card); border: 1px solid var(--whh-border); border-radius: var(--whh-radius); padding: 1.2rem; box-shadow: var(--whh-shadow); position: relative; overflow: hidden; }
.location-card::before, .activity-card::before { content:""; position:absolute; inset:0 0 auto; height: 5px; background: linear-gradient(90deg, var(--whh-primary), var(--whh-secondary)); }
.location-card h2, .activity-card h3 { margin-top: .4rem; }
.activity-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.placeholder-link { display: inline-flex; margin-top: .5rem; font-weight: 900; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.wp-block-image img { border-radius: var(--whh-radius); }
.alignwide { max-width: min(1300px, calc(100vw - 2rem)); margin-left: auto; margin-right: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.site-footer { border-top: 1px solid var(--whh-border); background: var(--whh-black); color: #fff; }
.footer-inner { max-width: var(--whh-max-width); margin: 0 auto; padding: 1.5rem 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-inner a { color: #fff; }
@media (min-width: 800px) {
  .menu-toggle { display: none; }
  .main-navigation { display: block; position: static; background: transparent; border: 0; box-shadow: none; padding: 0; }
  .main-navigation ul { display: flex; align-items: center; gap: .25rem; }
  .main-navigation a { padding: .55rem .85rem; }
  .hero { min-height: 190px; }
}
@media (max-width: 520px) {
  .site-description { display:none; }
  .hero { max-height: none; min-height: 220px; }
  .hero h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
