/* Responsive Design for DNT Website - Clean Version */

/* ========================================
   RESPONSIVE BREAKPOINTS SYSTEM
   ======================================== */

/* Mobile First Approach using brand variables */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Navigation specific adjustments */
    .nav-mobile { display: block; }
    .nav-desktop { display: none; }
    
    /* Hero section mobile specific */
    .hero-title {
        font-size: var(--font-size-4xl);
        line-height: var(--line-height-tight);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Component specific mobile adjustments */
    .flip-card { height: 300px; }
    .flip-card-content { padding: var(--spacing-md); }
    
    /* Modal mobile optimizations */
    .modal-content {
        margin: var(--spacing-md);
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Brand container mobile adjustments */
    .brand-container {
        padding: 0 var(--spacing-sm);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .flip-card { height: 350px; }
    
    /* Grid adjustments for small screens */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation switches to desktop mode */
    .nav-mobile { display: none; }
    .nav-desktop { display: flex; }
    
    /* Hero adjustments for tablets */
    .hero-title { font-size: var(--font-size-5xl); }
    .hero-subtitle { font-size: var(--font-size-xl); }
    
    .flip-card { height: 380px; }
    
    /* Grid system for tablets */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full grid layouts for desktop */
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    
    .hero-title { font-size: var(--font-size-6xl); }
    .flip-card { height: 400px; }
}

/* ========================================
   ACCESSIBILITY & USER PREFERENCE MEDIA QUERIES
   ======================================== */

/* Landscape orientation adjustments for mobile */
@media (orientation: landscape) and (max-height: 500px) {
    .section-hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title { font-size: var(--font-size-4xl); }
    .hero-subtitle { font-size: var(--font-size-base); }
}

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

/* Print styles - unique print optimizations */
@media print {
    .nav, .footer, .modal, .btn { display: none !important; }
    
    .section {
        page-break-inside: avoid;
        margin: var(--spacing-md) 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
        color: var(--brand-black) !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .flip-card-inner { transform: none !important; }
    .fade-in { animation: none !important; }
    
    /* Disable hover animations for accessibility */
    .btn:hover, .card:hover { transform: none !important; }
}

/* Dark mode support (if enabled) */
@media (prefers-color-scheme: dark) {
    :root {
        --brand-bg-primary: var(--brand-grey-900);
        --brand-text-primary: var(--brand-grey-100);
        --brand-text-secondary: var(--brand-grey-300);
    }
    
    .card { 
        background-color: var(--brand-grey-800);
        color: var(--brand-grey-100);
    }
    
    .modal-content {
        background-color: var(--brand-grey-800);
        color: var(--brand-grey-100);
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */

/* Devices with hover capability (desktop) */
@media (hover: hover) and (pointer: fine) {
    .btn:focus-visible {
        outline: 2px solid var(--brand-red-600);
        outline-offset: 2px;
    }
}

/* Touch devices without hover */
@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 44px; } /* Touch target size */
    
    /* Remove hover states that don't work on touch */
    .card:hover { transform: none; }
    .flip-card:hover .flip-card-inner { transform: none; }
    
    /* Enhance active states for touch feedback */
    .flip-card:active .flip-card-inner {
        transform: rotateY(180deg);
    }
} 