
/* Responsive Styles */

@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .about-content,
    .chef-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text,
    .chef-bio {
        order: 2;
    }
    
    .about-image,
    .chef-image {
        order: 1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-box:last-child {
        grid-column: 1 / -1;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .reservation-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-hours {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-hours h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--secondary);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        padding: 15px 0;
    }

    #header.scrolled .nav-menu {
        top: 70px;
    }
    
    /* Fix for reservation form and info boxes on mobile */
    .reservation-form-container {
        padding: 25px;
    }
    
    .form-grid {
        row-gap: 20px;
    }
    
    .info-box {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .info-box ul li {
        flex-wrap: wrap;
    }
    
    .info-box h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 200px;
    }
    
    .section-header .subtitle {
        font-size: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .menu-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: auto;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content blockquote {
        padding: 0 20px;
        font-size: 1.125rem;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact h3::after,
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
    
    .map-section {
        height: 300px;
    }
    
    .menu-item {
        flex-direction: column;
    }
    
    .menu-item-image {
        width: 100%;
        height: 200px;
    }
    
    .menu-item-content {
        width: 100%;
    }
    
    /* Enhanced mobile form styles */
    .reservation-form label,
    .reservation-form .time-label,
    .reservation-form .date-label {
        font-size: 0.9rem;
    }
    
    .reservation-form input,
    .reservation-form select,
    .reservation-form textarea {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .form-footer {
        margin-top: 20px;
    }
    
    /* Better contact details & hours display */
    .info-box ul li {
        margin-bottom: 12px;
    }
    
    .info-box ul li i {
        margin-right: 8px;
        min-width: 16px;
    }
    
    .info-box ul li a,
    .info-box ul li address {
        font-size: 0.95rem;
        word-break: break-word;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        padding: 20px;
    }
    
    .hero-background {
        background-position: 65% center;
    }
    
    .reservation-form-container,
    .contact-form-container,
    .info-box {
        padding: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Specific fixes for extra small devices */
    .info-box {
        margin-bottom: 15px;
    }
    
    .info-box h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    /* Fix long email display */
    .info-box ul li a[href^="mailto:"] {
        font-size: 0.85rem;
        display: inline-block;
        word-break: break-all;
    }
    
    /* Better form display */
    .reservation-form input,
    .reservation-form select,
    .reservation-form textarea {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 5px;
    }
    
    .form-footer .btn-primary {
        width: 100%;
        margin-top: 10px;
    }
}

@media screen and (max-width: 375px) {
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    /* Extreme small device fixes */
    .info-box {
        padding: 15px;
    }
    
    .info-box ul li span {
        display: block;
        width: 100%;
    }
    
    /* Fix special requests textarea */
    .form-group.full-width textarea {
        min-height: 80px;
    }
}

/* Fix iOS-specific issues */
@supports (-webkit-touch-callout: none) {
    /* Fix input styling on iOS */
    input[type="date"],
    input[type="time"],
    select {
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* iOS viewport height fix */
    .reservation-section,
    .info-box {
        /* Avoid issues with viewport units on iOS */
        height: auto !important;
    }
}

/* Additional viewport-specific fixes */
@media screen and (max-height: 700px) {
    .reservation-form-container {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .form-grid {
        row-gap: 15px;
    }
}
