@media (max-width: 768px) {

    .navbar {
        height: auto;
        min-height: 80px;
        flex-direction: column;
        padding: 20px 5%;
        gap: 20px;
    }


    .navbar nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }


    .navbar nav a {
        margin: 0;
    }


    .navbar .btn {
        width: 100%;
        text-align: center;
    }

}


@media (max-width:768px){

.hero-title {
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1rem;
    padding: 0 15px;
}


.hero-buttons {
    flex-direction: column;
    align-items: center;
}


.hero-buttons .btn {
    width: 90%;
}

}

@media (max-width:768px){

.grid-2,
.grid-3,
.grid-4 {

    grid-template-columns: 1fr;

}

}


/* Mobile menu button hidden on desktop */
.menu-toggle {
    display: none;
}


@media (max-width: 768px) {


    .navbar {
        height: 80px;
        flex-direction: row;
        justify-content: space-between;
    }


    /* Show hamburger */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
    }


    /* Hide desktop navigation */
    .navbar nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-light);

        flex-direction: column;
        align-items: center;

        padding: 30px 0;
        gap: 25px;
    }


    /* Show menu when clicked */
    .navbar nav.active {
        display: flex;
    }


    /* Hide consultation button in navbar */
    .navbar > .btn {
        display: none;
    }

}


@media (max-width: 768px) {

    .footer {
        margin-top: 5rem;
    }


    .footer-cta-banner {

        width: 92%;
        padding: 2.5rem 1rem;
        border-radius: 24px;
        margin-bottom: 4rem;

    }


    .footer-cta-card {

        padding: 2rem 1.2rem;
        border-radius: 24px;

    }


    .cta-rating {

        font-size: 0.7rem;
        margin-bottom: 0.5rem;

    }


    .cta-subtitle {

        font-size: 0.75rem;
        margin-bottom: 1rem;

    }


    .cta-title {

        font-size: 2.2rem;
        line-height: 1.15;
        margin-bottom: 1rem;

    }


    .cta-desc {

        font-size: 0.95rem;
        margin-bottom: 1.5rem;

    }


    .btn-cta-pill {

        width: 100%;
        padding: 0.9rem 1rem;

    }

}


/* Hide mobile menu elements by default */
.menu-toggle {
    display: none;
}

.mobile-consultation {
    display: none;
}


@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .desktop-consultation {
        display: none;
    }

    .navbar nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #f5f5f5;

        display: flex;
        flex-direction: column;
        align-items: center;

        padding: 2rem;
        gap: 1.5rem;

        transform: translateY(-120%);
        transition: 0.3s ease;
    }

    .navbar nav.active {
        transform: translateY(0);
    }


    .mobile-consultation {
        display: block !important;
        background: #111;
        color: white !important;
        padding: 14px 30px;
        border-radius: 50px;
    }

}

