/* Base styles and variables */
:root {
    --primary-color: #8D2B2B;
    --secondary-color: #E4A622;
    --accent-color: #4A6D7C;
    --text-color: #333333;
    --light-color: #FFFFFF;
    --light-bg: #F9F6F2;
    --dark-bg: #1E1E1E;
    --font-heading: "Imperial Script", cursive;
    --font-body: "Noto Serif", serif;
    --border-radius: 5px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


.container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0 16px;
}


@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 calc((834px - 768px) / 2);
    }
}


@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
        padding: 0 calc((1440px - 1280px) / 2);
    }
}


.about-content,
.contact-content,
.menu-items {
    gap: 16px;
}

@media (min-width: 1280px) {
    .about-content,
    .contact-content,
    .menu-items {
        gap: 20px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #7a2424;
    color: var(--light-color);
}

.btn-primary2 {
    background-color: var(--primary-color);
    color: var(--light-color);
    display: block;
    margin: 0 auto;
    width: fit-content;   
}

.btn-primary2:hover {
    background-color: #7a2424;
    color: var(--light-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: #c48b1d;
    color: var(--dark-bg);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

.subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    color: var(--text-color);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-reserve {
    background-color: var(--primary-color);
    color: var(--light-color) !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius);
}

.btn-reserve:hover {
    background-color: #7a2424;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px auto;
    transition: var(--transition);
    display: block;
}


.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media screen and (max-width: 768px) {
    .menu-toggle .bar {
        background-color: var(--text-color);
    }
}


.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


.hero-qr-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-qr-code {
    position: relative;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.hero-qr-code .qr-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-color);
}

.hero-qr-code img.loaded + .qr-loader {
    display: none;
}

.hero-qr-section {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.hero-qr-section:hover {
    color: white;
}


.about {
    background-color: var(--light-color);
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1280px) {
    .about-content {
        gap: 20px;
    }
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    top: -20px;
    left: 20px;
    z-index: -1;
}

.about-image img {
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}

.features {
    margin-top: 30px;
}

.features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.features .icon {
    font-size: 2rem;
    margin-right: 15px;
}

.features h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}


.menu {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.menu-tab {
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--primary-color);
}

.menu-tab:hover,
.menu-tab.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.menu-category {
    display: none;
}

.menu-category.active {
    display: block;
}


.menu-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    align-items: center;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.menu-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.menu-item-content {
    flex: 1;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.menu-item-header h3 {
    font-size: 1.2rem;
    color: var(--dark-brown, #333);
    margin: 0;
    font-weight: 600;
}

.menu-item .price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;

}

.menu-item-content p {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-left: 0.5rem;
}


.gallery {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.gallery-grid {
    margin: 0 auto;
    max-width: 100%;
}


.gallery-item {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}


@media (min-width: 768px) {
    .gallery-item {
        width: calc(50% - 8px);
        height: 300px;
    }
}


@media (min-width: 1280px) {
    .gallery-item {
        width: calc(33.333% - 13.33px);
        height: 350px;
    }
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.contact {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 2fr;
    }
}

@media (min-width: 1280px) {
    .contact-content {
        gap: 20px;
    }
}

.contact-info {
    flex: 1;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.reservation-form {
    flex: 2;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    height: 120px;
    resize: vertical;
}

footer {
    background-color: #222;
    color: var(--light-color);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: var(--light-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #aaa;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.copyright a {
    color: var(--secondary-color);
}

.copyright a:hover {
    text-decoration: underline;
}

.hero-qr-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-qr-code {
    position: relative;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.hero-qr-code .qr-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-color);
}

.hero-qr-code img.loaded + .qr-loader {
    display: none;
}

.hero-qr-section {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.hero-qr-section:hover {
    color: white;
}

@media (max-width: 768px) {
    .hero-qr-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .hero-qr-code {
        width: 100px;
        height: 100px;
    }
    
    .hero-qr-section {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-qr-code {
        width: 90px;
        height: 90px;
    }
}


@media screen and (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-top: 40px;
    }
}


@media screen and (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 74px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content,
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .menu-item {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-item-image {
        width: 100%;
        height: 150px;
    }
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-left: 0.5rem;
}

.happy-hour-info {
    text-align: center;
    margin: 2rem 0 1rem 0;
    padding: 1rem;
    background: var(--cream, #f9f6f2);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.happy-hour-info p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-brown, #333);
}

.happy-hour-info strong {
    color: var(--primary-color);
}