/* === MOBILE HEADER === */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

@media (min-width: 1024px) {
    .site-header {
        display: none;
    }
}

.site-header__logo img {
    height: 28px;
    width: auto;
}

.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
}

.burger-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--slate);
}

body.has-sponsored-bar .site-header {
    top: 33px;
}

body.has-sponsored-bar {
    padding-top: calc(var(--header-height) + 33px);
}

body:not(.has-sponsored-bar) {
    padding-top: var(--header-height);
}

@media (min-width: 1024px) {
    body.has-sponsored-bar,
    body:not(.has-sponsored-bar) {
        padding-top: 0;
    }
}

/* === DRAWER === */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background: var(--surface);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s;
    padding: 20px;
    overflow-y: auto;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-bottom: 16px;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer__nav a {
    display: block;
    padding: 12px 16px;
    color: var(--slate);
    font-weight: 500;
    border-left: 2px solid transparent;
}

.drawer__nav a:hover,
.drawer__nav a.is-active {
    border-left-color: var(--cta);
    color: var(--cta);
    background: var(--cta-light);
}

.drawer__phone {
    margin-top: 24px;
    padding: 12px 16px;
    font-size: 0.875rem;
}

.drawer__phone a {
    color: var(--cta);
    font-weight: 600;
}

/* === DESKTOP RAIL === */

.site-rail {
    display: none;
}

@media (min-width: 1024px) {
    .site-rail {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        width: var(--rail-width);
        min-height: 100vh;
        background: var(--surface);
        border-right: 1px solid var(--border);
        padding: 32px 20px;
        flex-shrink: 0;
    }

    body.has-sponsored-bar .site-rail {
        top: 33px;
        min-height: calc(100vh - 33px);
    }
}

.rail__logo {
    margin-bottom: 32px;
}

.rail__logo img {
    height: 32px;
    width: auto;
}

.rail__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.rail__nav a {
    display: block;
    padding: 10px 12px;
    color: var(--slate);
    font-weight: 500;
    font-size: 0.875rem;
    border-left: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rail__nav a:hover,
.rail__nav a.is-active {
    border-left-color: var(--cta);
    color: var(--cta);
    background: var(--cta-light);
}

.rail__phone {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.rail__phone a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cta);
    font-size: 0.875rem;
    font-weight: 600;
}

.rail__phone svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* === FOOTER === */

.site-footer {
    background: var(--slate);
    color: var(--text-on-dark);
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--text-on-dark);
}

.footer-col p,
.footer-col li {
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.75);
    line-height: 1.6;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: rgba(248, 250, 252, 0.85);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--surface);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-col a.cookie-settings-link {
    color: #60A5FA;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(248, 250, 252, 0.15);
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.6);
    text-align: center;
}
