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

/* Melhorias Gerais */
@media (max-width: 768px) {

    /* Melhorar legibilidade em telas pequenas */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Ajustes de container */
    .container {
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 100%;
    }

    /* Melhorar espaçamento das seções */
    .section {
        padding: 3rem 0;
    }

    /* Títulos mais legíveis */
    .section__title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .section__subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Hero Section Improvements */
@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--header-height) + 1rem);
        text-align: center;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero__description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero__actions {
        justify-content: center;
        gap: 1rem;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Navigation Improvements */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 4rem;
        right: 0;
        left: auto;
        width: 70vw;
        max-width: 300px;
        height: calc(100vh - 4rem);
        min-height: calc(100dvh - 4rem);
        padding: 1.5rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
        transition: transform 0.36s cubic-bezier(.22, .9, .37, 1);
        transform: translateX(100%);
        box-shadow: -8px 0 30px rgba(13, 38, 78, 0.08);
        overflow-y: auto;
        z-index: 1200;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        will-change: transform;
    }

    .nav__menu.active {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        row-gap: 1.5rem;
        width: 100%;
    }

    .nav__link {
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }

    /* Mobile: make links clean with full-width blue underline */
    .nav__menu .nav__link {
        position: relative;
        color: var(--color-text-secondary);
        background: transparent;
        padding-left: 0.5rem;
        border-bottom: none;
        /* remove divider to keep UI clean */
    }

    /* Mobile: underline that matches the text width using text-decoration */
    .nav__menu .nav__link {
        text-decoration-line: none;
        /* default */
    }

    .nav__menu .nav__link:hover,
    .nav__menu .nav__link.active {
        text-decoration-line: underline;
        text-decoration-color: var(--primary-color);
        text-decoration-thickness: 3px;
        text-underline-offset: 8px;
    }

    .nav__toggle {
        display: flex;
        font-size: 1.5rem;
        cursor: pointer;
        background: transparent;
        /* garantir sem container */
        padding: 0;
    }
}

/* Card Grid Improvements */
@media (max-width: 768px) {

    .features__grid,
    .benefits__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature__card,
    .benefit__card,
    .testimonial__card {
        padding: 1.5rem;
    }

    .feature__icon,
    .benefit__icon {
        margin-bottom: 1rem;
    }
}

/* Form Improvements */
@media (max-width: 768px) {
    .form__group {
        margin-bottom: 1rem;
    }

    .form__input,
    .form__textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .form__button {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Button Improvements */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        height: auto;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn--large {
        padding: 1rem 2rem;
    }
}

/* Footer Improvements */
@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__section {
        margin-bottom: 1.5rem;
    }

    .footer__socials {
        justify-content: center;
    }
}

/* WhatsApp Float Button Improvements */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .whatsapp-float::after {
        display: none;
    }
}

/* Image Improvements */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .hero__image,
    .about__image {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Before/After Section Improvements */
@media (max-width: 768px) {
    .before-after__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .before-after__column {
        text-align: center;
        padding: 1.5rem;
    }

    .before-after__arrow {
        transform: rotate(90deg);
        margin: 1rem auto;
    }
}

/* Pricing Section Improvements */
@media (max-width: 768px) {
    .pricing__cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .pricing__card {
        padding: 1.5rem;
    }

    .pricing__card--featured {
        transform: none;
        margin: 0;
    }
}

/* Contact Section Improvements */
@media (max-width: 768px) {
    .contact__methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact__method {
        padding: 1.5rem;
        text-align: center;
    }

    .contact__info {
        text-align: center;
    }
}

/* Modal Improvements */
@media (max-width: 768px) {
    .modal__content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }

    .modal__header {
        padding: 1rem;
    }

    .modal__body {
        padding: 1rem;
    }
}

/* Performance Optimizations */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .smooth-scroll {
        scroll-behavior: smooth;
    }

    /* Reduzir animações em dispositivos móveis */
    .animate-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}