/* ===============================================
   RESPONSIVE STYLES - MOBILE FIRST APPROACH
   =============================================== */

/* ===============================================
   SMALL DEVICES (Landscape phones, 576px and up)
   =============================================== */
@media (min-width: 576px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero__buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .form__group {
        grid-column: span 1;
    }
    
    .form__group--full {
        grid-column: span 2;
    }
    
    .contact__form {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================================
   MEDIUM DEVICES (Tablets, 768px and up)
   =============================================== */
@media (min-width: 768px) {
    /* Typography */
    h1 { font-size: var(--fs-6xl); }
    h2 { font-size: var(--fs-5xl); }
    h3 { font-size: var(--fs-4xl); }
    
    .section__title {
        font-size: var(--fs-5xl);
    }
    
    .hero__title {
        font-size: var(--fs-5xl);
    }
    
    /* Navigation */
    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .nav__list {
        flex-direction: row;
        gap: var(--space-lg);
    }
    
    .nav__close,
    .nav__toggle {
        display: none;
    }
    
    .nav__link {
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Hero Section */
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
    
    .hero__content {
        text-align: left;
    }
    
    .hero__subtitle {
        margin-bottom: var(--space-lg);
    }
    
    .hero__buttons {
        justify-content: flex-start;
    }
    
    .hero__stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Services Grid */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Solutions */
    .solutions__content {
        grid-template-columns: 300px 1fr;
    }
    
    .tab__panel.active {
        grid-template-columns: 1fr 1fr;
    }
    
    /* About */
    .about__content {
        grid-template-columns: 1fr 1fr;
    }
    
    .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact */
    .contact__content {
        grid-template-columns: 1.5fr 1fr;
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ===============================================
   LARGE DEVICES (Desktops, 992px and up)
   =============================================== */
@media (min-width: 992px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    /* Services Grid */
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Values */
    .values__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Why Choose */
    .why__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* ===============================================
   EXTRA LARGE DEVICES (Large desktops, 1200px and up)
   =============================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero__title {
        font-size: var(--fs-6xl);
    }
}

/* ===============================================
   PRINT STYLES
   =============================================== */
@media print {
    .header,
    .nav,
    .back-to-top,
    .scroll__down,
    .hero__buttons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    
    .section {
        page-break-inside: avoid;
    }
}

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

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0000FF;
        --color-gray-600: #000000;
        --color-gray-800: #000000;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --bg-primary: #1A1A1A;
        --bg-secondary: #2C2C2C;
        --color-dark: #FFFFFF;
        --color-gray-800: #E0E0E0;
        --color-gray-600: #BDBDBD;
    }
    
    .header {
        background: var(--bg-primary);
    }
    
    .service__card,
    .info__card,
    .footer {
        background: var(--bg-secondary);
    }
    */
}

/* ===============================================
   UTILITY CLASSES FOR RESPONSIVE DESIGN
   =============================================== */

/* Display utilities */
.mobile-only {
    display: block;
}

.tablet-up {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .tablet-up {
        display: block;
    }
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

@media (max-width: 767px) {
    .text-center-mobile { text-align: center; }
}

/* Spacing utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Container width variations */
.container-fluid {
    width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}
