/* === Bread Bar Page Styles === */

:root {
    --bb-bg-cream: #f9f5f0;
    --bb-text-dark: #3e3228;
    /* Deep rustic brown */
    --bb-text-light: #7a6e66;
    --bb-accent-wheat: #d4b483;
    /* Wheat color */
    --bb-accent-bronze: #a67c52;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Caudex', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    background-color: var(--bb-bg-cream);
    color: var(--bb-text-dark);
}

/* Import Script and Serif Fonts if not in main */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Caudex:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* === Hero Section === */
.bb-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    margin-top: -160px;
    /* Pull up behind header */
}

.bb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    /* Enhances text readability */
}

.bb-hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 0 1rem;
}

.bb-title-script {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
    text-transform: uppercase;
}

.bb-subtitle-serif {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-top: 0.5rem;
    color: #f0f0f0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* === Concept "Story" Section === */
.bb-section-concept {
    padding: 6rem 1.5rem;
    width: 100%;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 5;
    background-color: var(--bb-bg-cream);
}

.bb-section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--bb-text-dark);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.bb-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--bb-accent-bronze);
    margin: 1rem auto 0;
}

.bb-concept-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--bb-text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bb-highlight-text {
    font-size: 1.3rem;
    color: var(--bb-accent-bronze);
    font-style: italic;
    font-weight: 600;
}

/* === Wide Story Card Section === */
.bb-story-card {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 2rem auto 0;
    min-height: 600px;
    max-width: 1300px;
}

.bb-story-image {
    flex: 1;
    position: relative;
    background-color: #f0f0f0;
}

.bb-story-img-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bb-story-content {
    flex: 1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bb-story-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bb-accent-bronze);
    margin-bottom: 1rem;
    font-weight: 600;
}

.bb-story-title {
    font-family: var(--font-sans);
    font-size: 2.8rem;
    color: var(--bb-text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.bb-story-desc {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--bb-text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.bb-story-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.bb-story-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bb-story-icon {
    font-size: 1.2rem;
    color: var(--bb-text-dark);
}

.bb-story-label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bb-text-dark);
}

@media (max-width: 900px) {
    .bb-story-card {
        flex-direction: column;
    }

    .bb-story-image {
        min-height: 300px;
    }
}

/* === Gallery Grid === */
.bb-section-gallery {
    padding: 4rem 1.5rem;
    background-color: #fff;
}

.bb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bb-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.bb-card:hover {
    transform: translateY(-5px);
}

.bb-card-img-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.bb-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bb-card:hover .bb-card-img {
    transform: scale(1.05);
}

.bb-card-content {
    background: white;
    padding: 1.5rem;
    text-align: center;
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    margin: 1rem;
    border-radius: 4px;
    transform: translateY(100px);
    /* Initially hidden or partially visible */
    transition: transform 0.3s ease;
    opacity: 0;
}

/* For this design, let's keep content visible but minimal or reveal on hover. 
   Creating a cleaner look: Text below image or overlay? 
   Let's go with Overlay Text minimal */

.bb-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0.9;
}

.bb-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.bb-card-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}


/* === Features / Process (Dark Premium) === */
.bb-features {
    padding: 8rem 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../photos/products/dark_bread_texture.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bb-bg-cream);
    text-align: center;
}

.bb-features-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--bb-accent-wheat);
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.bb-features-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: var(--bb-accent-wheat);
    margin: 1.5rem auto 0;
}

.bb-features-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.bb-feature-item {
    flex: 1;
    padding: 2rem 3rem;
    text-align: center;
    border-right: 1px solid rgba(212, 180, 131, 0.2);
    /* Wheat color low opacity */
    background: transparent;
    box-shadow: none;
}

.bb-feature-item:last-child {
    border-right: none;
}

.bb-feature-icon-svg {
    width: 60px;
    height: 60px;
    fill: var(--bb-accent-wheat);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.bb-feature-item:hover .bb-feature-icon-svg {
    transform: scale(1.1);
}

.bb-feature-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.bb-feature-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .bb-features-grid {
        flex-direction: column;
    }

    .bb-feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(212, 180, 131, 0.2);
        padding: 3rem 1rem;
    }

    .bb-feature-item:last-child {
        border-bottom: none;
    }
}

/* === Signature Menu Section === */
.bb-section-menu {
    padding: 6rem 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.bb-menu-grid {
    display: flex;
    flex-direction: row-reverse;
    /* Image on right */
    gap: 4rem;
    align-items: center;
}

.bb-menu-image-wrapper {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bb-menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bb-menu-image-wrapper:hover .bb-menu-img {
    transform: scale(1.03);
}

.bb-menu-content {
    flex: 1;
}

.bb-menu-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--bb-text-dark);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.bb-menu-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--bb-accent-bronze);
    margin: 0.5rem 0 0;
}

.bb-menu-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bb-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #dcdcdc;
    padding-bottom: 0.5rem;
}

.bb-menu-item-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--bb-text-dark);
    font-weight: 600;
}

.bb-menu-item-desc {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--bb-text-light);
    font-style: italic;
}

@media (max-width: 900px) {
    .bb-menu-grid {
        flex-direction: column;
    }
}

/* === CTA Section === */
.bb-cta {
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #3e3228 0%, #5a4a3a 100%);
    position: relative;
    color: white;
}

.bb-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(62, 50, 40, 0.85);
    /* Dark brown overlay */
}

.bb-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.bb-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--bb-accent-wheat);
    color: var(--bb-text-dark);
    font-family: var(--font-serif);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.bb-btn:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .bb-title-script {
        font-size: 3.5rem;
    }

    .bb-subtitle-serif {
        font-size: 1.2rem;
    }

    .bb-features-grid {
        flex-direction: column;
        gap: 2rem;
    }
}