/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* ========================================
   TABLET (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --spacing-3xl: 4rem;
    }

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

    .header-content {
        gap: var(--spacing-md);
    }

    .nav-list {
        gap: var(--spacing-md);
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

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

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

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-image {
        order: -1;
    }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 3rem;
    }

    /* Typography */
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Header & Navigation */
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        order: 1;
        flex: 1;
    }

    .logo-img {
        height: 36px;
        width: auto;
        object-fit: contain;
        max-width: 100%;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        order: 2;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--spacing-xs);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .main-nav {
        order: 3;
        width: calc(100% - 2rem);
        position: absolute;
        top: calc(100% + 1.5rem);
        left: 1rem;
        right: 1rem;
        background-color: var(--white);
        border-radius: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0);
        z-index: 999;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-10px) scale(0.95);
        transform-origin: top center;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0 !important;
    }

    .nav-list li {
        width: 100%;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.active .nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav.active .nav-list li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .main-nav.active .nav-list li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .main-nav.active .nav-list li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .main-nav.active .nav-list li:nth-child(4) {
        transition-delay: 0.2s;
    }

    .nav-list > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        padding: 0 1.5rem !important;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        font-size: 1rem !important;
        font-weight: 500;
        color: var(--gray-700);
        background-color: var(--white);
        border-bottom: 1px solid var(--gray-100);
        transition: all 0.2s ease;
        box-sizing: border-box !important;
        line-height: 1 !important;
    }

    .nav-list > li:first-child > a {
        border-radius: 16px 16px 0 0;
    }

    .nav-list > li:last-child > a {
        border-radius: 0 0 16px 16px;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-list > li > a::before {
        content: '';
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        margin-right: 1rem !important;
        opacity: 0.6;
        background-size: 20px 20px;
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
    }

    .nav-list > li > a::after {
        content: '›' !important;
        display: inline-block !important;
        font-size: 1.5rem !important;
        font-weight: 300;
        color: var(--gray-400);
        margin-left: auto !important;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    /* Ícones SVG específicos para cada item */
    .nav-list > li:nth-child(1) > a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6'/%3E%3C/svg%3E");
    }

    .nav-list > li:nth-child(2) > a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E");
    }

    .nav-list > li.dropdown > a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13 10V3L4 14h7v7l9-11h-7z'/%3E%3C/svg%3E");
    }

    .nav-list > li:last-child > a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
    }

    .nav-list > li > a.active {
        color: var(--primary-color);
        background-color: var(--white) !important;
    }

    .nav-list > li > a:hover {
        color: var(--primary-color);
    }

    .nav-list > li > a:hover::after {
        transform: translateX(4px);
        color: var(--primary-color);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background-color: var(--gray-50);
        padding: 0;
        margin-left: var(--spacing-md);
        margin-right: var(--spacing-md);
        border-radius: 12px;
        overflow: hidden;
    }

    .dropdown-menu li {
        margin: 0;
    }

    .dropdown-menu li a {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
        color: var(--gray-600);
        background-color: var(--gray-50);
        border-bottom: 1px solid var(--gray-200);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu li a::before {
        content: '';
        display: inline-block;
        width: 18px;
        height: 18px;
        opacity: 0.6;
        grid-column: 1;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
    }

    .dropdown-menu li:last-child a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
    }

    .dropdown-menu li a::after {
        content: '›';
        font-size: 1.25rem;
        font-weight: 300;
        color: var(--gray-400);
        transition: transform 0.2s ease;
        grid-column: 3;
    }

    .dropdown-menu li a:hover {
        color: var(--primary-color);
        background-color: var(--gray-100);
    }

    .dropdown-menu li a:hover::after {
        transform: translateX(4px);
        color: var(--primary-color);
    }

    .btn-primary-header {
        order: 4;
        display: none;
    }

    /* Mobile Menu Overlay - Removido para dropdown style */

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-content {
        text-align: center;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        max-width: 100%;
    }

    /* Dropdown Mobile */
    .dropdown-menu {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-8px);
        margin-top: 0;
        margin-bottom: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
        margin-top: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dropdown-toggle {
        padding-right: var(--spacing-sm) !important;
    }

    .dropdown-toggle::after {
        content: '▾' !important;
        position: static !important;
        display: inline-block !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
        font-size: 1rem !important;
        margin-left: 0.25rem !important;
        transform: none !important;
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg) !important;
    }

    .dropdown:hover .dropdown-toggle::after {
        transform: none !important;
    }

    /* Hero Section */
    .hero {
        padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-2xl) 0;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero h1 br {
        display: none;
    }

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

    .hero-subtitle br {
        display: none;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .hero-ctas .btn,
    .hero-ctas .btn-large {
        width: 100%;
        text-align: center;
    }

    .btn-link {
        justify-content: center;
    }

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

    .trust-item strong {
        font-size: 1.5rem;
    }

    .trust-item span {
        font-size: 0.8125rem;
    }

    /* Page Header */
    .page-header {
        padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg) 0;
    }

    .page-header h1 {
        font-size: 1.875rem;
    }

    .page-subtitle {
        font-size: 1.0625rem;
    }

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

    .section-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-lg);
    }

    /* Grids */
    .solutions-grid,
    .steps-grid,
    .mvv-grid,
    .deliverables-grid,
    .process-steps,
    .help-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Cards */
    .solution-card,
    .step-card,
    .mvv-card,
    .process-step {
        padding: var(--spacing-lg);
    }

    /* Benefits */
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto;
    }

    /* Content Block */
    .content-block p {
        font-size: 1rem;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-form {
        padding: var(--spacing-lg);
        border-radius: 12px;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .btn-submit {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }

    .trust-indicators span:nth-child(2),
    .trust-indicators span:nth-child(4) {
        display: none;
    }

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

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

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

    /* WhatsApp Button */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

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

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.625rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* What We Do Section */
    .highlight-text {
        font-size: 1.125rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--spacing-lg);
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 1.75rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 2.5rem;
    }

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

    /* Typography */
    h1 {
        font-size: 1.625rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    /* Hero */
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem var(--spacing-sm);
    }

    .badge-icon {
        width: 18px;
        height: 18px;
        font-size: 0.625rem;
    }

    .hero h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

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

    .trust-item strong {
        font-size: 1.375rem;
    }

    .trust-item span {
        font-size: 0.75rem;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 1.625rem;
    }

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

    /* Section Title */
    .section-title {
        font-size: 1.5rem;
    }

    /* Cards */
    .solution-card,
    .step-card,
    .mvv-card,
    .deliverable-card,
    .process-step,
    .help-card {
        padding: var(--spacing-md);
    }

    /* Step Number */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Card Number */
    .card-number {
        font-size: 1.5rem;
    }

    /* Benefits */
    .benefit-item {
        padding: var(--spacing-md);
    }

    .benefit-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    /* Checklist */
    .checklist-item {
        padding: var(--spacing-sm);
    }

    .check-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    /* Form */
    .contact-form {
        padding: var(--spacing-md);
        border-radius: 10px;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
        border-radius: 8px;
    }

    .form-group select {
        background-position: right 0.875rem center;
        padding-right: 2.5rem;
    }

    .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        border-radius: 8px;
    }

    .error-message {
        font-size: 0.8125rem;
    }

    /* Success Message */
    .success-message {
        padding: var(--spacing-lg);
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }

    .success-message h3 {
        font-size: 1.375rem;
    }

    .success-message p {
        font-size: 0.9375rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.5rem;
    }

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

    /* What We Do Section */
    .highlight-text {
        font-size: 1rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--spacing-md);
    }

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

    .testimonial-stars {
        font-size: 1.125rem;
    }

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

    .footer-bottom {
        font-size: 0.875rem;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ========================================
   LANDSCAPE MODE (max-height: 600px)
   ======================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero,
    .page-header {
        padding-top: calc(70px + var(--spacing-lg));
        padding-bottom: var(--spacing-lg);
    }

    .hero h1,
    .page-header h1 {
        font-size: 1.75rem;
    }

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

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

/* ========================================
   DESKTOP LARGE (min-width: 1440px)
   ======================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

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

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

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

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header-fixed,
    .whatsapp-float,
    .btn,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero,
    .page-header,
    .cta-section {
        background: none;
        color: #000;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .footer {
        background: none;
        color: #000;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --gray-600: #000000;
        --gray-700: #000000;
    }

    .btn-primary {
        border: 2px solid #000;
    }

    .btn-secondary {
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Dark Mode Support (opcional) */
@media (prefers-color-scheme: dark) {
    /* Você pode adicionar suporte a dark mode aqui se desejar */
    /* Por enquanto, o site usa apenas tema claro */
}
