/* ===================================
   CSS Variables for Baker T Theme
   ==================================*/
   :root {
    --primary-color: #d4a574;  /* Warm pastry brown */
    --secondary-color: #2c1810; /* Dark chocolate brown */
    --accent-color: #f4e4d4;    /* Light cream */
    --highlight-color: #c85a54; /* Berry red accent */
    --text-light: #fff5ee;      /* Off-white */
    --text-dark: #3a2317;       /* Dark brown text */
    --gray-light: #faf8f5;      /* Light beige */
    --gray-medium: #8b7355;     /* Medium brown */
    --card-shadow: 0 4px 6px rgba(44, 24, 16, 0.1);
    --hover-shadow: 0 8px 16px rgba(44, 24, 16, 0.2);
    --transition-speed: 0.3s;
    --header-height: 70px;
    --border-radius: 12px;
}

/* ===================================
   Reset and Base Styles
   =================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* ===================================
   Navigation Bar (Flexbox)
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3a2317 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: transform var(--transition-speed);
    font-family: 'Georgia', serif;
    letter-spacing: 2px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo::after {
    content: '🥐';
    position: absolute;
    top: -5px;
    right: -35px;
    font-size: 1rem;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: rotate(10deg) scale(0.9);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition-speed);
    font-size: 1.1rem;
}

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

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: all var(--transition-speed);
    border-radius: 3px;
}

.menu-toggle:hover span {
    background: var(--primary-color);
}


/* ===================================
   Main Content
   =================================== */

main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

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

/* ===================================
   Hero Section (Flexbox)
   =================================== */

.hero {
    height: calc(100vh - var(--header-height));
    background: linear-gradient(rgba(44, 24, 16, 0.4), rgba(44, 24, 16, 0.6)),
                url('images/bakery-hero.jpg') center/cover;
    /* Fallback gradient with bakery colors */
    background: linear-gradient(rgba(44, 24, 16, 0.4), rgba(44, 24, 16, 0.6)),
                linear-gradient(135deg, #d4a574 0%, #8b7355 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    animation: fadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🥖 🍰 🧁 🥐 🍪 🎂 🥧 🍩';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.1;
    white-space: nowrap;
    animation: floatIcons 20s linear infinite;
}

@keyframes floatIcons {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(20px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    animation: slideUp 1s ease-out 0.5s both;
    z-index: 1;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
}

.hero h1::before {
    content: '~ ';
    color: var(--primary-color);
}

.hero h1::after {
    content: ' ~';
    color: var(--primary-color);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 165, 116, 0.3);
    background: var(--highlight-color);
}

/* ===================================
   Featured Section (Flexbox)
   =================================== */
.featured {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f9f4ef 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
    animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

.featured-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.featured-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    animation: fadeInUp 0.8s ease-out both;
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 165, 116, 0) 0%, 
        rgba(212, 165, 116, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-card:nth-child(1) { animation-delay: 0.1s; }
.featured-card:nth-child(2) { animation-delay: 0.2s; }
.featured-card:nth-child(3) { animation-delay: 0.3s; }

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

.featured-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.featured-img {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    position: relative;
    overflow: hidden;
}

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

.featured-img::after {
    content: '🥐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.2;
}

.featured-content {
    padding: 1.5rem;
}

.featured-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.featured-content p {
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.price {
    color: var(--highlight-color);
    font-weight: bold;
    font-size: 1.3rem;
}


/* ===================================
   Info Section (Home Page)
   =================================== */
.info-section {
    padding: 4rem 5%;
    background: white;
}

.info-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    flex: 1 1 250px;
    text-align: center;
    padding: 2rem;
    transition: transform var(--transition-speed);
    background: var(--gray-light);
    border-radius: var(--border-radius);
}

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

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.info-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ===================================
   Schedule Section (Home Page)
   =================================== */
.schedule-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--accent-color) 100%);
}

.schedule-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-card {
    flex: 1 1 250px;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    opacity: 0;
    transform: translateY(20px);
}

.schedule-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

.schedule-time {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: bold;
}

.schedule-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.schedule-card p {
    color: var(--gray-medium);
    font-style: italic;
}

.schedule-card:hover {
    transform: scale(1.05);
    box-shadow: var(--hover-shadow);
}

/* ===================================
   Menu Page Styles
   =================================== */
.menu-hero {
    background: linear-gradient(rgba(44, 24, 16, 0.5), rgba(44, 24, 16, 0.5)),
                linear-gradient(135deg, var(--primary-color) 0%, var(--gray-medium) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInScale 1s ease-out;
}

.page-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.95;
    animation: fadeIn 1s ease-out 0.3s both;
}

.menu-container {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-category {
    margin-bottom: 4rem;
}

.menu-category h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.menu-category h2::before,
.menu-category h2::after {
    content: '◆';
    color: var(--primary-color);
    margin: 0 1rem;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.menu-item {
    flex: 1 1 calc(50% - 2rem);
    max-width: 500px;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 165, 116, 0.1), 
        transparent);
    transition: left 0.5s;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    transform: scale(1.03);
    box-shadow: var(--hover-shadow);
    border-left-color: var(--primary-color);
}

.menu-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.menu-info p {
    color: var(--gray-medium);
    font-style: italic;
    font-size: 0.95rem;
}

.menu-price {
    color: var(--highlight-color);
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 1rem;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* ===================================
   About Page Styles
   =================================== */
.about-section {
    padding: 4rem 5%;
    background: var(--gray-light);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text {
    flex: 1;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.about-text p {
    color: var(--gray-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--gray-medium));
    border-radius: 15px;
    position: relative;
    animation: slideInRight 1s ease-out;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.about-image::after {
    content: '🥖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.2;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 165, 116, 0.2) 0%, 
        rgba(139, 115, 85, 0.2) 100%);
}

/* Chef/Baker Section */
.chef-section {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-top: 3rem;
}

.chef-image {
    flex: 0 0 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--gray-medium));
    border-radius: 50%;
    overflow: hidden;
    animation: fadeInScale 1s ease-out;
    border: 5px solid var(--accent-color);
}

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

.chef-info {
    flex: 1;
}

.chef-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.chef-info h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.chef-info p {
    color: var(--gray-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.chef-info blockquote {
    font-style: italic;
    color: var(--secondary-color);
    padding-left: 2rem;
    border-left: 3px solid var(--primary-color);
    margin-top: 1.5rem;
}

/* Team Section */
.team-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.team-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.team-section p {
    color: var(--gray-medium);
    line-height: 1.8;
}

/* ===================================
   Contact Section & Form
   =================================== */
.contact-section {
    padding: 4rem 5%;
    background: white;
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    animation: slideInLeft 1s ease-out;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed);
}

.info-item:hover {
    transform: translateX(10px);
    background: var(--accent-color);
}

.info-item .info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item strong {
    color: var(--secondary-color);
}

.info-item p {
    color: var(--gray-medium);
    margin: 0;
}

.contact-form {
    flex: 1.5;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f9f4ef 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    animation: slideInRight 1s ease-out;
}

.contact-form h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0d5c7;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::after {
    width: 500px;
    height: 500px;
}

.btn-submit:hover {
    background: var(--highlight-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 90, 84, 0.3);
}

.form-success {
    animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    position: relative;
}

footer::before {
    content: '🥐 • 🥖 • 🍰 • 🧁 • 🍪';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
    font-size: 1.2rem;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}



/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        transition: left var(--transition-speed);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1::before,
    .hero h1::after {
        display: none;
    }

    .hero p {
        font-size: 1.2rem;
    }

    /* Titles */
    .section-title,
    .page-title {
        font-size: 2rem;
    }

    /* Featured Cards */
    .featured-items {
        flex-direction: column;
        align-items: center;
    }

    /* Schedule Cards */
    .schedule-container {
        flex-direction: column;
        align-items: center;
    }

    /* Menu Items */
    .menu-item {
        flex: 1 1 100%;
        flex-direction: column;
        text-align: center;
    }

    .menu-price {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* About Page */
    .about-content {
        flex-direction: column;
    }

    .chef-section {
        flex-direction: column;
        text-align: center;
    }

    .chef-image {
        flex: 0 0 200px;
        height: 200px;
    }

    /* Contact */
    .contact-wrapper {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }

    /* Info Cards */
    .info-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }

    .logo::after {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .menu-category h2 {
        font-size: 1.8rem;
    }

    .menu-category h2::before,
    .menu-category h2::after {
        display: none;
    }
}
