/* ==========================================================================
   HEADER & FOOTER STYLES — Figma Exact Match
   Wilmette Events Child Theme
   Location: assets/css/header-footer.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   ANNOUNCEMENT BAR — Red Banner
   -------------------------------------------------------------------------- */
.wm-announcement-bar {
    background-color: #D4462C;
    color: #FFFFFF;
    font-family: var(--font-family-secondary);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 9px 20px;
    position: relative;
    z-index: 1001;
}

.wm-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.wm-announcement-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.wm-announcement-icon svg {
    width: 16px;
    height: 16px;
}

.wm-announcement-text {
    margin: 0;
    font-size: 13px;
    color: #FFFFFF;
    line-height: 1.4;
}

.wm-announcement-text strong {
    font-weight: 700;
}

.wm-announcement-link {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 8px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.wm-announcement-link:hover {
    opacity: 0.8;
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   SITE HEADER — Teal/Green Navigation Bar
   -------------------------------------------------------------------------- */
.wm-site-header {
    background-color: #0A7B70;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.wm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(20px, 4vw, 60px);
    height: 72px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* Logo */
.wm-site-branding {
    flex-shrink: 0;
}

.wm-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.wm-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.wm-logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
}

.wm-logo-script {
    font-family: var(--font-family-accent);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.wm-logo-sans {
    font-family: var(--font-family-primary);
    font-size: clamp(18px, 1.9vw, 24px);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    margin-left: 6px;
}

/* Primary Navigation */
.wm-primary-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.wm-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #FFFFFF !important;
    font-family: var(--font-family-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 24px 14px;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.wm-nav-list > li > a:hover,
.wm-nav-list > li.is-open > a {
    color: #2ED8A7 !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-chevron {
    transition: transform 0.25s ease;
}

.wm-nav-list > li.is-open > a .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown Sub-menus */
.wm-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    min-width: 220px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    border-top: 3px solid #0A7B70;
}

.wm-nav-list > li.menu-item-has-children {
    position: relative;
}

.wm-nav-list > li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wm-nav-list .sub-menu li a {
    display: block;
    padding: 10px 24px;
    color: #1E1E1E !important;
    font-family: var(--font-family-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.wm-nav-list .sub-menu li a:hover {
    color: #0A7B70 !important;
    background-color: #F0FDFB;
}

/* Header Right Controls */
.wm-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Quicklinks Button */
.wm-quicklinks-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #FFFFFF;
    font-family: var(--font-family-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.wm-quicklinks-btn:hover,
.wm-quicklinks-btn[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* Language Selector */
.wm-lang-selector {
    position: relative;
}

.wm-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
    font-family: var(--font-family-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wm-lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Mobile Hamburger */
.wm-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 40px;
    height: 40px;
}

.wm-hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wm-mobile-toggle.is-active .wm-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.wm-mobile-toggle.is-active .wm-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.wm-mobile-toggle.is-active .wm-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Quicklinks Panel Dropdown */
.wm-quicklinks-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    background: #FFFFFF;
    z-index: 2000;
    padding: 80px 30px 40px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.wm-quicklinks-panel.is-open {
    transform: translateX(0);
}

.wm-quicklinks-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wm-quicklinks-overlay.is-visible {
    display: block;
    opacity: 1;
}

.wm-quicklinks-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wm-quicklink-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #1E1E1E !important;
    font-family: var(--font-family-secondary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 1px solid #E5E0D8;
}

.wm-quicklink-item:hover {
    background-color: #F0FDFB;
    color: #0A7B70 !important;
    border-color: #0A7B70;
}

.wm-quicklink-item svg {
    flex-shrink: 0;
    color: #0A7B70;
}


/* --------------------------------------------------------------------------
   SITE FOOTER — Dark Teal Figma Design
   -------------------------------------------------------------------------- */
.wm-site-footer {
    background-color: #005A52;
    color: #FFFFFF;
    font-family: var(--font-family-secondary);
    position: relative;
    margin-top: 0;
}

.wm-footer-wave {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    line-height: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.wm-footer-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.wm-footer-inner {
    padding: 60px 0 0;
}

/* Footer Partner Logos */
.wm-footer-logos {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.wm-footer-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Footer Grid: Left + Right */
.wm-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    margin-bottom: 48px;
}

/* Left Column */
.wm-footer-heading {
    font-family: var(--font-family-primary);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4px;
    line-height: 1.15;
}

.wm-footer-subheading {
    font-family: var(--font-family-accent);
    font-size: clamp(20px, 2vw, 26px);
    color: #FFFFFF;
    margin-bottom: 16px;
    font-weight: 400;
}

.wm-footer-subheading em {
    font-style: italic;
}

.wm-footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 340px;
}

/* Newsletter Form */
.wm-newsletter-form {
    margin-bottom: 32px;
}

.wm-newsletter-input-group {
    display: flex;
    gap: 0;
    background: #FFFFFF;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 360px;
}

.wm-newsletter-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-family: var(--font-family-secondary);
    font-size: 14px;
    color: #1E1E1E;
    background: transparent;
    min-width: 0;
}

.wm-newsletter-input::placeholder {
    color: #999;
}

.wm-newsletter-btn {
    background-color: #3C257B;
    color: #FFFFFF;
    border: none;
    padding: 12px 22px;
    font-family: var(--font-family-secondary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    white-space: nowrap;
    transition: background-color 0.25s ease;
}

.wm-newsletter-btn:hover {
    background-color: #2a1a5c;
}

/* Social Links */
.wm-footer-social-section {
    margin-bottom: 20px;
}

.wm-footer-social-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
    line-height: 1.4;
}

.wm-footer-social-label strong {
    color: #FFFFFF;
    font-weight: 700;
}

.wm-footer-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wm-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF !important;
    transition: background-color 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.wm-social-link:hover {
    background-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

.wm-social-link svg {
    width: 16px;
    height: 16px;
}

/* Right Column */
.wm-footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.wm-footer-col-heading {
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* Events Quick Cards */
.wm-footer-event-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wm-footer-event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    line-height: 1.3;
}

.wm-footer-event-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF !important;
}

.wm-footer-event-name {
    flex: 1;
}

.wm-footer-event-card svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Footer Links Grid */
.wm-footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.wm-footer-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.wm-footer-link:hover {
    color: #2ED8A7 !important;
}

/* Contact Email */
.wm-footer-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.wm-footer-contact-email:hover {
    color: #2ED8A7 !important;
}

.wm-footer-contact-email svg {
    flex-shrink: 0;
    color: #2ED8A7;
}

/* Footer Bottom Bar */
.wm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.wm-footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.wm-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wm-footer-legal-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wm-footer-legal-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Back to Top */
.wm-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.wm-back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   HERO: Community Badge (ONE VIBRANT COMMUNITY pill)
   -------------------------------------------------------------------------- */
.hero-community-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-community-badge span {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 8px 20px;
    font-family: var(--font-family-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS — Header & Footer
   -------------------------------------------------------------------------- */

/* Tablet — 1024px */
@media (max-width: 1100px) {
    .wm-nav-list > li > a {
        padding: 24px 10px;
        font-size: 14px;
    }

    .wm-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .wm-footer-right {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .wm-footer-logos {
        gap: 20px;
    }
}

/* Mobile — 768px */
@media (max-width: 768px) {
    .wm-header-inner {
        height: 64px;
        padding: 0 20px;
    }

    .wm-primary-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #005A52;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .wm-primary-nav.is-open {
        transform: translateX(0);
    }

    .wm-nav-list {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .wm-nav-list > li {
        width: 100%;
    }

    .wm-nav-list > li > a {
        padding: 14px 0;
        font-size: 18px;
        font-weight: 700;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .wm-nav-list .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        border-top: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 6px 0;
        margin-top: 4px;
        display: none;
    }

    .wm-nav-list > li.is-open > .sub-menu {
        display: block;
    }

    .wm-nav-list .sub-menu li a {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 15px;
        padding: 10px 20px;
    }

    .wm-nav-list .sub-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #FFFFFF !important;
    }

    .wm-mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .wm-quicklinks-btn span {
        display: none;
    }

    .wm-lang-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Footer mobile */
    .wm-footer-right {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .wm-footer-logos {
        flex-direction: column;
        gap: 16px;
    }

    .wm-footer-grid {
        gap: 36px;
    }

    .wm-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .wm-newsletter-input-group {
        max-width: 100%;
    }

    .wm-announcement-inner {
        justify-content: flex-start;
    }

    .wm-announcement-text {
        font-size: 12px;
    }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
    .wm-footer-links-grid {
        grid-template-columns: 1fr;
    }

    .wm-footer-legal-links {
        gap: 12px;
    }
}
