/*==========================================================
HOME PAGE
==========================================================*/

/*------------------------------------
Hero
------------------------------------*/

.hero-home {

    padding: 7rem 0;

    background: linear-gradient(180deg,
            #f7f9fc 0%,
            #ffffff 100%);

}

.hero-grid {

    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 4rem;

    align-items: center;

}

.hero-content {

    max-width: 650px;

}

.hero-content h1 {

    margin: 1rem 0;

    font-size: clamp(2.8rem, 6vw, 4.8rem);

    line-height: 1.05;

    font-weight: 800;

    color: var(--primary);

}

.hero-content p {

    margin: 1.5rem 0 2rem;

    max-width: 600px;

    color: var(--text-light);

    font-size: 1.15rem;

    line-height: 1.8;

}

.hero-actions {

    display: flex;

    gap: 1rem;

    flex-wrap: wrap;

}

/*------------------------------------
Hero Media
------------------------------------*/

.hero-media {

    position: relative;

}

.heroSwiper {

    border-radius: 24px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);

}

.heroSwiper img,

.heroSwiper video {

    width: 100%;

    height: 520px;

    display: block;

    object-fit: cover;

}

/* Swiper */

.heroSwiper .swiper-pagination-bullet {

    width: 12px;

    height: 12px;

    background: #ffffff;

    opacity: .45;

}

.heroSwiper .swiper-pagination-bullet-active {

    opacity: 1;

    background: var(--secondary);

}

/*==========================================================
BUSINESS DIVISIONS
==========================================================*/

.home-divisions {

    padding: 6rem 0;

}

.divisions-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 2rem;

    margin-top: 3rem;

}

.division-card {

    background: #fff;

    border: 1px solid #e8edf5;

    border-radius: 18px;

    padding: 2rem;

    transition: .35s;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);

}

.division-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .10);

}

.division-card i {

    width: 70px;

    height: 70px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(13, 44, 110, .08);

    color: var(--primary);

    font-size: 1.8rem;

    margin-bottom: 1.5rem;

}

.division-card h3 {

    margin-bottom: .75rem;

    color: var(--primary);

    font-size: 1.35rem;

}

.division-card p {

    color: var(--text-light);

    line-height: 1.8;

}


/*==========================================================
WHY MIDAL
==========================================================*/

.why-midal {

    padding: 6rem 0;

    background: #f7f9fc;

}

.why-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 2rem;

    margin-top: 3rem;

}

.feature-card {

    background: #fff;

    padding: 2rem;

    border-radius: 18px;

    border: 1px solid #e8edf5;

    transition: .3s;

}

.feature-card:hover {

    transform: translateY(-6px);

    border-color: var(--secondary);

}

.feature-card i {

    font-size: 2rem;

    color: var(--secondary);

    margin-bottom: 1rem;

}

.feature-card h3 {

    margin-bottom: .75rem;

    color: var(--primary);

}

.feature-card p {

    color: var(--text-light);

    line-height: 1.8;

}


/*==========================================================
SECTION HEADERS
==========================================================*/

.section-header {

    max-width: 760px;

    margin: 0 auto 3rem;

    text-align: center;

}

.section-header h2 {

    margin: 1rem 0;

    color: var(--primary);

    font-size: clamp(2rem, 4vw, 3rem);

}

.section-header p {

    color: var(--text-light);

    font-size: 1.05rem;

    line-height: 1.8;

}

/*==========================================================
FEATURED SOLUTIONS
==========================================================*/

.home-solutions {

    padding: 6rem 0;

}

.solutions-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 2rem;

    margin-top: 3rem;

}

.solution-card {

    background: #ffffff;

    border: 1px solid #e8edf5;

    border-radius: 20px;

    padding: 2rem;

    transition: .35s ease;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);

}

.solution-card:hover {

    transform: translateY(-8px);

    border-color: var(--secondary);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .10);

}

.solution-card i {

    width: 70px;

    height: 70px;

    display: grid;

    place-items: center;

    border-radius: 16px;

    background: rgba(13, 44, 110, .08);

    color: var(--primary);

    font-size: 1.8rem;

    margin-bottom: 1.5rem;

}

.solution-card h3 {

    color: var(--primary);

    margin-bottom: .8rem;

}

.solution-card p {

    color: var(--text-light);

    line-height: 1.8;

}

.solution-card a {

    display: inline-flex;

    align-items: center;

    gap: .5rem;

    margin-top: 1.5rem;

    font-weight: 600;

    color: var(--secondary);

}

.solution-card a:hover {

    color: var(--primary);

}


/*==========================================================
IMPACT STATISTICS
==========================================================*/

.home-impact {

    padding: 6rem 0;

    background: #f7f9fc;

}

.stats-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 2rem;

    margin-top: 3rem;

}

.stat-card {

    background: #ffffff;

    border-radius: 20px;

    padding: 2.5rem 2rem;

    text-align: center;

    border: 1px solid #e8edf5;

    transition: .3s;

}

.stat-card:hover {

    transform: translateY(-6px);

}

.stat-card i {

    font-size: 2rem;

    color: var(--secondary);

    margin-bottom: 1rem;

}

.stat-card h3 {

    font-size: 3rem;

    color: var(--primary);

    margin-bottom: .5rem;

    font-weight: 800;

}

.stat-card p {

    color: var(--text-light);

    margin: 0;

}


/*==========================================================
FEATURED PROJECTS
==========================================================*/

.home-projects {

    padding: 6rem 0;

}

.project-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 2rem;

    margin-top: 3rem;

}

.project-card {

    overflow: hidden;

    border-radius: 20px;

    background: #ffffff;

    border: 1px solid #e8edf5;

    transition: .35s;

}

.project-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);

}

.project-card img {

    width: 100%;

    height: 220px;

    object-fit: cover;

}

.project-card-content {

    padding: 2rem;

}

.project-card h3 {

    color: var(--primary);

    margin-bottom: .8rem;

}

.project-card p {

    color: var(--text-light);

    line-height: 1.8;

}


/*==========================================================
HOME CTA
==========================================================*/

.home-cta {

    padding: 7rem 0;

}

.cta-card {

    background: linear-gradient(135deg,
            var(--primary),
            #1d4fa8);

    color: #ffffff;

    text-align: center;

    border-radius: 28px;

    padding: 5rem 3rem;

}

.cta-card h2 {

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 1rem;

}

.cta-card p {

    max-width: 720px;

    margin: 0 auto 2rem;

    color: rgba(255, 255, 255, .92);

    line-height: 1.8;

}

.cta-card .btn-outline {

    border-color: #ffffff;

    color: #ffffff;

}

.cta-card .btn-outline:hover {

    background: #ffffff;

    color: var(--primary);

}

/*==========================================================
ANIMATIONS
==========================================================*/

.reveal {

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}

.reveal.show {

    opacity: 1;

    transform: translateY(0);

}

.reveal-delay-1 {

    transition-delay: .1s;

}

.reveal-delay-2 {

    transition-delay: .2s;

}

.reveal-delay-3 {

    transition-delay: .3s;

}

.reveal-delay-4 {

    transition-delay: .4s;

}


/*==========================================================
UTILITIES
==========================================================*/

.section-actions {

    margin-top: 3rem;

    text-align: center;

}

.text-center {

    text-align: center;

}

.mb-0 {

    margin-bottom: 0;

}

.mt-0 {

    margin-top: 0;

}

.mt-2 {

    margin-top: 2rem;

}

.mt-3 {

    margin-top: 3rem;

}


/*==========================================================
HOVER EFFECTS
==========================================================*/

.division-card,
.solution-card,
.feature-card,
.project-card,
.stat-card {

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}

.division-card:hover,
.solution-card:hover,
.feature-card:hover,
.project-card:hover,
.stat-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 18px 45px rgba(0, 0, 0, .10);

}


/*==========================================================
TABLET
==========================================================*/

@media (max-width:992px) {

    .hero-home {

        padding: 5rem 0;

    }

    .hero-grid {

        grid-template-columns: 1fr;

        gap: 3rem;

        text-align: center;

    }

    .hero-content {

        margin: auto;

        max-width: 700px;

    }

    .hero-content p {

        margin-left: auto;

        margin-right: auto;

    }

    .hero-actions {

        justify-content: center;

    }

    .heroSwiper {

        max-width: 720px;

        margin: auto;

    }

    .heroSwiper img,
    .heroSwiper video {

        height: 430px;

    }

}


/*==========================================================
MOBILE
==========================================================*/

@media (max-width:768px) {

    .hero-home {

        padding: 4rem 0;

    }

    .hero-content h1 {

        font-size: 2.5rem;

    }

    .hero-content p {

        font-size: 1rem;

    }

    .heroSwiper img,
    .heroSwiper video {

        height: 300px;

    }

    .hero-actions {

        flex-direction: column;

        align-items: center;

    }

    .hero-actions .btn {

        width: 100%;

        max-width: 320px;

    }

    .division-card,
    .solution-card,
    .feature-card,
    .project-card,
    .stat-card {

        padding: 1.6rem;

    }

    .cta-card {

        padding: 3rem 2rem;

    }

}


/*==========================================================
SMALL MOBILE
==========================================================*/

@media (max-width:480px) {

    .hero-content h1 {

        font-size: 2rem;

    }

    .section-header h2 {

        font-size: 1.8rem;

    }

    .heroSwiper img,
    .heroSwiper video {

        height: 240px;

    }

}