/* Google Fonts Import - optimized for performance */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;500;600;700&family=Alfa+Slab+One:wght@400&display=swap');

/* Custom Styles - Bakery-Inspired Design */
/* These styles are independent of Bootstrap and add custom branding */

/* Font Classes */
.bitter-regular {
  font-family: "Bitter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.alfa-slab-one-regular {
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-style: normal;  
  letter-spacing: 0.02em;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
}

.grand-hotel-regular {
  font-family: "Grand Hotel", cursive;
  font-weight: 400;
  font-style: normal;
}

/* Typography */
h2 {
  font-family: "Bitter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}   

h3 {
  font-family: "Bitter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h5 {
  font-family: "Bitter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* 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;
}

/* 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;
}

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

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

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

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

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

/* 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;
}

/* 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;
    }
}