/* =====================================
   HERO SECTION
===================================== */

.hero {
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.02;
    margin: 18px 0;
    color: #17353A;
}

.hero-content h1 span {
    color: #1B5D63;
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #6c7a7d;
    max-width: 620px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 35px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.floating-card {
    position: absolute;
    right: 26px;
    bottom: 26px;

    padding: 20px;
    min-width: 240px;
    max-width: 300px;
    z-index: 5;
}

.hero-stats {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.stat-card {
    padding: 18px;
    min-width: 140px;
}

.stat-card h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #1B5D63;
}

.stat-card p {
    margin: 5px 0 0;
}


/* =====================================
   TABLET
===================================== */

@media (max-width: 980px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px auto;
        padding: 0 16px;
    }

    /* Image first */
    .hero-image {
        order: 1;
    }

    .hero-content {
        order: 2;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 7vw, 3.6rem);
        line-height: 1.05;
    }

    .hero-content p {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image img {
        height: 450px;
    }

    .floating-card {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .hero {
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

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

    .hero-image img {
        height: 340px;
        border-radius: 24px;
    }

    .floating-card {
        width: calc(100% - 32px);
        max-width: 280px;
        bottom: 16px;
        padding: 16px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        width: 100%;
        margin-top: 24px;
    }

    .stat-card {
        width: 100%;
        min-width: 0;
        text-align: center;
        padding: 16px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        width: 100%;
        margin-top: 24px;
    }

    .stat-card {
        width: 100%;
        min-width: 0;
        text-align: center;
        padding: 14px 10px;
    }

    .stat-card h3 {
        font-size: 1.4rem;
    }

    .stat-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

}

@media (max-width: 480px) {

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px 8px;
        border-radius: 20px;
    }

    .stat-card h3 {
        font-size: 1.25rem;
    }

    .stat-card p {
        font-size: 0.75rem;
    }

}


/* =====================================
   SMALL PHONES
===================================== */

@media (max-width: 480px) {

    .hero {
        margin-top: 20px;
        padding: 0 14px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.05;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-image img {
        height: 300px;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .stat-card h3 {
        font-size: 1.4rem;
    }

    .stat-card p {
        font-size: 0.85rem;
    }
}