/* =====================================================
   Hero Section — Capital Flex
   All values use CSS custom properties only.
   ===================================================== */

/* ---- Section shell ---- */

.hero {
    position: relative;
    background-color: var(--color-white);
    overflow: hidden;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- Two-column grid ---- */

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-16);
    padding-top: var(--space-16);
    padding-bottom: var(--space-24);
}

/* ---- Content side ---- */

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
}

.hero__label {
    margin-bottom: 0;
}

.hero__heading {
    font-family: var(--font-heading);
    font-weight: var(--fw-extrabold);
    font-size: var(--text-hero);
    line-height: var(--leading-heading);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero__sub {
    font-family: var(--font-body);
    font-size: var(--text-body-lg);
    line-height: var(--leading-body);
    color: var(--color-muted);
    max-width: 52ch;
}

/* ---- CTA buttons row ---- */

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

/* ---- Trust badge ---- */

.hero__trust {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-muted);
    margin-top: var(--space-2);
}

.hero__trust svg {
    color: #F59E0B;
    flex-shrink: 0;
}

/* ---- Visual side ---- */

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Uploaded image */
.hero__image {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

/* ---- SVG Illustration ---- */

.hero__illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero__svg {
    width: 100%;
    height: auto;
    color: var(--color-primary);
    animation: hero-rotate 40s linear infinite;
    transform-origin: center;
}

@keyframes hero-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Floating badge cards ---- */

.hero__badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: hero-float var(--float-duration, 4s) ease-in-out infinite alternate;
}

.hero__badge--tl {
    top: 8%;
    left: -2%;
    --float-duration: 4s;
}

.hero__badge--br {
    bottom: 14%;
    right: -4%;
    --float-duration: 5s;
    animation-delay: 0.8s;
}

.hero__badge--bl {
    bottom: 6%;
    left: 2%;
    --float-duration: 3.5s;
    animation-delay: 1.5s;
}

.hero__badge-icon {
    font-size: 1rem;
    line-height: 1;
}

@keyframes hero-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

/* ---- Bottom wave ---- */

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    .hero__badge--br { right: 0; }
    .hero__badge--tl { left: 0; }
}

/* =====================================================
   Responsive — Large mobile ≤ 768px
   ===================================================== */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: var(--space-8);
        gap: var(--space-12);
    }

    .hero__content {
        align-items: center;
        order: 1;
    }

    .hero__visual {
        order: 2;
        max-width: 380px;
        margin: 0 auto;
    }

    .hero__sub {
        max-width: 48ch;
        margin: 0 auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
    }

    .cf-section-label.hero__label::before {
        display: none;
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media (max-width: 640px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__illustration {
        max-width: 280px;
    }

    .hero__badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .hero__badge--tl { top: 4%; left: 0; }
    .hero__badge--br { bottom: 10%; right: 0; }
    .hero__badge--bl { display: none; }
}
