/* First Korean Cafe M - Stylesheet */
/* Brand Colors: Espresso Brown (#3B2A23) + Warm Cream (#F5EFE6) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --espresso-brown: #3B2A23;
    --warm-cream: #F5EFE6;
    --cream-light: #FFFAF5;
    --brown-hover: #2C1F1A;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--cream-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--warm-cream);
    border-bottom: 1px solid #E5DDD5;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--espresso-brown);
}

.logo h1 a {
    color: var(--espresso-brown);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--espresso-brown);
}

/* Hero Section */
.hero {
    background-color: var(--warm-cream);
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--espresso-brown);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--espresso-brown);
    color: var(--warm-cream);
}

.btn-primary:hover {
    background-color: var(--brown-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--espresso-brown);
    border: 2px solid var(--espresso-brown);
}

.btn-secondary:hover {
    background-color: var(--espresso-brown);
    color: var(--warm-cream);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Visit Us Section */
.visit-section {
    padding: 4rem 0;
    background-color: var(--cream-light);
}

.visit-section h2 {
    font-size: 2rem;
    color: var(--espresso-brown);
    margin-bottom: 2rem;
    text-align: center;
}

.visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.visit-info h3 {
    font-size: 1.5rem;
    color: var(--espresso-brown);
    margin-bottom: 1.5rem;
}

.hours {
    background-color: var(--warm-cream);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hours h4 {
    font-size: 1.125rem;
    color: var(--espresso-brown);
    margin-bottom: 0.75rem;
}

.hours p {
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.visit-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.visit-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    background-color: var(--warm-cream);
    border: 2px solid var(--espresso-brown);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    font-size: 1.25rem;
    color: var(--espresso-brown);
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Best Sellers Section */
.bestsellers-section {
    padding: 4rem 0;
    background-color: var(--warm-cream);
}

.bestsellers-section h2 {
    font-size: 2rem;
    color: var(--espresso-brown);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background-color: var(--cream-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 42, 35, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    color: var(--espresso-brown);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--espresso-brown);
    margin-bottom: 1rem !important;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Why Section */
.why-section {
    padding: 4rem 0;
    background-color: var(--cream-light);
}

.why-section h2 {
    font-size: 2rem;
    color: var(--espresso-brown);
    margin-bottom: 2rem;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 2rem 1rem;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-item h3 {
    font-size: 1.125rem;
    color: var(--espresso-brown);
    font-weight: 600;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
    background-color: var(--warm-cream);
    text-align: center;
}

.story-section h2 {
    font-size: 2rem;
    color: var(--espresso-brown);
    margin-bottom: 1rem;
}

.story-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Instagram Section */
.instagram-section {
    padding: 4rem 0;
    background-color: var(--cream-light);
    text-align: center;
}

.instagram-section h2 {
    font-size: 2rem;
    color: var(--espresso-brown);
    margin-bottom: 0.5rem;
}

.instagram-handle {
    font-size: 1.25rem;
    color: var(--espresso-brown);
    margin-bottom: 2rem;
    font-weight: 600;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.instagram-placeholder {
    aspect-ratio: 1;
    background-color: var(--warm-cream);
    border: 2px solid var(--espresso-brown);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Menu Page */
.menu-hero {
    background-color: var(--espresso-brown);
    color: var(--warm-cream);
    padding: 3rem 0;
    text-align: center;
}

.menu-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.menu-hero p {
    font-size: 1.125rem;
}

.menu-section {
    padding: 4rem 0;
}

.menu-category {
    margin-bottom: 3rem;
}

.menu-category h2 {
    font-size: 1.75rem;
    color: var(--espresso-brown);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--espresso-brown);
}

.menu-items {
    display: grid;
    gap: 1.5rem;
}

.menu-item {
    background-color: var(--warm-cream);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.menu-item-info h3 {
    font-size: 1.125rem;
    color: var(--espresso-brown);
    margin-bottom: 0.25rem;
}

.menu-item-info p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.menu-item-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--espresso-brown);
    white-space: nowrap;
    margin-left: 1rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

/* Footer */
.footer {
    background-color: var(--espresso-brown);
    color: var(--warm-cream);
    padding: 3rem 0 1.5rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section a {
    color: var(--warm-cream);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 239, 230, 0.2);
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .visit-content {
        grid-template-columns: 1fr;
    }

    .bestsellers-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .visit-buttons {
        flex-direction: column;
    }
}
