/* Responsive Styles */

/* Mobile First Approach */
/* Base styles are for mobile, then we add complexity for larger screens */

/* Small devices (landscape phones, 640px and up) */
@media (min-width: 640px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
    
    h1 {
        font-size: var(--font-size-6xl);
    }
    
    h2 {
        font-size: var(--font-size-5xl);
    }
    
    h3 {
        font-size: var(--font-size-4xl);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        padding-left: var(--space-12);
        padding-right: var(--space-12);
    }
    
    /* Typography adjustments */
    h1 {
        font-size: var(--font-size-7xl);
    }
    
    /* Grid utilities */
    .grid-md-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .grid-md-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    /* Grid utilities */
    .grid-lg-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .grid-lg-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
    
    .grid-lg-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    .container {
        padding-left: var(--space-16);
        padding-right: var(--space-16);
    }
}

/* 2XL devices (larger desktops, 1536px and up) */
@media (min-width: 1536px) {
    /* Additional spacing for very large screens */
}

/* Mobile-specific utilities */
@media (max-width: 639px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    /* Stack buttons on mobile */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
    
    /* Full width on mobile */
    .full-width-mobile {
        width: 100% !important;
    }
}

/* Tablet-specific utilities */
@media (min-width: 640px) and (max-width: 1023px) {
    .hide-tablet {
        display: none !important;
    }
    
    .show-tablet {
        display: block !important;
    }
}

/* Desktop-specific utilities */
@media (min-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
    
    .show-desktop {
        display: block !important;
    }
}

/* Orientation utilities */
@media (orientation: portrait) {
    .hide-portrait {
        display: none !important;
    }
}

@media (orientation: landscape) {
    .hide-landscape {
        display: none !important;
    }
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch devices */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav__link {
        padding: var(--space-4);
    }
    
    /* Remove hover effects on touch devices */
    .hover-lift:hover,
    .hover-scale:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Adjust for retina displays if needed */
}

/* Print styles */
@media print {
    .header,
    .nav__toggle,
    .btn,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Container breakpoint adjustments */
@media (max-width: 1279px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1023px) {
    .container {
        max-width: 768px;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 640px;
    }
}

@media (max-width: 639px) {
    .container {
        max-width: 100%;
    }
}
