:root {
    --brand: #d35400;
    --brand-dark: #a84300;
    --brand-soft: #fff3e8;
    --ink: #1c1917;
    --muted: #78716c;
    --surface: #ffffff;
    --canvas: #fafaf9;
    --nav-bg: linear-gradient(135deg, #1c1917 0%, #292524 45%, #431407 100%);
    --footer-bg: #1c1917;
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
    --shadow-md: 0 8px 30px rgba(28, 25, 23, 0.08);
    --radius: 1rem;
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: var(--font-display);
}

.page-main {
    max-width: 72rem;
}

/* Nav */
.site-header {
    z-index: 1030;
}

.site-nav {
    background: var(--nav-bg);
    box-shadow: var(--shadow-md);
}

.site-nav .navbar-brand {
    color: #fff !important;
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-link.active {
    color: #fff !important;
    background: rgba(211, 84, 0, 0.35);
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 2px 8px rgba(211, 84, 0, 0.45);
}

.site-logo {
    height: 2.5rem;
    width: auto;
    max-width: 7.5rem;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-logo--auth {
    max-width: 10rem;
    height: 3rem;
    box-shadow: var(--shadow-sm);
}

.site-logo--admin {
    max-width: 6.5rem;
    height: 2rem;
    box-shadow: none;
}

.cart-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
    background: var(--brand);
    color: #fff;
    transform: translate(25%, -25%);
}

/* Buttons */
.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    color: var(--brand);
    border-color: var(--brand);
    font-weight: 600;
}

.btn-outline-brand:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Cards & surfaces */
.surface-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(28, 25, 23, 0.06);
}

.page-heading {
    margin-bottom: 1.75rem;
}

.page-heading h1,
.page-heading .h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.page-heading .lead,
.page-heading p {
    color: var(--muted);
    max-width: 40rem;
}

.hero {
    background: linear-gradient(135deg, #0f0a08 0%, #1c1410 28%, #431407 55%, #b45309 82%, #ea580c 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(1.35rem, 4.5vw, 3rem);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.1), transparent 42%);
    pointer-events: none;
}

.hero > .row {
    position: relative;
    z-index: 1;
}

.hero .btn-light {
    font-weight: 600;
}

/* Home hero — mobile-first (stacked CTAs, readable type, kitchen card) */
.hero-home .hero-brand-logo {
    height: clamp(2.5rem, 8vw, 3.25rem);
    width: auto;
    max-width: 12rem;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.hero-home .hero-title {
    font-size: clamp(1.6rem, 6vw + 0.35rem, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero-home .hero-lead {
    font-size: clamp(0.95rem, 2.5vw + 0.4rem, 1.2rem);
    line-height: 1.55;
    max-width: 32rem;
    opacity: 0.94;
}

.hero-home .hero-eyebrow {
    font-size: clamp(0.65rem, 1.5vw + 0.45rem, 0.8rem);
}

.hero-home .hero-guest-note {
    max-width: 36rem;
    line-height: 1.5;
}

.hero-home .hero-cta-stack .btn {
    font-weight: 600;
}

.hero-home .hero-kitchen-card {
    border: none;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.35rem;
}

@media (max-width: 991.98px) {
    .hero-home {
        border-radius: 1.15rem;
        padding-left: max(1.1rem, env(safe-area-inset-left, 0));
        padding-right: max(1.1rem, env(safe-area-inset-right, 0));
    }

    .hero-home .hero-kitchen-card {
        border-radius: 1.35rem 1.35rem var(--radius) var(--radius);
        padding: 1.15rem 1.25rem 1.25rem;
    }

    .hero-home .hero-cta-stack .btn {
        min-height: 3rem;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .hero-home .hero-kitchen-card li {
        min-height: 2.75rem;
    }
}

@media (min-width: 992px) {
    .hero-home .hero-kitchen-card {
        padding: 1.35rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .step-card .btn {
        min-height: 2.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-heading .h3 {
        font-size: clamp(1.25rem, 4vw + 0.5rem, 1.65rem);
    }
}

.card-product {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(28, 25, 23, 0.06) !important;
}

.card-product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

.card-product .card-img-top {
    object-fit: cover;
    height: 170px;
    background: linear-gradient(145deg, #f5f5f4, #e7e5e4);
}

/* Auth */
.auth-wrap {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.auth-card {
    border-radius: var(--radius);
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.auth-card .card-body {
    padding: 2rem;
}

/* Step / feature cards */
.step-card {
    border-radius: var(--radius);
    border: 1px solid rgba(28, 25, 23, 0.06);
    background: var(--surface);
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    border-color: rgba(211, 84, 0, 0.35);
    box-shadow: var(--shadow-md);
}

.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

/* Tables */
.table-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

/* Alerts / results */
.result-panel {
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    border: 1px solid transparent;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
}

.footer-main {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bar {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.letter-spacing {
    letter-spacing: 0.08em;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: rgba(211, 84, 0, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(211, 84, 0, 0.15);
}

/* Admin area */
.navbar-admin {
    background: linear-gradient(135deg, #0c0a09 0%, #1c1917 50%, #292524 100%);
    box-shadow: var(--shadow-md);
}

.navbar-admin .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.65rem !important;
    border-radius: 0.375rem;
}

.navbar-admin .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.badge-status {
    font-weight: 500;
}

@media (min-width: 992px) {
    .site-nav .navbar-nav .nav-link {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
}

/* —— User-friendly / mobile-first (industry UX patterns) —— */

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -120px;
    z-index: 2000;
    padding: 0.6rem 1rem;
    background: #fff;
    color: var(--ink) !important;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
}

/* ~44px minimum tap targets on small screens (Stripe / mobile checkout guidance) */
@media (max-width: 991.98px) {
    .site-nav .navbar-nav .nav-link,
    .site-nav .navbar-nav .btn {
        min-height: 2.75rem;
        display: inline-flex;
        align-items: center;
    }
}

.btn-touch {
    min-height: 2.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.btn-touch-sm {
    min-height: 2.5rem;
}

.touch-input {
    min-height: 2.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

/* Sticky cart shortcut on menu (mobile) */
.mobile-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.92) 0%, #1c1917 100%);
    color: #fff;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 991.98px) {
    .menu-grid-section--with-bar {
        padding-bottom: 4.75rem;
    }
}

/* Visible keyboard focus (accessibility) */
.page-main a:focus-visible,
.page-main button:focus-visible,
.page-main .form-control:focus-visible,
.page-main .form-select:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .card-product {
        transition: none !important;
    }

    .card-product:hover {
        transform: none;
    }
}

/* Menu categories & “Popular” (UX research: scanability + social proof) */
.menu-cat-pills .btn:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.menu-cat-heading {
    scroll-margin-top: 5.5rem;
}

.menu-grid-section .menu-cat-heading:first-of-type {
    margin-top: 0 !important;
}

.badge-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1c1917;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
