/* ===========================================
   NEINA BAKERY - Design System
   Light Brown Theme
   =========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
    /* Colors - Light Brown Theme */
    --brown-dark: #5D4E37;
    --brown-warm: #8B7355;
    --brown-soft: #A68B5B;
    --brown-light: #C4A77D;
    --cream: #FAF6F0;
    --cream-warm: #F5EBE0;
    --cream-dark: #E8DFD3;
    --text-dark: #4A3728;
    --text-light: #6B5B4D;
    --gold-accent: #C9A45C;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(74, 55, 40, 0.08);
    --shadow-md: 0 4px 16px rgba(74, 55, 40, 0.12);
    --shadow-lg: 0 8px 32px rgba(74, 55, 40, 0.16);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--brown-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

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

a:hover {
    color: var(--brown-soft);
}

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

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

/* ===========================================
   NAVIGATION
   =========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.navbar-logo img {
    height: 50px;
    width: auto;
}

.navbar-logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brown-dark);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.navbar-menu a {
    font-weight: 500;
    color: var(--text-dark);
    padding: var(--space-xs) 0;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: width var(--transition-normal);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-xs);
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--brown-dark);
    transition: var(--transition-fast);
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    margin-bottom: var(--space-md);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--brown-warm);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brown-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--brown-warm);
    color: var(--white);
}

/* ===========================================
   SECTIONS
   =========================================== */
.section {
    padding: var(--space-xl) 0;
}

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

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.section-divider span {
    width: 50px;
    height: 1px;
    background: var(--gold-accent);
}

.section-divider-icon {
    color: var(--gold-accent);
    font-size: 1.25rem;
}

/* ===========================================
   ABOUT SECTION
   =========================================== */
.about {
    background: var(--cream-warm);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-text h3 {
    margin-bottom: var(--space-sm);
}

.about-text p {
    margin-bottom: var(--space-md);
}

.about-features {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.about-feature {
    text-align: center;
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    margin: 0 auto var(--space-xs);
    font-size: 1.5rem;
}

.about-feature h4 {
    font-size: 1rem;
    color: var(--brown-dark);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ===========================================
   FEATURED PRODUCTS
   =========================================== */
.featured {
    background: var(--cream);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--cream-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    font-size: 4rem;
}

.product-card-content {
    padding: var(--space-md);
}

.product-card-content h4 {
    margin-bottom: var(--space-xs);
}

.product-card-content p {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brown-warm);
}

/* ===========================================
   CONTACT SECTION
   =========================================== */
.contact {
    background: var(--brown-dark);
    color: var(--cream);
}

.contact h2,
.contact h3,
.contact h4 {
    color: var(--cream);
}

.contact p {
    color: var(--cream-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: var(--brown-dark);
    color: var(--cream-dark);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--cream);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gold-accent);
    transform: translateY(-2px);
}

/* ===========================================
   MENU PAGE
   =========================================== */
.page-header {
    padding-top: calc(80px + var(--space-lg));
    padding-bottom: var(--space-lg);
    text-align: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-warm) 100%);
}

.menu-section {
    padding: var(--space-lg) 0;
}

.menu-section:nth-child(even) {
    background: var(--cream-warm);
}

.menu-category {
    margin-bottom: var(--space-lg);
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.menu-category-icon {
    font-size: 2rem;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

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

.menu-item-info h4 {
    margin-bottom: 4px;
    color: var(--brown-dark);
}

.menu-item-info p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-light);
}

.menu-item-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brown-warm);
    white-space: nowrap;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .about-image {
        order: -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        padding: var(--space-md);
        gap: var(--space-sm);
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
    }

    .navbar-menu.active {
        transform: translateY(0);
    }

    .navbar-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-lg)) var(--space-sm) var(--space-lg);
    }

    .about-features {
        flex-direction: column;
        align-items: center;
    }

    .footer .container {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}