/* Modal Pop-up Styles */
/* Modal Close Button Styles */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: #5585b5;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover,
.modal-close:focus {
    color: #3f6790;
    outline: none;
}
@media (max-width: 480px) {
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }
}
.modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
}
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(85,133,181,0.18);
    border: 2px solid #5585b5;
@media (max-width: 480px) {
    .modal-content {
        margin: 32px 8px;
        min-width: unset;
        max-width: 95vw;
        padding: 1.2rem;
    }
}
}

/* Modal Close Button Styles */
/* ===========================================
   TABLE OF CONTENTS
   ===========================================
   1. CSS Variables & Base Styles
   2. Typography
   3. Layout & Containers
   4. Header & Navigation
   5. Hero Section
   6. About Section
   7. Contact Section
   8. Follow Us Section
   9. Footer
   10. Utility Classes
   11. Buttons
   12. Media Queries
   =========================================== */

/* ===========================================
   1. CSS Variables & Base Styles
   =========================================== */
:root {
    --primary-color: #5585b5; /* New primary */
    --secondary-color: #53a8b6; /* New secondary */
    --accent-color: #79c2d0; /* New accent */
    --text-color: #333;
    --light-text: #f8f8f8;
    --background-light: #bbe4e9; /* New background light */
    --background-dark: #79c2d0; /* New background dark */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --logo-size-desktop: 79px; /* 10% larger than previous size (72px) */
    --logo-size-tablet: 66px; /* 10% larger than previous size (60px) */
    --logo-size-mobile: 55px; /* 10% larger than previous size (50px) */
    --section-spacing: 80px;
    --text-shadow-light: 1px 1px 2px rgba(0, 0, 0, 0.25);
    --text-shadow-medium: 2px 2px 4px rgba(0, 0, 0, 0.4);
    --divider-color: rgba(83, 168, 182, 0.25);
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

/* ===========================================
   2. Typography
   =========================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

/* Special Font Styles */
.logo-container h1 {
    font-size: 1.8rem;
    color: var(--text-color);
    font-family: 'Beautiful People Personal Use', cursive, var(--font-heading);
    display: inline-block;
    vertical-align: middle;
}

.logo-container h1 span {
    font-family: 'EngraversGothic BT', 'Arial Black', Arial, sans-serif;
    letter-spacing: 0.35em;
    font-size: 0.95rem;
    font-weight: 50;
    font-stretch: ultra-condensed;
    font-style: normal;
    text-transform: uppercase;
}

.logo-container span {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
}

.by-myra {
    font-family: 'Montserrat', 'Arial Narrow', Arial, sans-serif !important;
    letter-spacing: 0.35em;
    font-size: 0.95rem;
    font-weight: 300 !important;
    font-stretch: normal;
    font-style: normal;
    text-transform: uppercase;
    display: inline-block;
    color: inherit;
}

.about-content h2, 
.follow-us-section h2,
.contact-info h2 {
    font-family: 'Beautiful People Personal Use', cursive, var(--font-heading);
    margin-bottom: 24px;
}

.about-content h2 {
    font-size: 3.8rem;
    color: #333;
}

.follow-us-section h2 {
    font-size: 3.8rem;
    letter-spacing: 0.04em;
    color: #fff;
}

.contact-info h2 {
    font-size: 3.8rem;
    color: #333;
}

/* ===========================================
   3. Layout & Containers
   =========================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* ===========================================
   4. Header & Navigation
   =========================================== */
.main-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo */
.site-logo {
    width: var(--logo-size-desktop);
    height: var(--logo-size-desktop);
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 14px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-family: 'EngraversGothic BT', 'Arial Narrow', Arial, sans-serif;
    color: var(--text-color);
    font-weight: normal;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding: 6px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
    opacity: 0;
}

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

.main-nav a:hover::after {
    width: 100%;
    opacity: 1;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===========================================
   5. Hero Section
   =========================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../images/bakery-hero.jpg') center/cover no-repeat;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: 'Beautiful People Personal Use', cursive, var(--font-heading);
    font-size: 5rem;  /* 10% larger than 4.5rem */
    margin-bottom: 20px;
    text-shadow: var(--text-shadow-medium);
    line-height: 1.1;   /* Tighter line height for script fonts */
    animation: fadeIn 1.2s ease-out;
    font-weight: normal; /* Script fonts often look better with normal weight */
}

.hero p {
    font-family: 'EngraversGothic BT', 'Arial Black', Arial, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: var(--text-shadow-light);
    letter-spacing: 0.1em; /* Adding letter spacing for better readability with this font */
    text-transform: uppercase; /* Engravers Gothic typically looks best in uppercase */
    font-weight: normal; /* Ensure normal weight since this font might appear bold */
    animation: fadeIn 1.5s ease-out;
}

/* Hero Background Slides */
.hero-bg-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.4,0,0.2,1), opacity 1s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.hero-bg-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-bg-slide.slide-in {
    transform: translateX(100%);
}

.hero-bg-slide.slide-out {
    transform: translateX(-100%);
}

/* Hero Navigation Dots */
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 2px solid #fff;
    cursor: pointer;
    transition: background var(--transition-speed), border-color var(--transition-speed);
}

.hero-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===========================================
   6. About Section
   =========================================== */
.about-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content p {
    font-size: 1.35rem;
    margin-bottom: 24px;
}

.about-image {
    max-width: 340px;
    width: 85%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* ===========================================
   7. Contact Section
   =========================================== */
.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-info {
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.contact-info address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info a[href^="tel"],
.contact-info a[href^="mailto"],
.contact-info a[href*="instagram.com"] {
    color: #444;
    transition: color var(--transition-speed);
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Hours heading styling */
.contact-info h3 {
    font-family: 'EngraversGothic BT', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 15px;
    margin-top: 30px;
}

/* Hours list styling */
.hours {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.hours li {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #444;
}

.contact-map {
    margin-top: 30px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-map::after {
    content: "Click map for directions";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px;
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
}

.contact-map:hover::after {
    transform: translateY(0);
}

/* ===========================================
   8. Follow Us Section
   =========================================== */
.follow-us-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
}

.follow-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

.follow-logo {
    max-width: 300px;
    width: 200%;
    display: block;
    margin: 24px auto 32px;
}

.follow-us-section .social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.follow-us-section .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.follow-us-section .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.follow-us-section .social-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.follow-us-section .social-links a:hover:before {
    opacity: 1;
}

.follow-us-section .social-links img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
    transition: all var(--transition-speed) ease;
}

.follow-us-section .social-links a:hover img {
    transform: scale(1.2);
    animation: floatUp 2s ease-in-out infinite;
}

@media (max-width: 480px) {
    .follow-us-section .social-links a {
        width: 60px;
        height: 60px;
    }
}

/* ===========================================
   9. Footer
   =========================================== */
.footer-bottom {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer-bottom a {
    color: white;
    text-decoration: underline;
}

/* ===========================================
   10. Utility Classes & Decorative Elements
   =========================================== */
   
.section-divider {
    position: relative;
    height: 30px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.section-divider::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    background-color: var(--divider-color);
    transform: translate(-50%, -50%);
}

.section-divider::after {
    content: "❦";
    display: inline-block;
    position: relative;
    top: -2px;
    padding: 0 10px;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 0;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top var(--transition-speed);
}

.skip-link:focus {
    top: 0;
}

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

/* ===========================================
   11. Buttons
   =========================================== */
.btn {
    display: inline-block;
    padding: 13.2px 26.4px;
    border-radius: 4px;
    font-family: 'EngraversGothic BT', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3f6790; /* Darker shade of primary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 133, 181, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #3a7a84; /* Darker shade of secondary color */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 168, 182, 0.3);
}

/* ===========================================
   12. Media Queries
   =========================================== */
@media (max-width: 768px) {
    .main-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.3s ease;
    }
    
    .main-nav ul.active {
        display: flex;
        max-height: 400px; /* Adjust based on your menu height */
        padding: 20px 0;
        opacity: 1;
    }
    
    .main-nav li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-logo {
        width: var(--logo-size-tablet);
        height: var(--logo-size-tablet);
    }
    
    .about-section .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .hero h2 {
        font-size: 4.2rem; /* 10% larger than 3.8rem */
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 3.5rem; /* 10% larger than 3.2rem */
    }
    
    .about-content h2 {
        font-size: 3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .site-logo {
        width: var(--logo-size-mobile);
        height: var(--logo-size-mobile);
    }
}
