﻿/* ==========================================================
   Hero Section
   ========================================================== */

.hero-section {
    min-height: auto;
    padding-top: 125px;
    padding-bottom: 55px;
    display: flex;
    align-items: center;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    align-items: center;
    gap: 42px;
}


/* ==========================================================
   Hero Content
   ========================================================== */

.hero-content h1 {
    max-width: 720px;
    font-size: clamp(38px, 4.5vw, 62px);
    letter-spacing: -0.045em;
    color: var(--color-text);
    margin-bottom: 24px;
    opacity: 1;
    transform: translateY(0);
}

.hero-content p {
    max-width: 650px;
    font-size: 18px;
    color: var(--color-neutral-dark);
    margin-bottom: 32px;
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   Hero Actions
   ========================================================== */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: all var(--transition-normal);
}

    .hero-btn.primary {
        background: var(--color-text);
        color: var(--color-background);
        box-shadow: var(--shadow-soft);
    }

    .hero-btn.secondary {
        border: 1px solid var(--color-neutral);
        color: var(--color-text);
        background: rgba(255, 255, 255, .35);
    }

    .hero-btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-medium);
    }


/* ==========================================================
   Hero Visual
   ========================================================== */

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
}

.hero-main-image {
    width: min(100%, 455px);
    max-width: none;
    filter: drop-shadow(0 28px 45px rgba(68, 72, 77, .18));
    transform: translateY(0) scale(1);
    opacity: 1;
}


/* ==========================================================
   Hero Slider Dots
   ========================================================== */

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
}

    .hero-slider-dots button {
        width: 9px;
        height: 9px;
        border-radius: var(--radius-pill);
        background: var(--color-neutral);
        opacity: .65;
        transition: all var(--transition-normal);
    }

        .hero-slider-dots button.active {
            width: 28px;
            background: var(--color-text);
            opacity: 1;
        }


/* ==========================================================
   Hero Slider Motion
   ========================================================== */

.hero-content h1,
.hero-content p {
    transition: opacity .42s ease, transform .42s ease;
}

.hero-main-image {
    transition: opacity .48s ease, transform .48s ease, filter .48s ease;
}

/* Leaving */
.hero-section.is-leaving .hero-content h1 {
    opacity: 0;
    transform: translateY(14px);
}

.hero-section.is-leaving .hero-content p {
    opacity: 0;
    transform: translateY(10px);
}

.hero-section.is-leaving .hero-main-image {
    opacity: 0;
    transform: translateY(10px) scale(.97);
}

/* Entering */
.hero-section.is-entering .hero-content h1 {
    opacity: 0;
    transform: translateY(-12px);
    animation: heroTitleIn .55s ease forwards;
}

.hero-section.is-entering .hero-content p {
    opacity: 0;
    transform: translateY(-8px);
    animation: heroTextIn .55s ease .08s forwards;
}

.hero-section.is-entering .hero-main-image {
    opacity: 0;
    transform: translateY(14px) scale(.97);
    animation: heroImageIn .65s ease .12s forwards;
}

@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
