/* ============================================================
   topbar.css — sticky header, navigation, mobile overlay
   ============================================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
}

.topbar .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-2);
    min-height: 4.25rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--f-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--c-dark);
}

.site-logo img {
    width: 34px;
    height: 34px;
}

.topbar nav {
    display: none;
}

.topbar .tel {
    display: none;
    font-weight: 600;
    text-decoration: none;
    color: var(--c-dark);
    white-space: nowrap;
}

.topbar .tel:hover {
    color: var(--c-green-deep);
}

/* ---------- burger button ---------- */

.menu-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-open .bars {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-dark);
}

.menu-open .bars::before,
.menu-open .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--c-dark);
}

.menu-open .bars::before {
    top: -7px;
}

.menu-open .bars::after {
    top: 7px;
}

/* ---------- mobile overlay ---------- */

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1010;
    display: none;
    flex-direction: column;
    padding: var(--s-4) var(--s-3);
    background: var(--c-dark);
    overflow-y: auto;
}

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

.mobile-nav .close-row {
    display: flex;
    justify-content: flex-end;
}

.mobile-nav .menu-close {
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--c-white);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.mobile-nav ul {
    margin-top: var(--s-4);
    padding: 0;
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid #2e4a38;
}

.mobile-nav a {
    display: block;
    padding: var(--s-2) 0;
    font-family: var(--f-display);
    font-size: 1.375rem;
    text-decoration: none;
    color: var(--c-white);
}

.mobile-nav a:hover {
    color: var(--c-sun);
}

.mobile-nav .tel-big {
    margin-top: var(--s-4);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-sun);
    text-decoration: none;
}

/* ---------- desktop ---------- */

@media (min-width: 64rem) {
    .topbar nav {
        display: block;
    }

    .topbar nav ul {
        display: flex;
        gap: var(--s-3);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .topbar nav a {
        font-weight: 600;
        text-decoration: none;
        color: var(--c-ink);
    }

    .topbar nav a:hover,
    .topbar nav a[aria-current="page"] {
        color: var(--c-green-deep);
    }

    .topbar .tel {
        display: inline-block;
    }

    .menu-open {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.open {
        display: none;
    }
}
