/* Main Restaurant Website Styles */

:root {
    /* Main colors - easily customizable for different restaurants */
    --primary: #d9534f;
    --primary-dark: #c9302c;
    --secondary: #333333;
    --accent: #f0ad4e;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    
    /* Font variables */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Matches header height */
}

body {
    font-family: var(--body-font);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

.text-center {
    text-align: center;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 5px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link.active:after {
    width: 100%;
}

.nav-link.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile navigation */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text);
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    height: 70vh;
    min-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    margin-top: 80px;
}

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

.hero h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Section styles */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--secondary);
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* About section */
.about {
    background-color: var(--light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hours-container {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.hours-title {
    font-family: var(--heading-font);
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.5rem;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Gallery section */
.gallery {
    background-color: var(--light);
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Modal for gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* Order CTA */
.cta {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact section */
.contact {
    background-color: var(--white);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-family: var(--heading-font);
    color: var(--secondary);
}

.map-container {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    font-family: var(--heading-font);
    margin-bottom: 15px;
    color: var(--secondary);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--text);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-info,
.footer-hours,
.footer-nav,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    margin-bottom: 20px;
}

footer h3 {
    font-family: var(--heading-font);
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--white);
}

address {
    font-style: normal;
    margin-bottom: 20px;
    line-height: 1.8;
}

address a {
    color: var(--white);
}

address a:hover {
    color: var(--accent);
}

footer ul {
    list-style: none;
}

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

footer a {
    color: var(--white);
}

footer a:hover {
    color: var(--accent);
}

.social-column {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

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

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-dark);
}

/* Mobile styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .main-nav.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .menu-navigation {
        flex-wrap: wrap;
    }
    
    .contact-container,
    .about-content {
        flex-direction: column;
    }
    
    .map-container {
        height: 300px;
    }
}

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

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

/* Mobile call button */
#mobile-call-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
    z-index: 999;
    border-radius: 50px;
    padding: 10px 15px;
}

/* Enhanced header button styles */

.nav-link.highlight {
    color: var(--white) !important;
    background-color: var(--primary);
    padding: 8px 15px !important;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.nav-link.highlight:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.highlight:after {
    display: none;
}

.nav-link.highlight.reservation {
    background-color: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.nav-link.highlight.reservation:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

@media (max-width: 992px) {
    .nav-link.highlight, .nav-link.highlight.reservation {
        margin: 5px 0;
        text-align: center;
        display: block;
        width: 200px;
    }
}

@media (hover: none) {
    .nav-link.highlight:hover, .nav-link.highlight.reservation:hover {
        transform: none;
        box-shadow: none;
    }
}