/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* ==========================================================================
   TABLET - Up to 1024px
   ========================================================================== */

@media (max-width: 1024px) {
    /* Hero */
    .hero__container {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .hero__columns {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .hero__badge {
        top: 100px;
        right: var(--container-padding);
    }

    /* Stats Bar */
    .stats-bar__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stats-bar__item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stats-bar__item:nth-child(even) {
        border-right: none;
    }

    .stats-bar__item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    /* Sobre */
    .sobre__container {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .sobre__content {
        padding-right: 0;
        order: 1;
    }
    
    .sobre__image {
        max-width: 480px;
        margin: 0 auto;
        order: 2;
    }
    
    /* Serviços */
    .servicos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
        margin-bottom: var(--space-6);
    }
}

/* ==========================================================================
   MOBILE - Up to 768px
   ========================================================================== */

@media (max-width: 768px) {
    /* Header */
    .header__toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }
    
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, #190f1b 0%, #2a2230 100%);
        padding: var(--space-6);
        padding-top: 120px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }
    
    .header__nav.active {
        transform: translateX(0);
    }
    
    .header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
        flex: 1;
    }
    
    .header__link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-5) var(--space-6);
        text-align: center;
        font-size: var(--text-lg);
        font-weight: var(--font-medium);
        border-radius: var(--radius-xl);
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .header__link:hover,
    .header__link:active {
        background: rgba(249, 161, 169, 0.2);
        border-color: rgba(249, 161, 169, 0.4);
        color: #ffc9ce;
    }
    
    .header__link.btn {
        background: linear-gradient(135deg, #f9a1a9 0%, #f08a94 100%);
        color: #190f1b;
        border: none;
        margin-top: auto;
        font-weight: var(--font-semibold);
        box-shadow: 0 4px 20px rgba(249, 161, 169, 0.3);
    }
    
    .header__link.btn:hover {
        background: linear-gradient(135deg, #ffc9ce 0%, #f9a1a9 100%);
        color: #190f1b;
    }
    
    .header__link::after {
        display: none;
    }
    
    /* Toggle button animation */
    .header__toggle.active span {
        background: white;
    }
    
    /* Hero */
    .hero__container {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero__title {
        font-size: var(--text-3xl);
    }
    
    .hero__cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

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

    .hero__badge {
        position: relative;
        top: auto;
        right: auto;
        margin-top: var(--space-6);
        align-self: flex-start;
    }

    .hero__columns {
        max-width: none;
    }

    /* Stats Bar */
    .stats-bar {
        margin-top: var(--space-6);
    }

    .stats-bar__container {
        grid-template-columns: repeat(2, 1fr);
        border-radius: var(--radius-lg);
    }

    .stats-bar__item {
        padding: var(--space-6) var(--space-4);
    }

    .stats-bar__number {
        font-size: var(--text-2xl);
    }

    /* Sobre */
    .sobre__blob {
        width: 120px;
        height: 120px;
        top: -20px;
        right: -20px;
    }
    
    /* CTA Banner */
    .cta-banner__title {
        font-size: var(--text-2xl);
    }
    
    /* Serviços */
    .servicos__grid {
        grid-template-columns: 1fr;
    }
    
    /* Contato */
    .contato__item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__links,
    .footer__social {
        text-align: center;
    }
    
    .footer__social-links {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 56px;
        height: 56px;
    }
}

/* ==========================================================================
   SMALL MOBILE - Up to 480px
   ========================================================================== */

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 var(--space-4);
    }
    
    /* Typography */
    .section-title {
        font-size: var(--text-3xl);
    }

    /* Hero */
    .hero__container {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .hero__columns {
        display: none;
    }
    
    /* Stats Bar */
    .stats-bar__container {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Cards */
    .servico-card {
        padding: var(--space-5);
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .servico-card__icon {
        margin-bottom: var(--space-2);
    }
    
    /* Buttons */
    .btn--lg {
        padding: var(--space-3) var(--space-6);
    }
}

/* ==========================================================================
   LARGE SCREENS - From 1280px
   ========================================================================== */

@media (min-width: 1280px) {
    .sobre__container {
        gap: var(--space-20);
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .sobre__blob {
        animation: none;
    }
}
