:root {
    --background: #0f0d0c;
    --surface: #1b1715;
    --surface-light: #241d1a;
    --red: #e52b22;
    --red-light: #ff453a;
    --cream: #f5ede0;
    --gray: #aaa29a;
    --border: #382d28;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
}

body.cart-open {
    overflow: hidden;
}

section {
    scroll-margin-top: 80px;
}

button,
input {
    font: inherit;
}

.topbar {
    position: fixed;
    top: 0;
    z-index: 1000;

    width: 100%;
    height: 70px;
    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(15, 13, 12, 0.96);
    border-bottom: 1px solid var(--border);
}

.topbar h2 {
    margin: 0;
    font-size: 21px;
}

.topbar h2 span,
.label,
.hero h1 span,
.menu-card strong {
    color: var(--red-light);
}

.topbar-links {
    display: flex;
    gap: 25px;
}

.topbar-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.15s;
}

.topbar-links a:hover {
    color: var(--red-light);
    transform: translateY(-2px);
}

.cart-action-button {
    padding: 10px 14px;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 0;
    border-radius: 30px;

    background: var(--red-light);
    color: white;

    font-weight: 700;
    cursor: pointer;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--cream);
    color: var(--surface);

    font-size: 12px;
}

.menu-button {
    display: none;

    border: 0;
    background: none;
    color: white;

    font-size: 26px;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    padding: 130px 8% 80px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 40%,
            rgba(229, 43, 34, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f0d0c,
            #32100b
        );
}

.hero-content {
    max-width: 760px;
}

.label {
    margin: 0 0 12px;

    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    font-size: clamp(48px, 8vw, 90px);
    line-height: 0.95;
}

.hero h1 span {
    display: block;
}

.hero-description {
    max-width: 550px;
    margin: 25px 0 0;

    color: var(--gray);

    font-size: 18px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}

.button {
    padding: 13px 20px;

    border-radius: 8px;

    color: white;
    text-decoration: none;
    font-weight: 700;

    transition: 0.15s;
}

.primary-button {
    background: var(--red);
}

.secondary-button {
    background: var(--surface);
    border: 1px solid var(--border);
}

.button:hover {
    transform: translateY(-2px);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 40px;
}

.badges span {
    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 20px;

    color: var(--gray);

    font-size: 13px;
}

.section {
    padding: 90px 8%;
}

.section h2 {
    margin: 0 0 30px;

    font-size: clamp(34px, 5vw, 50px);
}

.section > p:not(.label) {
    color: var(--gray);
}

.dark-section {
    background: #14110f;
}

.menu-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 30px;
}

.category-button {
    padding: 9px 15px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--surface);
    color: white;

    font-weight: 700;
    cursor: pointer;

    transition: 0.15s;
}

.category-button:hover,
.category-button.active {
    background: var(--red);
    border-color: var(--red);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.menu-card {
    padding: 20px;

    background:
        linear-gradient(
            145deg,
            var(--surface-light),
            var(--surface)
        );

    border: 1px solid var(--border);
    border-radius: 12px;

    transition:
        transform 0.15s,
        border-color 0.15s;
}

.menu-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
}

.menu-card h3 {
    margin: 0;
}

.menu-card p {
    min-height: 38px;

    color: var(--gray);

    font-size: 14px;
}

.menu-card-bottom {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-card strong {
    font-size: 18px;
}

.menu-card button {
    padding: 8px 12px;

    border: 0;
    border-radius: 6px;

    background: var(--red);
    color: white;

    font-weight: 700;
    cursor: pointer;
}

.info-card {
    max-width: 700px;

    padding: 16px 18px;
    margin-bottom: 10px;

    display: flex;
    justify-content: space-between;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 9px;
}

.info-card strong {
    color: var(--red-light);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-links a {
    padding: 12px 18px;

    background: var(--surface);
    color: white;

    border: 1px solid var(--border);
    border-radius: 8px;

    text-decoration: none;

    transition: 0.15s;
}

.contact-links a:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1990;

    background: rgba(0, 0, 0, 0.7);

    opacity: 0;
    visibility: hidden;

    transition: 0.2s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2000;

    width: min(430px, 100%);
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: #15110f;
    border-left: 1px solid var(--border);

    transform: translateX(100%);

    transition: transform 0.25s ease;
}

.cart.open {
    transform: translateX(0);
}

.cart-header {
    height: 70px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    margin: 0;
    font-size: 20px;
}

.cart-close {
    border: 0;

    background: none;
    color: white;

    font-size: 28px;
    cursor: pointer;
}

.cart-items {
    flex: 1;

    padding: 15px 20px;

    overflow-y: auto;
}

.cart-empty {
    color: var(--gray);
    text-align: center;

    margin-top: 40px;
}

.cart-item {
    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.cart-item-name {
    margin: 0;

    color: white;

    font-size: 14px;
    font-weight: 700;
}

.cart-item-price {
    color: var(--red-light);

    font-size: 14px;
    font-weight: 700;
}

.cart-item-actions {
    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-button {
    width: 30px;
    height: 30px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--surface);
    color: white;

    cursor: pointer;
}

.remove-button {
    padding: 6px 9px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: transparent;
    color: white;

    font-size: 12px;
    cursor: pointer;
}

.cart-order-options {
    padding: 15px 20px;

    border-top: 1px solid var(--border);
}

.cart-order-options h3 {
    margin: 0 0 12px;

    font-size: 15px;
}

.order-type {
    display: flex;
    gap: 8px;
}

.order-type label {
    flex: 1;

    padding: 11px;

    display: flex;
    align-items: center;
    gap: 7px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 8px;

    font-size: 13px;
    cursor: pointer;
}

.order-type input {
    accent-color: var(--red-light);
}

.delivery-fields {
    display: none;

    margin-top: 12px;
}

.delivery-fields.open {
    display: block;
}

.delivery-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;

    margin-bottom: 8px;
}

.delivery-fields input {
    width: 100%;
    min-width: 0;

    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--background);
    color: white;

    outline: none;
}

.delivery-fields input:focus {
    border-color: var(--red-light);
}

.delivery-info {
    margin: 6px 0 0;

    color: var(--gray);

    font-size: 11px;
    line-height: 1.5;
}

.cart-summary {
    padding: 15px 20px 20px;

    border-top: 1px solid var(--border);

    background: #15110f;
}

.cart-summary-row {
    margin-bottom: 8px;

    display: flex;
    justify-content: space-between;

    font-size: 13px;
}

.cart-total-row {
    padding-top: 10px;
    margin-top: 10px;

    border-top: 1px solid var(--border);

    font-size: 15px;
}

.cart-total-row strong {
    color: var(--red-light);
}

.delivery-fee-row {
    display: none;
}

.delivery-fee-row.visible {
    display: flex;
}

.checkout-button {
    width: 100%;

    margin-top: 12px;
    padding: 13px;

    border: 0;
    border-radius: 7px;

    background: var(--red);
    color: white;

    font-weight: 700;
    cursor: pointer;
}

.checkout-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

footer {
    padding: 40px 8%;

    background: #090807;
    border-top: 1px solid var(--border);

    color: var(--gray);
}

footer strong {
    color: white;
}

footer a {
    margin-right: 18px;

    color: var(--gray);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .label {
    opacity: 0;
    animation: heroFadeUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.hero h1 {
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: 0.2s;
}

.hero-description {
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: 0.35s;
}

.hero-buttons {
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: 0.5s;
}

.badges span {
    opacity: 0;
    animation: badgeFadeIn 0.5s ease forwards;
}

.badges span:nth-child(1) {
    animation-delay: 0.65s;
}

.badges span:nth-child(2) {
    animation-delay: 0.75s;
}

.badges span:nth-child(3) {
    animation-delay: 0.85s;
}

.reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-card {
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25);
}

.menu-card button {
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.menu-card button:hover {
    transform: scale(1.05);
    background: var(--red-light);
}

.menu-card button:active {
    transform: scale(0.96);
}

.cart-action-button {
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.cart-action-button:hover {
    transform: translateY(-2px);
    background: var(--red);
}

.checkout-button {
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.checkout-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--red-light);
}

.contact-links a {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.contact-links a:hover {
    transform: translateY(-4px);
    border-color: var(--red-light);
    background: var(--surface-light);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 950px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-button {
        display: block;
    }

    .topbar-links {
        position: absolute;
        top: 70px;
        left: 0;

        width: 100%;
        padding: 22px;

        display: none;
        flex-direction: column;

        background: #100e0d;

        border-bottom: 1px solid var(--border);
    }

    .topbar-links.open {
        display: flex;
    }
}

@media (max-width: 650px) {
    .topbar {
        padding: 0 15px;
    }

    .topbar h2 {
        font-size: 15px;
    }

    .cart-action-button {
        padding: 8px 10px;

        font-size: 12px;
    }

    .hero {
        padding: 120px 22px 70px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section {
        padding: 70px 22px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-card {
        flex-direction: column;
        gap: 7px;
    }

    .delivery-row {
        grid-template-columns: 1fr;
    }
}