/* ===================================
   RESPONSIVE CSS
   =================================== */

/* ===== TABLET (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Header */
    .nav-menu {
        gap: var(--spacing-md);
    }

    .nav-link {
        font-size: 0.9375rem;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-stats {
        gap: var(--spacing-lg);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Sections */
    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    /* Processo Timeline */
    .processo-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-number {
        position: absolute;
        left: 0;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content > div:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ===== MOBILE LANDSCAPE & SMALL TABLET (max-width: 768px) ===== */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
        --spacing-xl: 2rem;
    }

    /* Header */
    .navbar {
        padding: var(--spacing-sm) 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--spacing-lg) var(--spacing-lg);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left var(--transition-base);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-sm) 0;
        font-size: 1.125rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .nav-actions .btn-primary {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 var(--spacing-3xl);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .trust-logos {
        gap: var(--spacing-md);
    }

    .scroll-indicator {
        display: none;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Sobre */
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .sobre-destaque {
        padding: var(--spacing-lg);
    }

    .destaque-content h3 {
        font-size: 1.5rem;
    }

    /* Serviços */
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .servico-card {
        padding: var(--spacing-lg);
    }

    /* Processo */
    .processo-timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-number {
        min-width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-content {
        padding: var(--spacing-md);
    }

    .timeline-content h3 {
        font-size: 1.125rem;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .case-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .metric strong {
        font-size: 1.25rem;
    }

    .portfolio-cta {
        padding: var(--spacing-lg);
    }

    /* Depoimentos */
    .depoimentos-slider {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .depoimento-card {
        padding: var(--spacing-lg);
    }

    .slider-controls {
        gap: var(--spacing-md);
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Planos */
    .planos-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .plano-price .value {
        font-size: 3rem;
    }

    /* FAQ */
    .faq-question {
        padding: var(--spacing-md);
        font-size: 1rem;
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding: 0 var(--spacing-md) var(--spacing-md);
        font-size: 0.9375rem;
    }

    /* Contato */
    .contato-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contato-form-wrapper {
        padding: var(--spacing-lg);
    }

    .contato-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-content > div:first-child {
        grid-column: auto;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Floating Buttons */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== MOBILE PORTRAIT (max-width: 480px) ===== */
@media (max-width: 480px) {
    :root {
        --spacing-3xl: 2rem;
        --spacing-2xl: 1.5rem;
        --spacing-xl: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Typography */
    body {
        font-size: 15px;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* Section Badge */
    .section-badge {
        padding: 0.375rem 0.875rem;
        font-size: 0.75rem;
    }

    /* Header */
    .logo {
        font-size: 1.125rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .nav-menu {
        width: 100%;
        left: -100%;
    }

    /* Hero */
    .hero {
        padding: 100px 0 var(--spacing-2xl);
    }

    .hero-badge {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-trust {
        margin-top: var(--spacing-lg);
    }

    .trust-logos {
        gap: var(--spacing-sm);
    }

    .trust-logo {
        font-size: 1.5rem;
    }

    /* Sections */
    section {
        padding: var(--spacing-2xl) 0;
    }

    .section-title {
        font-size: clamp(1.375rem, 6vw, 1.75rem);
        margin-bottom: var(--spacing-sm);
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    /* Sobre */
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .sobre-card h3 {
        font-size: 1.25rem;
    }

    .sobre-card p {
        font-size: 0.9375rem;
    }

    .sobre-destaque {
        padding: var(--spacing-md);
    }

    .destaque-content h3 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }

    .destaque-list {
        gap: var(--spacing-sm);
    }

    .destaque-list i {
        font-size: 1.25rem;
    }

    .destaque-list strong {
        font-size: 0.9375rem;
    }

    .destaque-list span {
        font-size: 0.875rem;
    }

    /* Serviços */
    .servico-card {
        padding: var(--spacing-md);
    }

    .servico-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .servico-card h3 {
        font-size: 1.25rem;
    }

    .servico-card > p {
        font-size: 0.9375rem;
    }

    .servico-features li {
        font-size: 0.875rem;
    }

    /* Processo */
    .timeline-number {
        min-width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.875rem;
    }

    /* Portfolio */
    .case-image {
        height: 200px;
    }

    .case-content {
        padding: var(--spacing-md);
    }

    .case-content h3 {
        font-size: 1.25rem;
    }

    .case-content > p {
        font-size: 0.9375rem;
    }

    .case-metrics {
        gap: var(--spacing-xs);
    }

    .metric strong {
        font-size: 1.125rem;
    }

    .metric span {
        font-size: 0.6875rem;
    }

    /* Depoimentos */
    .depoimento-card {
        padding: var(--spacing-md);
    }

    .depoimento-stars i {
        font-size: 1rem;
    }

    .depoimento-text {
        font-size: 0.9375rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .author-info strong {
        font-size: 0.9375rem;
    }

    .author-info span {
        font-size: 0.8125rem;
    }

    /* Planos */
    .plano-card {
        padding: var(--spacing-md);
    }

    .plano-header h3 {
        font-size: 1.5rem;
    }

    .plano-price .value {
        font-size: 2.5rem;
    }

    .plano-features li {
        font-size: 0.875rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.9375rem;
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        font-size: 0.875rem;
    }

    /* Contato */
    .contato-form-wrapper {
        padding: var(--spacing-md);
    }

    .form-group label {
        font-size: 0.9375rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9375rem;
    }

    .info-card {
        padding: var(--spacing-md);
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .info-card p {
        font-size: 0.8125rem;
    }

    .info-link {
        font-size: 0.9375rem;
    }

    /* Footer */
    .footer-logo {
        font-size: 1.25rem;
    }

    .footer-section p {
        font-size: 0.9375rem;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section ul li {
        font-size: 0.9375rem;
    }

    .newsletter-form input {
        font-size: 0.875rem;
    }

    .footer-bottom p {
        font-size: 0.8125rem;
    }

    /* Floating Buttons */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .scroll-to-top {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ===== EXTRA SMALL MOBILE (max-width: 375px) ===== */
@media (max-width: 375px) {
    .container {
        padding: 0 0.875rem;
    }

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

    .section-title {
        font-size: 1.25rem;
    }

    .plano-price .value {
        font-size: 2rem;
    }

    .case-metrics {
        grid-template-columns: 1fr;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-xl);
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: var(--spacing-xl) 0;
    }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .hero-background,
    .gradient-overlay {
        will-change: transform;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header-fixed,
    .whatsapp-float,
    .scroll-to-top,
    .scroll-indicator,
    .animated-shapes,
    .hero-background {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}