/* ============================================
   BLACK COUNTRY BRASS - Main Stylesheet
   ============================================ */

/* ============================================================
   FOUNDATIONS
   ============================================================ */

/* ----- Breakpoints Reference ----- */
/* ============================================
   BREAKPOINTS (reference — CSS vars cannot be
   used inside @media conditions, so these are
   documented here and used as literal px values
   throughout the file)

   --bp-sm          479px   Small mobile  (max-width: 479px)
   --bp-mobile      767px   Mobile        (max-width: 767px)
   --bp-tablet      959px   Tablet        (max-width: 959px)
   --bp-desktop     960px   Desktop       (min-width: 960px)
   --bp-desktop-max 1100px  Narrow desk.  (max-width: 1100px)
   ============================================ */

/* ----- Custom Properties: :root (dark theme default) ----- */
/* Dark is the default — renders correctly before JS sets data-theme */
:root {
    /* Type scale */
    --text-2xs:  0.75rem;
    --text-xs:   0.875rem;
    --text-sm:   1rem;
    --text-base: 1.125rem;
    --text-lg:   1.25rem;
    --text-xl:   1.5rem;
    --text-2xl:  2rem;
    --text-3xl:  2.5rem;
    --text-4xl:  4rem;
    --text-5xl:  5rem;

    /* ----- Font families ----- */
    --font-heading: 'Merriweather', serif;
    --font-body:    'Open Sans', sans-serif;

    /* ----- Dark theme (default) ----- */

    /* Backgrounds */
    --bg-primary:     #1a1a2e;
    /* --bg-primary-alt: #1e1e38; */ /* placeholder — not yet in use */
    --bg-secondary:   #222240;
    --bg-secondary-alt: #252545;

    /* Text */
    --text-primary:    #d0d0d8;
    --text-heading:    #e8e8f0;
    --text-muted:      #9090a0;
    --text-light:      #787888;
    --text-meta:       #a0a0b0;
    --text-blockquote: #b8b8c8;

    /* Brand */
    --gold:       #C8972E;
    --gold-hover: #A67B24;
    --navy:       #3a4a6a;
    --navy-dark:  #2a3a5a;

    /* Borders */
    --border-color:  #333355;
    --border-footer: #2a2a48;
    --border-light:  #2a2a48;

    /* Cards */
    --card-bg:           var(--bg-secondary);
    --card-shadow:       rgba(0, 0, 0, 0.3);
    --card-shadow-hover: rgba(0, 0, 0, 0.5);

    /* Header, footer & nav */
    --bg-header:              #16162b;
    --bg-footer:              #12122a;
    --header-shadow: rgba(0, 0, 0, 0.4);
    --nav-text:               #e0e0e8;

    /* Form controls */
    --input-bg:     #2a2a48;
    --input-border: #444466;
    --text-input:   #d0d0d8;

    /* UI / interactive */
    --overlay-bg:          rgba(15, 15, 30, 0.7);
    --social-bg:           var(--gold);
    --social-hover:        #e0a830;
}

/* ----- Custom Properties: [data-theme="light"] ----- */
/* Light theme variables */
[data-theme="light"] {
    /* Backgrounds */
    --bg-primary:     #FAFAF8;
    /* --bg-primary-alt: #F4F2EE; */ /* placeholder — not yet in use */
    --bg-secondary:   #F0EEE9;
    --bg-secondary-alt: #E6E3DC;

    /* Text */
    --text-primary:    #555555;
    --text-heading:    #1B2A4A;
    --text-muted:      #777777;
    --text-light:      #999999;
    --text-meta:       #666666;
    --text-blockquote: #444444;

    /* Brand */
    --navy:      #20458E;
    --navy-dark: #1A3A75;

    /* Borders */
    --border-color:  #E8E8E8;
    --border-footer: #E0E0E0;
    --border-light:  #F0F0F0;

    /* Cards */
    --card-shadow:       rgba(0, 0, 0, 0.08);
    --card-shadow-hover: rgba(0, 0, 0, 0.12);

    /* Header, footer & nav */
    --bg-header:     #FFFFFF;
    --bg-footer:     #D8D6CF;
    --header-shadow: rgba(0, 0, 0, 0.1);
    --nav-text:      var(--text-heading);

    /* Form controls */
    --input-bg:     #FFFFFF;
    --input-border: #E0E0E0;
    --text-input:   #333333;

    /* UI / interactive */
    --overlay-bg:         rgba(32, 69, 142, 0.6);
    --social-bg:          var(--navy);
    --social-hover:       var(--gold);
}

/* ----- Smooth Theme Transition ----- */
body,
.site-header,
.site-footer,
.feature-card,
.news-card,
.event-card,
.cta-box,
.event-article__details,
.prose blockquote {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Visible focus ring for keyboard navigation — only shown for keyboard users, not mouse */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

ul, ol {
    list-style: none;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-sm); }

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ----- Container ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }
}

/* ============================================================
   GLOBAL UI PRIMITIVES
   ============================================================ */

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #FFFFFF;
}

.btn--primary:hover {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #FFFFFF;
}

.btn--secondary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
}

.btn--secondary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #FFFFFF;
}

.btn--facebook {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #FFFFFF;
}

.btn--facebook:hover {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #FFFFFF;
}

.btn--google-maps {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
}

.btn--google-maps:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #FFFFFF;
}

.btn--facebook i {
    font-size: 1rem;
    margin-right: 0.4em;
    vertical-align: text-bottom;
}

.btn--sm.btn--facebook i {
    margin-right: 0.2em;
}

.btn--google-maps i {
    font-size: 1rem;
    margin-right: 0.4em;
    vertical-align: text-bottom;
}

.btn--outline {
    background: transparent;
    border-color: var(--nav-text);
    color: var(--nav-text);
}

.btn--outline:hover {
    background-color: var(--nav-text);
    color: #FFFFFF;
}

.btn--outline-white {
    background: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.btn--outline-white:hover {
    background-color: #FFFFFF;
    color: var(--navy);
}

.btn--sm {
    padding: 6px 16px;
    font-size: var(--text-2xs);
}

.btn--icon {
    padding: 6px 10px;
}

@media (max-width: 479px) {
    .btn {
        padding: 8px 20px;
        font-size: var(--text-2xs);
    }
}

/* ----- Prose ----- */
.prose {
    line-height: 1.8;
}

.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    border-radius: 4px;
    margin: 1rem 0;
}

.prose a {
    color: var(--gold);
    text-decoration: underline;
}

/* ----- Section Headers ----- */
.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header__suffix {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.section-header__suffix:hover {
    color: var(--gold-hover);
}

.section-header__suffix i {
    margin-left: 4px;
    font-size: var(--text-2xs);
    transition: transform 0.2s ease;
}

.section-header__suffix:hover i {
    transform: translateX(3px);
}

.section-header__icon {
    color: var(--gold);
    font-size: var(--text-lg);
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.section-header__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

@media (max-width: 767px) {
    /* Section header wrap */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ----- CTA Box ----- */
/* ----- CTA Box — two layout variants --------------------------------
 * .cta-box           Inline row: icon left, content right.
 *                    Contextual prompt within page content.
 *
 * .cta-box--stacked  Centred column: icon above, content below.
 *                    Full-width section-footer CTA. Structural modifier
 *                    is intentional — both variants share template-parts/cta-box.php.
 * -------------------------------------------------------------------- */
.cta-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-secondary-alt);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 2.5rem;
    box-shadow: 0 1px 4px var(--card-shadow);
}

.cta-box__icon {
    color: var(--gold);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.cta-box__body {
    flex: 1;
}

.cta-box__heading {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.cta-box__text {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.cta-box__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cta-box--stacked {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
    border-top: 3px solid var(--gold);
    background: var(--bg-secondary-alt);
    padding: 40px 30px;
    box-shadow: none;
    margin-top: 40px;
    margin-bottom: 0;
}

.cta-box--stacked .cta-box__icon {
    font-size: var(--text-2xl);
}

.cta-box--stacked .cta-box__heading {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.cta-box--stacked .cta-box__text {
    margin-bottom: 20px;
}

.cta-box--stacked .cta-box__actions {
    justify-content: center;
}

@media (max-width: 767px) {
    /* CTA Box */
    .cta-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-box__actions {
        flex-direction: column;
    }
}

/* ----- Pagination ----- */
/* Archive posts reuse news-card styles */

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    text-decoration: none;
    border-radius: 3px;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
}

.pagination .page-numbers:hover:not(.current) {
    background: #2a2a48;
}

[data-theme="light"] .pagination .page-numbers:hover:not(.current) {
    background: #F8F8F8;
}

/* ============================================================
   SITE CHROME
   ============================================================ */

/* ----- Site Header ----- */
.site-header {
    background: var(--bg-header);
    box-shadow: 0 2px 4px var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 0;
    overflow: visible;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header--scrolled {
    box-shadow: 0 2px 8px var(--header-shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo {
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.site-header__logo img {
    height: 50px;
    width: auto;
    transform: scale(1);
    transform-origin: top left;
    transition: transform 0.3s ease;
}

.site-header__brand-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-heading);
    margin-left: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home .site-header__brand-name {
    display: none;
}

.home .site-header__logo img {
    transform: scale(4);
}

.site-header--scrolled .site-header__logo img {
    transform: scale(1);
}

.site-header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.site-header__menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--nav-text);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Active hamburger animation - X shape */
.site-header__menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.site-header__menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.site-header__menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.site-header__nav .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu .menu-item a {
    display: block;
    padding: 10px 15px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu .menu-item a:hover,
.nav-menu .menu-item.current-menu-item a,
.nav-menu .menu-item.current_page_item a {
    color: var(--gold);
}

/* JOIN US button in nav */
.nav-menu .menu-item.btn-nav a {
    background-color: var(--gold);
    color: #FFFFFF;
    border-radius: 4px;
    padding: 8px 20px;
    margin-left: 5px;
}

.nav-menu .menu-item.btn-nav a:hover {
    background-color: var(--gold-hover);
    color: #FFFFFF;
}

@media (max-width: 959px) {
    .nav-menu .menu-item a {
        padding: 10px 10px;
        font-size: var(--text-2xs);
    }

    .site-header__logo img {
        height: 45px;
    }

    .home .site-header__logo img {
        transform: scale(2);
    }

    .site-header--scrolled .site-header__logo img {
        transform: scale(1);
    }
}

/* Narrow desktop: 960px - 1100px */
@media (min-width: 960px) and (max-width: 1100px) {
    .nav-menu .menu-item a {
        padding: 10px 8px;
        font-size: var(--text-2xs);
    }

    .site-header__logo img {
        height: 45px;
    }

    .home .site-header__logo img {
        transform: scale(3);
    }

    .site-header--scrolled .site-header__logo img {
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    /* Show hamburger */
    .site-header__menu-toggle {
        display: block;
    }

    /* Hide nav by default, show when active */
    .site-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-header);
        box-shadow: 0 4px 8px var(--header-shadow);
        padding: 20px;
    }

    .site-header__nav.active {
        display: block;
    }

    .site-header__nav .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu .menu-item a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
        font-size: var(--text-sm);
    }

    .nav-menu .menu-item:last-child a {
        border-bottom: none;
    }

    .nav-menu .menu-item.btn-nav a {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        display: block;
    }

    /* Scaling logo on mobile homepage */
    .home .site-header__logo img {
        transform: scale(3);
        transform-origin: top left;
    }

    .home .site-header--scrolled .site-header__logo img,
    .site-header--scrolled .site-header__logo img {
        transform: scale(1);
    }
}

/* logo + brand name + hamburger no longer fit side-by-side below this width */
@media (max-width: 399px) {
    .site-header__brand-name {
        display: none;
    }
}

/* ----- Theme Toggle ----- */
.theme-toggle {
    justify-self: start;
}

.theme-toggle__btn {
    position: relative;
    width: 60px;
    height: 36px;
    background: var(--navy-dark);
    border: none;
    border-radius: 18px;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.theme-toggle__btn:hover {
    background: #374b70;
}

[data-theme="light"] .theme-toggle__btn {
    background: #c0bbb0;
}

[data-theme="light"] .theme-toggle__btn:hover {
    background: #b0ab9f;
}

.theme-toggle__knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    color: #fff;
    font-size: var(--text-xs);
    pointer-events: none;
}

[data-theme="light"] .theme-toggle__knob {
    transform: translateX(24px) rotate(180deg);
    background: var(--navy);
}

/* Dark mode (default): moon; light mode: sun */
.theme-toggle__icon--light {
    display: none;
}

.theme-toggle__icon--dark {
    display: flex;
    align-items: center;
}

[data-theme="light"] .theme-toggle__icon--light {
    display: flex;
    align-items: center;
}

[data-theme="light"] .theme-toggle__icon--dark {
    display: none;
}

/* ----- Site Footer ----- */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-footer);
    padding: 20px 0;
    text-align: center;
}

.site-footer__social {
    display: flex;
    justify-content: center;
    justify-self: end;
    gap: 15px;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--social-bg);
    color: #FFFFFF;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: background 0.3s ease;
}

.site-footer__social a:hover {
    background: var(--social-hover);
}

.site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-footer__copyright {
    margin: 0;
    font-size: var(--text-2xs);
    color: var(--text-muted);
}

.site-footer__copyright a {
    color: var(--text-heading);
    text-decoration: none;
}

.site-footer__copyright a:hover {
    color: var(--gold);
}

@media (max-width: 479px) {
    .site-footer__bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* ----- Hero ----- */
.hero {
    position: relative;
    z-index: 2;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--navy); /* fallback when no hero image is set */
    overflow: hidden; /* clips the bg image during scale-in animation */
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 60px;
    color: #FFFFFF;
}

.hero__welcome {
    font-size: var(--text-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FFFFFF;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero__subtitle {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 30px;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Hero load animations */
.hero__bg      { animation: bcb-hero-bg-scale 2.5s ease-out forwards; }
.hero__welcome { animation: bcb-hero-fade 0.8s ease both; animation-delay: 0.2s; }
.hero__title   { animation: bcb-hero-fade 0.8s ease both; animation-delay: 0.4s; }
.hero__subtitle{ animation: bcb-hero-fade 0.8s ease both; animation-delay: 0.6s; }
.post-hero     { animation: bcb-hero-fade 0.6s ease both; }

@keyframes bcb-hero-bg-scale {
    from { transform: scale(1.04); }
    to   { transform: scale(1); }
}

@keyframes bcb-hero-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg,
    .hero__welcome,
    .hero__title,
    .hero__subtitle,
    .post-hero { animation: none; }
}

@media (max-width: 959px) {
    .hero__title {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 767px) {
    /* Hero */
    .hero {
        min-height: 60vh;
    }

    .hero__title {
        font-size: var(--text-2xl);
        letter-spacing: 1px;
    }

    .hero__welcome {
        font-size: var(--text-sm);
        letter-spacing: 2px;
    }

    .hero__content {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero__subtitle {
        font-size: var(--text-sm);
    }
}

@media (max-width: 479px) {
    .hero__title {
        font-size: var(--text-xl);
    }

    .hero__welcome {
        font-size: var(--text-2xs);
    }
}

/* ----- Feature Cards ----- */
.feature-cards {
    background: var(--bg-secondary);
}

.feature-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
    margin-top:-120px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 25px 25px;
    text-align: center;
    box-shadow: 0 2px 8px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px var(--card-shadow-hover);
}

.feature-card--accent-gold {
    border-top: 3px solid var(--gold);
}

.feature-card--accent-navy {
    border-top: 3px solid #8888a0;
}

[data-theme="light"] .feature-card--accent-navy {
    border-top-color: var(--navy);
}

.feature-card--accent-blue {
    border-top: 3px solid #4A90D9;
}

.feature-card__icon {
    font-size: var(--text-2xl);
    color: var(--text-heading);
    margin-bottom: 15px;
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--text-heading);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card__text {
    font-size: var(--text-xs);
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

@media (max-width: 959px) {
    .feature-cards__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    /* Feature cards stack */
    .feature-cards__grid {
        grid-template-columns: 1fr;
        margin-top: -80px;
    }

    .feature-card:last-child {
        grid-column: span 1;
        max-width: none;
    }
}

@media (max-width: 479px) {
    .feature-card {
        padding: 25px 20px;
    }
}

/* ----- About / Page Content Section ----- */
/* ----- Page Content Section (front page editor content) ----- */
.page-content-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

/* ----- About Section (homepage) ----- */
.about-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.about-section__content {
    overflow: hidden;
}

/* ----- Future of Brass Bands ----- */
.future-section {
    background-color: var(--bg-secondary-alt);
    padding: 64px 0;
}

/* ---- Section label (eyebrow above the h2, rendered via .section-header) ---- */

.future-section__label {
    display: block;
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 8px;
}

/* ---- Pull quote ---- */

.future-pullquote {
    border: none;
    margin: 70px auto 36px;
    padding: 24px 0;
    text-align: center;
}

.future-pullquote::before {
    content: '\201C';
    display: block;
    font-family: Georgia, serif;
    font-size: 6rem; /* decorative — intentionally above type scale */
    line-height: 0.15;
    color: var(--gold);
}

.future-pullquote__text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.future-pullquote__cite cite {
    font-style: normal;
    font-size: var(--text-2xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- Beat 2: evidence ---- */

.future-evidence {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.future-evidence__title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.future-evidence__body {
    line-height: 1.5;
}

/* ---- Beat 3: response ---- */

.future-response {
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.future-response__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.future-response__rule {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.future-response__heading {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.future-response__body {
    font-size: var(--text-lg);
    line-height: 1.5;
}

/* ---- Responsive ---- */

@media (max-width: 767px) {
    .future-section {
        padding: 48px 0;
    }

    .future-evidence {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 479px) {
    .future-section {
        padding: 40px 0;
    }

}

/* ----- Musical Director ----- */
.musical-director {
    /* Site colours as RGB triples — swap the var() on --overlay-rgb to try each */
    --c-dark-navy:   26,  26,  46;  /* #1a1a2e */
    /* --c-mid-navy:    34,  34,  64; */ /* #222240 */
    /* --c-gold:       200, 151,  46; */ /* #c8972e */
    --c-white:      255, 255, 255;  /* #ffffff */
    /* --c-off-white:  250, 250, 248; */ /* #fafaf8 */

    --overlay-rgb: var(--c-dark-navy);

    /* Fade strengths — tweak these to adjust overlay blending */
    --fade-left:     .97;   /* Solid panel behind text (0 = none, 1 = fully solid) */
    --fade-right:    .8;    /* Right edge fade (linear, horizontal) */
    --fade-edges:    .7;    /* Top and bottom edge fades (softens hard section boundary) */
    --fade-vignette: .55;   /* Radial fade softening all four edges and corners */

    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.musical-director__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
    filter: contrast(1.05);
}

/* Left panel + right edge fade */
.musical-director::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            rgba(var(--overlay-rgb), var(--fade-left))                   0%,
            rgba(var(--overlay-rgb), calc(var(--fade-left) * 0.948))     30%,
            rgba(var(--overlay-rgb), calc(var(--fade-left) * 0.567))     55%,
            rgba(var(--overlay-rgb), calc(var(--fade-left) * 0.103))     80%,
            transparent                                                  100%
        ),
        linear-gradient(to left,
            rgba(var(--overlay-rgb), var(--fade-right)) 0%,
            transparent                         18%
        );
    z-index: 1;
    pointer-events: none;
}

/* Radial vignette + top/bottom edge fades (wide flat ellipses — no hard corners) */
.musical-director::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 200% 35% at 50% 0%,
            rgba(var(--overlay-rgb), var(--fade-edges)) 0%,
            transparent                                 100%
        ),
        radial-gradient(ellipse 200% 35% at 50% 100%,
            rgba(var(--overlay-rgb), var(--fade-edges)) 0%,
            transparent                                 100%
        ),
        radial-gradient(ellipse at center,
            transparent                                        50%,
            rgba(var(--overlay-rgb), var(--fade-vignette))    100%
        );
    z-index: 1;
    pointer-events: none;
}

.musical-director__content {
    position: relative;
    z-index: 2;
    padding: 0 3rem 0 max(20px, calc((100vw - 1200px) / 2 + 20px));
    width: 46%;
}

.musical-director__role {
    display: block;
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.musical-director__rule {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 20px;
}

.musical-director__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    color: #f0f0f8;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.musical-director__bio {
    font-size: var(--text-base);
    line-height: 1.25;
    color: #c8c8d8;
    margin-bottom: 32px;
}

.musical-director__quote {
    position: relative;
    background: transparent;
    padding: 0 0 0 24px;
    margin: 0;
    border-left: 2px solid var(--gold);
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.musical-director__quote-mark {
    position: absolute;
    top: -0.45em;
    left: 20px;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    line-height: 1;
    color: var(--gold);
    opacity: 0.65;
}

.musical-director__quote-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--text-lg);
    color: #e8b84b;
    line-height: 1.5;
}

[data-theme="light"] .musical-director {
    --overlay-rgb: var(--c-white); /* swap to any --c-* variable to try a different shade */
}

[data-theme="light"] .musical-director__name {
    color: var(--text-heading);
}

[data-theme="light"] .musical-director__bio {
    color: var(--text-primary);
}

/* content column widens before the nav collapses to keep text legible against the photo */
@media (max-width: 959px) {
    .musical-director__content {
        width: 60%;
    }
}

/* photo is no longer composited at this width so the section switches to a stacked layout */
@media (max-width: 767px) {
    .musical-director {
        height: auto;
        min-height: 420px;
        align-items: flex-end;
        --fade-left:     0.55; /* no left panel in stacked layout — reduce to a general wash */
        --fade-right:    0.15;    /* no right edge needed */
        --fade-edges:    0.45;
        --fade-vignette: 0.23;
    }

    .musical-director__bg {
        object-position: 60% 50%;
        opacity: 0.6;

    }

    .musical-director__content {
        width: 100%;
        padding: 0 20px 40px 20px;
    }
}

/* ----- Charity Partners ----- */
.charity-section {
    padding: 50px 0;
    background: var(--bg-primary);
}

.charity-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.charity-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px 30px;
    box-shadow: 0 2px 8px var(--card-shadow);
    max-width: 320px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.charity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--card-shadow-hover);
}

.charity-card__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.charity-card__logo img {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
}

.charity-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--text-heading);
    margin: 0 0 6px 0;
}

.charity-card__year {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
}

/* ----- News ----- */
.news-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card__image {
    overflow: hidden;
    max-height: 220px;
}

.news-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__fallback--light { display: none; }
[data-theme="light"] .news-card__fallback--dark  { display: none; }
[data-theme="light"] .news-card__fallback--light { display: block; }

.news-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 25px;
}

.news-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: 8px;
}

.news-card__title a {
    color: var(--text-heading);
    text-decoration: none;
}

.news-card__title a:hover {
    color: var(--gold);
}

.news-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-meta);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card__footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    align-items: center;
}

.news-card__date {
    font-size: var(--text-2xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 959px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* News grid stack */
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-section {
        padding: 40px 0;
    }
}

@media (max-width: 479px) {
    .news-card__content {
        padding: 15px 20px;
    }
}

/* ============================================================
   EVENTS
   ============================================================ */

/* ----- Event Cards ----- */
.events-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 2px 8px var(--card-shadow);
    position: relative;
    padding-left: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover,
.event-card--highlighted {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--card-shadow-hover);
    border-color: var(--gold);
}

.event-card__icon {
    position: absolute;
    left: 20px;
    top: 26px;
    color: var(--gold);
    font-size: var(--text-lg);
}

.event-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--text-heading);
    margin: 0 0 8px 0;
}

.event-card__meta {
    font-size: var(--text-xs);
    color: var(--text-meta);
    margin-bottom: 15px;
    flex: 1;
}

.event-card__date {
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--text-2xs);
}

.event-card__time,
.event-card__venue {
    font-size: var(--text-xs);
}

.event-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card__btn-primary {
    flex: 1;
}

@media (max-width: 959px) {
    .events-section .events-grid,
    .events-grid--archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* Events grid stack */
    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-section .events-grid {
        grid-template-columns: 1fr;
    }

    .events-section {
        padding: 40px 0;
    }
}

@media (max-width: 479px) {
    .event-card {
        padding: 20px;
        padding-left: 45px;
    }
}

/* ----- Map, Pins & Popups ----- */
.events-map {
    height: 400px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    z-index: 1;
}

.events-map--single {
    height: 450px;
}

.bcb-map-marker {
    background: none !important;
    border: none !important;
}

.events-map .leaflet-control-attribution {
    background: transparent;
    font-size: 9px;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.events-map .leaflet-control-attribution:hover {
    opacity: 0.8;
}

.events-map .leaflet-control-attribution a {
    color: inherit;
}

/* ----- Map Pin Markers ----- */
.bcb-map-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bcb-map-pin__body {
    --pin-size: 30px;
    width: var(--pin-size);
    height: var(--pin-size);
    background: var(--gold);
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    animation: bcb-pin-pulse 2s ease-in-out infinite;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.bcb-map-pin__body::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    filter: blur(2px);
}

.bcb-map-pin__icon {
    transform: rotate(45deg);
    color: #fff;
    font-size: calc(var(--pin-size) * 14 / 30);
    line-height: 1;
    display: block;
}

/* Active / hover pin */
.bcb-map-pin--active .bcb-map-pin__body {
    --pin-size: 40px;
    width: var(--pin-size);
    height: var(--pin-size);
    background: var(--navy);
    border: 3px solid var(--gold);
    animation: bcb-marker-bounce 0.5s ease;
}

.bcb-map-pin--active .bcb-map-pin__icon {
    color: var(--gold);
}

/* Pulse animation for idle pins */
@keyframes bcb-pin-pulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 2px 12px rgba(200, 151, 46, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
    .bcb-map-pin__body { animation: none; }
}

/* Bounce animation for active pins */
@keyframes bcb-marker-bounce {
    0% { transform: rotate(-45deg) translateY(0); }
    30% { transform: rotate(-45deg) translateY(-10px); }
    50% { transform: rotate(-45deg) translateY(0); }
    70% { transform: rotate(-45deg) translateY(-5px); }
    100% { transform: rotate(-45deg) translateY(0); }
}

/* ----- Custom Dark Popup ----- */
.bcb-popup .leaflet-popup-content-wrapper {
    background: var(--bg-primary);
    color: var(--nav-text);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.bcb-popup .leaflet-popup-content {
    margin: 12px 16px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    line-height: 1.5;
}

.bcb-popup .leaflet-popup-content strong {
    color: #fff;
    font-size: var(--text-sm);
}

.bcb-popup__meta {
    display: block;
    margin-top: 4px;
    font-size: var(--text-2xs);
    color: var(--text-muted);
}

[data-theme="light"] .bcb-popup__meta {
    color: #888;
}

.bcb-popup__link {
    display: block;
    margin-top: 8px;
}

.bcb-popup .leaflet-popup-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.bcb-popup .leaflet-popup-content a:hover {
    color: #e0a830; /* gold-light: brighter gold for hover, no general token exists */
    text-decoration: underline;
}

.bcb-popup .leaflet-popup-tip {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
}

.bcb-popup .leaflet-popup-close-button {
    color: var(--text-muted);
}

.bcb-popup .leaflet-popup-close-button:hover {
    color: var(--gold);
}

/* Slightly lighten dark map tiles */
[data-theme="dark"] .events-map .leaflet-tile-pane {
    filter: brightness(1.8) sepia(0.15) hue-rotate(190deg) saturate(2.5);
}

/* Light-theme popup (Voyager tiles) */
[data-theme="light"] .bcb-popup .leaflet-popup-content-wrapper {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .bcb-popup .leaflet-popup-content strong {
    color: var(--text-heading);
}

[data-theme="light"] .bcb-popup .leaflet-popup-tip {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-left: none;
}

[data-theme="light"] .bcb-popup .leaflet-popup-close-button {
    color: var(--text-meta);
}

[data-theme="light"] .bcb-popup .leaflet-popup-close-button:hover {
    color: var(--gold);
}

@media (max-width: 767px) {
    .events-map {
        height: 250px;
    }

    .events-map--single {
        height: 280px;
    }
}

/* ----- Calendar Subscribe & CTA ----- */
.page-header__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.calendar-subscribe {
    text-align: right;
    flex-shrink: 0;
}

.calendar-subscribe .btn i {
    margin-right: 6px;
}

.calendar-subscribe__hint {
    margin-top: 0.5rem;
    font-size: var(--text-2xs);
    color: var(--text-meta);
}

/* ----- Calendar CTA banner (single event) ----- */
.calendar-cta {
    background: var(--bg-secondary-alt);
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    margin-top: 50px;
}

.calendar-cta__inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.calendar-cta__icon {
    font-size: var(--text-3xl);
    color: var(--gold);
    flex-shrink: 0;
}

.calendar-cta__text {
    flex: 1;
}

.calendar-cta__heading {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--text-heading);
    margin: 0 0 8px 0;
}

.calendar-cta__desc {
    font-size: var(--text-sm);
    margin: 0;
}

.calendar-cta__action {
    flex-shrink: 0;
    text-align: center;
}

.calendar-cta__action .calendar-subscribe__hint {
    margin-top: 8px;
}

@media (max-width: 767px) {
    .calendar-cta__inner {
        flex-direction: column;
        text-align: center;
    }
    .calendar-cta__icon {
        font-size: var(--text-2xl);
    }
}

/* calendar header row collapses before --bp-mobile so the subscribe button stays readable */
@media (max-width: 600px) {
    .page-header__row {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-subscribe {
        text-align: left;
    }
}

/* ----- No Upcoming Events ----- */
.no-upcoming-events {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    grid-column: 1 / -1;
}

.no-upcoming-events__icon {
    font-size: var(--text-3xl);
    color: var(--text-meta);
    opacity: 0.5;
    margin-bottom: 15px;
}

.no-upcoming-events__text {
    font-size: var(--text-sm);
    color: var(--text-meta);
    margin: 0 0 20px 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.no-upcoming-events__social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.no-upcoming-events__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--social-bg);
    color: #FFFFFF;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: background 0.3s ease;
}

.no-upcoming-events__social a:hover {
    background: var(--gold);
}

/* ----- Past Events ----- */
.past-events {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.past-events__heading {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--text-meta);
    margin: 0 0 20px 0;
    font-weight: 700;
}

.past-events__list {
    display: flex;
    flex-direction: column;
}

.past-event {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-meta);
    transition: background-color 0.2s ease;
}

.past-event:first-child {
    border-top: 1px solid var(--border-color);
}

.past-event:hover {
    background-color: var(--bg-secondary);
}

.past-event__icon {
    color: var(--text-meta);
    font-size: var(--text-sm);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    opacity: 0.6;
}

.past-event__title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--text-heading);
    flex: 1;
    min-width: 0;
    opacity: 0.8;
}

.past-event__date {
    font-size: var(--text-2xs);
    white-space: nowrap;
    flex-shrink: 0;
}

.past-event__venue {
    font-size: var(--text-2xs);
    white-space: nowrap;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 768px) {
    .past-event__venue {
        display: inline;
    }
}

@media (max-width: 767px) {
    .past-event {
        gap: 10px;
        padding: 10px 10px;
    }

    .past-event__title {
        font-size: var(--text-xs);
    }

    .past-event__date {
        font-size: var(--text-2xs);
    }
}

/* ----- Archive Grid ----- */
.events-grid--archive {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
    .events-grid--archive {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SINGLE POST & EVENT
   ============================================================ */

/* ----- Post Hero ----- */

/* --- Shared hero base --- */
.post-hero {
    width: 100%;
    background-color: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* --- 50/50 split (with image) --- */
.post-hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 50vh;
    max-height: 70vh;
}

.post-hero--split .post-hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
}

.post-hero--split .post-hero__image {
    position: relative;
    overflow: hidden;
}

.post-hero--split .post-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fit mode — split image contained, blur layer behind */
.post-hero--split.post-hero--image-fit .post-hero__image img {
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* --- Centred (no image) --- */
.post-hero--centred {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0f1929;
}

[data-theme="light"] .post-hero--centred {
    background-color: var(--bg-secondary);
}

[data-theme="light"] .post-hero--centred .post-hero__title {
    color: var(--text-heading);
}

[data-theme="light"] .post-hero--centred .post-hero__date {
    color: var(--text-muted);
}

.post-hero--centred .post-hero__text,
.post-hero--image-bg .post-hero__text {
    position: relative;
    z-index: 2;
    padding: 80px 24px;
    max-width: 800px;
}

/* --- Music-line SVG background (centred hero only) --- */
.post-hero--centred::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-color: var(--gold);
    -webkit-mask-image: url('../images/music-line.svg');
    mask-image: url('../images/music-line.svg');
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    opacity: 0.15;
}

/* --- Shared text styles --- */
.post-hero__category {
    display: inline-block;
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 16px;
}

.post-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.25;
}

.post-hero__date {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* --- Responsive: stack on mobile --- */
@media (max-width: 767px) {
    .post-hero--split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .post-hero--split .post-hero__image {
        height: 260px;
        order: -1;
    }

    .post-hero--split .post-hero__text {
        padding: 36px 24px;
    }

    .post-hero--centred {
        min-height: 40vh;
    }
}

/* ----- Hero — Simple (plain title banner, no image in hero) ----- */

.post-hero--simple {
    padding-top: 60px;
    background-color: transparent;
}

.post-hero--simple .post-hero__header {
    margin-bottom: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.post-hero--simple .post-hero__title {
    font-size: var(--text-2xl);
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.post-hero--simple .post-hero__date {
    color: rgba(255, 255, 255, 0.5);
}

/* Featured image shown below the simple hero header (posts only, not events) */
.post-hero__below-image {
    width: 100%;
    overflow: hidden;
    max-height: 500px;
    border-radius: 6px;
    margin-top: 30px;
    margin-bottom: 0;
}

.post-hero__below-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .post-hero__below-image img {
        height: 260px;
    }
}

/* ----- Hero — Image as Background (full-bleed image + overlay) ----- */

.post-hero--image-bg {
    min-height: 50vh;
    max-height: 70vh;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Dark overlay — sits above the image layer, below the text */
.post-hero--image-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 41, 0.65); /* #0f1929 (dark navy) at 65% — matches .post-hero--centred background */
    z-index: 1;
}

/* Image container — fills the hero, clips overflow */
.post-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Main image — cover by default (fill mode) */
.post-hero__bg-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fit mode — image contained, no crop */
.post-hero--image-fit .post-hero__bg-image {
    object-fit: contain;
}

/* Blurred background copy (fit mode only) */
.post-hero__bg-blur {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.post-hero__bg-blur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(20px);
    transform: scale(1.15); /* hides softened blur edges */
}

@media (max-width: 767px) {
    .post-hero--image-bg {
        min-height: 35vh;
    }
}

/* ----- Scroll Reveal ----- */

[data-reveal],
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible,
[data-reveal-stagger] > .is-visible {
    opacity: 1;
    transform: none;
}

/* Reduced motion — always show elements regardless of JS state */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ----- Single Post ----- */
main.single-post {
    padding: 60px 0;
}

/* --- Adjust single post top padding now hero provides visual separation --- */
main.single-post {
    padding-top: 40px;
}

.post-article__title {
    font-size: var(--text-2xl);
    color: var(--text-heading);
    margin-bottom: 10px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--text-heading);
}

.post-navigation__prev,
.post-navigation__next {
    flex: 0 1 auto;
}

.post-navigation__next {
    text-align: right;
}

@media (max-width: 767px) {
    /* Single post/event */
    .post-article__title {
        font-size: var(--text-2xl);
    }

    /* Post navigation stack */
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
}

/* ----- Single Event ----- */

/* Single event — top padding (hero now provides visual separation) */
main.single-event {
    padding-top: 40px;
}

.event-article__details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-secondary-alt);
    border-radius: 4px;
    border-left: 4px solid var(--gold);
}

.event-article__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 48px 0;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
}

.event-detail i {
    color: var(--gold);
}

.event-detail strong {
    color: var(--text-heading);
}

@media (max-width: 767px) {
    .event-article__details {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================================
   CONTENT PAGES
   ============================================================ */

/* ----- Generic Page Layout ----- */
.page-content {
    padding: 60px 0;
    min-height: 50vh;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.page-content__body {
    margin-bottom: 30px;
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.page-header__desc {
    font-size: var(--text-sm);
    color: var(--text-meta);
    margin: 8px 0 0 0;
    font-style: italic;
}

@media (max-width: 767px) {
    /* Page header */
    .page-content {
        padding: 30px 0;
    }

    .page-header__title {
        font-size: var(--text-2xl);
    }
}

/* ----- Join Page ----- */
.join-info {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.join-info__card {
    flex: 1;
    padding: 25px 20px;
    background: var(--bg-secondary-alt);
    border-radius: 4px;
    border-top: 3px solid var(--gold);
    text-align: center;
}

.join-info__icon {
    font-size: var(--text-2xl);
    color: var(--gold);
    margin-bottom: 10px;
}

.join-info__label {
    font-size: var(--text-2xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.join-info__value {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--text-heading);
    margin-bottom: 4px;
}

.join-info__sub {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

@media (max-width: 479px) {
    .join-info {
        flex-direction: column;
    }
}

/* ----- Contact Page ----- */
/* Two-column grid: form (wider) left, sidebar CTA right */
.contact-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* The default .wpcf7 max-width is intended for full-page use;
   inside the grid column the form should fill its available space */
.contact-layout__form .wpcf7 {
    max-width: none;
}

/* Booking / testimonial section */
.contact-booking {
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

/* Testimonial quote block */
.testimonial {
    background: var(--bg-secondary-alt);
    border-left: none;
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    padding: 2.5rem 3rem;
    margin: 0;
    text-align: center;
    font-style: normal;
}

.testimonial::before {
    content: '\201C';
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    line-height: 1;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: -1rem;
}

.testimonial__quote {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-heading);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.testimonial__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.testimonial__name {
    font-style: normal;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-heading);
}

.testimonial__event {
    font-style: normal;
    font-size: var(--text-2xs);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 767px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .testimonial {
        padding: 2rem 1.5rem;
    }

    .testimonial__quote {
        font-size: var(--text-lg);
    }
}

/* ----- Gallery ----- */
.gallery-month {
    margin-top: 40px;
    margin-bottom: 40px;
}

.gallery-month__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--text-heading);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    /* Gallery grid - 2 columns on tablet/mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 479px) {
    /* Gallery grid - 1 column on small mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Lightbox ----- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: var(--text-3xl);
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.lightbox__close:hover {
    color: var(--gold);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: 15px 18px;
    z-index: 10001;
    transition: background 0.2s ease;
    border-radius: 4px;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox__content {
    text-align: center;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.lightbox__counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
    margin-top: 12px;
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    margin-top: 5px;
}

@media (max-width: 767px) {
    .lightbox__prev,
    .lightbox__next {
        padding: 10px 14px;
        font-size: var(--text-xl);
    }

    .lightbox__prev { left: 10px; }
    .lightbox__next { right: 10px; }

    .lightbox__close {
        top: 10px;
        right: 15px;
    }
}

/* ----- 404 Page ----- */
.error-404 {
    text-align: center;
    padding: 100px 20px;
    min-height: 50vh;
}

.error-404__title {
    font-size: var(--text-5xl);
    color: var(--gold);
    margin-bottom: 10px;
}

.error-404__text {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    /* 404 page */
    .error-404 {
        padding: 60px 20px;
    }

    .error-404__title {
        font-size: var(--text-4xl);
    }
}

/* ============================================================
   WORDPRESS & PLUGIN OVERRIDES
   ============================================================ */

/* ----- WP Core ----- */
/* Gallery styling */
.wp-block-gallery,
.gallery {
    margin: 20px 0;
}

/* Block: Blockquote */
.wp-block-quote,
blockquote {
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    margin: 1.5rem 0;
    background: var(--bg-secondary-alt);
    font-style: italic;
    color: var(--text-blockquote);
}

/* Alignment classes */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

/* Block editor image alignment */
.wp-block-image.alignleft,
.wp-block-image.alignright {
    max-width: 340px;
}

.wp-block-image.alignleft img,
.wp-block-image.alignright img {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: var(--text-xs);
    color: var(--text-light);
    text-align: center;
    padding-top: 5px;
}

@media (max-width: 767px) {
    /* Aligned images stack on mobile */
    .wp-block-image.alignleft,
    .wp-block-image.alignright,
    .alignleft,
    .alignright {
        float: none;
        max-width: 220px;
        margin: 0 auto 20px;
    }
}

/* ----- Editor Palette & Font-Size Classes ----- */
/* Editor palette color classes */
.has-royal-blue-color { color: #20458E; }
.has-royal-blue-background-color { background-color: #20458E; }
.has-gold-color { color: #C8972E; }
.has-gold-background-color { background-color: #C8972E; }
.has-dark-navy-color { color: #1a1a2e; }
.has-dark-navy-background-color { background-color: #1a1a2e; }
.has-card-blue-color { color: #222240; }
.has-card-blue-background-color { background-color: #222240; }
.has-white-color { color: #FFFFFF; }
.has-white-background-color { background-color: #FFFFFF; }
.has-off-white-color { color: #FAFAF8; }
.has-off-white-background-color { background-color: #FAFAF8; }

/* Editor font size classes */
.has-small-font-size { font-size: var(--text-xs); }
.has-normal-font-size { font-size: var(--text-sm); }
.has-medium-font-size { font-size: var(--text-lg); }
.has-large-font-size { font-size: var(--text-2xl); }
.has-extra-large-font-size { font-size: var(--text-3xl); }

/* ----- Screen Reader Text ----- */
/* Screen reader text */
.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;
}

.screen-reader-text:focus {
    background-color: var(--bg-secondary-alt);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--text-heading);
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ----- Fluent Forms ----- */
/* Fluent Forms styling */
.fluentform .ff-el-group {
    margin-bottom: 15px;
}

.fluentform .ff-el-input--label label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 5px;
}

.fluentform .ff-el-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    transition: border-color 0.3s ease, background-color 0.3s ease;
    color: var(--text-input);
    background: var(--input-bg);
    appearance: none;
}

.fluentform .ff-el-form-control:focus {
    border-color: var(--gold);
    background: var(--input-bg);
    color: var(--text-input);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 151, 46, 0.15);
}

.fluentform select.ff-el-form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8972E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.fluentform textarea.ff-el-form-control {
    min-height: 150px;
    resize: vertical;
}

.fluentform .ff-btn-submit {
    padding: 12px 30px;
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
}

.fluentform .ff-el-form-check-label {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

/* Radio / checkbox list buttons */
.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check label > span {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
    padding-block: 1.12em;
    padding-inline: 1.8em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check:first-child label > span {
    border-left-color: var(--input-border);
}

.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check label:hover > span {
    border-color: var(--gold);
    box-shadow: var(--gold) -1px 0 0 0;
}

.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check:first-child label:hover > span {
    box-shadow: none;
}

.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check label:focus-within span {
    box-shadow: 0 0 0 3px rgba(200, 151, 46, 0.4);
}

.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check.ff_item_selected label > span {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: var(--gold) -1px 0 0 0, var(--gold) 1px 0 0 0;
}

.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check.ff_item_selected:first-child label > span {
    border-left-color: var(--gold);
    box-shadow: var(--gold) 1px 0 0 0;
}

.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check.ff_item_selected:last-child label > span {
    box-shadow: var(--gold) -1px 0 0 0;
}

/* Validation errors */
.fluentform .ff-el-is-error .ff-el-form-control {
    border-color: #e74c3c;
}

.fluentform .error.text-danger,
.ff-errors-in-stack .error.text-danger {
    color: #e74c3c;
    font-size: var(--text-xs);
    margin-top: 5px;
    display: block;
}

/* Prominent success confirmation */
.ff-message-success {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-primary);
    font-size: var(--text-base);
    animation: ff-fade-in-up 0.4s ease forwards;
}

.ff-message-success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    font-size: var(--text-4xl);
    color: var(--gold);
    margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .ff-message-success { animation: none; opacity: 1; }
}

@keyframes ff-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Admin Bar Fix ----- */
/* WordPress admin bar fix */
.admin-bar .site-header {
    top: 32px;
}

/* WordPress admin bar switches height at this breakpoint */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ----- General Typography Responsive ----- */
@media (max-width: 767px) {
    /* General typography */
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}
