@import url("../icons/line-awesome/css/line-awesome.min.css");

:root {
    --page-nav-green: #5e8133;
    --page-nav-green-dark: #38551c;
    --page-nav-orange: #fe9f10;
    --page-nav-ink: #26321e;
}

html {
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 104px;
}

.page-section-nav {
    position: relative;
    z-index: 1;
    padding: 16px 0 24px;
    background: linear-gradient(180deg, #fff 0%, #f7f9f3 100%);
}

.page-section-nav__panel {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 20px;
    border: 1px solid #e6ecdc;
    border-left: 4px solid var(--page-nav-green);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(49, 73, 28, 0.08);
}

.page-section-nav__intro {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 3px;
}

.page-section-nav__eyebrow {
    color: var(--page-nav-green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.page-section-nav__title {
    color: var(--page-nav-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.page-section-nav__list {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-section-nav__list a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 8px;
    border: 1px solid #e9eee2;
    border-radius: 999px;
    background: #fbfcf9;
    color: #46513d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.page-section-nav__list a:hover {
    transform: translateY(-2px);
    border-color: var(--page-nav-green);
    background: var(--page-nav-green);
    color: #fff;
    box-shadow: 0 5px 14px rgba(56, 85, 28, 0.18);
}

.page-section-nav__list a:focus-visible {
    outline: 3px solid var(--page-nav-orange);
    outline-offset: 3px;
}

.page-section-nav__number {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: #edf3e6;
    color: var(--page-nav-green-dark);
    font-size: 11px;
    font-weight: 700;
}

.page-section-nav__list a:hover .page-section-nav__number {
    background: var(--page-nav-orange);
    color: #fff;
}

.home-page .page-section-nav__panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}

.home-page .page-section-nav__list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page .page-section-nav__list a {
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .page-section-nav {
        padding: 12px 0 18px;
    }

    .page-section-nav__panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        border-radius: 14px;
    }

    .page-section-nav__list {
        gap: 7px;
    }

    .home-page .page-section-nav__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-section-nav__list a {
        min-height: 38px;
        padding-right: 11px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .page-section-nav__list a {
        transition: none;
    }
}
