/* ============================================================
   Header — Top bar, logo, navigation, mobile hamburger menu
   ============================================================ */

/* --- Top Bar (emergency phone) --- */

.top-bar {
    background-color: var(--color-accent);
    color: #fff;
    font-size: 0.8125rem;
    padding: 0.4rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-text {
    font-weight: 500;
}

.top-bar-phone {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.top-bar-phone:hover {
    color: #fff;
}

/* --- Header --- */

.header-main {
    background-color: var(--color-header_bg);
    position: relative;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo:hover {
    color: #fff;
}

.logo-img {
    max-height: 2.5rem;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .logo-img {
        max-height: 3rem;
    }
}

/* --- Hamburger --- */

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s;
}

/* --- Nav menu — mobile: hidden dropdown --- */

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header_bg);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-menu.nav-open {
    display: flex;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-phone {
    color: var(--color-accent) !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    margin-top: 0.5rem;
}

/* --- Desktop nav --- */

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .nav-menu a {
        padding: 0;
        border-bottom: none;
    }

    .nav-phone {
        margin-top: 0;
        margin-left: 0.5rem;
    }
}
