/**
 * Responsividade Unificada - GestãoApp Encomendas
 * Desenvolvido por: GESTÃOAPP (https://gestaoapp.ia.br)
 * Breakpoints otimizados para todos os dispositivos
 */

/* ===== BREAKPOINTS ===== */
/* Large Desktop: 1200px+ */
/* Desktop: 1024px - 1199px */
/* Tablet Landscape: 768px - 1023px */
/* Tablet Portrait: 576px - 767px */
/* Mobile Landscape: 480px - 575px */
/* Mobile Portrait: 320px - 479px */

/* ===== TABLET LANDSCAPE (1024px) ===== */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Header */
    .nav__logo {
        font-size: 1.5rem;
    }
    
    .nav__menu {
        gap: 2rem;
    }
    
    /* Hero */
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    /* Features */
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Benefits */
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Pricing */
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===== TABLET PORTRAIT (768px) ===== */
@media screen and (max-width: 768px) {
    /* Container */
    .container {
        max-width: 720px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section spacing */
    .section {
        padding: 4rem 0 3rem;
    }
    
    /* Header */
    .nav__toggle {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--container-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: var(--z-fixed);
    }
    
    .nav__menu.show-menu {
        left: 0;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2rem;
        cursor: pointer;
    }
    
    /* Hero */
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero__title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .hero__description {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero__image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    /* Features */
    .features__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature__card {
        padding: 2rem;
    }
    
    /* Benefits */
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit__card {
        padding: 2rem;
    }
    
    /* Pricing */
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing__card {
        padding: 2rem;
    }
    
    /* Process */
    .process__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* FAQ */
    .faq__item {
        margin-bottom: 1rem;
    }
    
    .faq__question {
        font-size: 1.125rem;
        padding: 1.25rem;
    }
    
    .faq__answer {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== MOBILE LANDSCAPE (576px) ===== */
@media screen and (max-width: 576px) {
    /* Container */
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    
    /* Section spacing */
    .section {
        padding: 3rem 0 2rem;
    }
    
    /* Typography */
    .section__title {
        font-size: 2rem;
    }
    
    .section__subtitle {
        font-size: 0.875rem;
    }
    
    /* Hero */
    .hero__title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero__subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero__description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero__buttons .button {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero__image {
        order: -1;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero__image img {
        max-width: 100%;
        height: auto;
    }
    
    /* Features */
    .feature__card {
        padding: 1.5rem;
    }
    
    .feature__title {
        font-size: 1.25rem;
    }
    
    .feature__description {
        font-size: 0.95rem;
    }
    
    /* Benefits */
    .benefit__card {
        padding: 1.5rem;
    }
    
    .benefit__title {
        font-size: 1.25rem;
    }
    
    .benefit__description {
        font-size: 0.95rem;
    }
    
    /* Pricing */
    .pricing__card {
        padding: 1.5rem;
    }
    
    .pricing__title {
        font-size: 1.25rem;
    }
    
    .pricing__price {
        font-size: 2.5rem;
    }
    
    .pricing__features li {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }
    
    /* FAQ */
    .faq__question {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq__answer {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer__logo {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer__description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .footer__title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer__links {
        justify-content: center;
    }
    
    .footer__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer__link {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
    
    .footer__social {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .footer__social-link {
        font-size: 1.25rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer__contact {
        text-align: center;
    }
    
    .footer__info {
        justify-content: center;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer__copy {
        font-size: 0.875rem;
    }
    
    .footer__dev {
        font-size: 0.875rem;
    }
}

/* ===== MOBILE PORTRAIT (480px) ===== */
@media screen and (max-width: 480px) {
    /* Container */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Section spacing */
    .section {
        padding: 2.5rem 0 1.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Header */
    .nav__logo {
        font-size: 1.25rem;
    }
    
    .nav__menu {
        width: 90%;
    }
    
    /* Hero */
    .hero__title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero__subtitle {
        font-size: 0.875rem;
    }
    
    .hero__description {
        font-size: 0.95rem;
    }
    
    .hero__buttons .button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Features */
    .feature__card {
        padding: 1.25rem;
    }
    
    .feature__icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature__title {
        font-size: 1.125rem;
    }
    
    .feature__description {
        font-size: 0.9rem;
    }
    
    /* Benefits */
    .benefit__card {
        padding: 1.25rem;
    }
    
    .benefit__icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .benefit__title {
        font-size: 1.125rem;
    }
    
    .benefit__description {
        font-size: 0.9rem;
    }
    
    /* Pricing */
    .pricing__card {
        padding: 1.25rem;
    }
    
    .pricing__header {
        padding-bottom: 1.5rem;
    }
    
    .pricing__title {
        font-size: 1.125rem;
    }
    
    .pricing__price {
        font-size: 2.25rem;
    }
    
    .pricing__features {
        margin-bottom: 1.5rem;
    }
    
    .pricing__features li {
        font-size: 0.9rem;
        padding: 0.625rem 0;
    }
    
    .pricing__features i {
        font-size: 0.875rem;
    }
    
    .pricing__button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Process */
    .process__step {
        padding: 1.5rem;
    }
    
    .process__number {
        font-size: 2rem;
        width: 3rem;
        height: 3rem;
    }
    
    .process__title {
        font-size: 1.125rem;
    }
    
    .process__description {
        font-size: 0.9rem;
    }
    
    /* FAQ */
    .faq__question {
        font-size: 0.95rem;
        padding: 0.875rem;
    }
    
    .faq__answer {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer__title {
        font-size: 1.125rem;
    }
    
    .footer__links li {
        margin-bottom: 0.5rem;
    }
    
    .footer__links a {
        font-size: 0.95rem;
    }
    
    .footer__social a {
        font-size: 1.25rem;
    }
    
    .footer__copyright {
        font-size: 0.875rem;
    }
}

/* ===== SMALL MOBILE (320px - 374px) ===== */
@media screen and (max-width: 374px) {
    /* Container */
    .container {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
    
    /* Hero */
    .hero__title {
        font-size: 1.625rem;
    }
    
    .hero__subtitle {
        font-size: 0.8rem;
    }
    
    .hero__description {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .button--large {
        padding: 0.875rem 1.375rem;
        font-size: 0.95rem;
    }
    
    /* Cards */
    .feature__card,
    .benefit__card,
    .pricing__card,
    .process__step {
        padding: 1rem;
    }
    
    /* Typography */
    .feature__title,
    .benefit__title,
    .pricing__title,
    .process__title {
        font-size: 1rem;
    }
    
    .feature__description,
    .benefit__description,
    .process__description {
        font-size: 0.875rem;
    }
    
    .pricing__features li {
        font-size: 0.875rem;
    }
    
    /* FAQ */
    .faq__question {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .faq__answer {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* ===== ORIENTAÇÃO LANDSCAPE PARA MOBILE ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .hero__image {
        order: 2;
    }
    
    .nav__menu {
        height: 100vh;
        overflow-y: auto;
    }
}

/* ===== HIGH DPI/RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Melhorar renderização de fontes em telas retina */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===== REDUÇÃO DE MOVIMENTO (ACESSIBILIDADE) ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== MODO ESCURO (PREPARAÇÃO) ===== */
@media (prefers-color-scheme: dark) {
    /* Preparado para implementação futura */
    /* body {
        background-color: #1a202c;
        color: #e2e8f0;
    } */
}
