.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-medium);
    min-height: var(--header-height);
    padding: var(--space-medium);
    background: var(--color-white);
    animation: header-appear 600ms ease-out;
}

.brand {
    flex-shrink: 0;
    width: clamp(150px, 12.475vw, 245px);
}

.site-navigation {
    margin-right: var(--space-medium);
}

.navigation-list,
.submenu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.navigation-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: var(--text-small);
    font-weight: 700;
    text-transform: uppercase;
}

.navigation-list a {
    display: block;
    padding-block: var(--space-small);
    transition: color var(--motion-fast);
}

.navigation-list a:hover,
.navigation-list a:focus-visible {
    color: var(--color-coral);
}

.navigation-contact {
    position: relative;
}

.submenu-heading {
    display: flex;
    align-items: center;
}

.submenu-toggle {
    display: grid;
    place-items: center;
    width: 28px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.chevron {
    width: 0;
    height: 0;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    min-width: 210px;
    padding: var(--space-small) var(--space-medium);
    background: var(--color-white);
    font-weight: 400;
    text-transform: none;
}

.navigation-contact.is-open > .submenu,
html:not(.js) .navigation-contact:focus-within > .submenu,
html:not(.js) .navigation-contact:hover > .submenu {
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    background: #f3f3f3;
    color: var(--color-text);
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    background: currentColor;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    visibility: hidden;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: var(--space-small) var(--space-medium);
    border: 0;
    border-radius: var(--radius-button);
    background: var(--color-dark);
    color: var(--color-white);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.button-accent {
    background: var(--color-accent);
}

.button:hover {
    filter: brightness(1.08);
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.client-carousel {
    position: relative;
    min-width: 0;
    padding-inline: 26px;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 45px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    display: flex;
    flex: 0 0 calc((100% - 135px) / 4);
    align-items: center;
    justify-content: center;
    min-width: 0;
    scroll-snap-align: start;
}

.carousel-slide img {
    width: 100%;
    max-height: 170px;
    object-fit: contain;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 28px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.carousel-previous {
    left: 0;
}

.carousel-next {
    right: 0;
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-small);
}

.field {
    min-width: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.contact-fields input,
.contact-fields textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    padding: 6px 16px;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-field);
    background: transparent;
    color: var(--color-white);
    line-height: 1.4;
}

.contact-fields textarea {
    min-height: 106px;
    resize: vertical;
}

.contact-fields input::placeholder,
.contact-fields textarea::placeholder {
    opacity: 1;
    color: var(--color-white);
}

.contact-button {
    width: 100%;
    margin-top: var(--space-small);
}

.contact-status {
    margin-top: var(--space-small);
    font-size: var(--text-small);
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding: 30px;
    background: var(--color-white);
    color: var(--color-black);
}

.footer-brand img {
    width: 64%;
}

.footer-column h2 {
    margin-bottom: 5px;
    font-size: var(--text-small);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.footer-column p {
    font-size: var(--text-small);
    line-height: 1.5;
    text-align: justify;
    overflow-wrap: anywhere;
}

@keyframes header-appear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .site-header {
        flex-wrap: wrap;
    }

    .js .menu-toggle {
        display: flex;
    }

    .site-navigation {
        width: 100%;
        margin: 0;
    }

    .js .site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        padding: var(--space-medium);
        background: var(--color-white);
        border-top: 1px solid var(--color-light);
    }

    .js .site-navigation.is-open {
        display: block;
    }

    .navigation-list {
        display: block;
    }

    .navigation-list a {
        padding: 14px var(--space-small);
    }

    .submenu-heading {
        justify-content: space-between;
    }

    .submenu-toggle {
        width: 44px;
    }

    .submenu {
        position: static;
        padding-block: 0;
        padding-left: var(--space-large);
    }

    .carousel-slide {
        flex-basis: calc((100% - 45px) / 2);
    }

    .site-footer {
        gap: var(--space-medium);
    }
}

@media (max-width: 767px) {
    .site-header {
        padding: 16px 20px;
    }

    .brand {
        width: 150px;
    }

    .contact-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .carousel-slide {
        flex-basis: 100%;
    }

    .carousel-slide img {
        width: auto;
        max-width: 100%;
        height: 150px;
    }

    .site-footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding: 32px 28px;
    }

    .footer-brand img {
        width: 210px;
    }

    .footer-column p {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        animation: none;
    }

    .navigation-list a {
        transition: none;
    }
}

