/* ==========================================
   Header & Footer Styles
   ========================================== */

/* ==========================================
   Base Styles & Reset
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   Header
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo .custom-logo-link {
    display: block;
}

.header-logo .custom-logo,
.header-logo .site-logo {
    max-height: 28px;
    width: auto;
}

.site-logo-link {
    display: block;
    line-height: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #f7941d, #00ae4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-navigation {
    flex-grow: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.2s ease;
}

.primary-menu a:hover {
    color: #f7941d;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    position: absolute;
    left: 0;
    transition: transform 0.2s ease;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
}

.header-cta {
    flex-shrink: 0;
}

.header-partner {
    flex-shrink: 0;
}

.partner-link {
    text-decoration: none;
    color: #dc2626;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.partner-link:hover {
    color: #b91c1c;
}

.header-login {
    flex-shrink: 0;
}

.login-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #f7941d, #00ae4d);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-widgets {
    margin-bottom: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .custom-logo,
.footer-logo .footer-logo-img {
    max-height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-link {
    display: block;
    line-height: 0;
}

.site-footer .wp-block-image img,
.site-footer .footer-widgets img {
    max-height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-site-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

.footer-navigation {
    display: flex;
    justify-content: center;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: white;
}

.footer-info {
    text-align: right;
}

.footer-copyright {
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal-links {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #f7941d;
}

.footer-legal-separator {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .header-container {
        gap: 1rem;
    }

    .primary-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .site-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-navigation.active {
        max-height: 500px;
    }

    .primary-menu {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .primary-menu li {
        border-bottom: 1px solid #e5e7eb;
    }

    .primary-menu li:last-child {
        border-bottom: none;
    }

    .primary-menu a {
        display: block;
        padding: 1rem;
    }

    .header-cta {
        display: none;
    }

    .header-partner {
        display: none;
    }

    .header-login {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-navigation {
        justify-content: center;
    }

    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .header-logo .custom-logo {
        max-height: 25px;
    }
}
