/*
Theme Name: Huron Cornhole
Theme URI: https://example.com/huron-cornhole
Author: Huron Cornhole
Description: A responsive, Elementor Pro-compatible WordPress theme for cornhole leagues, events, standings, results, sponsors, and news.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
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: huron-cornhole
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, block-styles, wide-blocks
*/

:root {
  --hc-navy: #011945;
  --hc-deep-blue: #052f67;
  --hc-royal-blue: #06459c;
  --hc-blue: #017aef;
  --hc-highlight: #048cf7;
  --hc-gold: #fbbd3b;
  --hc-white: #ffffff;
  --hc-ice: #eef7ff;
  --hc-ink: #07152e;
  --hc-muted: #61708a;
  --hc-border: #d6e3f2;
  --hc-radius: 18px;
  --hc-shadow: 0 14px 40px rgba(1, 25, 69, .14);
  --hc-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--hc-ink); background: #fff; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--hc-royal-blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--hc-blue); }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: .75rem 1rem; margin: .5rem; background: #fff; color: var(--hc-navy); z-index: 100000; }
.hc-container { width: min(calc(100% - 2rem), var(--hc-content)); margin-inline: auto; }
.hc-content { min-height: 55vh; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(1,25,69,.97); border-bottom: 3px solid var(--hc-gold); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; align-items: center; min-width: 220px; }
.custom-logo-link img, .hc-default-logo { display: block; width: min(390px, 42vw); max-height: 72px; object-fit: contain; object-position: left center; }
.site-title { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.site-title a { color: #fff; text-decoration: none; }
.primary-menu { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.primary-menu li { position: relative; }
.primary-menu a { color: #fff; font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--hc-gold); }
.primary-menu .sub-menu { display: none; position: absolute; min-width: 220px; top: 100%; right: 0; margin: 0; padding: .6rem; list-style: none; border-radius: 10px; background: var(--hc-navy); box-shadow: var(--hc-shadow); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: .65rem .8rem; }
.menu-toggle { display: none; padding: .65rem .8rem; color: #fff; background: transparent; border: 2px solid var(--hc-gold); border-radius: 8px; font-weight: 800; }

.hc-hero { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 9rem) 0; color: #fff; background: linear-gradient(120deg, rgba(1,25,69,.97), rgba(6,69,156,.88)), var(--hc-hero-image, none) center/cover; }
.hc-hero::after { content: ""; position: absolute; inset: auto -8% -90px; height: 185px; background: rgba(4,140,247,.24); border-radius: 50% 50% 0 0; transform: rotate(-3deg); }
.hc-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hc-kicker { display: inline-block; margin-bottom: .8rem; color: var(--hc-gold); font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hc-hero h1 { max-width: 760px; margin: 0 0 1rem; font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.hc-hero p { max-width: 650px; margin: 0 0 2rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #dcecff; }
.hc-hero-logo { filter: drop-shadow(0 20px 25px rgba(0,0,0,.25)); }
.hc-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hc-button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border: 2px solid var(--hc-gold); border-radius: 999px; background: var(--hc-gold); color: var(--hc-navy); font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; transition: transform .2s, box-shadow .2s, background .2s; }
.hc-button:hover, .wp-block-button__link:hover { color: var(--hc-navy); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(251,189,59,.25); }
.hc-button--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.55); }
.hc-button--ghost:hover { color: #fff; background: rgba(255,255,255,.1); }

.hc-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.hc-section--tint { background: var(--hc-ice); }
.hc-section--navy { color: #fff; background: var(--hc-navy); }
.hc-section-heading { margin: 0 0 2.2rem; }
.hc-section-heading h2 { margin: .25rem 0; color: var(--hc-navy); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; text-transform: uppercase; }
.hc-section--navy .hc-section-heading h2 { color: #fff; }
.hc-section-heading p { max-width: 650px; margin: .6rem 0 0; color: var(--hc-muted); }
.hc-section--navy .hc-section-heading p { color: #c7d9ee; }
.hc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hc-card { overflow: hidden; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); background: #fff; box-shadow: var(--hc-shadow); }
.hc-card__image { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: linear-gradient(135deg, var(--hc-blue), var(--hc-navy)); }
.hc-card__body { padding: 1.4rem; }
.hc-card h3 { margin: 0 0 .55rem; color: var(--hc-navy); font-size: 1.3rem; line-height: 1.2; }
.hc-card h3 a { color: inherit; text-decoration: none; }
.hc-meta { color: var(--hc-muted); font-size: .9rem; font-weight: 700; }
.hc-card__accent { border-top: 5px solid var(--hc-gold); }
.hc-stat { padding: 1.6rem; border-radius: var(--hc-radius); background: linear-gradient(145deg, var(--hc-deep-blue), var(--hc-royal-blue)); color: #fff; box-shadow: var(--hc-shadow); }
.hc-stat strong { display: block; color: var(--hc-gold); font-size: 2rem; line-height: 1; }

.hc-table-wrap { overflow-x: auto; border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); }
.hc-table { width: 100%; border-collapse: collapse; background: #fff; }
.hc-table th, .hc-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--hc-border); }
.hc-table th { color: #fff; background: var(--hc-navy); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.hc-table tbody tr:nth-child(even) { background: var(--hc-ice); }
.hc-table tbody tr:hover { background: #deefff; }

.site-main { width: min(calc(100% - 2rem), var(--hc-content)); margin: 0 auto; padding: 3rem 0 5rem; }
.page-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 4px solid var(--hc-gold); }
.page-title, .entry-title { margin: 0; color: var(--hc-navy); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-content > * { max-width: 820px; }
.entry-content > .alignwide { max-width: var(--hc-content); }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.post-navigation, .posts-navigation { margin-top: 3rem; }

.site-footer { color: #d9e8f8; background: #000f2c; border-top: 5px solid var(--hc-gold); }
.footer-widgets { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding: 4rem 0 2.5rem; }
.footer-widget h2, .footer-widget h3 { color: #fff; font-size: 1.05rem; text-transform: uppercase; }
.footer-widget ul { margin: 0; padding: 0; list-style: none; }
.footer-widget a { color: #d9e8f8; }
.site-info { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }

body.elementor-page .site-main, body.elementor-template-full-width .site-main { width: 100%; max-width: none; padding: 0; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--hc-content); }

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .main-navigation { position: absolute; inset: 100% 0 auto; display: none; padding: 1rem; background: var(--hc-navy); border-bottom: 3px solid var(--hc-gold); }
  .main-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: .8rem; }
  .primary-menu .sub-menu { position: static; display: block; padding-left: 1rem; box-shadow: none; }
  .hc-hero-inner { grid-template-columns: 1fr; }
  .hc-hero-logo { max-width: 430px; }
  .hc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .header-inner { min-height: 74px; }
  .custom-logo-link img, .hc-default-logo { width: min(260px, 68vw); max-height: 58px; }
  .hc-hero { padding: 4rem 0 5rem; }
  .hc-grid, .footer-widgets { grid-template-columns: 1fr; }
  .site-info { flex-direction: column; }
}

