/* This file contains the main styles for the website, including layout, colors, and typography. */
/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8f8f8;
    color: #333;
}

section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 60px max(20px, calc((100vw - 1200px) / 2));
    box-sizing: border-box;
}

/* Text Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
nav {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff6347;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ff6347;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    background-color: #ff6347;
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    background-color: #ff6347;
    color: white;
    padding: 40px 20px;
    text-align: left;
    padding-top: 80px;
}

main {
    padding: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/premium_photo-1661883237884-263e8de8869b.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: 1.5em;
    margin: 20px 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6347;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ce4e38;
    transition: all 0.3s ease;
}

/* Reservation Form */
.reservation {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.form-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.submit-button {
    display: block;
    margin: 30px auto 0;
    padding: 15px 40px;
    background-color: #ff6347;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover{
    background-color: #ce4e38;
    transition: all 0.3s ease;
}

.submit-button::after{
    transition: background-color 0.3s ease;
}

/* Testimonials */
.testimonials {
    padding: 60px 20px;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.testimonial-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.testimonial-card cite {
    display: block;
    margin-top: 20px;
    color: #666;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    box-sizing: border-box;
}

.copyright {
    background-color: #222;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin: 0;
}

.footer-section h3 {
    color: #ff6347;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    margin-right: 15px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff6347;
}

/* Menu */
.menu-section {
    margin-bottom: 40px;
}

.menu-section h2 {
    text-align: center;
    color: #ff6347;
    margin-bottom: 25px;
}

.menu-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.menu-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item h3 {
    color: #333;
    margin: 0 0 10px 0;
}

.menu-item .description {
    color: #666;
    font-size: 0.9em;
    margin: 10px 0;
}

.menu-item .price {
    color: #ff6347;
    font-weight: bold;
    margin: 10px 0 0 0;
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.contact .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

.contact .form-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact .form-group textarea {
    grid-column: 1 / -1;
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text h2 {
    color: #ff6347;
    margin-bottom: 25px;
    font-size: 2.5em;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    text-align: center;
}

.feature i {
    color: #ff6347;
    font-size: 2em;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 1.1em;
    color: #333;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.about-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    /* Base Layout */
    body {
        width: 100vw;
        min-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    main {
        width: 100%;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    section {
        width: 100%;
        padding: 40px 20px;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Navigation */
    nav {
        background-color: transparent;
        box-shadow: none;
    }

    nav ul {
        display: none; /* Hide desktop nav */
    }

    /* Navigation */
    .nav-toggle {
        display: flex; /* Show only on mobile */
        position: fixed;
        top: 1rem;
        right: 1rem;
    }

    .nav-menu {
        display: block;
        position: fixed;
        top: -100%;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: all 0.4s ease-in-out;
        opacity: 0;
        visibility: hidden;
        padding-top: 80px;
        text-align: center;
    }

    .nav-menu.active {
        top: 0;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 15px 0;
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 60px 20px;
        margin: 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1em;
    }

    /* About Section */
    .about-container {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .about-text {
        padding-right: 0;
    }

    .about-image {
        margin-top: 30px;
        height: 300px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Menu Section */
    .menu-items-container {
        grid-template-columns: 1fr;
        display: grid;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .menu-item {
        padding: 15px;
    }

    /* Testimonials */
    .testimonials-grid {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    /* Forms */
    .form-group {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
    }

    .contact .form-group {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
    }

    /* Footer */

    .social-links {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .copyright {
        width: 100vw;
        margin: 0;
        padding: 20px 0;
    }

    input,
    select,
    textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* Image containment */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Typography adjustments */
    h1, h2, h3, p {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    footer {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .footer-content {
        width: 100%;
        padding: 40px 20px;
        margin: 0;
    }

    .footer-section {
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    footer {
        width: 100%;
    }

    .footer-content {
        padding: 40px 20px;
    }
}

/* Add smooth transitions for responsive changes */
* {
    transition: all 0.3s ease-in-out;
}