/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Chocolate Color Palette */
    --dark-chocolate: #3C2415;
    --milk-chocolate: #7B4B3A;
    --light-chocolate: #A0522D;
    --cocoa-brown: #8B4513;
    --cream: #F5E6D3;
    --golden: #D4AF37;
    --warm-white: #FFF8F0;
    --caramel: #C8860D;
    --espresso: #2F1B14;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-chocolate);
    background-color: var(--warm-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(47, 27, 20, 0.9) 0%, rgba(60, 36, 21, 0.9) 50%, rgba(75, 45, 30, 0.9) 100%),
        url('../images/brownies-gourmet.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

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

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-cta-text {
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--golden);
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--golden), var(--caramel));
    color: var(--dark-chocolate);
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    background: linear-gradient(45deg, var(--caramel), var(--golden));
}

.cta-center {
    text-align: center;
    margin: 50px 0;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--cream);
    position: relative;
}

.about h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-chocolate);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--golden);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin-bottom: 25px;
    color: var(--milk-chocolate);
    line-height: 1.8;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(60, 36, 21, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(60, 36, 21, 0.3);
}

/* About Gallery */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(60, 36, 21, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(60, 36, 21, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background: var(--warm-white);
}

.testimonials h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-chocolate);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--golden);
    border-radius: 2px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(60, 36, 21, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(60, 36, 21, 0.15);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--golden);
    font-family: var(--font-heading);
    opacity: 0.3;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial p {
    font-size: 1rem;
    color: var(--milk-chocolate);
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
}

.testimonial cite {
    font-weight: 600;
    color: var(--dark-chocolate);
    font-style: normal;
}

/* FAQ Section */
.faq {
    padding: var(--section-padding);
    background: var(--cream);
}

.faq h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-chocolate);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.faq h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--golden);
    border-radius: 2px;
}

.faq-subtitle {
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--milk-chocolate);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: white;
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(60, 36, 21, 0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(60, 36, 21, 0.15);
}

.faq-item h3 {
    background: var(--milk-chocolate);
    color: white;
    padding: 20px 25px;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 600;
    margin: 0;
}

.faq-item p {
    padding: 25px;
    color: var(--dark-chocolate);
    line-height: 1.7;
    margin: 0;
}

.faq-item ul {
    padding: 0 25px 25px 50px;
    color: var(--dark-chocolate);
}

.faq-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-item h4 {
    color: var(--dark-chocolate);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 25px 15px 25px;
    font-family: var(--font-heading);
}

/* Footer */
.footer {
    background: var(--dark-chocolate);
    color: var(--cream);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* Pulsing Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1), 0 0 0 20px rgba(37, 211, 102, 0.05);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 40px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .faq-item h3,
    .faq-item p {
        padding: 15px 20px;
    }
    
    .testimonial {
        padding: 25px 20px;
    }
}

/* Performance Optimizations */
.hero,
.about,
.testimonials,
.faq {
    will-change: transform;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.cta-button:focus,
.whatsapp-float:focus {
    outline: 3px solid var(--golden);
    outline-offset: 2px;
}

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

.hero-content,
.about-content,
.testimonial,
.faq-item {
    animation: fadeInUp 0.8s ease-out;
}
