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

.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(42px, 10vw, 156px);
    letter-spacing: 0.04em;
    color: #fefcf5;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.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-services, .hp-loan, .hp-exchange, .hp-cta {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-padding);
}

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

.hp-carousel-wrapper {
    position: relative;
    padding-inline: 60px;
}

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

.hp-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
    flex-shrink: 0;
}

.hp-service-card {
    flex: 0 0 calc((100% - 40px) / 3);
    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-carousel__btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    width: 55px;
    height: 55px;
    cursor: pointer;
    color: var(--color-brand);
    transition: background 0.2s, color 0.2s;
}

    .hp-carousel__btn:hover {
        color: var(--color-brand-mid);
    }

.hp-carousel__btn--prev {
    left: 0;
}

.hp-carousel__btn--next {
    right: 0;
}

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

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

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

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

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

.hp-services__description {
    max-width: 1120px;
    margin: 40px auto;
}

    .hp-services__description p {
        color: var(--color-brand-mid);
    }

.hp-section {
    padding-block: 55px;
}

.hp-section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.hp-loan__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 2.5rem;
}

.hp-field {
    margin-bottom: 1.4rem;
}

    .hp-field .hp-input,
    .hp-field .hp-select-wrap,
    .hp-field .hp-checkbox-label,
    .hp-field-button {
        margin-left: 3.2rem;
    }

.hp-label {
    display: block;
    font-weight: 600;
    font-size: clamp(24px, 3vw, 26px);
    color: var(--color-brand);
    margin-bottom: 0.35rem;
}

.hp-label__num {
    display: inline-block;
    min-width: 3.2rem;
}

.hp-input {
    width: 100%;
    padding: 1.2rem 2.2rem;
    border: 1.5px solid var(--color-brand);
    border-radius: 30px;
    font-size: 0.93rem;
    background: #fff;
    color: var(--color-brand-mid);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

    .hp-input::placeholder {
        color: var(--color-brand-mid);
    }

    .hp-input:focus {
        border-color: var(--color-brand-mid);
    }

.hp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hp-input-suffix {
    position: absolute;
    right: 2.2rem;
    font-weight: 600;
    color: var(--color-brand-mid);
    pointer-events: none;
}

.hp-select-wrap {
    position: relative;
}

.hp-field--terms {
    margin-top: 2.5rem;
}

.hp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    color: var(--color-brand-mid);
    line-height: 1.5;
}

    .hp-checkbox-label p {
        margin: 0;
    }

.hp-checkbox {
    accent-color: var(--color-brand);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.hp-checkbox-label a {
    color: var(--color-brand-mid);
}

.hp-exchange__widget {
    margin-top: 2rem;
}

    .hp-exchange__widget iframe {
        width: 100%;
        height: 100%;
        min-height: 240px;
        border: 0;
    }

.hp-cta-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--site-padding) 60px;
}

    .hp-cta-content h2 {
        margin-bottom: 1rem;
    }

    .hp-cta-content p {
        max-width: 550px;
        margin: auto;
        color: var(--color-brand-mid);
        padding-bottom: 40px;
    }

.hp-faq {
    background: rgba(109, 54, 30, 0.82);
    border-radius: 30px;
    padding: 48px 60px;
}

    .hp-faq h2 {
        color: #fff;
    }

.hp-faq__list {
    margin-top: 1.5rem;
}

.hp-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    user-select: none;
}

    .hp-faq__question::-webkit-details-marker {
        display: none;
    }

.hp-faq__icon {
    width: 20px;
    flex-shrink: 0;
    color: #fff;
    transition: transform 0.3s ease;
}

details[open] .hp-faq__icon {
    transform: rotate(180deg);
}

.hp-faq__answer {
    padding-bottom: 2rem;
}

    .hp-faq__answer p {
        margin: 0;
        color: #ffffff;
    }

.hp-last-section {
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    padding-block: 55px;
}

@media (max-width: 1024px) {
    .hp-loan__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

@media (max-width: 900px) {
    .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;
    }
}

@media (max-width: 768px) {
    .hp-hero__eyebrow {
        font-size: 32px;
    }

    .hp-hero__content {
        padding: 44px 20px 24px;
    }

    .hp-carousel-wrapper {
        padding-inline: 40px;
    }

    .hp-carousel__btn {
        width: 36px;
        height: 36px;
    }

    .hp-faq {
        padding: 32px 24px;
    }

    .hp-cta-content {
        padding: 0 var(--site-padding) 40px;
    }

    .hp-section {
        padding-block: 36px;
    }

    .hp-label {
        font-size: 18px;
    }

    .hp-field .hp-input,
    .hp-field .hp-select-wrap,
    .hp-field .hp-checkbox-label,
    .hp-field-button {
        margin-left: 2.2rem;
    }

    .hp-label__num {
        min-width: 2.2rem;
    }

    .hp-services__head {
        margin-bottom: 24px;
    }

    .hp-last-section {
        padding-block: 36px;
    }
}

@media (max-width: 600px) {
    .hp-services {
        margin-top: -120px;
    }

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

@media (max-width: 480px) {
    .hp-carousel-wrapper {
        padding-inline: 32px;
    }

    .hp-carousel__btn {
        width: 28px;
        height: 28px;
    }

    .hp-faq {
        padding: 24px 16px;
    }
}
