/* ==========================================================================
   CSS Variables & Foundations
   ========================================================================== */
:root {
    --primary-color: #e63946;
    /* Appetizing warm red */
    --primary-hover: #d62828;
    --accent-color: #fca311;
    /* Golden hour orange */
    --dark-bg: #121212;
    /* Dark theme background */
    --dark-surface: #1e1e1e;
    /* Slightly lighter dark for cards */
    --light-text: #f1faee;
    --muted-text: #a8dadc;
    --border-color: #333333;

    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.btn-primary:disabled {
    background-color: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

.logo i {
    color: var(--accent-color);
    font-size: 2rem;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Cart Toggle Button */
.cart-btn {
    position: relative;
    cursor: pointer;
    background: var(--dark-surface);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cart-btn i {
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset nav */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(18, 18, 18, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 40px;
    font-weight: 300;
}

/* ==========================================================================
   Menu Section
   ========================================================================== */
.menu-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.title-separator {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--muted-text);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.menu-category {
    background: var(--dark-surface);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.category-title i {
    font-size: 1.8rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-info {
    flex-grow: 1;
    padding-right: 20px;
}

.item-name {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    margin-bottom: 5px;
}

.item-desc {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.btn-add {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-add:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ==========================================================================
   Cart Sidebar
   ========================================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--dark-surface);
    z-index: 1002;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-family: var(--font-sans);
}

.close-cart {
    background: none;
    border: none;
    color: var(--muted-text);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--muted-text);
    font-style: italic;
    margin-top: 50px;
}

/* Cart Item Layout */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.cart-item-details h4 {
    font-size: 1rem;
    font-family: var(--font-sans);
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-bg);
    padding: 5px 10px;
    border-radius: 20px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.qty-btn:hover {
    color: var(--primary-color);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--muted-text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--primary-color);
}

/* Cart Footer & Form */
.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.cart-total span:last-child {
    color: var(--primary-color);
}

.checkout-form h4 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    margin-bottom: 15px;
    color: var(--muted-text);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--light-text);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--dark-surface);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    color: var(--muted-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col .logo {
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    color: var(--border-color);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Gallery / About Section
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.gallery-img:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Checkout Options
   ========================================================================== */
.delivery-options {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--light-text);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ==========================================================================
   Specific Layout Overrides (Menu Grid)
   ========================================================================== */
#drinks-category {
    grid-column: 1 / -1;
    /* Make it span across all columns in the grid */
}

#drinks-category .menu-items-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

#drinks-category .menu-item {
    border-bottom: none;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

@media (min-width: 600px) {
    #drinks-category .menu-items-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On desktop, make the items inside the horizontal category line up next to each other */
@media (min-width: 900px) {
    #drinks-category .menu-items-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide standard links on mobile, keep cart */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        max-width: 100%;
    }
}