/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    h1 { font-size: var(--font-size-5xl); }
    h2 { font-size: var(--font-size-4xl); }
    h3 { font-size: var(--font-size-3xl); }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    /* Navbar adjustments for tablet */
    .navbar .container {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .navbar-brand-text {
        font-size: 24px;
    }
    
    .navbar-nav {
        gap: var(--spacing-md);
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .navbar-cta .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    /* Hide elements on tablet */
    .hide-tablet {
        display: none !important;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    /* Stack columns on mobile */
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Adjust padding for mobile */
    section {
        padding: var(--spacing-3xl) 0;
    }
    
    /* Mobile navigation adjustments */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg);
    }
    
    /* Hide elements on mobile */
    .hide-mobile {
        display: none !important;
    }
}

/* Extra Small Devices (575.98px and down) */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    h4 { font-size: var(--font-size-lg); }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    section {
        padding: var(--spacing-3xl) 0;
    }
    
    /* Top bar responsive */
    .top-bar .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .top-bar-info {
        justify-content: center;
        gap: var(--spacing-md);
        font-size: var(--font-size-xs);
    }
    
    .top-bar-social {
        justify-content: center;
    }
    
    /* Navbar responsive */
    .navbar .container {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .navbar-brand {
        gap: var(--spacing-sm);
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .navbar-brand-text {
        font-size: 24px;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-cta .btn {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    /* Full width buttons on mobile */
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .btn-group .btn {
        width: auto;
    }
    
    /* Stack all columns */
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Card adjustments */
    .card-body {
        padding: var(--spacing-lg);
    }
    
    /* Hide elements on extra small screens */
    .hide-xs {
        display: none !important;
    }
    
    /* Show elements only on mobile */
    .show-mobile {
        display: block !important;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-section {
        min-height: 100vh;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Retina display optimizations */
    .logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    body {
        background: var(--color-white);
        color: var(--color-black);
    }
    
    .no-print {
        display: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--color-light-grey);
    }
}

/* Dark Mode Support (Future Ready) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #1a1a1a;
        --color-off-white: #2d2d2d;
        --color-light-grey: #3d3d3d;
        --color-black: #f5f5f5;
        --color-dark-grey: #d4d4d4;
    }
}

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

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}
