﻿/* =========================================
   SMA HEADER
   ========================================= */

.sma-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--sma-white);
    border-bottom: 1px solid var(--sma-border);
}

.admin-bar .sma-site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .sma-site-header {
        top: 46px;
    }
}

.sma-header-inner {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.sma-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sma-brand-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--sma-navy);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.sma-brand-placeholder:hover {
    color: var(--sma-teal);
    text-decoration: none;
}

.sma-brand-mark {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sma-navy);
    color: var(--sma-white);
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.sma-brand-name {
    max-width: 210px;
}

.sma-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.sma-branding .custom-logo {
    width: auto;
    max-width: 220px;
    max-height: 68px;
    object-fit: contain;
}

/* Primary navigation */

.sma-primary-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sma-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sma-social-links li {
    margin: 0;
}

.sma-primary-navigation .sma-social-links {
    justify-content: flex-end;
}

.sma-social-links a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: inherit;
}

.sma-social-links a:hover,
.sma-social-links a:focus-visible {
    color: inherit;
    background: rgba(100, 125, 140, 0.22);
}

.sma-social-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.sma-social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sma-footer-brand .sma-social-links {
    margin-top: 16px;
    color: var(--sma-white);
}

.sma-primary-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sma-primary-menu li {
    margin: 0;
    padding: 0;
}

.sma-primary-menu a {
    display: inline-block;
    padding: 12px 0;
    color: var(--sma-navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.sma-primary-menu a:hover,
.sma-primary-menu .current-menu-item > a {
    color: var(--sma-teal);
    text-decoration: none;
}

.sma-menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--sma-border);
    border-radius: var(--sma-radius-small);
    background: var(--sma-white);
    color: var(--sma-navy);
    font-weight: 700;
    cursor: pointer;
}

.sma-menu-icon {
    display: flex;
    width: 20px;
    flex-direction: column;
    gap: 4px;
}

.sma-menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
}

/* =========================================
   SMA FOOTER
   ========================================= */

.sma-site-footer {
    padding-top: 56px;
    background: var(--sma-navy);
    color: var(--sma-white);
}

.sma-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    padding-bottom: 40px;
}

.sma-footer-brand-name {
    margin-bottom: 12px;
    color: var(--sma-white);
    font-size: 1.35rem;
    font-weight: 700;
}

.sma-footer-brand p {
    max-width: 430px;
    color: rgba(255, 255, 255, 0.78);
}

.sma-footer-navigation h2 {
    margin-bottom: 16px;
    color: var(--sma-white);
    font-size: 1rem;
}

.sma-footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sma-footer-menu li {
    margin-bottom: 8px;
}

.sma-footer-menu a {
    color: rgba(255, 255, 255, 0.82);
}

.sma-footer-menu a:hover {
    color: var(--sma-white);
    text-decoration: underline;
}

.sma-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sma-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE HEADER AND FOOTER
   ========================================= */

@media (max-width: 1050px) {
    .sma-menu-toggle {
        display: inline-flex;
    }

    .sma-primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 16px 24px 24px;
        border-top: 1px solid var(--sma-border);
        background: var(--sma-white);
        box-shadow: var(--sma-shadow);
    }

    .sma-primary-navigation.is-open {
        display: block;
    }

    .sma-primary-navigation .sma-social-links {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .sma-primary-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .sma-primary-menu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--sma-border);
    }
}

@media (max-width: 600px) {
    .admin-bar .sma-site-header {
        top: 0;
    }

    .sma-header-inner {
        min-height: 76px;
        gap: 12px;
    }

    .sma-brand-mark {
        width: 44px;
        height: 44px;
    }

    .sma-brand-name {
        max-width: 155px;
        font-size: 0.9rem;
    }

    .sma-branding .custom-logo {
        max-width: 165px;
        max-height: 55px;
    }

    .sma-footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
