/* =========================================================================
   CASA MAVA - REPOSTERÍA
   Base Style and Variables 
   ========================================================================= */

:root {
    /* Colors derived from brand palette */
    --clr-cream: #F8F4EC; /* Soft creamy background */
    --clr-cream-dark: #EAE3D6; /* Card backgrounds */
    --clr-salmon: #F1A89A; /* Soft peach/salmon */
    --clr-terracota: #E24933; /* Strong primary red-orange */
    --clr-text: #2D2725; /* Dark brown/black for text */
    --clr-text-light: #5A534F; /* Lighter text for desc */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Variables */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(226, 73, 51, 0.08); /* slight terracota tint shadow */
    --shadow-lg: 0 20px 40px rgba(45, 39, 37, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-cream);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

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

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-terracota);
}

/* Typography Enhancements */
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--clr-text);
}

.section-title span {
    color: var(--clr-terracota);
    font-style: italic;
}

.section-desc {
    color: var(--clr-text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(241, 168, 154, 0.3); /* Salmon transparent */
    color: var(--clr-terracota);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-terracota);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #cb3e2b;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(226, 73, 51, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-terracota);
    color: var(--clr-terracota);
}

.btn-outline:hover {
    background-color: var(--clr-terracota);
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(248, 244, 236, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 60px; /* Adjust according to original proportions */
    object-fit: contain;
    transition: var(--transition);
}

.header.scrolled .brand-logo {
    height: 50px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-terracota);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-terracota);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--clr-text);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(241,168,154,0.4) 0%, rgba(248,244,236,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--clr-text);
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--clr-terracota);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-card {
    position: relative;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: visible;
}

.hero-img {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
    border: 8px solid white;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: auto;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
    z-index: 10;
}

.icon-1 { top: -20px; right: -20px; }
.icon-2 { bottom: 40px; left: -30px; }

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.pulse-anim { animation: pulse 4s infinite ease-in-out; }
.float-anim { animation: float 5s infinite ease-in-out; }

.hero-bottom-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.hero-bottom-curve svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}
.hero-bottom-curve path {
    fill: #ffffff; /* We'll transition to white section */
}

/* About Section */
.about {
    background-color: #ffffff;
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

.img-main {
    border-radius: var(--radius-lg);
    grid-column: 1 / span 2;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.img-secondary {
    border-radius: var(--radius-lg);
    grid-column: 2 / 3;
    margin-top: -60px; /* Offset overlapping effect */
    border: 6px solid #fff;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.about-icon.decorate {
    position: absolute;
    top: -40px;
    left: -20px;
    width: 100px;
    z-index: 3;
    animation: float 6s infinite ease-in-out;
}

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--clr-text);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(241, 168, 154, 0.2); /* Light Salmon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 30px;
}

/* Menu Section */
.menu {
    background-color: var(--clr-cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.product-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--clr-salmon);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-cream-dark);
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--clr-terracota);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clr-cream);
    color: var(--clr-terracota);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--clr-terracota);
    color: white;
}

/* Events Section */
.events {
    background-color: var(--clr-terracota);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.events-container {
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.events-content {
    max-width: 700px;
}

.events-title {
    color: white;
    margin-bottom: 1.5rem;
}

.events-desc {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.events-overlay-icon {
    position: absolute;
    width: 300px;
    opacity: 0.1;
    right: -50px;
    bottom: -50px;
    z-index: 1;
    pointer-events: none;
}

/* Footer Section */
.footer {
    background-color: #2D2725;
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: #aaa;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--clr-salmon);
    color: white;
}

.footer h4 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--clr-salmon);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--clr-salmon);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* FAB WhatsApp */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Official Whatsapp JS */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.fab-whatsapp:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        order: -1;
    }
    
    .features-list {
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links, .contact-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--clr-cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        font-size: 1.5rem;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions .btn {
        display: none;
    }
}
