/* ============================================
   KAIROS IMPORTADORA - RESPONSIVE STYLES
   Mobile First Approach
   ============================================ */

/* ============================================
   TABLET & BELOW (768px)
   ============================================ */
@media (max-width: 768px) {
    /* Typography */
    html {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.125rem;
    }

    /* Navigation */
    .navbar {
        background: #0F1925 !important;
        background-color: #0F1925 !important;
    }
    
    .navbar.scrolled {
        background: #0F1925 !important;
        background-color: #0F1925 !important;
    }
    
    .nav-container {
        background: transparent !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #0F1925 !important;
        background-color: #0F1925 !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-md);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
        background: #0F1925 !important;
        background-color: #0F1925 !important;
    }

    .nav-link {
        font-size: 1.25rem;
        color: #FFFFFF !important;
    }
    
    .nav-link:hover {
        color: #FF6B35 !important;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle span {
        background: #FFFFFF !important;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #FFFFFF !important;
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background: #FFFFFF !important;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 70px;
    }

    .hero-title-main {
        font-size: 3rem;
    }

    .hero-title-sub {
        font-size: 1.25rem;
    }

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

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

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

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

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

    /* Value Proposition */
    .section-question h2 {
        font-size: 1.5rem;
    }

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

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

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Industries */
    .industries-grid {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-timeline {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

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

    .cases-navigation {
        flex-wrap: wrap;
    }

    /* Coverage */
    .coverage-content {
        grid-template-columns: 1fr;
    }

    .coverage-map {
        order: 2;
    }

    .coverage-info {
        order: 1;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .contact-info-container {
        order: -1;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto var(--spacing-sm);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
    }

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

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

/* ============================================
   MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    /* Navigation */
    .navbar {
        background: #0F1925 !important;
        background-color: #0F1925 !important;
    }
    
    .navbar.scrolled {
        background: #0F1925 !important;
        background-color: #0F1925 !important;
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Typography */
    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Hero */
    .hero-title-main {
        font-size: 2.5rem;
    }

    .hero-title-sub {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .hero-description {
        font-size: 1rem;
    }

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

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

    /* Cards */
    .pillar-card,
    .service-card,
    .advantage-card {
        padding: var(--spacing-md);
    }

    .pillar-icon,
    .service-icon,
    .advantage-icon {
        font-size: 2.5rem;
    }

    /* Process */
    .process {
        padding: var(--spacing-md) 0;
    }

    .process-step {
        padding: var(--spacing-sm);
    }

    .step-icon {
        font-size: 2rem;
    }

    /* Cases */
    .case-card {
        padding: var(--spacing-md);
    }

    .case-icon {
        font-size: 2rem;
    }

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

    /* Contact */
    .contact-form {
        gap: var(--spacing-sm);
    }

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

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

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        left: 1rem;
        font-size: 1.25rem;
    }
}

/* ============================================
   LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .hero-title-main {
        font-size: 6rem;
    }

    .hero-title-sub {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.75rem;
    }
}

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

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

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-top,
    .scroll-indicator,
    .hero-ctas,
    .cases-navigation,
    .contact-form,
    .btn,
    .btn-service {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .hero,
    .process {
        background: var(--white);
        color: var(--text-primary);
    }

    .section-header h2 {
        page-break-after: avoid;
    }

    .pillar-card,
    .service-card,
    .case-card,
    .advantage-card {
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator,
    .pulse,
    .whatsapp-float {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-secondary {
        border-width: 3px;
    }

    .pillar-card,
    .service-card,
    .case-card,
    .advantage-card {
        border: 2px solid var(--text-primary);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Note: Implement if needed in future */
    /* Currently using light theme as per brand guidelines */
}

/* ============================================
   UTILITY CLASSES FOR RESPONSIVE
   ============================================ */
.hidden-mobile {
    display: block;
}

.visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }

    .visible-mobile {
        display: block;
    }
}

/* Text Alignment */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
}

/* Spacing Adjustments */
@media (max-width: 768px) {
    section {
        padding: var(--spacing-md) 0;
    }

    .value-proposition,
    .services,
    .industries,
    .process,
    .success-cases,
    .coverage,
    .why-kairos,
    .contact {
        padding: var(--spacing-md) 0;
    }
}
