/*
* Taco Libre - Mexican Restaurant Website
* Custom CSS Styles
*/

/* ===== VARIABLES ===== */
:root {
    /* Mexican-inspired color palette */
    --primary: #e63946;       /* Vibrant red */
    --secondary: #118ab2;     /* Turquoise blue */
    --accent: #ffd166;        /* Golden yellow */
    --dark: #073b4c;          /* Deep blue */
    --light: #f1faee;         /* Off-white */
    --success: #06d6a0;       /* Green */
    --warning: #ffd166;       /* Yellow */
    --danger: #ef476f;        /* Pink-red */
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
}

/* ===== GENERAL STYLES ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

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

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

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d12836;
    border-color: #d12836;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    font-weight: 700;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.8);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--accent);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 70%;
}

.btn-reservation {
    background-color: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    margin-left: 1rem;
    border-radius: 30px;
}

.btn-reservation:hover {
    background-color: #d12836;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-reservation::after {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

/* Remove fixed background attachment on mobile devices to prevent zooming issues */
@media (min-width: 768px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== ABOUT SECTION ===== */
.about-img-container {
    position: relative;
    overflow: hidden;
    border: 10px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img-container img {
    transition: transform 0.5s ease;
}

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

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}

.signature {
    opacity: 0.8;
}

/* ===== FEATURES SECTION ===== */
.feature-box {
    padding: 2rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-box h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== MENU SECTION ===== */
.menu-categories {
    margin-bottom: 2rem;
}

.btn-menu {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.3rem 0.5rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.btn-menu::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.btn-menu:hover,
.btn-menu.active {
    color: var(--primary);
}

.btn-menu:hover::after,
.btn-menu.active::after {
    width: 70%;
}

.menu-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.menu-card-img {
    height: 200px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.1);
}

.menu-card-content {
    padding: 1.5rem;
}

.menu-card-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--primary);
    font-weight: 700;
}

.badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

.menu-note {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-item {
    margin-bottom: 1.5rem;
}

.gallery-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-img-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

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

.gallery-img-container:hover .gallery-overlay {
    opacity: 1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: var(--warning);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.testimonial-author p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

/* ===== PARALLAX SECTION ===== */
.parallax-section {
    height: 400px;
    background-image: url('../images/parallax-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* For mobile devices, disable fixed background to prevent zooming issues */
@media (max-width: 767.98px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ===== RESERVATION SECTION ===== */
/* Commented out for future use
.reservation-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 5px;
}

.reservation-form .form-control,
.reservation-form .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0;
    padding: 0.8rem 1rem;
}

.reservation-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.reservation-form .form-control:focus,
.reservation-form .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    box-shadow: none;
}
*/

/* ===== CONTACT SECTION ===== */
.contact-info {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    height: 100%;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.contact-item h5 {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item p {
    margin-bottom: 0;
    color: #666;
}

.social-links {
    display: flex;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

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

.contact-form {
    padding: 2rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-form .form-control {
    border-radius: 0;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
}

.footer-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-social .social-link {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-social .social-link:hover {
    background-color: var(--primary);
}

.footer-newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    box-shadow: none;
}

.footer-newsletter .btn {
    border-radius: 0;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: 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(--dark);
    color: white;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.7rem 1rem;
    }
    
    .btn-reservation {
        margin-left: 1rem;
        margin-top: 0.5rem;
        display: inline-block;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .feature-box,
    .menu-card,
    .testimonial-card,
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn-menu {
        padding: 0.4rem 1rem;
        margin: 0 0.2rem 0.5rem;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lazy Loading for Images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}
