﻿.hp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
}

.hp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(109, 54, 30, 0.45) 0%, rgba(109, 54, 30, 0.15) 55%, rgba(254, 252, 245, 0.0) 100% );
    pointer-events: none;
    z-index: 1;
}

.hp-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 44px 0 24px;
    max-width: 800px;
}

.hp-hero__eyebrow {
    font-weight: 400;
    letter-spacing: 0.22em;
    color: #fefcf5;
    margin: 0;
    text-transform: uppercase;
}

.hp-hero__title {
    font-size: clamp(72px, 10vw, 156px);
    letter-spacing: 0.04em;
    color: #fefcf5;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.hp-hero__subtitle {
    color: #fefcf5;
    font-size: 18px;
    max-width: 320px;
    margin-top: 0;
}

.hp-hero__scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.hp-hero__scroll-icon {
    width: 18px;
    height: 30px;
    border: 1.5px solid #fefcf5;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

    .hp-hero__scroll-icon span {
        display: block;
        width: 14px;
        height: 14px;
        background: #fefcf5;
        border-radius: 10px;
        animation: hp-scroll-bounce 1.6s ease-in-out infinite;
    }

.hp-bg-canvas {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hp-services {
    position: relative;
    z-index: 3;
    padding: 0 40px 80px;
}

.hp-services__head {
    text-align: center;
    margin-bottom: 40px;
}

.hp-services__title {
    margin: 10px;
}

.hp-services__subtitle {
    font-size: 14px;
    color: var(--color-brand-mid);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.55;
    text-align: center;
}

.hp-services__grid {
    display: grid;
    grid-template-columns: 1.7fr 1.2fr;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    align-items: stretch;
}

.hp-service-card {
    border: 1.5px solid #6d361e;
    border-radius: 20px;
    padding: 32px;
    transition: box-shadow 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
}

    .hp-service-card:hover {
        box-shadow: 0 10px 36px rgba(109, 54, 30, 0.14);
        background: #fefcf5;
    }

    .hp-service-card .hp-btn {
        margin-top: auto;
        width: fit-content;
        align-self: flex-start;
    }

.hp-service-card__body {
    margin: 1.5rem 0 2.5rem 0;
}

.hp-service-card__num {
    font-weight: 600;
    margin-bottom: 10px;
}

.hp-service-card__title {
    font-weight: 500;
    margin: 0;
}

.hp-service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hp-midcta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 60px;
}

.hp-midcta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(254, 252, 245, 0.0) 0%, rgba(20, 40, 70, 0.50) 40%, rgba(10, 20, 50, 0.70) 100% );
    pointer-events: none;
}

.hp-midcta__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hp-midcta__title {
    color: #fefcf5;
    margin: 0;
}

.hp-midcta__body {
    color: rgba(254, 252, 245, 0.80);
    max-width: 550px;
}

.hp-newsletter {
    background: #ffffff;
    padding: 70px 40px;
    text-align: center;
}

.hp-newsletter__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hp-newsletter__title {
    margin: 0;
}

.hp-newsletter__body {
    max-width: 560px;
    margin-top: 0;
}

.hp-partners {
    padding: 20px 0 80px;
    overflow: hidden;
}

.hp-partners__viewport {
    overflow: hidden;
    width: 100%;
}

.hp-partners__track {
    display: flex;
    align-items: center;
    gap: 72px;
    width: max-content;
    animation: marquee 28s linear infinite;
}

    .hp-partners__track:hover {
        animation-play-state: paused;
    }

.hp-partners__logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.48;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

    .hp-partners__logo:hover {
        opacity: 0.82;
    }

.hp-partners__logo-text {
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
}

    .hp-partners__logo-text small {
        display: block;
        font-size: 9.5px;
        font-weight: 400;
        letter-spacing: 0.03em;
    }

@media (max-width: 600px) {
    .hp-hero {
        min-height: 80svh;
        min-height: 80dvh;
    }

    .hp-services {
        margin-top: -120px;
    }

    .hp-hero__content {
        margin-bottom: 80px;
        padding: 80px 0 0;
    }

    .hp-newsletter {
        padding: 60px 20px;
    }
}

@media (max-width: 900px) {
    .hp-bg-canvas {
        background-attachment: scroll;
    }

    .hp-hero {
        min-height: 85svh;
        min-height: 85dvh;
    }

    .hp-hero__content {
        margin-bottom: 160px;
        padding: 80px 24px 0;
    }

    .hp-hero,
    .hp-midcta {
        background-attachment: scroll;
    }

    .hp-services__grid {
        grid-template-columns: 1fr;
    }

    .hp-midcta {
        padding-top: 60px;
    }

    .hp-partners__track {
        gap: 40px;
    }
}
