/* Custom CSS for Fiestapa - Inspired by Spanish Colors */

/* Basic CSS Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Account for fixed navbar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Navbar Styles - Spanish inspired colors */
.custom-navbar {
    background: linear-gradient(135deg, rgb(224, 96, 33) 0%, rgb(204, 86, 29) 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    background: linear-gradient(135deg, rgb(194, 76, 23) 0%, rgb(174, 66, 19) 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.custom-navbar .navbar-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    /* filter: brightness(0) invert(1); Makes logo white */
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.custom-navbar .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 0.2rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: rgb(255, 209, 103) !important;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

/* Custom Section Styles */
section {
    scroll-margin-top: 80px;
}

/* Home Section - Spanish vibes with hero image */
#home {
    background: linear-gradient(rgba(255, 245, 245, 0.8), rgba(254, 215, 215, 0.8), rgba(251, 182, 206, 0.8)), 
                url('images/logo/hero_image.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

#home .container {
    position: relative;
    z-index: 2;
}

#home .display-4 {
    color: white;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    letter-spacing: -1px;
}

#home .lead {
    color: white;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* About Section */
#about {
    background-color: #fffaf0;
}

#about h2 {
    color: rgb(204, 65, 37);
    font-weight: 700;
    letter-spacing: 1px;
}

#about p {
    color: #744210;
    font-size: 1.1rem;
}

/* Events Section - Menu style */
#events {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaa7 100%);
}

#events h2 {
    color: rgb(204, 65, 37);
    font-weight: 700;
    letter-spacing: 1px;
}

#events .lead {
    color: #744210;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(204, 65, 37, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 209, 103, 0.1);
    border-left: 4px solid rgb(204, 65, 37);
    overflow: hidden;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(204, 65, 37, 0.2);
    border-left: 4px solid rgb(184, 55, 27);
    background: rgba(255, 209, 103, 0.15);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: rgb(204, 65, 37);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.card-text {
    color: #744210;
}

/* Contact Section */
#contact {
    background-color: #fffaf0;
}

#contact h2 {
    color: rgb(204, 65, 37);
    font-weight: 700;
    letter-spacing: 1px;
}

#contact h5 {
    color: #d83b01;
    font-weight: 600;
}

#contact p, #contact li {
    color: #744210;
}

.form-control {
    border: 2px solid #fed7d7;
    border-radius: 8px;
}

.form-control:focus {
    border-color: rgb(204, 65, 37);
    box-shadow: 0 0 0 0.2rem rgba(204, 65, 37, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, rgb(204, 65, 37) 0%, rgb(184, 55, 27) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgb(174, 55, 27) 0%, rgb(154, 45, 17) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(204, 65, 37, 0.3);
}

/* Golden outline button */
.btn-outline-golden {
    background: transparent;
    border: 2px solid rgb(255, 209, 103);
    color: rgb(255, 209, 103);
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-golden:hover {
    background: rgb(255, 209, 103);
    border-color: rgb(255, 209, 103);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 209, 103, 0.4);
}

/* Main content area */
main {
    flex: 1;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2d1b1b 0%, #1a1a1a 100%);
    margin-top: 0;
}

footer p {
    color: #fed7d7;
}

.footer-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white */
}

footer .text-white:hover {
    color: #fed7d7 !important;
    transition: color 0.3s ease;
}

/* Spanish-inspired accent elements */
.spanish-accent {
    background: linear-gradient(45deg, rgb(204, 65, 37), #fbb6ce, #fed7d7);
    background-size: 600% 600%;
    animation: spanishGradient 3s ease infinite;
}

@keyframes spanishGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animations */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Home section should be visible immediately */
section#home {
    opacity: 1;
    transform: translateY(0);
}

/* Individual animation delays for sections */
section:nth-of-type(1) { transition-delay: 0.1s; }
section:nth-of-type(2) { transition-delay: 0.2s; }
section:nth-of-type(3) { transition-delay: 0.3s; }
section:nth-of-type(4) { transition-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom responsive adjustments */
@media (max-width: 768px) {
    .custom-navbar .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .navbar-logo {
        height: 32px;
    }
    
    .footer-logo {
        height: 24px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    #home {
        min-height: 50vh;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .custom-navbar .navbar-brand h1 {
        font-size: 1.3rem;
    }
    
    .navbar-logo {
        height: 28px;
    }
    
    .footer-logo {
        height: 20px;
    }
    
    #home {
        background-attachment: scroll;
        min-height: 60vh;
    }
    
    #home .display-4 {
        font-size: 1.8rem !important;
    }
}

/* Additional Spanish-inspired elements */
.menu-highlight {
    background: linear-gradient(135deg, rgb(204, 65, 37) 0%, #fbb6ce 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.text-fiesta {
    color: rgb(204, 65, 37) !important;
}

.bg-fiesta {
    background-color: rgb(204, 65, 37) !important;
    color: white;
}

.spanish-border {
    border: 3px solid rgb(204, 65, 37);
    border-radius: 10px;
    position: relative;
}

.spanish-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgb(204, 65, 37), #fbb6ce, #fed7d7, rgb(204, 65, 37));
    border-radius: 10px;
    z-index: -1;
}

/* Tapas and Food Images Styles */
.tapas-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border: 3px solid;
    border-image: linear-gradient(45deg, rgb(255, 209, 103), rgb(204, 65, 37)) 1;
}

.fiestapa-platter-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border: 3px solid;
    border-image: linear-gradient(45deg, rgb(255, 209, 103), rgb(204, 65, 37)) 1;
}
