﻿:root {
    --site-header-height: 76px;
    --site-header-shadow: 0 18px 42px rgba(44, 36, 22, 0.08);
}

body.has-universal-header {
    padding-top: calc(var(--site-header-height));
}

body.has-universal-header .app-wrap {
    min-height: calc(100% - var(--site-header-height));
    
}

body.has-universal-header .menu-container {
    top: calc(var(--site-header-height) + 2rem);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0 0;
    pointer-events: none;
    width: 100vw;
    margin: 0;
        
}

.site-header__inner {
    pointer-events: auto;
    max-width: 100%;
    margin: 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(139, 128, 117, 0.28);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(255, 249, 243, 0.96), rgba(245, 237, 227, 0.92));
    box-shadow: var(--site-header-shadow);
    backdrop-filter: blur(12px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text, #2c2416);
    min-width: 0;
}

.site-brand__mark {
    position: relative;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(255, 249, 243, 0.95), rgba(201, 122, 58, 0.22)),
        linear-gradient(145deg, rgba(201, 122, 58, 0.96), rgba(139, 128, 117, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 249, 243, 0.75);
}

.site-brand__mark::before,
.site-brand__mark::after {
    content: '';
    position: absolute;
    border-radius: 999px;
}

.site-brand__mark::before {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 249, 243, 0.96);
}

.site-brand__mark::after {
    width: 0.45rem;
    height: 0.45rem;
    background: rgba(255, 249, 243, 0.96);
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-brand__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.site-brand__tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: var(--secondary, #8b8075);
    line-height: 1.2;
    white-space: nowrap;
}

.site-header__toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    background: var(--accent, #c97a3a);
    color: var(--surface, #fff9f3);
    padding: 0.75rem 1rem;
    font: 600 0.85rem 'DM Sans', sans-serif;
    cursor: pointer;
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.site-nav-link {
    text-decoration: none;
    color: var(--text, #2c2416);
    font: 500 0.85rem 'DM Sans', sans-serif;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(201, 122, 58, 0.4);
    background: rgba(201, 122, 58, 0.12);
}

.site-nav-link.is-active {
    background: var(--accent, #c97a3a);
    color: var(--surface, #fff9f3);
    border-color: var(--accent, #c97a3a);
}

@media (max-width: 900px) {
    :root {
        --site-header-height: 78px;
    }

    body.has-universal-header {
        padding-top: calc(var(--site-header-height) + 0.5rem);
    }

    .site-header {
        padding: 0.8rem 1rem 0;
    }

    .site-header__inner {
        padding: 0.8rem 0.9rem;
        flex-wrap: wrap;
    }

    .site-brand__tagline {
        white-space: normal;
    }

    .site-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header__nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.35rem;
    }

    .site-header__nav.is-open {
        display: flex;
    }

    .site-nav-link {
        width: 100%;
        text-align: center;
    }

    body.has-universal-header .app-wrap {
        padding-top: 1.25rem;
    }

    body.has-universal-header .menu-container {
        top: auto;
    }
}
