/* ================================================
   BE YOURSELF - RESPONSIVE STYLES
   ================================================ */

/* ------------------------------------------------
   TABLET LANDSCAPE (max: 1200px)
   ------------------------------------------------ */
@media (max-width: 1200px) {
    .hero__container {
        gap: var(--space-2xl);
    }
    
    .hero__title {
        font-size: var(--fs-4xl);
    }
    
    .hero__3d-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .hero__cube {
        width: 150px;
        height: 150px;
    }
    
    .hero__cube-face {
        width: 150px;
        height: 150px;
    }
    
    .hero__cube-face--front  { transform: rotateY(0deg) translateZ(75px); }
    .hero__cube-face--back   { transform: rotateY(180deg) translateZ(75px); }
    .hero__cube-face--right  { transform: rotateY(90deg) translateZ(75px); }
    .hero__cube-face--left   { transform: rotateY(-90deg) translateZ(75px); }
    .hero__cube-face--top    { transform: rotateX(90deg) translateZ(75px); }
    .hero__cube-face--bottom { transform: rotateX(-90deg) translateZ(75px); }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

/* ------------------------------------------------
   TABLET PORTRAIT (max: 992px)
   ------------------------------------------------ */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    /* Header */
    .header__nav,
    .header__cta {
        display: none;
    }
    
    .header__hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero__badge {
        justify-content: center;
    }
    
    .hero__proof {
        justify-content: center;
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .hero__microcopy {
        justify-content: center;
    }
    
    .hero__visual {
        display: none;
    }
    
    .hero__title {
        font-size: var(--fs-3xl);
    }
    
    /* About */
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about__visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about__differentials {
        grid-template-columns: 1fr;
    }
    
    .about__process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .about__step {
        max-width: 300px;
    }
    
    .about__step-connector {
        transform: rotate(90deg);
        padding: 0;
    }
    
    /* Contact */
    .contact__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ------------------------------------------------
   MOBILE LANDSCAPE (max: 768px)
   ------------------------------------------------ */
@media (max-width: 768px) {
    /* Sections padding */
    .services,
    .about,
    .cases,
    .testimonials,
    .cta-section,
    .contact {
        padding: var(--space-3xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .section-header__title {
        font-size: var(--fs-2xl);
    }
    
    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .service-card {
        padding: var(--space-xl);
    }
    
    /* Cases */
    .cases__grid {
        grid-template-columns: 1fr;
    }
    
    .case-card__metrics {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    /* Social Proof */
    .social-proof__container {
        gap: var(--space-lg);
    }
    
    .social-proof__divider {
        display: none;
    }
    
    .social-proof__number {
        font-size: var(--fs-2xl);
    }
    
    /* CTA Section */
    .cta-section__title {
        font-size: var(--fs-xl);
    }
    
    .cta-section__microcopy {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    /* Testimonial */
    .testimonial-card {
        padding: var(--space-xl);
        margin: 0;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    /* Floating elements */
    .whatsapp-float {
        bottom: var(--space-lg);
        right: var(--space-lg);
    }
    
    .whatsapp-float__btn {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: var(--space-lg);
        left: var(--space-lg);
        width: 38px;
        height: 38px;
    }
    
    /* A11y toolbar */
    .a11y-toolbar {
        top: auto;
        bottom: 100px;
    }
    
    .a11y-toolbar__trigger {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .a11y-toolbar__panel {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .a11y-toolbar__panel.open {
        left: 0;
    }
}

/* ------------------------------------------------
   MOBILE PORTRAIT (max: 480px)
   ------------------------------------------------ */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --header-height: 60px;
    }
    
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .hero__title {
        font-size: var(--fs-2xl);
    }
    
    .hero__subtitle {
        font-size: var(--fs-base);
    }
    
    .hero__scroll {
        display: none;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
    }
    
    .hero__proof {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Buttons */
    .btn--lg {
        padding: 0.875rem 1.5rem;
        font-size: var(--fs-base);
    }
    
    .btn--xl {
        padding: 1rem 2rem;
        font-size: var(--fs-md);
    }
    
    /* About Process */
    .about__process {
        padding: var(--space-xl);
    }
    
    /* Contact Form */
    .contact__form {
        padding: var(--space-xl);
    }
    
    /* LGPD */
    .lgpd-banner__container {
        flex-direction: column;
    }
    
    .lgpd-banner__icon {
        display: none;
    }
    
    .lgpd-banner__actions {
        flex-direction: column;
    }
    
    .lgpd-banner__actions .btn {
        width: 100%;
    }
    
    .lgpd-banner__close {
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
    }
    
    /* Social proof - 2 columns on mobile */
    .social-proof__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    
    /* WhatsApp tooltip hide on mobile */
    .whatsapp-float__tooltip {
        display: none;
    }
}

/* ------------------------------------------------
   VERY SMALL SCREENS (max: 360px)
   ------------------------------------------------ */
@media (max-width: 360px) {
    .hero__title {
        font-size: 1.75rem;
    }
    
    .section-header__title {
        font-size: var(--fs-xl);
    }
    
    .hero__badge {
        font-size: var(--fs-xs);
    }
}

/* ------------------------------------------------
   LARGE SCREENS (min: 1400px)
   ------------------------------------------------ */
@media (min-width: 1400px) {
    :root {
        --container-max: 1400px;
    }
    
    .hero__title {
        font-size: var(--fs-6xl);
    }
    
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2xl);
    }
}

/* ------------------------------------------------
   PRINT STYLES
   ------------------------------------------------ */
@media print {
    .header,
    .whatsapp-float,
    .back-to-top,
    .a11y-toolbar,
    .lgpd-banner,
    .hero__canvas,
    .hero__particles,
    .hero__visual,
    .hero__scroll,
    #vlibras-widget {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
