/**
 * Header + mobile drawer + dark footer
 */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--pad-x);
    gap: 1rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
}

.site-logo img,
.site-logo svg {
    height: 22px;
    width: auto;
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
    border-bottom-color: var(--ink);
    color: var(--ink);
}

.site-nav__tel {
    font-variant-numeric: tabular-nums;
    color: var(--indigo);
}

.site-nav__tel:hover {
    color: var(--indigo-hover);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-control);
}

.nav-toggle__bars {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }
}

/* === Drawer === */
.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    visibility: hidden;
    pointer-events: none;
}

.nav-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.45);
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-drawer.is-open .nav-drawer__backdrop {
    opacity: 1;
}

.nav-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 320px);
    height: 100%;
    background: var(--footer);
    color: var(--text-on-dark);
    padding: var(--space-lg) var(--pad-x);
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-drawer.is-open .nav-drawer__panel {
    transform: translateX(0);
}

.nav-drawer__close {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    color: var(--text-on-dark);
    border: 1px solid rgba(243, 244, 246, 0.25);
    border-radius: var(--radius-control);
    font-size: 1.25rem;
    line-height: 1;
}

.nav-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-drawer__links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 1.0625rem;
    border-bottom: 1px solid rgba(243, 244, 246, 0.12);
}

.nav-drawer__links a:hover {
    color: var(--paper);
}

body.nav-open {
    overflow: hidden;
}

/* === Footer === */
.site-footer {
    background: var(--footer);
    color: var(--text-on-dark);
    padding: var(--space-2xl) 0 var(--space-xl);
}

.site-footer a {
    color: rgba(243, 244, 246, 0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--paper);
}

.site-footer__grid {
    display: grid;
    gap: var(--space-xl);
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

.site-footer__brand {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.site-footer__text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(243, 244, 246, 0.72);
}

.site-footer__heading {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    color: rgba(243, 244, 246, 0.55);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.9rem;
}

.site-footer__links button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: rgba(243, 244, 246, 0.85);
    font-size: 0.9rem;
    text-align: left;
}

.site-footer__links button:hover {
    color: var(--paper);
}

.site-footer__bottom {
    max-width: var(--container-wide);
    margin: var(--space-xl) auto 0;
    padding: var(--space-md) var(--pad-x) 0;
    border-top: 1px solid rgba(243, 244, 246, 0.12);
    font-size: 0.8125rem;
    color: rgba(243, 244, 246, 0.55);
}
