/* --- CSS Variables --- */
:root {
    --color-bg: #F4F4F4;
    --color-text: #111111;
    --color-brand: #FF3B30; /* Vibrant Red */
    --color-brand-hover: #D62A20;
    --color-accent: #FFCC00; /* Mustard Yellow */
    --color-black: #000000;
    --color-white: #FFFFFF;
    
    --font-main: 'Roboto', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-weight: 900;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* --- Buttons --- */
.btn-primary {
    background-color: var(--color-brand);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-primary:hover {
    background-color: var(--color-brand-hover);
    transform: scale(1.05);
}

.btn-black {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-black:hover {
    background-color: var(--color-text);
    transform: scale(1.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
    border: 3px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

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

.full-width {
    width: 100%;
    margin-top: 1rem;
}

/* --- Navbar --- */
nav {
    background-color: var(--color-white);
    padding: 1rem 0;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--color-brand);
}

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

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--color-brand);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 4px;
    background-color: var(--color-black);
}

/* --- Marquee --- */
.marquee-container {
    background-color: var(--color-accent);
    color: var(--color-black);
    overflow: hidden;
    padding: 0.5rem 0;
    border-bottom: none;
    white-space: nowrap;
    display: flex;
}

.marquee {
    display: flex;
    animation: scrollText 20s linear infinite;
}

.marquee span {
    font-weight: 900;
    font-size: 1.2rem;
    padding: 0 2rem;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 120px);
    background-color: var(--color-bg);
}

.hero-content {
    padding: 4rem 4rem 4rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 6rem;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--color-brand);
}

.hero p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    max-width: 400px;
}

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

.hero-visual {
    background-color: var(--color-accent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
    padding: 0;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-visual:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.badge-rotate {
    position: absolute;
    top: 40px;
    left: -40px;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1rem 2rem;
    font-weight: 900;
    font-size: 1.5rem;
    transform: rotate(-15deg);
    border: 3px solid var(--color-white);
    z-index: 10;
}

/* --- Menu Section --- */
.menu-section {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--color-accent);
    z-index: -1;
}

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

.menu-card {
    background-color: var(--color-bg);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 0 var(--color-black);
}

.highlight-card {
    background-color: var(--color-brand);
    color: var(--color-white);
}

.card-img-wrapper {
    position: relative;
    border-bottom: none;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.menu-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-weight: 900;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.hot-badge {
    position: absolute;
    top: 10px;
    left: -30px;
    background-color: var(--color-accent);
    color: var(--color-black);
    font-weight: 900;
    padding: 0.2rem 3rem;
    transform: rotate(-45deg);
    z-index: 2;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-weight: 700;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

/* --- Banner Section --- */
.banner {
    background: url('https://images.unsplash.com/photo-1550547660-d9450f859349?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    color: var(--color-white);
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 59, 48, 0.9); /* Brand color overlay */
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.banner h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

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

.footer-brand h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.footer-brand h2 span {
    color: var(--color-brand);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

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

.footer-links a {
    font-weight: 700;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-brand);
}

.footer-contact p {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-weight: 700;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    border-left: none;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: none;
    background-color: var(--color-accent);
}

.cart-header h2 {
    margin: 0;
    font-size: 2rem;
}

#close-cart {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: 900;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-bg);
    padding-bottom: 1rem;
}

.cart-item-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.cart-item-price {
    font-weight: 900;
    color: var(--color-brand);
}

.cart-item-remove {
    background: var(--color-black);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

.cart-footer {
    padding: 2rem;
    border-top: none;
    background-color: var(--color-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

/* --- Animations --- */
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpAnim 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.pop-in {
    opacity: 0;
    transform: scale(0.8);
    animation: popInAnim 0.8s 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popInAnim {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding: 4rem 2rem;
        text-align: center;
        align-items: center;
    }
    .hero h1 {
        font-size: 4rem;
    }
    .hero-visual {
        padding: 0;
        min-height: 50vh;
        border-left: none;
        border-top: none;
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-container .btn-primary {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .banner h2 {
        font-size: 3rem;
    }
}
