@import './colors.css';
/* Import the colors file */

:root {
    --e-global-color-primary: var(--color-primary);
    --e-global-color-secondary: var(--color-secondary);
    --e-global-color-text: var(--color-text);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
}

.section-bg {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('../../assets/images/section/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-bg2 {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('../../assets/images/section/hero2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--e-global-color-text);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.hero-accent {
    color: var(--e-global-color-primary);
    display: block;
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--e-global-color-text);
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 1s;
}

/* Locations Section */
.locations-section {
    padding: 5rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--e-global-color-text);
    opacity: 0.8;
    font-size: clamp(1rem, 3vw, 1.1rem);
}

#locations .locations-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

#locations .locations-grid>article:nth-child(5) {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
}

.location-title {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.location-card:hover .location-title {
    color: var(--color-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Ensure parent containers don't constrain width */
#locations,
#locations .container,
#locations .locations-grid {}

@media (max-width: 767px) {
    #locations .locations-grid {
        grid-template-columns: 1fr !important;
    }
}

#locations .locations-grid a {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0.5rem;
}

#locations .locations-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#locations .locations-grid a:hover img {
    transform: scale(1.05);
}

#locations .locations-grid div {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 767px) {
    #locations .locations-grid {
        grid-template-columns: 1fr !important;
    }
}

.locations-grid a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
}

.locations-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.locations-grid a:hover img {
    transform: scale(1.05);
}

.locations-grid div {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

/* Menu Categories Section */
.menu-categories {
    padding: 5rem 1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--card-bg);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    color: white;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-price {
    font-size: 0.9rem;
    opacity: 0.9;
}

.view-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--e-global-color-secondary);
    color: white;
    border-radius: 2rem;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 3rem;
}

.view-menu-button:hover {
    color: var(--color-secondary);
    background: var(--color-neutral-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 30, 46, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .locations-section,
    .menu-categories {
        padding: 3rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .locations-grid,
    .categories-grid {
        gap: 1rem;
    }

    .location-content {
        padding: 1rem;
    }

    .category-content {
        padding: 1.2rem;
    }

    #locations .locations-grid>article:nth-child(5) {
        width: 100%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


.text-usp {
    color: #e0e0e0;
}

.cat-icon {
    transition-property: all;
    transition-duration: 300ms;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.cat-icon:hover {
    filter: brightness(2);
}

.menu-card {
    background-color: transparent;
    border: 0;
    padding: 1rem;
    margin-bottom: 1rem;
}