/* ==========================================================================
   SECTION-HERO.CSS
   ========================================================================== */

.hero {
    padding: 80px 0 0;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    bottom: -200px;
    background: radial-gradient(
        ellipse at 50% 40%,
        rgba(0, 160, 185, 0.76) 0%,
        rgba(0, 160, 185, 0.25) 55%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* --- Text --- */
.hero__text {
    text-align: center;
    padding-bottom: 40px;
}
.hero__eyebrow {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-mint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.hero__headline {
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    margin-bottom: 20px;
}
.hero__headline-word--cyan-bold {
    color: var(--color-cyan);
    font-weight: 800;
}
.hero__headline-word--cyan-light {
    color: var(--color-cyan);
    font-weight: 300;
}
.hero__headline-word--cyan-italic {
    color: var(--color-cyan);
    font-weight: 300;
    font-style: italic;
}
.hero__headline-word--white-bold {
    color: var(--color-white);
    font-weight: 800;
}
.hero__body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-white);
    max-width: 520px;
    margin: 0 auto 24px;
}
.hero__cta-text {
    margin: 0 auto;
}

/* --- Grid --- */
.hero__grid {
    align-items: flex-end;
    --bs-gutter-x: 20px;
}
.hero__col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    padding: 0 10px;
    height: 100%;
}
.hero__col--center {
    justify-content: flex-start;
    align-items: center;
}
.hero__center-cta {
    flex-shrink: 0;
    margin-bottom: 16px;
}

/* --- Cards --- */
/* Height driven by --h set inline on each card. clamp scales it with viewport. */
.hero__card {
    height: clamp(
        calc(var(--h) * 0.5px),
        calc(var(--h) / 1440 * 100vw),
        calc(var(--h) * 1px)
    );
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero__card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero {
        padding-top: 60px;
    }
    .hero__grid {
        align-items: stretch;
    }
    .hero__col--left,
    .hero__col--right {
        width: 50%;
        justify-content: flex-start;
    }
    .hero__col--center {
        width: 100%;
        order: 3;
        align-items: stretch;
        margin-top: 16px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding-top: 48px;
    }
    .hero__text {
        padding-bottom: 28px;
    }
    .hero__headline {
        font-size: clamp(32px, 9vw, 48px);
    }
    .hero__body {
        font-size: 14px;
        max-width: 100%;
    }
    .hero__grid {
        flex-direction: column;
        align-items: stretch;
    }
    /* Left and right columns: smaller images first, horizontal layout */
    .hero__col--left,
    .hero__col--right {
        width: 100%;
        flex-direction: row;
        gap: 12px;
    }
    /* Center column: big image last */
    .hero__col--center {
        order: 3;
        width: 100%;
        flex-direction: column;
        margin-top: 12px;
    }
    /* Make cards more compact on mobile - smaller heights */
    .hero__card {
        height: clamp(80px, 25vw, 140px);
    }
    /* Hide the CTA in center column on mobile - we have the mobile CTA visible */
    .hero__center-cta {
        display: none;
    }
    .hero__card--product {
        transform: none;
    }
    /* Make images more contained on mobile */
    .hero__card--project .hero__card-img {
        width: 120%;
        height: 110%;
        top: -4%;
        left: -10%;
    }
    .hero__card--logo .hero__card-img {
        width: 90%;
        height: 90%;
        top: 5%;
        left: 5%;
    }
    .hero__card--mockup .hero__card-img {
        width: 105%;
        height: 105%;
        top: -2%;
        left: -2%;
    }
}

/* Tablet: recover part of desktop layout */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero {
        padding-top: 56px;
    }
    .hero__text {
        padding-bottom: 32px;
    }
    .hero__grid {
        align-items: stretch;
    }
    .hero__col--left,
    .hero__col--right {
        width: 35%;
    }
    .hero__col--center {
        width: 30%;
        order: 3;
    }
    .hero__card {
        height: clamp(
            calc(var(--h) * 0.6px),
            calc(var(--h) / 1440 * 80vw),
            calc(var(--h) * 0.8px)
        );
    }
}
