/* =========================================
   RESPONSIVIDADE PREMIUM
   Baseado em padrões Mobile-First / Desktop-First adaptados
   ========================================= */

/* --- MACBOOK / LARGE DESKTOP (>= 1400px) --- */
@media (max-width: 1400px) {
    .services-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-main {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 2rem;
    }

    .trust-features {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- NOTEBOOK / DESKTOP (<= 1200px) --- */
@media (max-width: 1200px) {
    .hero {
        gap: 2rem;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-slide {
        grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    }

    .hero-slide-content h2 {
        font-size: 2.6rem;
    }

    .stats {
        padding: 1.5rem;
    }

    .services-header {
        margin-left: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 1.25rem;
    }


}

/* --- TABLET (<= 1024px) --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-laudos {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
        padding: 7rem 0 4rem;
    }

    .hero-laudos .hero-content h1 {
        max-width: 100%;
        font-size: 3rem;
        letter-spacing: 0;
        overflow-wrap: break-word;
    }

    .hero-laudos .subtitle {
        max-width: 100%;
    }

    .hero-laudos .hero-image {
        height: 480px;
    }

    .partners-section {
        padding: 3rem 0 5rem;
    }

    .partners-header {
        margin-bottom: 2.5rem;
    }

    .partners-header h2 {
        font-size: clamp(2.4rem, 5vw, 3.2rem);
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        max-width: 780px;
    }

    .partners-footer {
        margin-right: 50px;
        font-size: clamp(1.1rem, 2vw, 1.8rem);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .cta-group {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: 10px;
    }

    .features-list {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin: 0 auto;
        max-width: 90%;
    }

    .hero.hero-carousel {
        min-height: auto;
        text-align: left;
    }

    .hero-carousel-header {
        text-align: center;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-slider::before,
    .hero-slider::after {
        display: none;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 720px;
    }

    .hero-slide-image {
        min-height: 340px;
    }

    .hero-slide-image::after {
        background: linear-gradient(180deg, rgba(18, 17, 31, 0) 48%, rgba(18, 17, 31, 0.78) 100%);
    }

    .hero-slide-image img {
        min-height: 340px;
    }

    .hero-slide-content {
        justify-content: flex-start;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item {
        border-right: none;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-image-wrapper {
        margin: 0 auto;
        max-width: 90%;
    }

    .certification-card {
        right: 10px;
        bottom: -20px;
    }

    .process-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-card-wrapper {
        padding: 3.5rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .laudos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-faq-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .trust-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .trust-stat-item {
        border-right: none;
        padding-right: 0;
        width: 45%;
    }

    .cta-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-text p {
        max-width: 100%;
    }
}

/* --- LARGE MOBILE & SMALL TABLET (<= 900px) --- */
@media (max-width: 900px) {
    .services-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }

    .trust-features {
        flex-direction: column;
        gap: 1.5rem;
    }

    .services-hero h1 {
        font-size: 2.8rem;
    }
}

/* --- MOBILE (<= 768px) --- */
@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0 4rem;
    }

    .partners-header {
        margin-bottom: 2rem;
    }

    .partners-header h2 {
        font-size: clamp(2.2rem, 7vw, 3rem);
        line-height: 1;
    }

    .partners-header p {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 1rem;
    }

    .partner-card {
        min-height: 190px;
        padding: 1.2rem 0.9rem;
    }

    .partners-footer {
        margin-top: 2rem;
        font-size: 1.35rem;
        line-height: 1.25;
    }
    
    /* Mobile Menu Toggle button */
    .mobile-menu-btn {
        display: flex;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: background 0.3s;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Mobile Navbar Adjustments */
    .nav-container {
        position: relative;
    }

    .cta-btn {
        display: none;
        /* Hide primary CTA on small screens in navbar */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(18, 17, 31, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

        /* Animation states */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px);
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent !important;
        padding-left: 1.5rem;
        display: none;
    }

    .dropdown-menu.active {
        display: block;
    }

    /* Typography Scaling */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-laudos {
        padding: 6.5rem 0 3rem;
        text-align: left;
    }

    .hero-laudos .hero-content {
        align-items: stretch;
        text-align: left;
    }

    .hero-laudos .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.16;
    }

    .hero-laudos .hero-image {
        height: 360px;
    }

    .hero-carousel h1 {
        font-size: 2.35rem;
        line-height: 1.12;
    }

    .hero-slider {
        min-height: 710px;
    }

    .hero-slide {
        min-height: 710px;
        border-radius: 20px;
    }

    .hero-slide-content {
        padding: 1.5rem;
    }

    .hero-slide-content h2 {
        font-size: 2rem;
        line-height: 1.16;
    }

    .hero-slide-content p {
        font-size: 0.95rem;
    }

    .hero-slide-tags {
        gap: 0.55rem;
        margin-top: 1.4rem;
    }

    .hero-slide-tags li {
        min-height: 34px;
        font-size: 0.76rem;
    }

    .hero-progress {
        gap: 0.55rem;
        margin-top: 1rem;
    }

 

    .services-header h2,
    .about-content h2,
    .process-header h2,
    .testimonials-header h2,
    .contact-info h2,
    .cta-card h2 {
        font-size: 2rem;
    }

    .services-header {
        margin-left: 0;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    /* Grid Collapse */
    .services-grid,
    .about-features,
    .process-grid,
    .testimonials-grid,
    .footer-grid,
    .form-row,
    .benefits-grid,
    .laudos-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        gap: 1rem;
    }

    /* Interactive & Touch targets */
    .btn {
        min-height: 44px;
        /* Touch target minimum */
        justify-content: center;
        width: 100%;
    }

    .cta-group,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

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

    /* Card Padding Adjustments */
    .certification-card {
        padding: 1.2rem;
    }

    .certification-card strong {
        font-size: 1.2rem;
    }

    .cta-card,
    .contact-card-wrapper {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .cta-card p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .timeline-steps {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .step-line {
        display: none;
    }

    .trust-stat-item {
        width: 100%;
        justify-content: center;
    }

    /* Testimonials Mobile Fix */
    .testimonials-stack-wrapper {
        min-height: 500px;
    }

    .testimonials-stack {
        width: 280px;
        transform: translateX(-10%);
        /* Ajuste fino de centro */
    }

    .testimonial-card {
        width: 280px;
        min-height: 380px;
        padding: 1.5rem;
    }

    .testimonial-avatar {
        width: 5.5rem;
        height: 5.5rem;
        margin-bottom: 0.8rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .testimonial-card[data-position="front"] {
        transform: translateX(0) rotate(-4deg);
    }

    .testimonial-card[data-position="middle"] {
        transform: translateX(12%) rotate(0deg);
    }

    .testimonial-card[data-position="back"] {
        transform: translateX(24%) rotate(4deg);
    }
}

/* --- SMALL MOBILE (<= 600px) --- */
@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .partners-header h2 {
        font-size: clamp(2rem, 11vw, 2.7rem);
    }

    .partners-header p {
        font-size: 0.92rem;
    }

    .partner-card {
        min-height: 170px;
    }

    .partners-footer {
        font-size: 1.1rem;
    }

    .services-gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-bottom: 1px solid var(--surface-border);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* Default state for mobile menu button (hidden on desktop) */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}
