/**
 * St. Ambrose Custom Header & Footer Styles
 * 
 * This CSS mimics the new site's Tailwind-based design
 * using plain CSS for the legacy Avada site.
 * 
 * @package Avada-Child-Theme
 */

/* =============================================================================
   CSS Variables (matching new site's theme.json)
   ============================================================================= */

:root {
    --stambrose-primary-blue: #012D6B;
    --stambrose-secondary-red: #940D14;
    --stambrose-light-blue: #78A8EB;
    --stambrose-red: #B5121B;
    --stambrose-primary-50: #E2E7FF;
    --stambrose-gray-50: #E2E2E2;
    --stambrose-gray-200: #919191;
    --stambrose-greyish-white: #EBEBEB;
    --stambrose-gray-bg: #D9D9D9;
    --stambrose-pure-white: #FFFFFF;

    --stambrose-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Alpine.js cloak - hide elements until Alpine loads */
[x-cloak] {
    display: none !important;
}

/* =============================================================================
   Hide Avada's Default Header & Footer
   ============================================================================= */

/* .fusion-header-wrapper,
.fusion-header,
.fusion-top-header,
.fusion-secondary-header,
#side-header,
.avada-header-top-bg-color,
.side-header-wrapper {
    display: none !important;
} */

.fusion-footer-widget-area,
.fusion-footer-copyright-area,
.fusion-footer,
#footer {
    display: none !important;
}

/* Ensure our header stays visible when sticky */
/* .stambrose-header-wrapper {
    position: relative;
    z-index: 99999;
} */

/* =============================================================================
   HEADER STYLES
   ============================================================================= */

.stambrose-header-wrapper {
    font-family: var(--stambrose-font-family);
}

/* --- Top Contact Bar --- */
.stambrose-top-bar {
    background-color: var(--stambrose-primary-blue);
    padding: 8px 16px;
}

@media (min-width: 640px) {
    .stambrose-top-bar {
        padding: 8px 24px;
    }
}

@media (min-width: 1024px) {
    .stambrose-top-bar {
        padding: 8px 48px;
    }
}

.stambrose-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.stambrose-contact-info {
    display: none;
    color: var(--stambrose-pure-white);
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .stambrose-contact-info {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

.stambrose-contact-info .stambrose-phone-link {
    color: var(--stambrose-pure-white) !important;
    text-decoration: none;
}

.stambrose-contact-info .stambrose-separator {
    color: var(--stambrose-pure-white);
    opacity: 0.5;
}

.stambrose-contact-info .stambrose-address {
    color: var(--stambrose-pure-white);
}

.stambrose-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Top Bar Navigation (Secondary Menu) --- */
.stambrose-topbar-nav {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .stambrose-topbar-nav {
        display: flex;
    }
}

.stambrose-topbar-nav-item {
    position: relative;
}

.stambrose-topbar-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.stambrose-topbar-nav-link:hover,
.stambrose-topbar-nav-link--active {
    color: var(--stambrose-pure-white) !important;
}

.stambrose-topbar-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.stambrose-topbar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 180px;
    background-color: var(--stambrose-pure-white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    margin-top: 4px;
}

.stambrose-topbar-dropdown-link {
    display: block;
    padding: 8px 16px;
    color: var(--stambrose-primary-blue) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.stambrose-topbar-dropdown-link:hover {
    background-color: var(--stambrose-primary-50);
}

.stambrose-social-icons a {
    color: var(--stambrose-pure-white) !important;
    font-size: 18px;
    transition: opacity 0.2s;
    text-decoration: none !important;
}

.stambrose-social-icons a:hover {
    opacity: 0.7;
}

/* --- Main Header (now hidden - merged into nav) --- */
.stambrose-main-header {
    display: none;
}

.stambrose-main-header-inner {
    display: none;
}

/* --- Top Navigation (Secondary) - now merged into main nav --- */
.stambrose-top-nav {
    display: none;
}

.stambrose-top-nav-item {
    position: relative;
}

.stambrose-top-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    color: var(--stambrose-secondary-red) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.stambrose-top-nav-link:hover,
.stambrose-top-nav-link--active {
    color: var(--stambrose-primary-blue) !important;
    text-decoration: underline !important;
}

.stambrose-top-nav-arrow {
    font-size: 14px;
    transition: transform 0.2s;
}

.stambrose-top-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 200px;
    background-color: var(--stambrose-pure-white);
    border: 1px solid var(--stambrose-gray-50);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.stambrose-top-dropdown-link {
    display: block;
    padding: 8px 16px;
    color: var(--stambrose-primary-blue) !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: background-color 0.2s;
}

.stambrose-top-dropdown-link:hover {
    background-color: var(--stambrose-primary-50);
}

/* --- Donate Button --- */
.stambrose-donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--stambrose-secondary-red) 0%, #6B1A3A 50%, var(--stambrose-primary-blue) 100%);
    background-size: 200% 200%;
    color: var(--stambrose-pure-white) !important;
    text-decoration: none !important;
    font-size: 11px;
    background-position: 100% 50%;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(148, 13, 20, 0.3);
}

.stambrose-donate-btn iconify-icon {
    font-size: 14px;
}

.stambrose-donate-btn:hover {
    background-position: 100% 50%;
    animation: donateGradientShift 3s ease infinite;

}

@keyframes donateGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (min-width: 1280px) {
    .stambrose-donate-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.stambrose-donate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(148, 13, 20, 0.4);
    animation-play-state: paused;
    background-position: 100% 50%;
}

/* --- Notification Bar (now unused, kept for reference) --- */
.stambrose-notification-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: var(--stambrose-primary-blue);
}

@media (min-width: 640px) {
    .stambrose-notification-bar {
        padding: 8px 24px;
    }
}

@media (min-width: 1024px) {
    .stambrose-notification-bar {
        padding: 8px 48px;
    }
}

.stambrose-notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

@media (min-width: 640px) {
    .stambrose-notification-content {
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .stambrose-notification-content {
        gap: 16px;
    }
}

.stambrose-notification-icon {
    color: var(--stambrose-greyish-white);
    font-size: 16px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .stambrose-notification-icon {
        font-size: 18px;
    }
}

.stambrose-notification-text {
    color: var(--stambrose-greyish-white);
    font-size: 12px;
    margin: 0;
}

@media (min-width: 640px) {
    .stambrose-notification-text {
        font-size: 14px;
    }
}

.stambrose-notification-label {
    font-weight: 700;
}

.stambrose-notification-link {
    text-decoration: underline;
    color: var(--stambrose-pure-white) !important;
    transition: color 0.2s;
}

.stambrose-notification-link:hover {
    color: var(--stambrose-pure-white) !important;
}

.stambrose-notification-contact {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--stambrose-greyish-white);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .stambrose-notification-contact {
        display: flex;
        font-size: 14px;
    }
}

.stambrose-phone-link {
    color: var(--stambrose-greyish-white) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.stambrose-phone-link:hover {
    color: var(--stambrose-pure-white) !important;
}

.stambrose-separator {
    color: var(--stambrose-greyish-white);
}

.stambrose-address {
    color: var(--stambrose-greyish-white);
}

.stambrose-phone-mobile {
    display: block;
    color: var(--stambrose-greyish-white) !important;
    flex-shrink: 0;
    margin-left: 8px;
}

.stambrose-phone-mobile iconify-icon {
    font-size: 18px;
}

@media (min-width: 768px) {
    .stambrose-phone-mobile {
        display: none;
    }
}

/* --- Navigation --- */
.stambrose-nav {
    position: relative;
    z-index: 50;
    width: 100%;
    padding: 0;
    background: linear-gradient(135deg, var(--stambrose-primary-blue) 0%, #013d8a 50%, rgba(120, 168, 235, 0.3) 100%);
    background-color: var(--stambrose-primary-blue);
    transition: all 0.3s;
}

.stambrose-nav--scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(1, 45, 107, 0.95) 0%, rgba(1, 61, 138, 0.95) 50%, rgba(120, 168, 235, 0.2) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.stambrose-nav-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 16px;
    max-width: 1600px;
    margin: 0 auto;
    gap: 8px;
}

@media (min-width: 640px) {
    .stambrose-nav-inner {
        padding: 0 20px;
    }
}

@media (min-width: 1024px) {
    .stambrose-nav-inner {
        padding: 0 24px;
        gap: 12px;
    }
}

@media (min-width: 1280px) {
    .stambrose-nav-inner {
        padding: 0 32px;
        gap: 16px;
    }
}

/* --- Logo (within nav bar) --- */
.stambrose-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    flex-shrink: 0;
    padding: 14px 0;
}

.stambrose-logo-icon {
    height: 36px;
    width: auto;
}

@media (min-width: 640px) {
    .stambrose-logo-icon {
        height: 40px;
    }
}

@media (min-width: 768px) {
    .stambrose-logo-icon {
        height: 44px;
    }
}

.stambrose-logo-words {
    height: 24px;
    width: auto;
    display: none;
    filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
    .stambrose-logo-words {
        display: block;
        height: 28px;
    }
}

@media (min-width: 1024px) {
    .stambrose-logo-words {
        height: 32px;
    }
}

.stambrose-logo-text {
    display: none;
    color: var(--stambrose-pure-white);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .stambrose-logo-text {
        display: block;
    }
}

/* --- Desktop Menu --- */
.stambrose-menu-desktop {
    display: none;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .stambrose-menu-desktop {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .stambrose-menu-desktop {
        gap: 2px;
    }
}

.stambrose-menu-item {
    position: relative;
}

.stambrose-menu-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    position: relative;
}

@media (min-width: 1280px) {
    .stambrose-menu-button {
        padding: 12px 14px;
    }
}

.stambrose-menu-button--secondary {
    padding: 10px 10px;
}

@media (min-width: 1280px) {
    .stambrose-menu-button--secondary {
        padding: 12px 12px;
    }
}

.stambrose-menu-button:hover .stambrose-menu-label,
.stambrose-menu-button--open .stambrose-menu-label,
.stambrose-menu-button--active .stambrose-menu-label {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.stambrose-menu-button--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--stambrose-pure-white);
}

.stambrose-menu-label {
    color: var(--stambrose-pure-white);
    font-weight: 600;
    font-size: 12px;
    transition: color 0.2s;
    white-space: nowrap;
}

@media (min-width: 1280px) {
    .stambrose-menu-label {
        font-size: 13px;
    }
}

@media (min-width: 1400px) {
    .stambrose-menu-label {
        font-size: 14px;
    }
}

.stambrose-menu-button--secondary .stambrose-menu-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

@media (min-width: 1280px) {
    .stambrose-menu-button--secondary .stambrose-menu-label {
        font-size: 12px;
    }
}

/* Menu Divider */
.stambrose-menu-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

@media (min-width: 1280px) {
    .stambrose-menu-divider {
        margin: 0 8px;
    }
}

.stambrose-menu-arrow {
    color: var(--stambrose-pure-white);
    font-size: 14px;
    transition: transform 0.2s, color 0.2s;
}

.stambrose-menu-arrow--open {
    transform: rotate(180deg);
}

/* --- Dropdown --- */
.stambrose-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;
    z-index: 50;
}

.stambrose-dropdown--right {
    left: auto;
    right: 0;
}

.stambrose-dropdown-inner {
    background-color: #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 24px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stambrose-dropdown--large .stambrose-dropdown-inner {
    min-width: 420px;
}

.stambrose-dropdown-inner--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 32px;
}

.stambrose-dropdown-link {
    display: block;
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--stambrose-primary-blue) !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s;
}

.stambrose-dropdown-link:hover,
.stambrose-dropdown-link--active {
    background-color: var(--stambrose-primary-blue);
    color: var(--stambrose-pure-white) !important;
}

/* Dropdown transitions */
.stambrose-dropdown-enter {
    transition: all 150ms ease-out;
}

.stambrose-dropdown-enter-start {
    opacity: 0;
    transform: translateY(4px);
}

.stambrose-dropdown-enter-end {
    opacity: 1;
    transform: translateY(0);
}

.stambrose-dropdown-leave {
    transition: all 100ms ease-in;
}

.stambrose-dropdown-leave-start {
    opacity: 1;
    transform: translateY(0);
}

.stambrose-dropdown-leave-end {
    opacity: 0;
    transform: translateY(4px);
}

/* --- Actions (Right Side) --- */
.stambrose-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

@media (min-width: 640px) {
    .stambrose-actions {
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .stambrose-actions {
        gap: 8px;
    }
}

.stambrose-action-btn {
    color: var(--stambrose-pure-white);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.stambrose-action-btn:hover {
    opacity: 0.8;
}

.stambrose-action-btn iconify-icon {
    font-size: 18px;
}

@media (min-width: 640px) {
    .stambrose-action-btn iconify-icon {
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .stambrose-action-btn iconify-icon {
        font-size: 20px;
    }
}

/* --- Search --- */
.stambrose-search-container {
    position: relative;
}

.stambrose-search-toggle {
    display: none;
}

@media (min-width: 1024px) {
    .stambrose-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.stambrose-search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 8px;
    z-index: 50;
}

.stambrose-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: #f3f4f6;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    min-width: 280px;
}

.stambrose-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--stambrose-primary-blue);
    outline: none;
}

.stambrose-search-input::placeholder {
    color: var(--stambrose-gray-200);
}

.stambrose-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background-color: var(--stambrose-primary-blue);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.stambrose-search-submit:hover {
    background-color: #01214f;
}

.stambrose-search-submit iconify-icon {
    color: var(--stambrose-pure-white);
    font-size: 18px;
}

.stambrose-mobile-toggle {
    display: block;
}

@media (min-width: 1024px) {
    .stambrose-mobile-toggle {
        display: none;
    }
}

/* --- Hamburger --- */
.stambrose-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 1024px) {
    .stambrose-hamburger {
        display: flex;
        padding: 8px 16px;
    }
}

@media (min-width: 1280px) {
    .stambrose-hamburger {
        padding: 8px 16px;
    }
}

.stambrose-hamburger:hover .stambrose-hamburger-line--1,
.stambrose-hamburger:hover .stambrose-hamburger-line--3 {
    width: 24px;
}

@media (min-width: 1280px) {

    .stambrose-hamburger:hover .stambrose-hamburger-line--1,
    .stambrose-hamburger:hover .stambrose-hamburger-line--3 {
        width: 28px;
    }
}

.stambrose-hamburger-line {
    height: 2px;
    background-color: var(--stambrose-pure-white);
    transition: width 0.2s;
}

.stambrose-hamburger-line--1 {
    width: 20px;
}

.stambrose-hamburger-line--2 {
    width: 24px;
}

.stambrose-hamburger-line--3 {
    width: 16px;
}

@media (min-width: 1280px) {
    .stambrose-hamburger-line--1 {
        width: 24px;
    }

    .stambrose-hamburger-line--2 {
        width: 28px;
    }

    .stambrose-hamburger-line--3 {
        width: 20px;
    }
}

/* --- Mobile Menu Drawer (Pure CSS) --- */

/* Hidden checkbox for mobile toggle - MUST be visually hidden */
.stambrose-mobile-checkbox {
    position: fixed;
    top: -100px;
    left: -100px;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

/* Hidden checkbox for submenu toggles */
.stambrose-submenu-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

/* Mobile toggle button icons - show menu icon by default */
.stambrose-mobile-toggle .stambrose-menu-icon {
    display: block;
}

.stambrose-mobile-toggle .stambrose-close-icon {
    display: none;
}

/* When checkbox is checked, swap icons */
#stambrose-mobile-toggle:checked ~ .stambrose-header-wrapper .stambrose-mobile-toggle .stambrose-menu-icon {
    display: none;
}

#stambrose-mobile-toggle:checked ~ .stambrose-header-wrapper .stambrose-mobile-toggle .stambrose-close-icon {
    display: block;
}

/* Overlay - hidden by default */
.stambrose-mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-out, visibility 300ms;
    cursor: pointer;
}

/* Show overlay when checkbox is checked */
#stambrose-mobile-toggle:checked ~ .stambrose-header-wrapper .stambrose-mobile-overlay {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .stambrose-mobile-overlay {
        display: none !important;
    }
}

/* Drawer - hidden by default (off-screen to the right) */
.stambrose-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: linear-gradient(180deg, #012D6B 0%, #01245B 100%);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Show drawer when checkbox is checked */
#stambrose-mobile-toggle:checked ~ .stambrose-header-wrapper .stambrose-mobile-drawer {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .stambrose-mobile-drawer {
        display: none !important;
    }
}

/* Drawer Header */
.stambrose-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}

.stambrose-drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--stambrose-pure-white) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
}

.stambrose-drawer-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.stambrose-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--stambrose-pure-white);
    cursor: pointer;
    transition: background-color 0.2s;
}

.stambrose-drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stambrose-drawer-close iconify-icon {
    font-size: 24px;
}

/* Drawer Search */
.stambrose-drawer-search {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stambrose-drawer-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
}

.stambrose-drawer-search-form iconify-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    flex-shrink: 0;
}

.stambrose-drawer-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--stambrose-pure-white);
    font-size: 15px;
    outline: none;
}

.stambrose-drawer-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Drawer Navigation */
.stambrose-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.stambrose-drawer-section {
    padding: 8px 20px;
}

.stambrose-drawer-section-label {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stambrose-drawer-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stambrose-drawer-item:last-child {
    border-bottom: none;
}

.stambrose-drawer-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stambrose-drawer-link {
    flex: 1;
    padding: 14px 0;
    color: var(--stambrose-pure-white) !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: color 0.2s;
}

.stambrose-drawer-link:hover,
.stambrose-drawer-link--active {
    color: var(--stambrose-light-blue) !important;
}

.stambrose-drawer-link--secondary {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
}

.stambrose-drawer-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--stambrose-pure-white);
    cursor: pointer;
    transition: background-color 0.2s;
}

.stambrose-drawer-expand:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stambrose-drawer-expand iconify-icon {
    font-size: 18px;
    transition: transform 0.2s;
}

/* Submenu - hidden by default */
.stambrose-drawer-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 0 0 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 8px;
}

/* Show submenu when checkbox is checked */
.stambrose-submenu-checkbox:checked ~ .stambrose-drawer-submenu {
    max-height: 500px;
    padding-bottom: 12px;
}

/* Rotate icon when checkbox is checked */
.stambrose-submenu-checkbox:checked ~ .stambrose-drawer-item-row .stambrose-drawer-expand iconify-icon {
    transform: rotate(90deg);
}

.stambrose-drawer-sublink {
    display: block;
    padding: 10px 0 10px 12px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: color 0.2s;
}

.stambrose-drawer-sublink:hover,
.stambrose-drawer-sublink--active {
    color: var(--stambrose-pure-white) !important;
}

/* Drawer Footer */
.stambrose-drawer-footer {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stambrose-drawer-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--stambrose-secondary-red) 0%, #B5121B 100%);
    color: var(--stambrose-pure-white) !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    border-radius: 10px;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stambrose-drawer-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 13, 20, 0.4);
}

.stambrose-drawer-donate iconify-icon {
    font-size: 18px;
}

.stambrose-drawer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.stambrose-drawer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: color 0.2s;
}

.stambrose-drawer-contact a:hover {
    color: var(--stambrose-pure-white) !important;
}

.stambrose-drawer-contact iconify-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.stambrose-drawer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stambrose-drawer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--stambrose-pure-white) !important;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.stambrose-drawer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stambrose-drawer-social iconify-icon {
    font-size: 20px;
}

/* =============================================================================
   FOOTER STYLES
   ============================================================================= */

.stambrose-footer {
    position: relative;
    z-index: 1;
    background-color: var(--stambrose-primary-blue);
    color: var(--stambrose-pure-white);
    padding: 32px 16px;
    overflow: hidden;
    font-family: var(--stambrose-font-family);
}

@media (min-width: 640px) {
    .stambrose-footer {
        padding: 32px 24px;
    }
}

@media (min-width: 768px) {
    .stambrose-footer {
        padding: 48px 32px;
    }
}

@media (min-width: 1024px) {
    .stambrose-footer {
        padding: 48px 40px;
    }
}

/* --- Footer Background --- */
.stambrose-footer-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.stambrose-footer-bg-svg {
    width: 100%;
    max-width: 900px;
    height: auto;
    opacity: 1;
}

/* --- Footer Grid --- */
.stambrose-footer-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .stambrose-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stambrose-footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* --- Footer Columns --- */
.stambrose-footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stambrose-footer-col--contact {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .stambrose-footer-col--contact {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .stambrose-footer-col--contact {
        grid-column: span 1;
    }
}

.stambrose-footer-col--school {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .stambrose-footer-col--school {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .stambrose-footer-col--school {
        grid-column: span 1;
    }
}

/* --- Footer Logo --- */
.stambrose-footer-logo {
    width: 160px;
}

@media (min-width: 768px) {
    .stambrose-footer-logo {
        width: 192px;
    }
}

@media (min-width: 1024px) {
    .stambrose-footer-logo {
        width: 224px;
    }
}

.stambrose-footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--stambrose-pure-white);
    margin: 0;
}

/* --- Footer Contact Info --- */
.stambrose-footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 300px;
}

.stambrose-footer-contact-info p {
    margin: 0;
    line-height: 1.6;
}

.stambrose-footer-mass strong {
    display: block;
    color: var(--stambrose-pure-white);
    margin-bottom: 4px;
}

.stambrose-footer-mass p {
    margin-top: 4px;
}

.stambrose-footer-link {
    color: var(--stambrose-pure-white) !important;
    text-decoration: underline;
    transition: color 0.2s;
}

.stambrose-footer-link:hover {
    color: var(--stambrose-primary-50) !important;
}

/* --- Footer Headings --- */
.stambrose-footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--stambrose-pure-white);
    margin: 0;
}

@media (min-width: 768px) {
    .stambrose-footer-heading {
        font-size: 20px;
    }
}

/* --- Footer Navigation --- */
.stambrose-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .stambrose-footer-nav {
        margin-top: 16px;
    }
}

.stambrose-footer-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.stambrose-footer-nav-link:hover {
    color: var(--stambrose-pure-white) !important;
}

/* --- Footer School Info --- */
.stambrose-footer-school-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .stambrose-footer-school-info {
        margin-top: 16px;
    }
}

.stambrose-footer-school-info p {
    margin: 0;
}

.stambrose-footer-school-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stambrose-pure-white) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s;
}

.stambrose-footer-school-link:hover {
    color: var(--stambrose-primary-50) !important;
}

.stambrose-footer-school-link iconify-icon {
    font-size: 18px;
}

/* --- Footer Bottom --- */
.stambrose-footer-bottom {
    position: relative;
    z-index: 10;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 640px) {
    .stambrose-footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .stambrose-footer-bottom {
        margin-top: 48px;
    }
}

.stambrose-footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: center;
}

@media (min-width: 640px) {
    .stambrose-footer-copyright {
        text-align: left;
    }
}

.stambrose-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stambrose-footer-social-link {
    color: var(--stambrose-pure-white) !important;
    transition: color 0.2s;
}

.stambrose-footer-social-link:hover {
    color: var(--stambrose-primary-50) !important;
}

.stambrose-footer-social-link iconify-icon {
    font-size: 20px;
}

@media (min-width: 768px) {
    .stambrose-footer-social-link iconify-icon {
        font-size: 24px;
    }
}

.stambrose-footer-social-link iconify-icon.stambrose-icon-lg {
    font-size: 24px;
}

@media (min-width: 768px) {
    .stambrose-footer-social-link iconify-icon.stambrose-icon-lg {
        font-size: 30px;
    }
}