@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #d62828; /* Bakery Red */
    --primary-light: #e63946;
    --primary-dark: #b21e1e;
    --secondary: #1a1210; /* Dark roast */
    --background: #fffcf2; /* Cream */
    --surface: #ffffff;
    --text-main: #3d2c25;
    --text-light: #6e554a;
    --border: #f2e3d5; /* Baked crust */
    --accent-pink: #f2728c;
    --accent-mint: #a7d8de;
    --accent-yellow: #fce085;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(59, 35, 24, 0.04);
    --shadow-md: 0 8px 24px rgba(59, 35, 24, 0.08);
    --shadow-lg: 0 20px 40px rgba(59, 35, 24, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    color: var(--secondary);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(214, 40, 40, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
}

.alert-banner {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.5s ease, max-height 0.5s ease, padding 0.5s ease;
    max-height: 200px;
    overflow: hidden;
    opacity: 1;
}

@media (max-width: 768px) {
    .alert-banner {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(0);
        width: 90%;
        max-width: 400px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(214, 40, 40, 0.4);
        z-index: 9999;
        transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    }

    .alert-banner.hide-mobile {
        opacity: 0;
        transform: translateX(-50%) translateY(150%);
        pointer-events: none;
        max-height: 200px;
        padding: 0.75rem 1rem;
    }
    
    .navbar {
        top: 0 !important;
    }
}


.alert-banner a {
    color: white;
    transition: var(--transition);
}

.alert-banner a:hover {
    color: var(--accent-yellow);
}

/* Navigation */
.navbar {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    color: white;
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) sepia(0.2);
    z-index: -1;
    transform: scale(1.05);
    animation: zoomOut 20s ease-out forwards;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(28, 16, 11, 0.8) 0%, rgba(28, 16, 11, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: white;
}

.hero-content h1 {
    color: white;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-yellow);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-section {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2rem;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.placeholder-img {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    justify-content: center;
    align-items: center;
}

.est-badge {
    background: white;
    color: var(--secondary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Menu Section */
.menu-section {
    padding: 8rem 0;
    background-color: var(--surface);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.menu-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-mint);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

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

.card-content {
    padding: 2rem;
    background: white;
    position: relative;
    z-index: 1;
}

/* Visit Section */
.visit-section {
    padding: 8rem 0;
}

.visit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background-color: white;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
}

.info-block {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: 15px;
    border-left: 4px solid var(--accent-pink);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-color: #eae3db;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
}

.map-pin {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand .logo img {
    height: 150px;
}

.footer-copyright {
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    width: 100%;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Styles */
.lightbox-trigger {
    cursor: pointer;
    position: relative;
}
.lightbox-trigger::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}
.lightbox-trigger:hover::after {
    opacity: 1;
}
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.show {
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.lightbox.show .lightbox-content {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-yellow);
    text-decoration: none;
    cursor: pointer;
}

/* Subpage specific styles */
body.subpage .navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}
body.subpage .nav-links a {
    color: var(--text-main);
}
body.subpage .about-section,
body.subpage .menu-section,
body.subpage .visit-section {
    padding-top: 10rem;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .visit-container {
        grid-template-columns: 1fr;
    }
    
    .visit-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        color: var(--text-main) !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}
