/* Panaderia y Taqueria Casas - Premium Design System */

:root {
    --primary: #005eff;
    --primary-dark: #0047cc;
    --secondary: #8a2387;
    --dark: #121212;
    --light: #ffffff;
    --gray: #f4f4f4;
    --text: #333333;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--light);
    background-image: url('../images/white-brick-wall-2000x1333.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    gap: 1rem;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 5%;
}

.lang-toggle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    min-width: 50px;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.85);
}

.nav-phone {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.nav-phone::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: transform 0.4s ease;
    border-radius: 50px;
    opacity: 0;
    z-index: 0;
}

.nav-phone:hover {
    color: var(--primary);
}

.nav-phone:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.25;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: transform 0.4s ease;
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.25;
}

/* Hero Section */
.hero {
    min-height: auto;
    padding: 120px 5% 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: url('../images/white-brick-wall-2000x1333.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 94, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 420px;
    width: 100%;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out, float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero h1 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 0.5rem;
    color: var(--primary);
    order: 1;
}

.hero p {
    font-size: 0.95rem;
    color: var(--primary);
    order: 0;
}

/* Sections */
section {
    padding: 60px 5%;
    background: transparent;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(0, 94, 255, 0.4);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 94, 255, 0.4);
}

.section-title.reveal.active::after,
.section-title:hover::after {
    width: 100px;
    left: 0;
    right: 0;
    margin: auto;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Specials grid - 3 col, bottom 2 cards wider to equal top row */
.specials-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.specials-grid .menu-card:nth-child(1),
.specials-grid .menu-card:nth-child(2),
.specials-grid .menu-card:nth-child(3) {
    grid-column: span 2;
}

.specials-grid .menu-card:nth-child(4),
.specials-grid .menu-card:nth-child(5) {
    grid-column: span 3;
}

.specials-grid .menu-card:nth-child(4) img,
.specials-grid .menu-card:nth-child(5) img {
    height: 320px;
}

.specials-grid .menu-card:nth-child(4) .menu-content,
.specials-grid .menu-card:nth-child(5) .menu-content {
    padding: 1.5rem 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.menu-section-bg {
    background: rgba(240, 248, 255, 0.4);
    padding: 2rem;
    border-radius: 30px;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 94, 255, 0.35);
    box-shadow: 0 0 40px rgba(0, 94, 255, 0.25), inset 0 0 20px rgba(0, 94, 255, 0.05);
    max-width: 1060px;
    margin: 0 auto;
    width: 100%;
}

.feature-title {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.feature-card {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Menu Card */
.menu-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.8);
}

.menu-card:hover .menu-popup {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: auto;
}

.menu-img-wrapper {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.menu-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.menu-card:hover img {
    transform: scale(1.15);
    transform-origin: center center;
}

.menu-content {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10;
    overflow: hidden;
}

.menu-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 110%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: transform 0.4s ease;
    border-radius: 0;
    opacity: 0;
    z-index: 0;
}

.menu-card:hover .menu-content::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
}

.menu-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.menu-card:hover .menu-content h3 {
    color: var(--primary);
}

/* Menu Popup */
.menu-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    min-width: 280px;
    max-width: 90vw;
}

/* Placeholder for missing images */
.menu-placeholder {
    position: relative;
    background: var(--gray);
    height: 280px;
    overflow: hidden;
}

.menu-placeholder img {
    opacity: 0.3;
    filter: grayscale(100%);
}

.menu-placeholder::after {
    content: '🍽️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 1;
}

.menu-popup p {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.menu-popup .menu-info {
    margin-top: 0.75rem;
    background: var(--gray);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--primary);
}

/* Feature Section */
.feature-section {
    background-color: transparent;
    color: white;
}

.feature-title {
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    display: block;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 94, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 94, 255, 0.15);
    letter-spacing: 0.02em;
    text-align: center;
    margin: 4rem auto 3rem auto;
    width: fit-content;
    position: relative;
    z-index: 10;
    font-size: 1.5rem;
    text-transform: none;
    font-weight: 600;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 94, 255, 0.4);
}

.feature-title.reveal.active::after {
    width: 80%;
    left: 0;
    right: 0;
}

.feature-card {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 2.5rem;
}

.feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.feature-row:last-child {
    direction: rtl;
}

.feature-row:last-child > * {
    direction: ltr;
}

/* Feature content - pull tab reveal effect */
.feature-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 2rem 2rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text);
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


.feature-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.feature-content p {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feature-content em {
    color: var(--primary);
}

.feature-image {
    width: 300px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Slide from left - top item pulls out from behind image */
.slide-left {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card.active .slide-left {
    transform: translateX(0);
    opacity: 1;
}

/* Slide from right - bottom item pulls out from behind image */
.slide-right {
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card.active .slide-right {
    transform: translateX(0);
    opacity: 1;
}

/* Disable slide animations on mobile - cards stack so no slide needed */
@media (max-width: 600px) {
    .slide-left,
    .slide-right {
        transform: none;
        opacity: 1;
    }
}

/* Image subtle hover */
.feature-image:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Chat Float */
.chat-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 94, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.chat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 94, 255, 0.5);
}

.chat-float svg { width: 28px; height: 28px; }

.chat-box {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-box.open {
    display: flex;
    animation: slideUp 0.3s ease;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-iframe { flex: 1; border: none; width: 100%; }

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

/* Breakfast List Styles */
.breakfast-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0;
}

.breakfast-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.breakfast-item.active {
    opacity: 1;
    transform: translateY(0);
}

.breakfast-item::before {
    content: '🍳';
    margin-right: 1rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.breakfast-item:hover::before {
    transform: rotate(15deg) scale(1.2);
}

.breakfast-item span {
    position: relative;
    z-index: 2;
}

.breakfast-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    border-radius: 15px;
    opacity: 0;
    z-index: 0;
}

.breakfast-item:hover {
    color: white;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 94, 255, 0.2);
}

.breakfast-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
}


    background: var(--dark);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .specials-grid { grid-template-columns: repeat(2, 1fr); }
    .specials-grid .menu-card:nth-child(1),
    .specials-grid .menu-card:nth-child(2),
    .specials-grid .menu-card:nth-child(3),
    .specials-grid .menu-card:nth-child(4),
    .specials-grid .menu-card:nth-child(5) {
        grid-column: span 1;
    }
    .feature-card { margin-top: 30px; }
}

@media (max-width: 600px) {
    .menu-section-bg {
        padding: 1.25rem;
        border-radius: 20px;
    }
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .specials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .specials-grid .menu-card:nth-child(4) img,
    .specials-grid .menu-card:nth-child(5) img { height: 200px; }
    .feature-grid { grid-template-columns: 1fr; }
    .menu-card img { height: 200px; }
    .menu-content { min-height: 70px; }
    .menu-content h3 { font-size: 1.1rem; }
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 2.2rem; margin-bottom: 2.5rem; }
    .chat-box { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; height: 60vh; }
    .feature-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 1.5rem;
    }
    .feature-row:last-child {
        direction: ltr;
    }
    .feature-image {
        max-width: 100%;
        width: 100%;
        height: 200px;
        margin-bottom: 0.5rem;
    }
    .feature-content {
        padding: 1.5rem;
    }
    .feature-title {
        font-size: 1.2rem;
        padding: 0.4rem 1rem;
        margin: 2.5rem auto 2rem auto;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}