/* ===================================
   Bob Murphy - Responsive Design
   Mobile-First Media Queries
   =================================== */

/* Tablet and Below (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 35px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile and Below (max-width: 768px) */
@media screen and (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Navigation Mobile */
    .nav-container {
        padding: 15px 20px;
    }

    .logo h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero Mobile */
    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* About Mobile */
    .about-features {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px 25px;
    }

    /* Menu Mobile */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        padding: 25px;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }

    .modal-close {
        right: 20px;
        font-size: 35px;
    }

    .modal-nav {
        padding: 15px 10px;
        font-size: 24px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    /* Reviews Mobile */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .rating-box {
        padding: 30px 40px;
    }

    .rating-number {
        font-size: 3rem;
    }

    .review-card {
        padding: 25px;
    }

    /* Location Mobile */
    .location-map iframe {
        height: 350px;
    }

    .info-card {
        padding: 25px;
    }

    /* Contact Mobile */
    .contact-form-container {
        padding: 25px;
    }

    .contact-item {
        padding: 20px;
    }

    .social-icons {
        justify-content: flex-start;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        align-items: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-box {
        padding: 25px 30px;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .rating-stars {
        font-size: 1.5rem;
    }

    .review-card::before {
        font-size: 3rem;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Large Desktop (min-width: 1440px) */
@media screen and (min-width: 1440px) {
    :root {
        --max-width: 1400px;
    }

    .section {
        padding: 120px 0;
    }

    .hero {
        min-height: 700px;
    }

    .hero-title {
        font-size: 5.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .contact-form-container,
    .scroll-top,
    .gallery-overlay,
    .modal {
        display: none !important;
    }

    body {
        background: white;
    }

    .section {
        padding: 40px 0;
        page-break-inside: avoid;
    }

    .hero {
        min-height: 400px;
        page-break-after: always;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

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

    .hero {
        background-attachment: scroll;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #654321;
        --secondary-color: #B8860B;
        --text-dark: #000000;
        --text-light: #333333;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .nav-link::after {
        height: 3px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support */
    /*
    :root {
        --light-color: #1a1a1a;
        --white: #2a2a2a;
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --dark-color: #f0f0f0;
    }

    .navbar {
        background: rgba(30, 30, 30, 0.98);
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(44, 24, 16, 0.8));
    }
    */
}

/* Landscape Orientation for Tablets */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 500px;
    }

    .nav-menu {
        gap: 25px;
    }

    .about-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .gallery-item,
    .menu-item,
    .review-card,
    .contact-item {
        -webkit-tap-highlight-color: transparent;
    }

    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }

    .btn:active {
        transform: scale(0.98);
    }

    /* Increase touch target sizes */
    .nav-link {
        padding: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-icons a {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Loading State Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
