/* ============================================
   ARTISAN BITES - FOOD SHOP STYLES
   Terracotta Studio Palette
   ============================================ */

:root {
    /* Terracotta Studio Palette */
    --color-primary: #B5563E;
    --color-primary-light: #D4896A;
    --color-cream: #F2E6D9;
    --color-dark: #3D2B1F;
    --color-white: #FFFFFF;
    --color-text: #3D2B1F;
    --color-text-muted: #6B5344;
    
    /* Typography */
    --font-display: 'Zodiak', Georgia, serif;
    --font-body: 'Cabinet Grotesk', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: rgba(242, 230, 217, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 43, 31, 0.1);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    transition: background var(--transition-fast);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--color-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: calc(var(--space-3xl) + 60px) var(--space-lg) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.hero-image-inner {
    position: absolute;
    top: 0;
    right: -10%;
    width: 90%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: 0 0 0 120px;
    overflow: hidden;
}

.hero-image-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-pattern {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 2px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-secondary:hover {
    background: var(--color-dark);
    color: var(--color-cream);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature {
    text-align: center;
    padding: var(--space-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   MENU SECTION
   ============================================ */

.menu {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.menu-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.menu-tab:hover {
    color: var(--color-dark);
}

.menu-tab.active {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.menu-item {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(61, 43, 31, 0.1);
}

.menu-item-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-item-placeholder {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-white);
    opacity: 0.9;
    font-style: italic;
}

.menu-item-content {
    padding: var(--space-md);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-xs);
}

.menu-item-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
}

.menu-item-price {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.menu-item-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: rgba(181, 86, 62, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
}

/* ============================================
   STORY SECTION
   ============================================ */

.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: var(--color-dark);
    color: var(--color-cream);
}

.story-content {
    padding: var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
}

.story-content .section-eyebrow {
    color: var(--color-primary-light);
}

.story-content .section-title {
    color: var(--color-cream);
    margin-bottom: var(--space-md);
}

.story-content p {
    color: rgba(242, 230, 217, 0.8);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.story-content .btn-primary {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-dark);
    align-self: flex-start;
    margin-top: var(--space-md);
}

.story-content .btn-primary:hover {
    background: var(--color-cream);
    border-color: var(--color-cream);
}

.story-image {
    position: relative;
    overflow: hidden;
}

.story-image-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    opacity: 0.8;
}

.story-image-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233D2B1F' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   LOCATIONS SECTION
   ============================================ */

.locations {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.location-card {
    padding: var(--space-xl);
    background: var(--color-cream);
    border-radius: 4px;
    text-align: center;
    transition: transform var(--transition-base);
}

.location-card:hover {
    transform: translateY(-4px);
}

.location-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}

.location-address {
    font-style: normal;
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.location-hours {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.location-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.location-link:hover {
    color: var(--color-dark);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter {
    padding: var(--space-3xl) 0;
    background: var(--color-primary);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    border-color: var(--color-white);
}

.newsletter-form .btn-primary {
    background: var(--color-dark);
    border-color: var(--color-dark);
    white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
    background: var(--color-cream);
    border-color: var(--color-cream);
    color: var(--color-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--color-dark);
    color: var(--color-cream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: rgba(242, 230, 217, 0.7);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(242, 230, 217, 0.3);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-cream);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(242, 230, 217, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-cream);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(242, 230, 217, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(242, 230, 217, 0.5);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(var(--space-2xl) + 60px);
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        min-height: 300px;
        order: -1;
    }
    
    .story-content {
        margin: 0 auto;
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-cream);
        padding: var(--space-md);
        gap: var(--space-md);
        border-bottom: 1px solid rgba(61, 43, 31, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}