/* Bootstrap Customization - Bakery-Inspired Color Palette */
/* This file contains Bootstrap-specific overrides and customizations */
:root {
    /* Primary Colors - Warm, earthy bread tones */
    --primary-color: #8B5A3C;           /* Warm brown - like whole wheat bread */
    --primary-dark: #6B4226;           /* Darker brown - like rye bread */
    --primary-light: #A67C5A;          /* Light brown - like golden crust */
    
    /* Secondary Colors - Cream and wheat tones */
    --secondary-color: #F5E6D3;        /* Cream - like flour */
    --secondary-dark: #E6D4BD;         /* Warm beige */
    --secondary-light: #FFFBF7;        /* Off-white - like fresh dough */
    
    /* Accent Colors - Natural ingredients */
    --accent-warm: #D4A574;            /* Golden wheat */
    --accent-green: #7A8471;           /* Herbs/olive oil */
    --accent-red: #B85450;             /* Tomato/paprika */
    
    /* Neutral Colors */
    --neutral-dark: #3A3A3A;           /* Charcoal */
    --neutral-medium: #6B6B6B;         /* Gray */
    --neutral-light: #F8F6F3;          /* Light cream */
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
    --warm-gradient: linear-gradient(135deg, var(--accent-warm) 0%, var(--primary-light) 100%);
    
    /* Bootstrap Color Overrides */
    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 139, 90, 60;
    --bs-secondary: var(--secondary-color);
    --bs-secondary-rgb: 245, 230, 211;
    --bs-success: var(--accent-green);
    --bs-success-rgb: 122, 132, 113;
    --bs-warning: var(--accent-warm);
    --bs-warning-rgb: 212, 165, 116;
    --bs-danger: var(--accent-red);
    --bs-danger-rgb: 184, 84, 80;
    --bs-light: var(--neutral-light);
    --bs-light-rgb: 248, 246, 243;
    --bs-dark: var(--neutral-dark);
    --bs-dark-rgb: 58, 58, 58;
}


/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #212529;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
    color: white;
}

/* Enhanced Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    transform: translateY(-1px);
    border-radius: 6px;
}

.navbar-nav .nav-link.active {
    background: var(--primary-gradient);
    color: var(--secondary-light) !important;
    border-radius: 6px;
}

/* Custom Button Styles */
.btn-gradient-primary {
    background: var(--primary-gradient);
    border: none;
    color: var(--secondary-light);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
    color: var(--secondary-light);
    background: var(--warm-gradient);
}

.btn-gradient-secondary {
    background: var(--secondary-gradient);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-gradient-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.3);
    background: var(--primary-gradient);
    color: var(--secondary-light);
    border-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('images/bakery-background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--secondary-light);
    padding: 120px 0;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Ensure all content in hero sections appears above overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: "Alfa Slab One", cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--secondary-color) 100%);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Services Section */
.service-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-icon {
    font-size: 3rem;
    background: var(--warm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 90, 60, 0.9), rgba(107, 66, 38, 0.9));
    color: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

/* Store Section */
.store-filter {
    transition: all 0.3s ease;
}

.store-filter.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.product-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.store-item {
    transition: all 0.3s ease;
}

.store-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.cart-summary {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb), 0.15);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-info {
    flex-grow: 1;
    margin-left: 1rem;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-light);
    border-color: var(--primary-color);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem;
}

/* Contact Section */
.contact-section {
    background: var(--primary-gradient);
    color: white;
}

/* Footer */
.footer {
    background: var(--neutral-dark);
    color: var(--secondary-light);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(245, 230, 211, 0.15);
    color: var(--secondary-light);
    border-radius: 50%;
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--warm-gradient);
    transform: translateY(-3px);
    color: var(--secondary-light);
}

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Color Utility Classes */
.bg-primary-warm { background-color: var(--primary-color) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-secondary-warm { background-color: var(--secondary-color) !important; }
.bg-accent-warm { background-color: var(--accent-warm) !important; }
.bg-neutral-light { background-color: var(--neutral-light) !important; }

.text-primary-warm { color: var(--primary-color) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.text-secondary-warm { color: var(--secondary-color) !important; }
.text-accent-warm { color: var(--accent-warm) !important; }
.text-neutral-dark { color: var(--neutral-dark) !important; }

.border-primary-warm { border-color: var(--primary-color) !important; }
.border-accent-warm { border-color: var(--accent-warm) !important; }

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Clean focus indicators - subtle and accessible */
.navbar-nav .nav-link:focus {
    outline: none;
    box-shadow: none;
}

.navbar-nav .nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar, .btn, .hero-section::before {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .about-section {
        background: linear-gradient(135deg, #000000 0%, #333333 100%);
        color: white;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Ripple animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Homepage Hero Section - Original Size */
.hero-section-standard {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: 60vh !important;
}

/* Background Image Hero Sections - Standardized Height */
.hero-section-tall,
.hero-section-about,
.hero-section-portfolio,
.hero-section-education,
.hero-section-history,
.hero-section-services,
.hero-section-resources,
.hero-section-store {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: 60vh !important;
    max-height: 60vh !important;
    height: 60vh !important;
}

.hero-section-with-bg {
    color: white;
}

/* Hero Section Background Images - Clean Implementation */
.hero-section-about {
    background-image: url('images/bread-hands-background.jpeg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: 60vh !important;
}

.hero-section-portfolio {
    background-image: url('images/baking-class-group.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: 60vh !important;
}

.hero-section-education {
    background-image: url('images/professional-kitchen-training.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-section-history {
    background-image: url('images/old-bakery.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: 60vh !important;
}

.hero-section-services {
    background-image: url('images/volunteer.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: 60vh !important;
}

.hero-section-resources {
    background-image: url('images/resources.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-section-store {
    background-image: url('images/cart.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: 60vh !important;
}

/* Dark overlay for all hero sections with background images */
.hero-section-about::before,
.hero-section-portfolio::before,
.hero-section-education::before,
.hero-section-history::before,
.hero-section-services::before,
.hero-section-resources::before,
.hero-section-store::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

/* Ensure content appears above overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero Text Styling */
.hero-title-with-shadow {
    color: var(--secondary-light) !important;
    text-shadow: 2px 2px 4px rgba(58, 58, 58, 0.8);
}

.hero-subtitle-with-shadow {
    color: var(--secondary-light) !important;
    text-shadow: 1px 1px 2px rgba(58, 58, 58, 0.8);
}

/* Feature Icons */
.feature-icon-circle {
    width: 60px;
    height: 60px;
}

.large-icon {
    font-size: 2.5rem;
}

/* Branding */
.brand-letter-spacing {
    letter-spacing: 0.02rem;
}

.hero-title-spacing {
    letter-spacing: 0.02em;
}

/* Custom Button */
.btn-custom-hero {
    font-size: 1.75rem;
    background: transparent;
    border: 3px solid white;
    border-radius: 0;
    color: white;
}

/* Cart */
.cart-hidden {
    display: none;
}

/* Cart item image styles removed - images no longer used in cart */

/* Dropdown Hover Effects */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.navbar-nav .dropdown .dropdown-menu {
    display: none;
}

/* Smooth transitions for dropdown */
.dropdown-menu {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure dropdown stays visible when hovering over it */
.dropdown:hover .dropdown-menu,
.dropdown .dropdown-menu:hover {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Add a slight delay to prevent accidental triggering */
.dropdown {
    transition: all 0.2s ease;
}

/* Shopping Cart Dropdown Styles */
.cart-dropdown {
    max-height: 400px;
    overflow-y: auto;
    right: auto !important;
    left: -280px !important;
    transform: none !important;
}

.cart-item {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Cart item image styles removed - images no longer used in cart */

.cart-item-details {
    flex: 1;
    margin-left: 0.75rem;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.cart-item-price {
    font-size: 0.75rem;
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: none;
    border: 1px solid #ddd;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: #f8f9fa;
    border-color: #333;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-badge {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.remove-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    transition: all 0.2s ease;
}

.remove-item:hover {
    color: #b02a37;
    background-color: rgba(220, 53, 69, 0.1);
}

.remove-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-style: normal;
    font-weight: normal;
    width: 16px;
    height: 16px;
}

/* Bootstrap Icons styling */
.remove-item .bi {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Emoji fallback - always visible as backup */
.remove-item .remove-text {
    display: inline-block;
    font-size: 12px;
    margin-left: 2px;
}

/* Hide emoji when Bootstrap icon is present and loaded */
.remove-item .bi + .remove-text {
    display: none;
}

