/* =====================================================
   Bakery Xtra — Premium Bakery Stylesheet
   ===================================================== */

:root {
    --primary: #b42424;
    --primary-dark: #8c1c1c;
    --primary-light: #d43535;
    --secondary: #f8c854;
    --secondary-dark: #e0b030;
    --secondary-light: #fbe08a;
    --dark: #1a1a1a;
    --dark2: #2d2d2d;
    --gray: #666;
    --gray-light: #f5f0eb;
    --gray-lighter: #faf7f3;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all .3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.script-font { font-family: 'Great Vibes', cursive; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(180,36,36,.35); }
.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--primary); }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--dark);
    color: var(--gray-light);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar a { color: var(--secondary); }
.top-bar a:hover { color: var(--secondary-light); }
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-left, .top-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.top-right i, .top-left i { color: var(--secondary); margin-right: 5px; }

/* ==================== HEADER / NAV ==================== */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: var(--transition);
}
.main-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-text { display: flex; align-items: baseline; font-family: 'Playfair Display', serif; }
.logo-bakery { font-size: 32px; font-weight: 800; color: var(--primary); }
.logo-xtra { font-size: 36px; font-weight: 800; color: var(--secondary); margin-left: 4px; }
.nav-logo img { height: 50px; width: auto; }

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
    padding: 8px 16px;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
    border-radius: 50px;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active { background: rgba(180,36,36,.08); }

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span { width: 26px; height: 3px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-5px); }

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(180,36,36,.92), rgba(140,28,28,.85)),
                url('https://picsum.photos/seed/bakery-hero/1600/900.jpg') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--white), transparent);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 650px; }
.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}
.hero h1 span { color: var(--secondary); }
.hero .script-font {
    font-size: 28px;
    color: var(--secondary);
    display: block;
    margin-bottom: 20px;
}
.hero p { font-size: 17px; opacity: .9; margin-bottom: 35px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-decoration {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 3px solid rgba(248,200,84,.15);
    z-index: 1;
}
.hero-decoration::before {
    content: '';
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 2px solid rgba(248,200,84,.1);
}

/* ==================== SECTION STYLES ==================== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-lighter); }
.section-primary { background: var(--primary); color: var(--white); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header .script-font { font-size: 24px; color: var(--primary); }
.section-header h2 { font-size: 42px; margin: 5px 0 15px; }
.section-header p { color: var(--gray); max-width: 600px; margin: 0 auto; }
.section-primary .section-header .script-font { color: var(--secondary); }
.section-primary .section-header p { color: rgba(255,255,255,.8); }

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto;
    border-radius: 2px;
}

/* ==================== ABOUT PREVIEW ==================== */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-img-wrapper img { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius-lg); }
.about-img-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 15px 25px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow);
}
.about-text .script-font { font-size: 22px; color: var(--primary); }
.about-text h2 { font-size: 38px; margin: 5px 0 15px; }
.about-text p { color: var(--gray); margin-bottom: 15px; line-height: 1.8; }
.about-features { display: flex; gap: 30px; margin: 25px 0; flex-wrap: wrap; }
.about-feature { display: flex; align-items: center; gap: 10px; }
.about-feature i { color: var(--primary); font-size: 20px; }
.about-feature span { font-weight: 600; font-size: 15px; }

/* ==================== MENU CARDS ==================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.menu-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.menu-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.menu-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.menu-card:hover .menu-card-img img { transform: scale(1.08); }
.menu-card-img .price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}
.menu-card-img .cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.menu-card-body { padding: 20px; }
.menu-card-body h3 { font-size: 20px; margin-bottom: 8px; }
.menu-card-body p { color: var(--gray); font-size: 14px; line-height: 1.6; margin-bottom: 15px; min-height: 44px; }
.menu-card-footer { display: flex; gap: 10px; }
.menu-card-footer .btn { flex: 1; font-size: 13px; padding: 10px 15px; }

.no-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-light), var(--gray-lighter));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    opacity: .3;
}

/* ==================== CATEGORY FILTER ==================== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.category-filter a,
.category-filter button {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    border: 2px solid #e0d5c9;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}
.category-filter a:hover,
.category-filter button:hover,
.category-filter a.active,
.category-filter button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ==================== GALLERY ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 280px;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(180,36,36,.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: var(--white);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { font-weight: 600; font-size: 16px; }

/* ==================== ITEM DETAIL ==================== */
.item-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.item-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.item-detail-img img { width: 100%; height: 500px; object-fit: cover; }
.item-detail-info .price-large {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    margin: 15px 0;
}
.item-detail-info .price-large span { font-size: 18px; color: var(--gray); }

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0d5c9;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--gray-lighter);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-card h4 { margin-bottom: 4px; }
.contact-card p { color: var(--gray); font-size: 14px; }
.contact-card a { color: var(--primary); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

/* Map */
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 40px; }
.map-wrapper iframe { width: 100%; height: 350px; border: 0; }

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)),
                url('https://picsum.photos/seed/bakery-cta/1600/500.jpg') center/cover no-repeat;
    padding: 70px 0;
    text-align: center;
}
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-section h2 { color: var(--white); font-size: 40px; margin-bottom: 15px; }
.cta-section p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { display: inline-flex; align-items: baseline; margin-bottom: 15px; }
.footer-logo img { height: 45px; }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 15px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray-light); font-size: 14px; }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }
.footer-col .hours-list li { font-size: 14px; }
.footer-col .contact-list li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.footer-col .contact-list i { color: var(--secondary); margin-top: 3px; }
.footer-col .contact-list a { color: var(--secondary); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; }

/* ==================== PAGE HERO (inner pages) ==================== */
.page-hero {
    background: linear-gradient(135deg, rgba(180,36,36,.9), rgba(140,28,28,.85)),
                url('https://picsum.photos/seed/bakery-inner/1600/500.jpg') center/cover no-repeat;
    padding: 100px 0 70px;
    text-align: center;
    color: var(--white);
}
.page-hero h1 { font-size: 48px; margin-bottom: 10px; }
.page-hero p { opacity: .9; font-size: 17px; max-width: 600px; margin: 0 auto; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb span { opacity: .7; }

/* ==================== MISC ==================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Alert / Flash */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Enquire Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.active { display: flex; }
.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    background: none;
    border: none;
}
.modal-close:hover { color: var(--primary); }
.modal-content h3 { margin-bottom: 20px; font-size: 24px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .hamburger { display: flex; }
    .nav-links, .nav-cta {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 10px;
        transition: right .3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,.1);
        z-index: 999;
    }
    .nav-links.active, .nav-cta.active { right: 0; }
    .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid #f0e8e0; }
    .hero h1 { font-size: 40px; }
    .hero { min-height: 70vh; }
    .about-preview-grid, .item-detail-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-header h2 { font-size: 32px; }
}
@media (max-width: 767px) {
    .top-bar { font-size: 12px; }
    .hero h1 { font-size: 32px; }
    .hero .script-font { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 34px; }
    .cta-section h2 { font-size: 30px; }
    .gallery-grid { grid-template-columns: 1fr; }
}