/* ===================================
   RESPONSIVE STYLES
   Mobile First Approach
   =================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --spacing-4xl: 64px;
        --spacing-3xl: 48px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 28px;
    }

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

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

    /* Header */
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
    }

    .navbar-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--spacing-lg);
        margin-top: var(--spacing-sm);
    }

    /* Hero */
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .stat-number {
        font-size: 36px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* Footer */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-4xl: 48px;
        --spacing-3xl: 32px;
        --spacing-2xl: 24px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }

    body {
        font-size: 15px;
    }

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

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

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Buttons */
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 16px;
    }

    /* Header */
    .navbar {
        padding: var(--spacing-sm) 0;
    }

    .navbar-brand .logo img {
        height: 38px;
        /* Slightly smaller for mobile */
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: var(--spacing-2xl);
    }

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

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        padding-top: var(--spacing-2xl);
        margin-top: var(--spacing-2xl);
    }

    .stat-number {
        font-size: 32px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Product Slider Section */
    .product-slider-section {
        padding: var(--spacing-2xl) 0;
    }

    .slider-slide {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-lg);
    }

    .slider-image {
        min-height: 250px;
        padding: var(--spacing-md);
    }

    .slider-image img {
        max-height: 200px;
    }

    .slider-content {
        padding: 0;
        text-align: center;
    }

    .slider-content h3 {
        font-size: 24px;
        margin-bottom: var(--spacing-sm);
    }

    .slider-content p {
        font-size: 15px;
        margin-bottom: var(--spacing-lg);
    }

    .slider-features {
        text-align: left;
        display: inline-block;
        margin-bottom: var(--spacing-lg);
    }

    .slider-features li {
        font-size: 14px;
        padding: 4px 0;
    }

    .slider-features li::before {
        font-size: 16px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .product-card .product-image {
        height: 200px;
    }

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

    .service-card {
        padding: var(--spacing-lg);
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .service-icon svg {
        width: 32px;
        height: 32px;
    }

    .service-title {
        font-size: 20px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* References */
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .reference-logo {
        padding: var(--spacing-lg);
    }

    .reference-logo img {
        max-height: 40px;
    }

    /* CTA */
    .cta-title {
        font-size: 28px;
    }

    .cta-subtitle {
        font-size: 16px;
        margin-bottom: var(--spacing-xl);
    }

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

    .footer-column:first-child {
        grid-column: auto;
    }

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

    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .copyright {
        font-size: 14px;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    h1 {
        font-size: 64px;
    }

    h2 {
        font-size: 48px;
    }

    .hero-title {
        font-size: 72px;
    }

    .section {
        padding: 120px 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .btn {
        min-height: 48px;
    }

    .navbar-nav a {
        padding: var(--spacing-md) 0;
    }

    /* Remove hover effects */
    .service-card:hover {
        transform: none;
    }

    .reference-logo:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {

    .header,
    .navbar-toggle,
    .hero-actions,
    .scroll-indicator,
    .cta,
    .footer {
        display: none;
    }

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

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