/* Royal Oak Pub - Responsive Styles */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    /* Hero adjustments for tablet */
    .hero-container {
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Section content adjustments */
    .about-content,
    .food-content,
    .events-content,
    .rooms-content {
        gap: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    /* Menu specific tablet adjustments */
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .sunday-menu {
        gap: 1.5rem;
    }
    
    .breakfast-sections {
        gap: 1.5rem;
    }
}

/* Mobile Landscape & Small Tablet (481px - 768px) */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 2.5rem 0;
    }
    
    /* Navigation - Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--warm-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 5rem;
        gap: 2rem;
        box-shadow: -5px 0 15px var(--soft-shadow);
        transition: var(--smooth-transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    /* Hero Section - Stack vertically */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Two-column layouts become single column */
    .about-content,
    .food-content,
    .rooms-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Events section adjustments */
    .events-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .event-day {
        min-width: auto;
        font-size: 1.2rem;
    }
    
    /* Social links stack on small screens */
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Typography adjustments */
    .section-title {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .about-description,
    .food-description,
    .rooms-description {
        font-size: 1.1rem;
    }
    
    /* Menu specific mobile adjustments */
    .menu-nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .menu-nav-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .menu-item-name {
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .sunday-menu {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .roast-options {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .breakfast-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Portrait (320px - 480px) */
@media screen and (max-width: 480px) {
    :root {
        --section-padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    /* Hero section for small mobile */
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    /* Paragraph text */
    p {
        font-size: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Food highlights stack better */
    .food-highlights {
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1rem;
        background-color: var(--warm-white);
        border-radius: var(--border-radius);
        box-shadow: 0 2px 8px var(--soft-shadow);
    }
    
    /* Event items smaller padding */
    .event-item {
        padding: 1rem;
    }
    
    /* Social links full width */
    .social-link {
        width: 100%;
        text-align: center;
    }
    
    /* Mobile menu adjustments */
    .nav-menu {
        width: 90%;
        padding-top: 4rem;
    }
    
    /* Footer padding */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    /* Menu specific small mobile adjustments */
    .menu-nav {
        padding: 1rem 0;
    }
    
    .menu-nav-links {
        gap: 0.3rem;
    }
    
    .menu-nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .menu-item {
        padding: 1rem;
    }
    
    .menu-item-name {
        font-size: 1.1rem;
    }
    
    .menu-item-price {
        font-size: 1rem;
    }
    
    .menu-special,
    .menu-note,
    .booking-note {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .sunday-starters,
    .sunday-mains {
        padding: 1.5rem;
    }
    
    .breakfast-section {
        padding: 1.5rem;
    }
    
    .breakfast-info {
        padding: 1rem;
    }
}

/* Extra Small Mobile (max-width: 320px) */
@media screen and (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .nav-container {
        padding: 0.8rem;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .hero-container {
        padding: 0 0.8rem;
    }
    
    /* Extra small menu adjustments */
    .menu-nav-link {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .menu-item {
        padding: 0.8rem;
    }
    
    .menu-item-name {
        font-size: 1rem;
    }
    
    .menu-item-price {
        font-size: 0.95rem;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images and borders look crisp on high-DPI displays */
    .hero-img,
    .about-img,
    .food-img,
    .rooms-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-container {
        min-height: auto;
        padding: 1rem;
    }
    
    .nav-menu {
        padding-top: 2rem;
        gap: 1rem;
    }
    
    :root {
        --section-padding: 1.5rem 0;
    }
    
    /* Menu adjustments for landscape */
    .menu-nav {
        padding: 1rem 0;
    }
    
    .menu-nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Focus states for accessibility on all devices */
@media (hover: none) {
    .btn:focus,
    .nav-link:focus,
    .social-link:focus,
    .menu-nav-link:focus {
        outline: 2px solid var(--primary-green);
        outline-offset: 2px;
    }
    
    /* Touch-friendly button sizes */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
    }
    
    .nav-link,
    .menu-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .mobile-menu-toggle,
    .nav-menu,
    .hero-buttons,
    .social-links,
    .footer,
    .menu-nav {
        display: none;
    }
    
    .hero-container,
    .about-content,
    .food-content,
    .rooms-content,
    .menu-grid,
    .sunday-menu,
    .breakfast-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .section-title {
        color: black;
        font-size: 18pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    .menu-item {
        border: 1px solid #ccc;
        margin-bottom: 0.5rem;
        page-break-inside: avoid;
    }
    
    .menu-item-price {
        font-weight: bold;
    }
    
    .menu-special,
    .menu-note,
    .booking-note {
        border: 2px solid black;
        background: none;
        color: black;
    }
}