:root {
    /* Colors based on Style 4 and Modern Mexican Theme */
    --primary: #ff6b00;
    /* Vibrant orange */
    --primary-dark: #e05e00;
    --primary-light: #ff8c3a;
    --secondary: #000000;
    /* Black */
    --bg-main: #121212;
    /* Dark tone background */
    --bg-card: #1e1e1e;
    /* Dark card background */
    --text-main: #f3f4f6;
    /* Light text */
    --text-muted: #9ca3af;
    --border-color: #333333;

    /* Category Colors */
    --cat-red: #3a1c1c;
    --cat-green: #1c3a1c;
    --cat-brown: #3a2a1c;
    --cat-yellow: #3a351c;

    /* Typography */
    --font-heading: 'Freeman', serif;
    --font-body: 'Arvo', serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-floating: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary);
}

/* Typography Utilities */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.9);
    background-image: url('images/bg-pattern.jpg');
    background-size: 200px 200px;
    background-repeat: repeat;
    background-attachment: fixed;
    background-blend-mode: multiply;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(30, 30, 30, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.25) 0%, rgba(18, 18, 18, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('images/bg-pattern.jpg');
    background-size: 400px 400px;
    opacity: .4;
    background-repeat: repeat;
    background-blend-mode: multiply;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-card);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px dashed var(--primary-light);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--primary);
    display: inline-block;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(255, 107, 0, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 600px;
    object-fit: cover;
    border: 10px solid var(--border-color);
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-floating);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.floating-card.top-left {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-card.bottom-right {
    bottom: 10%;
    right: -10%;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-icon {
    font-size: 2rem;
    background: var(--bg-main);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
}

.card-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Featured Section */
.featured-section {
    background-color: white;
    background-image: none;
}

.featured-section .section-header h2 {
    color: #000000;
}

.featured-section .section-header p {
    color: #333333;
}

.featured-section .featured-card .card-title {
    color: #000000;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.featured-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-10px);
}

.featured-card .card-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--bg-main);
    box-shadow: var(--shadow-md);
}

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

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

.add-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-main);
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background-color: var(--primary);
    color: white;
}

.featured-card .card-title {
    font-size: 1.125rem;
    font-family: var(--font-body);
    color: var(--text-main);
}

/* Categories Section */
.categories-section {
    background-image: url('images/bg-pattern.jpg');
    background-size: 400px 400px;
    background-repeat: repeat;
    background-blend-mode: multiply;
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.cat-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 4px solid var(--border-color);
}

.category-item:hover .cat-icon {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.bg-red {
    background-color: var(--cat-red);
}

.bg-green {
    background-color: var(--cat-green);
}

.bg-brown {
    background-color: var(--cat-brown);
}

.bg-yellow {
    background-color: var(--cat-yellow);
}

.cat-name {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Menu Section */
.menu-section {
    background-image: url('images/bg-pattern.jpg');
    background-size: 400px 400px;
    background-repeat: repeat;
    background-blend-mode: multiply;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

.menu-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.menu-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.menu-info {
    flex: 1;
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.menu-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-info .price {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
    margin-top: auto;
}

.menu-img-container {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    position: relative;
    background-color: var(--bg-main);
    padding: 0.5rem;
}

.menu-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.add-btn-small {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn-small:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Delivery Section */
.delivery-section {
    background-color: var(--bg-main);
    background-image: url('images/bg-pattern.jpg');
    background-size: 200px 200px;
    background-repeat: repeat;
    background-blend-mode: multiply;
    overflow: hidden;
}

.delivery-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.delivery-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.delivery-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.delivery-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.delivery-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.features-list .icon {
    font-size: 2rem;
    background: var(--bg-card);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.features-list strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.features-list span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Info Section */
.info-section {
    background-image: url('images/bg-pattern.jpg');
    background-size: 400px 400px;
    background-repeat: repeat;
    background-blend-mode: multiply;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.info-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.info-box .subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.location-box .address {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.location-box .phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 1.125rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span:first-child {
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    background-image: url('images/bg-pattern.jpg');
    background-size: 200px 200px;
    background-repeat: repeat;
    background-blend-mode: multiply;
    color: white;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1.5rem;
}

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

.footer-brand p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 400px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    background-color: #010101;
    padding: 1.5rem 0;
    text-align: center;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image .main-img {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .delivery-layout {
        grid-template-columns: 1fr;
    }

    .delivery-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    body {
        padding-bottom: 90px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-card.top-left {
        top: 5%;
        left: 0;
    }

    .floating-card.bottom-right {
        bottom: 5%;
        right: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Mobile Fixed Order Button */
.mobile-order-btn-fixed {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.btn-mobile-fixed {
    width: 100%;
    padding: 1rem 1.5rem !important;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .mobile-order-btn-fixed {
        display: block;
    }
}

/* Gallery Section */
.gallery-section {
    background-color: #ffffff;
    background-image: none;
}

.gallery-section .section-header h2 {
    color: #000000;
}

.gallery-section .section-header p {
    color: #333333;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    height: 300px;
}

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

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

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .zoom-icon {
    transform: scale(1);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    border: 5px solid var(--border-color);
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.3);
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .gallery-item {
        height: 200px;
    }
}