/* ==========================================================================
   RESPONSIVE.CSS - Media Queries e Responsividade
   ========================================================================== */

/* ==========================================================================
   LARGE DESKTOP (1200px+)
   ========================================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-title .highlight {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: var(--font-size-5xl);
    }
}

/* ==========================================================================
   DESKTOP (992px - 1199px)
   ========================================================================== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-card.featured {
        grid-column: span 1;
    }
}

/* ==========================================================================
   TABLET LANDSCAPE (768px - 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-lg);
    }
    
    /* Navigation */
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: 0 4px 20px var(--shadow-dark);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        gap: var(--spacing-md);
    }
    
    .navbar-nav.show {
        display: flex;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-title .highlight {
        font-size: 3.5rem;
    }
    
    .hero-title .subtitle {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services */
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats Cards */
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    /* Timeline */
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
    }
    
    .timeline-content {
        margin: 0;
        margin-left: var(--spacing-lg);
    }
    
    .timeline-content:before {
        left: -15px !important;
        right: auto !important;
        border-right-color: var(--background-color) !important;
        border-left-color: transparent !important;
    }
    
    /* Valores Grid */
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Why Choose */
    .numbered-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .numbered-item .number {
        align-self: center;
    }
}

/* ==========================================================================
   TABLET PORTRAIT (768px - 991px)
   ========================================================================== */
@media (max-width: 991px) and (min-width: 768px) {
    /* Testimonials */
    .testimonials-stats .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Cards */
    .contact-card {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Google Reviews */
    .google-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   MOBILE LARGE (576px - 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-md);
    }
    
    /* Typography */
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-description {
        font-size: var(--font-size-base);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-title .highlight {
        font-size: 3rem;
    }
    
    .hero-title .subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        max-width: none;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
    }
    
    .hero-features {
        display: none;
    }
    
    .trust-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Navigation */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-brand {
        font-size: var(--font-size-base);
    }
    
    .brand-text {
        display: none;
    }
    
    /* Sections */
    .py-5 {
        padding: var(--spacing-xl) 0 !important;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    /* Sobre */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-sm);
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .sobre-cta {
        padding: var(--spacing-xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Services */
    .service-tabs {
        flex-direction: column;
    }
    
    .service-tabs .nav-link {
        text-align: center;
        border-bottom: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .service-tabs .nav-link.active {
        border-bottom-color: var(--primary-color);
    }
    
    .why-choose-section {
        padding: var(--spacing-xl);
    }
    
    /* Depoimentos */
    .testimonials-stats .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .testimonial-slide {
        padding: var(--spacing-lg);
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .client-info {
        text-align: center;
    }
    
    .client-avatar {
        width: 60px;
        height: 60px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
    
    .prev-btn {
        margin-left: -20px;
    }
    
    .next-btn {
        margin-right: -20px;
    }
    
    .google-reviews-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .google-reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-form-section {
        padding: var(--spacing-lg);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .contact-info-section {
        margin-top: var(--spacing-xl);
    }
    
    .hours-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    /* FAQ */
    .accordion-button {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
        gap: var(--spacing-sm);
    }
    
    .accordion-body {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    /* Footer */
    .footer-main {
        padding: var(--spacing-xl) 0;
    }
    
    .footer-main .row {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-bottom {
        padding: var(--spacing-lg) 0;
    }
    
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .trust-badge {
        font-size: var(--font-size-xs);
    }
}

/* ==========================================================================
   MOBILE MEDIUM (480px - 575px)
   ========================================================================== */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .highlight {
        font-size: 2.5rem;
    }
    
    .hero-title .subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .stat-item {
        padding: var(--spacing-md);
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        backdrop-filter: blur(10px);
    }
    
    /* Sections */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .py-5 {
        padding: var(--spacing-lg) 0 !important;
    }
    
    /* Cards */
    .service-card,
    .valor-card,
    .contact-card {
        padding: var(--spacing-lg);
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-year {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-xs);
    }
    
    /* Testimonials */
    .testimonials-stats .stats-container {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slide {
        padding: var(--spacing-md);
    }
    
    .testimonial-text {
        font-size: var(--font-size-base);
    }
    
    /* Contact */
    .contact-form-section {
        padding: var(--spacing-md);
    }
    
    .info-card {
        padding: var(--spacing-md);
    }
    
    /* Buttons */
    .btn-lg {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    /* WhatsApp e Back to Top */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        left: 15px;
    }
}

/* ==========================================================================
   MOBILE SMALL (320px - 479px)
   ========================================================================== */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    /* Typography */
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-lg); }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-title .highlight {
        font-size: 2.2rem;
    }
    
    .hero-title .subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
    }
    
    /* Sections */
    .py-5 {
        padding: var(--spacing-md) 0 !important;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Cards */
    .card,
    .service-card,
    .valor-card,
    .contact-card {
        padding: var(--spacing-md);
    }
    
    /* Forms */
    .form-control {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    /* Footer */
    .footer-main {
        padding: var(--spacing-lg) 0;
    }
    
    .footer-description,
    .contact-text p {
        font-size: var(--font-size-sm);
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .cookie-content p {
        font-size: var(--font-size-sm);
    }
    
    /* Notification Bar */
    .notification-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .notification-text {
        font-size: var(--font-size-xs);
    }
}

/* ==========================================================================
   LANDSCAPE ORIENTATION
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-stats {
        display: none;
    }
    
    .hero-actions {
        margin-bottom: var(--spacing-md);
    }
    
    .scroll-indicator {
        bottom: 10px;
    }
}

/* ==========================================================================
   HIGH DPI DISPLAYS
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .sobre-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .navbar,
    .hero-section,
    .whatsapp-float,
    .back-to-top,
    .cookie-consent,
    .footer-section,
    .carousel-controls,
    .carousel-indicators,
    .btn,
    .form-actions {
        display: none !important;
    }
    
    .policies-content,
    .terms-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .section-title,
    .policy-section h2,
    .terms-section h2 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    .policy-section,
    .terms-section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   ACESSIBILIDADE E MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-track {
        transition: none;
    }
    
    .spinner {
        animation: none;
    }
    
    .whatsapp-float {
        animation: none;
    }
}

@media (prefers-color-scheme: dark) {
    /* Futura implementação de tema escuro */
}

/* ==========================================================================
   UTILITIES RESPONSIVAS
   ========================================================================== */
@media (max-width: 767px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    
    .text-md-center { text-align: center !important; }
    .text-md-left { text-align: left !important; }
    
    .flex-md-column { flex-direction: column !important; }
    .flex-md-row { flex-direction: row !important; }
}

@media (max-width: 575px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
    
    .text-sm-center { text-align: center !important; }
    .text-sm-left { text-align: left !important; }
}

@media (max-width: 479px) {
    .d-xs-none { display: none !important; }
    .d-xs-block { display: block !important; }
    .d-xs-flex { display: flex !important; }
} 