/* =============================================================
   West Michigan BCAPL — Theme Stylesheet
   All custom styles live here. Bootstrap 5 is loaded via CDN
   and Font Awesome Free is loaded via CDN (see enqueue-scripts.php).
   ============================================================= */


/* -------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------- */

html,
body {
    height: 100%;
}

/* Push footer to bottom on short pages */
body {
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}


/* -------------------------------------------------------------
   Navigation
   ------------------------------------------------------------- */

.site-header .navbar {
    /* Override Bootstrap defaults here as needed */
}

/* Active nav-link indicator */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* -------------------------------------------------------------
   Page hero / title bar
   ------------------------------------------------------------- */

.page-hero {
    border-bottom: 3px solid var(--bs-primary);
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
}


/* -------------------------------------------------------------
   Content
   ------------------------------------------------------------- */

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content p:last-child {
    margin-bottom: 0;
}


/* -------------------------------------------------------------
   Sidebar widgets
   ------------------------------------------------------------- */

.widget-area .widget {
    margin-bottom: 2rem;
}

.widget-area .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

/* Bootstrap list-group inside widgets */
.widget-area .widget ul {
    padding-left: 0;
    list-style: none;
}

.widget-area .widget ul li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.widget-area .widget ul li:last-child {
    border-bottom: none;
}


/* -------------------------------------------------------------
   Footer widgets
   ------------------------------------------------------------- */

.site-footer .widget-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer ul {
    padding-left: 0;
    list-style: none;
}

.site-footer ul li {
    padding: 0.25rem 0;
}

/* Inline footer nav links */
ul.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    justify-content: flex-end;
}

ul.footer-nav li {
    padding: 0;
}


/* -------------------------------------------------------------
   Utility
   ------------------------------------------------------------- */

/* Responsive embeds (iframes, video) */
.entry-content iframe,
.entry-content video {
    max-width: 100%;
}


/* =============================================================
   Brand color tokens — used across home page and site-wide
   ============================================================= */

:root {
    --bca-orange:       #d16628;
    --bca-orange-dark:  #a64a14;
    --bca-dark:         #111111;
    --bca-dark-mid:     #1a1a1a;
    --bca-border:       #2d2d2d;
}

.text-bcaprimary  { color: var(--bca-orange) !important; }
.bg-bcaprimary    { background-color: var(--bca-orange) !important; }

.btn-bcaprimary {
    color: #fff;
    background-color: var(--bca-orange);
    border-color: var(--bca-orange);
}
.btn-bcaprimary:hover,
.btn-bcaprimary:focus {
    color: #fff;
    background-color: var(--bca-orange-dark);
    border-color: var(--bca-orange-dark);
}
.btn-bcaprimary:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(209, 102, 40, .4);
}

.btn-outline-bcaprimary {
    color: var(--bca-orange);
    border-color: var(--bca-orange);
    background-color: transparent;
}
.btn-outline-bcaprimary:hover,
.btn-outline-bcaprimary:focus {
    color: #fff;
    background-color: var(--bca-orange);
    border-color: var(--bca-orange);
}
.btn-outline-bcaprimary:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(209, 102, 40, .4);
}


/* =============================================================
   Home page — Dark Billiard
   Applied via body.hp-page (set in header-home.php)
   ============================================================= */

body.hp-page {
    background-color: var(--bca-dark);
    color: #fff;
}


/* ── Navbar ──────────────────────────────────────────────────── */

.hp-navbar {
    background-color: var(--bca-dark) !important;
    border-bottom: 1px solid #222;
    padding-top: .65rem;
    padding-bottom: .65rem;
}

.hp-brand-circle {
    width: 38px;
    height: 38px;
    background-color: var(--bca-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    flex-shrink: 0;
}

.hp-brand-name {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.hp-brand-tagline {
    font-size: .52rem;
    letter-spacing: .18em;
    color: #999;
    text-transform: uppercase;
    margin-top: 1px;
}


/* ── Hero ────────────────────────────────────────────────────── */

.hp-hero {
    background-color: var(--bca-dark);
    padding: 80px 0 64px;
}

.hp-season-badge {
    display: inline-block;
    padding: 4px 18px;
    border: 1px solid var(--bca-orange);
    border-radius: 20px;
    color: var(--bca-orange);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hp-headline {
    font-size: clamp(1.9rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: .75rem;
    line-height: 1.15;
}

.hp-subtitle {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 2rem;
}


/* ── Stats bar ───────────────────────────────────────────────── */

.hp-stats {
    background-color: var(--bca-orange);
}

.hp-stat-item {
    text-align: center;
    padding: .9rem .5rem;
    border-right: 1px solid rgba(0, 0, 0, .2);
}

.hp-stat-item:last-child {
    border-right: none;
}

.hp-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.hp-stat-label {
    font-size: .62rem;
    color: rgba(255, 255, 255, .85);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 3px;
}


/* ── Three-column links section ──────────────────────────────── */

.hp-links {
    background-color: var(--bca-dark-mid);
    padding: 2.25rem 0 1rem;
}

.hp-col-heading {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--bca-orange);
    text-transform: uppercase;
    border-bottom: 2px solid var(--bca-orange);
    padding-bottom: .4rem;
    margin-bottom: .75rem;
}

.hp-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-link-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid var(--bca-border);
    color: #ddd;
    font-size: .9rem;
}

.hp-link-list li:last-child {
    border-bottom: none;
}


/* ── Latest news section ─────────────────────────────────────── */

.hp-news {
    background-color: var(--bca-dark);
    padding: 2rem 0 2.5rem;
    border-top: 1px solid #222;
}

.hp-news-heading {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--bca-orange);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hp-news-item {
    border-left: 3px solid var(--bca-orange);
    padding-left: 1rem;
    margin-bottom: 1.25rem;
}

.hp-news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .2rem;
}

.hp-news-title a {
    color: #fff;
    text-decoration: none;
}

.hp-news-title a:hover {
    color: var(--bca-orange);
}

.hp-news-excerpt {
    color: #888;
    font-size: .85rem;
    margin-bottom: 0;
}


/* ── Home-page footer overrides ──────────────────────────────── */

body.hp-page .site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid #222;
}

body.hp-page .site-footer .border-top {
    border-color: #333 !important;
}


/* =============================================================
   Region Tabs template
   ============================================================= */

/* Tighten hero bottom padding on inner pages (no CTA buttons) */
.hp-hero--inner {
    padding-bottom: 40px;
}


/* ── Tab button row (replaces the stats bar) ─────────────────── */

.hp-region-tabs-wrap {
    background-color: var(--bca-dark-mid);
}

.hp-region-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid var(--bca-orange);
}

/* 2×2 grid on small phones */
@media (max-width: 479px) {
    .hp-region-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hp-tab-btn {
    display: block;
    width: 100%;
    padding: .95rem .5rem;
    background-color: #1c1c1c;
    color: #999;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-align: center;
    border: none;
    border-right: 1px solid #2d2d2d;
    border-radius: 0;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-tab-btn:last-child {
    border-right: none;
}

.hp-tab-btn:hover {
    background-color: rgba(209, 102, 40, .15);
    color: var(--bca-orange);
}

.hp-tab-btn:focus-visible {
    outline: 2px solid var(--bca-orange);
    outline-offset: -2px;
}

.hp-tab-btn.active {
    background-color: var(--bca-orange);
    color: #fff;
}


/* ── Tab content pane ────────────────────────────────────────── */

.hp-tab-content {
    background-color: var(--bca-dark-mid);
    padding: 2rem 1.5rem 2.5rem;
    min-height: 200px;
}

/* Readable text colours inside the dark pane */
.hp-tab-page-content {
    color: #ddd;
}

.hp-tab-page-content h1,
.hp-tab-page-content h2,
.hp-tab-page-content h3,
.hp-tab-page-content h4,
.hp-tab-page-content h5,
.hp-tab-page-content h6 {
    color: #fff;
}

.hp-tab-page-content a {
    color: var(--bca-orange);
}

.hp-tab-page-content a:hover {
    color: var(--bca-orange-dark);
}

.hp-tab-page-content table {
    color: #ddd;
}

.hp-tab-page-content .wp-block-table table,
.hp-tab-page-content table {
    border-color: #333;
}

.hp-tab-page-content .wp-block-table td,
.hp-tab-page-content .wp-block-table th,
.hp-tab-page-content td,
.hp-tab-page-content th {
    border-color: #333 !important;
}

/* Placeholder shown before a page ID is configured */
.hp-tab-placeholder {
    color: #777;
    padding: 1rem 0;
}

.hp-tab-placeholder strong {
    color: var(--bca-orange);
}


/* ── Sub-tab navigation ──────────────────────────────────────── */

.hp-sub-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
    margin-bottom: 1.5rem;
}

.hp-sub-tab-btn {
    padding: .55rem 1.25rem;
    background-color: transparent;
    color: #888;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .15s ease, border-bottom-color .15s ease;
    white-space: nowrap;
}

.hp-sub-tab-btn:hover {
    color: var(--bca-orange);
    border-bottom-color: rgba(209, 102, 40, .4);
}

.hp-sub-tab-btn.active {
    color: var(--bca-orange);
    border-bottom-color: var(--bca-orange);
}

.hp-sub-tab-btn:focus-visible {
    outline: 2px solid var(--bca-orange);
    outline-offset: -2px;
}

.hp-sub-tab-content {
    padding-top: .5rem;
}

