/* ========================================
   Charlot QR Menu - Mobile First Design
   Professional & Modern QR Menu Styles
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #6B4423;
    --primary-dark: #4A2E17;
    --primary-light: #8B6438;
    --accent: #D4AF37;
    --accent-light: #F4E4C1;
    --dark: #2C1810;
    --light: #FAF7F2;
    --cream: #FFF8E7;
    --white: #FFFFFF;
    --text-dark: #2C1810;
    --text-light: #6B6B6B;
    --border: #E8E0D5;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== HEADER ===== */
.qr-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.25rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 600px) {
    .qr-header {
        padding: 0.5rem 1rem;
    }
}

.header-content .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.logo-image-only {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image-only img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (min-width: 600px) {
    .logo-image-only {
        width: 220px;
        height: 220px;
    }
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-dark);
    stroke-width: 2.5;
}

.logo-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    text-align: left;
}

.header-content .logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    background: linear-gradient(to right, var(--white), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-content .logo p {
    font-size: 0.75rem;
    opacity: 0.9;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-top: 0.125rem;
}

/* ===== CATEGORY NAVIGATION ===== */
.category-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    z-index: 10;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
    height: 0;
    display: none;
}

.nav-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: min-content;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--light);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.nav-item.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* ===== MAIN CONTENT ===== */
.menu-content {
    padding: 0 0 2rem 0;
    max-width: 100%;
}

/* ===== MENU CATEGORIES ===== */
.menu-category {
    padding: 2rem 1rem;
    background: var(--white);
    margin-bottom: 0.5rem;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.category-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.category-icon {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.category-header p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== MENU ITEMS ===== */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item-image:not(:has(img))::before {
    content: '🍰';
    font-size: 48px;
    opacity: 0.3;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.item-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    background: var(--accent-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== INFO SECTION ===== */
.info-section {
    padding: 2rem 1rem;
    background: var(--cream);
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    stroke-width: 2;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.qr-footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--white), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.footer-logo p {
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-light);
    opacity: 0.9;
}

.tagline {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--cream);
    opacity: 0.8;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 0.875rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    padding: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.social-links a:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

/* ===== TABLET & DESKTOP (min-width: 600px) ===== */
@media (min-width: 600px) {
    .qr-header {
        padding: 2rem 1.5rem;
    }

    .header-content .logo h1 {
        font-size: 2.5rem;
    }

    .nav-container {
        justify-content: center;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .nav-item {
        flex-direction: row;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .menu-category {
        padding: 3rem 2rem;
    }

    .category-header h2 {
        font-size: 2.25rem;
    }

    .category-header p {
        font-size: 1rem;
    }

    .menu-items {
        gap: 1.25rem;
    }

    .menu-item {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .item-image {
        width: 120px;
        height: 120px;
    }

    .item-header h3 {
        font-size: 1.25rem;
    }

    .price {
        font-size: 1.25rem;
    }

    .description {
        font-size: 0.9375rem;
    }

    .info-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ===== DESKTOP (min-width: 900px) ===== */
@media (min-width: 900px) {
    .menu-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem 3rem;
    }

    .menu-category {
        padding: 4rem 3rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-lg);
    }

    .category-header {
        margin-bottom: 3rem;
    }

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

    .menu-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .item-image {
        width: 140px;
        height: 140px;
    }
}

/* ===== UTILITIES ===== */
.no-scroll {
    overflow: hidden;
}

/* ===== SCROLL SETTINGS ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 10px;
}

@media (min-width: 600px) {
    html {
        scroll-padding-top: 20px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
