/* ========================================
   THIRTEEN COFFEE, WINE & MORE
   Elegant Restaurant Menu Styles
======================================== */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --color-primary: #5E1429;
    --color-primary-light: #8B2E4A;
    --color-primary-dark: #3D0D1A;

    /* Neutral Colors */
    --color-cream: #FDF8F3;
    --color-cream-dark: #F5EDE5;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray: #6B6B6B;
    --color-gray-light: #A8A8A8;

    /* Accent Colors */
    --color-gold: #C9A962;
    --color-gold-light: #E5D4A1;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --anchor-offset: 220px;

    /* Borders & Shadows */
    --border-radius: 8px;
    --shadow-subtle: 0 2px 20px rgba(94, 20, 41, 0.08);
    --shadow-medium: 0 8px 40px rgba(94, 20, 41, 0.12);
    --shadow-hover: 0 12px 50px rgba(94, 20, 41, 0.18);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--anchor-offset);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black);
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
    min-height: 100vh;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */

.header {
    background: linear-gradient(180deg, var(--color-white) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
}

.logo-container {
    margin-bottom: var(--space-md);
}

.logo {
    max-width: 280px;
    height: auto;
    transition: transform var(--transition-medium);
}

.logo:hover {
    transform: scale(1.02);
}

.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.nav a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav a:hover {
    color: var(--color-primary-light);
    background: rgba(94, 20, 41, 0.05);
}

.nav a:hover::after {
    width: 60%;
}

/* ========================================
   MENU CONTAINER
======================================== */

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

/* ========================================
   MENU SECTIONS
======================================== */

.menu-section {
    margin-bottom: var(--space-2xl);
    scroll-margin-top: var(--anchor-offset);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.section-note {
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 169, 98, 0.2);
    background: rgba(201, 169, 98, 0.08);
    box-shadow: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    width: fit-content;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    white-space: nowrap;
}

.section-note .note-chip {
    padding: 0.18rem 0.65rem;
    background: rgba(201, 169, 98, 0.2);
    border: 1px solid rgba(201, 169, 98, 0.35);
    border-radius: 999px;
    color: var(--color-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.section-note .separator {
    color: var(--color-gray-light);
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ========================================
   MENU GRID
======================================== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.sides-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.drinks-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ========================================
   MENU ITEMS
======================================== */

.menu-item {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-medium);
    border: 1px solid rgba(94, 20, 41, 0.05);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-gold), var(--color-primary));
    transition: height var(--transition-medium);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.menu-item:hover::before {
    height: 100%;
}

.menu-item.featured {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-cream) 100%);
    border: 2px solid var(--color-gold-light);
}

.menu-item.featured::before {
    height: 100%;
}

.side-item {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
}

.side-item .item-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-xs);
    text-align: left;
    position: relative;
    padding-right: var(--space-sm);
    width: 100%;
}

.side-item .item-name {
    text-align: left;
}

.side-item .item-price {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    line-height: 1;
}

/* Item Header */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.item-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    flex: 1;
    min-width: 150px;
}

.item-price {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gold);
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
    align-self: anchor-center;
}

.item-price .variant {
    font-weight: 400;
    color: var(--color-gray);
    font-size: 0.85rem;
}

.item-price .separator {
    color: var(--color-gray-light);
    margin: 0 0.25rem;
}

.item-price .size {
    font-weight: 400;
    color: var(--color-gray-light);
    font-size: 0.8rem;
}

.item-size {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gray);
    margin-top: 2px;
}

/* Drink Items */
.drink-item {
    padding: var(--space-sm) var(--space-md);
}

.drink-item .item-header {
    margin-bottom: 0;
}

/* Item Description */
.item-description {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-cream);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    margin-top: var(--space-2xl);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-gold-light);
    margin-bottom: var(--space-md);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: var(--space-md) auto;
    opacity: 0.5;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(253, 248, 243, 0.6);
    letter-spacing: 0.05em;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .header {
        padding: var(--space-md) var(--space-sm);
    }

    .logo {
        max-width: 200px;
    }

    .nav {
        gap: var(--space-xs);
    }

    .nav a {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .sides-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-price {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .sides-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav a {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
        letter-spacing: 0.05em;
    }

    .logo {
        max-width: 160px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    animation: fadeInUp 0.5s ease forwards;
}

.menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.1s;
}

.menu-item:nth-child(3) {
    animation-delay: 0.15s;
}

.menu-item:nth-child(4) {
    animation-delay: 0.2s;
}

.menu-item:nth-child(5) {
    animation-delay: 0.25s;
}

.menu-item:nth-child(6) {
    animation-delay: 0.3s;
}

.menu-item:nth-child(7) {
    animation-delay: 0.35s;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Print Styles */
@media print {
    .header {
        position: static;
        box-shadow: none;
    }

    .nav {
        display: none;
    }

    .menu-item {
        box-shadow: none;
        border: 1px solid var(--color-gray-light);
        break-inside: avoid;
    }

    .footer {
        background: none;
        color: var(--color-black);
    }

    .footer-logo {
        filter: none;
    }
}
