/* ========================================
   RESPONSIVE STYLES FOR BOB'S BURGERS
   ======================================== */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Navigation */
    nav {
        flex-direction: row;
        padding: 0;
        gap: 0;
        max-height: 4em;
    }
    
    .menu_item {
        margin-top: 0;
        padding: .75em;
        text-align: center;
        flex-grow: 1;
        padding-top: 10px;
    }
    
    .menu_item a {
        font-size: 2em;
        letter-spacing: 4px;
        line-height: .75;
    }
    
    /* Landing Section */
    .landing-wrapper {
        padding: 0.5rem;
        min-height: 100vh;
        justify-content: center;
    }
    
    .logo_wrapper img {
        width: 100%;
    }
    
    /* Burger of the Day */
    .burger-of-the-day-frame {
        max-width: 100%;
        padding: 30px;
    }
         
    /* About Section */
    .mini-about {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 2rem;
        padding: 1.5rem 0.5rem;
    }
    
    .family-card-stack {
        width: 100%;
        max-width: 300px;
        height: 360px;
    }
    
    .family-image-wrapper {
        width: 100%;
        max-width: 300px;
    }
    .sticky_sections_wrapper {
        margin-bottom: calc(80vh - 24px);
    }
    .about-content-wrapper {
        padding: 1.5em;
        margin: 0 0.5rem;
    }
    .about-sticky-header, .menu-sticky-header {
        top: calc(4em - 2px);
    }
    /* Menu Section */
    .menu-section {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1rem;
    }
    .margin-Top {
        margin-top: 3lvh;
    }
    .burger-image-column {
        order: 1;
        margin-bottom: 1rem;
    }
    .meun-section-title {
        line-height: 1;
    }
    .burger-of-day-banner {
        order: 2;
        grid-column: 1;
        font-size:2em;
        padding: 15px;
        text-shadow: -3px 2px 0 var(--text-primary);
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: var(--text-primary);
    }
    .burger-name {
        font-size: 2.5em; 
    }
    .footer_logo {
        margin-left: -40px;
        margin-bottom: -5%;
        margin-right: -25px;
    }
    .menu-full-col-span {
        order: 3;
        grid-column: 1;
    }
    
    .menu-two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .food-menu-item {
        font-size: 1.2em;
        width: 95%;
    }
    
    /* Headers */
    .about_header h2 {
        font-size: 8vw;
        letter-spacing: 2px;
    }
    
    .about_header h2.sticky-reduced {
        font-size: 6vw;
    }
    .clean-up-button {
        display: none;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        border-bottom: 2px dotted var(--text-secondary);
        margin-bottom: .5em;
        padding-bottom: .5em;
    }
    
    .address {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.5em;
        text-align: center;
    }
    
    .footer_flex {
        align-items: center;
        flex-direction: column-reverse;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .menu_item a {
        font-size: 2.5em;
        letter-spacing: 6px;
    }
    
    .burger-of-the-day-frame {
        max-width: 350px;
    }
    
    .family-card-stack {
        max-width: 350px;
        height: 420px;
    }
    
    .menu-section {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
    }
    
    .menu-two-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about_header h2 {
        font-size: 7vw;
    }
    
    .about_header h2.sticky-reduced {
        font-size: 4vw;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mini-about {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        min-height: 600px;
    }
    
    .family-card-stack {
        max-width: 400px;
        height: 480px;
    }
    
    .menu-section {
        grid-template-columns: 1fr 2fr;
        padding: 3rem 1.5rem;
    }
    
    .burger-of-day-banner {
        grid-column: 2;
    }
    
    .menu-full-col-span {
        grid-column: 1 / -1;
    }
    
    .menu-two-columns {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .about_header h2 {
        font-size: 6vw;
    }
    
    .about_header h2.sticky-reduced {
        font-size: 3.5vw;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .address {
        font-size: 1.8em;
        gap: 1.5rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .menu_item a {
        font-size: 2.8em;
        letter-spacing: 7px;
    }
    
    .mini-about {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 3rem 2rem;
        min-height: 700px;
    }
    
    .family-card-stack {
        max-width: 450px;
        height: 540px;
    }
    
    .menu-section {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 3.5rem 2rem;
    }
    
    .about_header h2 {
        font-size: 5vw;
    }
    
    .about_header h2.sticky-reduced {
        font-size: 3vw;
    }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .landing-wrapper {
        padding: 2rem;
    }
    
    .mini-about {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 3rem;
        min-height: 700px;
    }
    
    .family-card-stack {
        max-width: 500px;
        height: 600px;
    }
    
    .menu-section {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 4rem 2rem;
    }
    
    .about_header h2 {
        font-size: 5vw;
        font-size: min(5vw, 4rem);
    }
    
    .about_header h2.sticky-reduced {
        font-size: 2.5vw;
        font-size: min(2.5vw, 2rem);
    }
    
    .footer-links {
        justify-content: space-between;
    }
    
    .address {
        font-size: 2em;
        gap: 2em;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .menu_item a {
        font-size: 3.2em;
        letter-spacing: 8px;
    }
    
    .burger-of-the-day-frame {
        max-width: 500px;
    }
    
    .mini-about {
        padding: 4rem;
        gap: 4rem;
    }
    
    .menu-section {
        padding: 5rem 3rem;
        gap: 1rem;
    }
    
    .burger-of-day-banner {
        font-size: 3rem;
        padding: 25px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .landing-wrapper {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    
    .logo_wrapper {
        flex: 1;
        max-width: 300px;
    }
    
    .whole-Frame {
        flex: 1;
        max-width: 350px;
    }
    
    .clean-up-button {
        position: fixed;
        bottom: 10px;
        left: 10px;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo_wrapper img,
    .menu-burger-image,
    .family-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Media Query */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #2c3e50;
        --bg-secondary: #34495e;
        --text-primary: #ecf0f1;
        --text-secondary: #bdc3c7;
    }
}

/* Print Styles */
@media print {
    .theme-toggle-nav,
    .clean-up-button,
    nav,
    .sticky_sections_wrapper::after {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .menu-section {
        grid-template-columns: 1fr !important;
        page-break-inside: avoid;
    }
    
    .family-card-stack {
        display: none;
    }
    
    .about_content_text {
        font-size: 12pt;
        line-height: 1.4;
    }
}
