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

.hp-hero {
    position: relative;
    min-height: 70vh;
    min-height: 70svh;
    min-height: 70dvh;
    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%, rgb(109 54 30 / 0%) 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: calc(140px + 24px) 0 24px;
    max-width: 800px;
}

.hp-hero__title {
    color: #fefcf5;
    margin: 0;
    line-height: 1;
}

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

.hp-services {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 40px;
}

.hp-services__head {
    text-align: center;
    max-width: 500px;
    margin: auto;
    margin-bottom: 4rem;
}

.hp-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

    .hp-services__grid .hp-service-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }

.hp-service-card {
    flex: unset;
    width: 100%;
    border: 1.5px solid var(--color-brand);
    border-radius: 30px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
    box-sizing: border-box;
    transform: scale(0.95);
    min-width: 0;
}

.hp-service-card--active {
    transform: scale(1.04);
}

.hp-service-card:hover {
    box-shadow: 0 10px 36px rgba(109, 54, 30, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.hp-service-card__title {
    margin: 0;
}

.hp-service-card p:last-of-type {
    padding-bottom: 1rem;
}

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

@media (max-width: 1024px) {
    .hp-service-card {
        transform: scale(1);
    }

    .hp-service-card--active {
        transform: scale(1);
    }
}

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

    .hp-services {
        margin-top: -120px;
        max-width: 70%;
    }

    .hp-hero__subtitle {
        font-size: var(--fs-body);
        color: var(--color-brand);
        max-width: 70%;
    }

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

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

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

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

        .hp-services__grid .hp-service-card:last-child:nth-child(odd) {
            grid-column: span 1;
        }
}

@media (max-width: 768px) {
    .hp-services__head {
        margin-bottom: 24px;
    }
}

@media (min-width: 2500px) {
    .hp-hero {
        min-height: 60vh;
        min-height: 60svh;
        min-height: 60dvh;
    }
}
