/**
Theme Name: Astra Child
Author: Boys & Girls Club of Metro North
Author URI: https://bgcmetronorth.org
Description: Child theme for bgcmetronorth.org. Holds the consolidated site CSS so it survives Astra updates. Do not  deactivate.
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/*
 * bgcmetronorth.org - consolidated site styles
 * ---------------------------------------------------------------
 * Loaded from the astra-child theme, so it survives Astra updates
 * and is cached once across all pages.
 *
 * Cascade position (measured, do not assume):
 *   astra-theme-css -> astra-addon-css -> THIS FILE
 *   -> Additional CSS (post 7232) -> page content <style>
 * Anything later overrides this file at equal specificity.
 *
 * IMPORTANT: bump CHILD_THEME_ASTRA_CHILD_VERSION in functions.php
 * whenever this file changes, or browsers serve a stale copy.
 */

/* ===============================================================
   BRAND TOKENS - single source of truth
   Verified against: Our Branding Style Guide, March 2021 (BGCA)
   pp.44-45 Core Brand Colors, pp.52-53 Core Brand Fonts.
   =============================================================== */
:root {
    /* --- BGCA official palette (guide p.45) ------------------- */
    --bgca-blue:       #0081C6;  /* BGCA Blue        PMS Process Blue, RGB 0/129/198 */
    --prof-blue:       #004B87;  /* Professional Blue PMS 301 C,  RGB 0/75/135  */
    --inspire-green:   #81BC00;  /* Inspirational Green PMS 376 C, RGB 129/188/0 */
    --gf-gold:         #E2881B;  /* Great Futures Gold PMS 7564 C, RGB 226/136/27 */
    --service-purple:  #61279E;  /* Service Purple    PMS 267 C,  RGB 97/39/158 */
    --theater-gray:    #53565A;  /* Theatrical Gray   PMS Cool Gray 11 C        */
    --bold-black:      #000000;  /* Bold Black        PMS Black C               */
    --gf-white:        #FFFFFF;

    /* --- BGCA prescribed digital usage (guide p.45) ----------- */
    --link-on-light:   #0081C6;  /* text links on light backgrounds */
    --link-on-dark:    #82D4FF;  /* text links on dark backgrounds  */
    --body-text:       #333333;  /* body copy                       */
    --bg-deep:         #0C5692;  /* background                      */
    --bg-warm:         #F5F0EF;  /* background                      */
    --bg-stone:        #DCD7D6;  /* background                      */
    --footer-bg:       #53565A;  /* footer background               */

    /* --- Local to bgcmetronorth, NOT in the national guide ----
       Kept because the site already depends on them. Flagged so a
       future reader knows they are ours, not BGCA's.             */
    --energy-orange:   #FF8200;  /* used 38x sitewide, incl. .cta-btn */
    --slate:           #555555;  /* secondary text                    */
    --light-bg:        #F8F9FA;  /* Bootstrap gray-100                */
    --border-color:    #E9ECEF;  /* Bootstrap gray-200                */
    --light-gray:      #F5F5F5;  /* near BGCA #F5F0EF but not equal   */
}

/* ===============================================================
   SITE STYLES
   Folded in from the Customizer's Additional CSS (post 7232) on
   2026-08-30. Keeping them here collapses two cascade layers into
   one: Additional CSS used to load AFTER this file, so anything
   hoisted here silently lost to it. One layer, one source of truth.

   Cascade-neutral: these rules sat BEFORE page <style> then and
   still do, and the !important flags win regardless of position.

   Everything below this line is the previous Additional CSS verbatim.
   =============================================================== */

/* ========================================
   GLOBAL TYPOGRAPHY
======================================== */

h1,
h2,
h3,
.hero-title,
.program-title {
    font-family: 'Roboto Slab', serif !important;
}

body,
p,
.lead {
    font-family: 'Open Sans', sans-serif !important;
}

/* ========================================
   CARDS
======================================== */

.theme-card,
.program-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    border: 1px solid #eee;
}

.theme-body {
    padding: 25px;
}

/* ========================================
   BUTTONS
======================================== */

.cta-btn {
    background-color: #FF8200 !important;
    color: white !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.camp-btn {
    background-color: transparent !important;
    border: 2px solid white !important;
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.camp-btn:hover {
    background-color: white !important;
    color: #004B87 !important;
}

/*
  CONSOLIDATED BUTTON UNDERLINE FIX
  ----------------------------------
  Overrides Astra's .entry-content a { text-decoration: underline } rule
  for all link elements whose class contains "btn" — covers .btn, .btn-give,
  .btn-other, .btn-register-week, .cta-btn, .camp-btn, and any future btn-*
  classes without needing to update this rule.
*/
.entry-content a[class*="btn"],
.entry-content a[class*="btn"]:hover,
.entry-content a[class*="btn"]:focus,
.entry-content a[class*="btn"]:active {
    text-decoration: none !important;
}

/* Remove underline from ALL loc-btn links */
a.loc-btn,
a.loc-btn:hover,
a.loc-btn:focus,
a.loc-btn:active {
    text-decoration: none !important;
}

/* ========================================
   EARLY BIRD STYLES
======================================== */

.early-bird-box {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
    border: 2px solid white;
    max-width: 700px;
    margin-top: 20px;
    animation: pulse-red 2s infinite;
}

.save-amount {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.save-details {
    font-size: 1.1rem;
    font-weight: 600;
}

.deadline-badge {
    background: #FFD700;
    color: #000;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* ========================================
   TOP UTILITY LINKS
======================================== */

/* 1. Mobile settings (default) */
.top-utility-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    margin-top: 15px;
    border-top: 1px solid #f1f1f1;
}

.top-utility-links a {
    color: #004B87 !important;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 0;
    text-transform: uppercase;
    text-decoration: none !important;
}

/* 2. Desktop settings (large screens only) */
@media (min-width: 922px) {
    .top-utility-links {
        flex-direction: row;
        justify-content: flex-end;
        padding: 0;
        margin-top: 0;
        border-top: none;
    }

    .top-utility-links a {
        color: #6c757d !important;
        font-size: 13px;
        font-weight: 600;
        margin-left: 20px;
        padding: 0;
        white-space: nowrap;
    }

    .top-utility-links a:hover {
        color: #FF8200 !important;
    }
}

/* Hide extra menu items on desktop */
@media (min-width: 922px) {
    .mobile-only-link {
        display: none !important;
    }
}

/* ---------------------------------------------------------------
   Notice box - time-sensitive registration notices.
   Promoted out of the after-school pages 2026-08-30 so the pages
   stop carrying one-off inline styles. Tints are the only non-token
   values here; they are gold at low opacity, kept literal because
   colour-mix support is not worth the risk on this audience.
   --------------------------------------------------------------- */
.notice-box {
    background: #FFF8E6;
    border: 1px solid #F0D9A0;
    border-left: 4px solid var(--gf-gold);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 0.95rem;
}
.notice-box strong { color: var(--prof-blue); }
.notice-box--centred { max-width: 680px; margin: 0 auto 1.5rem auto; }
.notice-box--tight { margin-top: 1rem; font-size: 0.9rem; }
