@font-face {
    font-family: "Exo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/exo-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Exo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/exo-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
    --color-primary: #00a790;
    --color-primary-container: #abe5df;
    --color-interactive: #007863;
    --color-on-surface: #2a2a2a;
    --color-on-surface-variant: #6c6c6c;
    --color-outline: #989898;
    --color-surface: #f4f5f7;
    --font-sans: "Exo", system-ui, sans-serif;
}

body {
    font-family: var(--font-sans);
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 24px;
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    border: 0;
    background: transparent;
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 57px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #f4f5f7;
    box-shadow: 0 4px 10px rgb(0 0 0 / 12%);
}

.site-header__logo {
    flex: none;
    padding-right: 8px;
    color: var(--color-primary);
}

.site-brand__mark {
    display: block;
    width: 107px;
    height: 33px;
    background: currentColor;
    -webkit-mask: url("../images/agroop-logo.svg") center / contain no-repeat;
    mask: url("../images/agroop-logo.svg") center / contain no-repeat;
}

.site-header__divider {
    width: 1px;
    height: 21px;
    flex: none;
    background: rgb(152 152 152 / 42%);
}

.site-header__content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.primary-nav,
.nav-list,
.mega__links {
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 29px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    color: #6c6c6c;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color 150ms cubic-bezier(0.2, 0, 0, 1), background-color 150ms cubic-bezier(0.2, 0, 0, 1), opacity 150ms cubic-bezier(0.2, 0, 0, 1);
}

.nav-trigger__bullet {
    width: 4px;
    height: 4px;
    overflow: hidden;
    border-radius: 50%;
    color: currentColor;
    background: currentColor;
    font-size: 0;
}

.nav-trigger:hover,
.nav-trigger:focus-visible,
.nav-trigger[aria-expanded="true"] {
    color: var(--color-interactive);
    background: rgb(171 229 223 / 20%);
}

.nav-list:has(.nav-trigger:hover) .nav-trigger:not(:hover),
.nav-list:has(.nav-trigger[aria-expanded="true"]) .nav-trigger:not([aria-expanded="true"]) {
    opacity: 0.4;
}

.mega-shell {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: min(calc(100vw - 48px), 37rem);
    height: 0;
    overflow: hidden;
    border: 1px solid rgb(28 75 66 / 10%);
    border-radius: 20px;
    background: var(--color-surface);
    box-shadow: 0 18px 28px rgb(0 0 0 / 22%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 150ms cubic-bezier(0.2, 0, 0, 1);
}

.mega-shell[data-open] {
    opacity: 1;
    pointer-events: auto;
}

.mega-slot {
    display: none;
}

.mega {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    display: block;
    width: min(calc(100vw - 48px), 37rem);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
}

.mega-shell > .mega {
    position: static;
    width: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.mega-shell > .mega:not([data-open]) {
    display: none;
}

.site-header[data-nav-sync] .site-header__content,
.site-header[data-nav-sync] .mega,
.site-header[data-nav-sync] .mega-shell {
    transition: none !important;
}

.mega__inner {
    display: block;
    padding: 16px;
    border: 1px solid rgb(28 75 66 / 10%);
    border-radius: 20px;
    background: var(--color-surface);
    box-shadow: 0 18px 28px rgb(0 0 0 / 22%);
}

.mega__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    list-style: none;
}

.mega__link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 48px;
    padding: 8px;
    border-radius: 8px;
    color: var(--color-on-surface);
    text-decoration: none;
    transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1);
}

.mega__link:hover,
.mega__link:focus-visible {
    color: var(--color-on-surface);
    background: rgb(171 229 223 / 28%);
}

.mega__link--inactive {
    opacity: 0.55;
    cursor: not-allowed;
}

.mega__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: var(--color-interactive);
    background: var(--color-primary-container);
}

.mega__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mega__link-copy {
    display: grid;
    min-width: 0;
    padding: 0 8px;
}

.mega__link-title,
.mega__link-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mega__link-title {
    color: var(--color-on-surface);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
}

.mega__link-description {
    color: #989898;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.mega__external {
    width: 18px;
    height: 18px;
    color: var(--color-outline);
    fill: none;
}

.mega__context {
    display: block;
}

.mega__cta {
    margin-top: 16px;
}

.cta {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background: var(--color-interactive);
}

.cta__media {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: var(--color-interactive);
}

.cta__media::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(to right, rgb(0 52 42 / 80%) 0%, rgb(0 52 42 / 65%) 60%, transparent 100%);
    content: "";
}

.cta__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cta__content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta__copy {
    min-width: 0;
}

.cta__copy h2,
.cta__copy h3,
.cta__copy p {
    margin: 0;
    color: inherit;
}

.cta__copy p {
    max-width: 58ch;
}

.cta__actions {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 8px;
}

.cta--sm {
    border-radius: 8px;
}

.cta--sm .cta__content {
    padding: 16px;
}

.cta--sm .cta__copy h2,
.cta--sm .cta__copy h3 {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.cta--sm .cta__copy p {
    margin-top: 4px;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 9999px;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.btn--sm {
    padding: 10px 16px;
    font-size: 0.9375rem;
}

.btn--solid {
    color: #fff;
    background: var(--color-primary);
}

.btn--solid:hover,
.btn--solid:focus-visible {
    color: #fff;
    background: var(--color-interactive);
}

.btn--outline {
    color: var(--color-interactive);
    border-color: var(--color-interactive);
    background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
    color: var(--color-interactive);
    background: rgb(171 229 223 / 20%);
}

.btn--inverse {
    color: var(--color-interactive);
    background: #fff;
}

.btn--inverse:hover,
.btn--inverse:focus-visible {
    color: var(--color-interactive);
    background: var(--color-primary-container);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__login {
    min-width: 84px;
    text-transform: uppercase;
}

.site-header__assessment {
    display: none;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    color: var(--color-interactive);
    background: transparent;
    cursor: pointer;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
}

.nav-toggle__close {
    display: none;
}

.site-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-header__content {
        flex: 1;
        min-width: 0;
        justify-content: space-between;
        gap: 16px;
    }

    .site-header__actions {
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    body.nav-is-open {
        overflow: hidden;
    }

    .site-header {
        top: 16px;
        width: calc(100vw - 16px);
        max-width: none;
    }

    .site-header__bar {
        justify-content: space-between;
        width: 100%;
        min-height: 56px;
        padding: 8px 16px;
    }

    .site-header__divider {
        display: none;
    }

    .site-header__content {
        position: fixed;
        z-index: -1;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 84px 24px calc(24px + env(safe-area-inset-bottom));
        background: var(--color-surface);
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 150ms cubic-bezier(0.2, 0, 0, 1), visibility 150ms cubic-bezier(0.2, 0, 0, 1), transform 250ms cubic-bezier(0.2, 0, 0, 1);
    }

    .site-header[data-nav-open="true"] {
        inset: 0;
        left: 0;
        width: 100%;
        transform: none;
    }

    .site-header[data-nav-open="true"] .site-header__bar {
        position: relative;
        z-index: 2;
        border-radius: 0;
        box-shadow: none;
    }

    .site-header[data-nav-open="true"] .site-header__content {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .primary-nav {
        flex: 1;
        overflow-y: auto;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-trigger {
        width: 100%;
        min-height: 32px;
        padding: 8px 0;
        color: var(--color-on-surface-variant);
        font-size: 1rem;
        text-align: left;
        cursor: default;
    }

    .nav-trigger:hover,
    .nav-trigger:focus-visible,
    .nav-trigger[aria-expanded="true"] {
        color: var(--color-on-surface-variant);
        background: transparent;
    }

    .nav-trigger__bullet {
        display: none;
    }

    .mega-slot {
        display: none;
    }

    .mega {
        position: static;
        display: block;
        width: auto;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .mega__inner {
        padding: 0 0 16px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .mega__links {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mega__link {
        min-height: 48px;
    }

    .mega__context,
    .mega-shell {
        display: none;
    }

    .site-header__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding-top: 24px;
    }

    .site-header__actions .btn {
        width: 100%;
    }

    .site-header__assessment {
        display: inline-flex;
    }

    .nav-toggle {
        display: grid;
    }

    .site-header[data-nav-open="true"] .nav-toggle__open {
        display: none;
    }

    .site-header[data-nav-open="true"] .nav-toggle__close {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header * {
        scroll-behavior: auto;
        transition-duration: 0.01ms !important;
    }
}
