/**
 * El Pérez Mexican Restaurant - Custom Styles
 * Mexican-inspired design with red, green, and warm colors
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #d84315;
    --secondary-color: #2e7d32;
    --accent-color: #ffa726;
    --light-color: #f5f5f5;
    --dark-color: #212121;
    --gray-color: #757575;
    --light-gray: #9e9e9e;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-light-gray {
    color: var(--light-gray);
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* Container responsive padding */
@media (max-width: 767px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== Navigation Bar ===== */
.navbar {
    padding: 1.2rem 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(26, 26, 26, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.brand-text {
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.btn-order {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-order:hover {
    background-color: var(--secondary-color);
    color: #ffffff !important;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 80px;
    background-color: #212121;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.4s ease;
}

.hero-buttons {
    margin-bottom: 1rem;
    animation: fadeInUp 1.6s ease;
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.hero-phone-link {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-phone-link:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: #ffffff;
    font-size: 2rem;
    opacity: 0.8;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== About Section ===== */
.about-section {
    background-color: #ffffff;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
}

/* ===== Features ===== */
.feature-card {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    border-color: var(--primary-color);
    background-color: #ffffff;
}

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

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.feature-description {
    color: var(--gray-color);
    font-size: 1rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: var(--light-color);
}

.rating-display .stars {
    font-size: 1.5rem;
}

.review-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e0e0e0;
}

.review-card:hover {
    border-color: var(--primary-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-stars {
    color: #ffc107;
    font-size: 1rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.review-text {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-author {
    font-size: 0.95rem;
    color: var(--gray-color);
}

.review-author strong {
    color: var(--dark-color);
}

/* ===== Location Section ===== */
.location-section {
    background-color: #ffffff;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
}

.location-info-compact {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.location-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.location-link:hover {
    color: var(--secondary-color);
}

.location-phone-compact {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.location-phone-compact:hover {
    color: var(--secondary-color);
}

.hours-compact-list {
    line-height: 1.8;
}

/* ===== App Banner Section ===== */
.app-banner-section {
    position: relative;
    overflow: hidden;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.app-description {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== Footer ===== */
.footer-section {
    background-color: var(--dark-color);
    color: var(--light-gray);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-widget h5 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.footer-contact a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

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

.footer-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/* ===== Responsive Design ===== */

/* Tablet and below */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    /* Navbar */
    .navbar {
        padding: 0.8rem 0 !important;
    }
    
    .navbar.scrolled {
        padding: 0.5rem 0 !important;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-brand img {
        height: 35px !important;
        max-width: 120px !important;
    }
    
    .navbar.scrolled .navbar-brand img {
        height: 30px !important;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .btn-order {
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 65vh;
        padding: 100px 0 50px !important;
        background-attachment: scroll !important;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .hero-phone-link {
        font-size: 1.1rem !important;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* About Section */
    .about-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .about-image img {
        max-height: 300px;
        object-fit: cover;
        width: 100%;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
    
    /* Testimonials */
    .review-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Location Section */
    .location-section {
        padding: 40px 0;
    }
    
    .location-info-compact {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }
    
    .map-container iframe {
        height: 300px !important;
    }
    
    .location-phone-compact {
        font-size: 1.1rem;
    }
    
    .info-item {
        margin-bottom: 1.5rem !important;
    }
    
    .info-item h5 {
        font-size: 1rem;
    }
    
    .info-item i {
        font-size: 1rem !important;
    }
    
    /* Footer */
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .footer-widget h5 {
        font-size: 1.1rem;
    }
    
    .footer-widget img {
        height: 45px !important;
        max-width: 120px !important;
    }
    
    .footer-links li,
    .footer-contact li,
    .footer-hours li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
    
    /* Section Titles */
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* Small mobile devices */
@media (max-width: 575px) {
    /* Navbar */
    .navbar-brand {
        font-size: 0.9rem !important;
    }
    
    .brand-text {
        font-size: 0.85rem;
    }
    
    .navbar-brand img {
        height: 30px !important;
        max-width: 100px !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: 80px 0 40px !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
    }
    
    .hero-phone-link {
        font-size: 1rem !important;
    }
    
    .hero-buttons .btn {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Sections */
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    /* Review Cards */
    .review-card {
        padding: 1.25rem;
    }
    
    /* Location */
    .location-info-compact {
        padding: 1.25rem;
    }
    
    .map-container iframe {
        height: 250px !important;
    }
    
    /* Footer */
    .footer-widget img {
        height: 40px !important;
        max-width: 100px !important;
    }
    
    .footer-widget h5 {
        font-size: 1rem;
    }
    
    .footer-links li,
    .footer-contact li,
    .footer-hours li {
        font-size: 0.85rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .navbar-brand img {
        height: 28px !important;
        max-width: 90px !important;
    }
    
    .brand-text {
        font-size: 0.8rem;
    }
}

