/* ==========================================
   HOME HERO SECTION
   Treasure Pelo Industries
========================================== */

.home-hero {
    position: relative;
    min-height: min(760px, calc(100vh - var(--main-header-height-desktop)));
    max-height: calc(100vh - var(--main-header-height-desktop));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-black);
    padding: clamp(60px, 7vw, 95px) 0 clamp(48px, 6vw, 75px);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../images/hero/treasure-pelo-hero.webp");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    transform: scale(1.01);
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.9) 28%,
            rgba(0, 0, 0, 0.58) 54%,
            rgba(0, 0, 0, 0.2) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.22) 0%,
            rgba(0, 0, 0, 0.75) 100%
        );
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero-content {
    width: min(100%, 760px);
    padding-top: 20px;
    color: var(--color-white);
}

/* SMALL TITLE */

.home-hero-small-title {
    margin: 0 0 14px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.05vw, 1.18rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

/* MAIN TITLE */

.home-hero-title {
    margin: 0 0 18px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: clamp(2.35rem, 4.2vw, 4.45rem);
    font-weight: var(--font-weight-extra-bold);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.home-hero-line {
    width: 70px;
    height: 4px;
    margin-bottom: 22px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

/* DESCRIPTION */

.home-hero-description {
    max-width: 620px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.88rem, 1vw, 1.05rem);
    line-height: 1.6;
}

/* SERVICE ICON STRIP */

.home-hero-services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(100%, 720px);
    margin-bottom: 34px;
}

.home-hero-service {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
    padding: 0 22px;
    text-align: center;
}

.home-hero-service:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    width: 1px;
    height: 82px;
    background: rgba(255, 255, 255, 0.28);
}

.home-hero-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 1.55rem;
    line-height: 1;
}

.home-hero-service span {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.70rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
}

/* BUTTONS */

.home-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 50px;
    padding: 14px 26px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.hero-btn:hover,
.hero-btn:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.hero-btn-primary {
    min-width: 275px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border: 1px solid var(--color-primary);
    color: var(--color-black);
    box-shadow: 0 16px 36px rgba(176, 128, 20, 0.26);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-black);
}

.hero-btn-outline {
    min-width: 315px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary-light);
}

.hero-btn-outline:hover,
.hero-btn-outline:focus {
    background: var(--color-primary);
    color: var(--color-black);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1199.98px) {
    .home-hero {
        min-height: min(700px, calc(100vh - var(--main-header-height-desktop)));
        max-height: none;
        padding: 80px 0 70px;
    }

    .home-hero-content {
        width: min(100%, 660px);
    }

    .home-hero-services {
        width: min(100%, 680px);
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: 68vh;
        max-height: none;
        padding: 76px 0 64px;
    }

    .home-hero-bg {
        background-position: center right 28%;
    }

    .home-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.96) 0%,
                rgba(0, 0, 0, 0.9) 40%,
                rgba(0, 0, 0, 0.66) 100%
            ),
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.16) 0%,
                rgba(0, 0, 0, 0.84) 100%
            );
    }

    .home-hero-title {
        font-size: clamp(2.15rem, 6vw, 3.45rem);
    }

    .home-hero-description {
        max-width: 600px;
        margin-bottom: 28px;
    }

    .home-hero-services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 0;
        width: min(100%, 560px);
        margin-bottom: 30px;
    }

    .home-hero-service:nth-child(3)::after {
        display: none;
    }

    .home-hero-service {
        min-height: 84px;
        padding: 0 18px;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        min-width: 250px;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        min-height: 62vh;
        max-height: none;
        padding: 68px 0 56px;
    }

    .home-hero-bg {
        background-position: center right 36%;
    }

    .home-hero-content {
        width: 100%;
    }

    .home-hero-title {
        margin-bottom: 16px;
        font-size: clamp(2rem, 9vw, 3rem);
        letter-spacing: -0.035em;
    }

    .home-hero-small-title {
        margin-bottom: 12px;
    }

    .home-hero-line {
        width: 58px;
        height: 3px;
        margin-bottom: 18px;
    }

    .home-hero-description {
        max-width: 100%;
        margin-bottom: 26px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .home-hero-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-bottom: 28px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        padding: 18px 0 6px;
    }

    .home-hero-service {
        min-height: 78px;
        padding: 0 12px;
    }

    .home-hero-service::after {
        display: none;
    }

    .home-hero-service-icon {
        height: 32px;
        margin-bottom: 8px;
        font-size: 1.35rem;
    }

    .home-hero-service span {
        font-size: 0.72rem;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-btn,
    .hero-btn-primary,
    .hero-btn-outline {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480.98px) {
    .home-hero {
        min-height: 60vh;
        padding: 58px 0 48px;
    }

    .home-hero-bg {
        background-position: center right 42%;
    }

    .home-hero-small-title {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .home-hero-title {
        margin-bottom: 14px;
        font-size: clamp(1.8rem, 10vw, 2.45rem);
    }

    .home-hero-description {
        font-size: 0.84rem;
    }

    .home-hero-services {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-hero-service {
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 13px;
        padding: 11px 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .home-hero-service:last-child {
        border-bottom: 0;
    }

    .home-hero-service-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 0;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .home-hero-service span {
        font-size: 0.76rem;
    }

    .hero-btn {
        min-height: 48px;
        padding: 13px 18px;
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .home-hero {
        min-height: auto;
        padding: 52px 0 44px;
    }

    .home-hero-title {
        font-size: 1.68rem;
    }

    .home-hero-description {
        font-size: 0.8rem;
    }
}