/* ===================================
   EKE Services - Responsive Styles
   Mobile-First Approach
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Typography */
    html {
        font-size: 14px;
    }

    p {
        font-size: 1rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform var(--transition-base);
        gap: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--color-light);
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding-top: 140px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

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

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

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card.featured {
        transform: scale(1);
    }

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

    .consulting-text .section-title {
        text-align: center;
    }

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

    /* Value Proposition */
    .value-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-info .section-title {
        text-align: center;
    }

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

    .footer-description {
        margin: 0 auto;
    }

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

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Spacing Adjustments */
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

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

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

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

    /* Hero */
    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    /* Products */
    .product-card {
        padding: var(--spacing-md);
    }

    /* Consulting */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }

    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-wrapper {
        padding: var(--spacing-md);
    }

    /* Footer */
    .footer-content {
        gap: var(--spacing-lg);
    }
}

/* Large Screens (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

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

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-link {
        min-height: 44px;
    }

    .btn {
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover,
    .value-card:hover,
    .visual-card:hover {
        transform: none;
    }

    .btn:hover::before {
        display: none;
    }
}

/* Print Styles */
@media print {
    nav,
    .hero-cta,
    .contact-form,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

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

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

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0052CC;
        --color-secondary: #FF4500;
    }

    .btn-outline,
    .btn-secondary {
        border-width: 3px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Currently not implemented, but prepared for future enhancement */
}
