:root {
    /* Brand Colors */
    --primary: #FE5F00;
    /* Mango Orange */
    --primary-dark: #cc4d00;
    --accent: #FFB703;
    /* Bright Yellow */
    --accent-secondary: #FB8500;
    --danger: #D00000;
    /* Chili Red */
    --vegetal: #588157;
    /* Lime/Cactus Green */

    /* Neutrals */
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-dark: rgba(26, 26, 26, 0.95);
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-600: #6c757d;

    /* Typography */
    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* UI Logic */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header & Nav */
.site-header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.logo-mascot {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-600);
    font-weight: 600;
    font-family: var(--font-heading);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    overflow: hidden;
    padding: 5rem 0 7rem;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--danger));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(-3deg);
    border: 8px solid var(--white);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Cards (Locations, Menu, etc) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.location-date {
    display: inline-block;
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.location-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Menu Specific */
.menu-section-title {
    text-align: center;
    margin: 3rem 0;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.menu-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px dashed var(--gray-200);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.menu-item-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.menu-item-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    white-space: nowrap;
    margin-left: 1rem;
}

/* Forms (Contact & Auth) */
.form-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(254, 95, 0, 0.1);
}

/* Catering Builder */
.catering-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.catering-menu-area {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.catering-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.summary-card h2 {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.summary-total {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
}

.taco-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: 50px;
}

.taco-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.taco-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.taco-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    appearance: none;
    -moz-appearance: textfield;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--white);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Admin Specific */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--dark);
    padding: 2rem;
    color: var(--white);
}

.admin-sidebar a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: var(--accent);
    padding-left: 0.5rem;
}

.admin-content {
    background: var(--gray-100);
    padding: 2rem;
}

.admin-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 900px) {
    .catering-split {
        grid-template-columns: 1fr;
    }

    .catering-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--gray-100);
    }

    .main-nav.open {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
        margin: 0 auto;
        max-width: 80%;
    }

    .admin-layout {
        display: block;
        /* Remove grid to allow stacking */
    }

    /* Create a header bar for mobile admin */
    .admin-sidebar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: var(--dark);
        position: relative;
        border-bottom: 2px solid var(--primary);
    }

    /* Only show hamburger on mobile */
    .admin-mobile-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--white);
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Hide the nav links by default on mobile */
    .admin-sidebar nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
    }

    /* Show when toggled */
    .admin-sidebar nav.open {
        display: flex;
    }

    .admin-sidebar h2 {
        margin: 0;
        font-size: 1.25rem;
    }

    /* Reset link styles to be list-like */
    .admin-sidebar a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        border-radius: 0;
        text-align: left;
        display: flex;
        flex-direction: row;
        /* Icon + Text side by side */
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        font-size: 1rem;
    }

    .admin-sidebar a i {
        width: 20px;
        text-align: center;
    }

    .admin-card {
        padding: 1rem;
    }

    .items-list table,
    .rules-list table,
    .locations-list table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Adjust grids for mobile forms */
    .admin-card form .form-group {
        margin-bottom: 1rem;
    }

    .admin-card form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}