/* ============================================
   ViVa Confeitaria — Design System
   Palette: Rosa suave (#F8E8EE), Marsala (#7A2048), 
   Rosa Pó (#E8B4C8), Creme (#FFF8F0), Branco (#FFFFFF)
   ============================================ */

:root {
    /* Colors - Inspired by the pink logo */
    --pink-light: #F8E8EE;
    --pink-mid: #E8B4C8;
    --pink-dark: #C77DA2;
    --marsala: #7A2048;
    --marsala-dark: #5C1636;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --text-dark: #2C1A24;
    --text-body: #5A4050;
    --text-muted: #8A7080;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --instagram-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(122, 32, 72, 0.06);
    --shadow-md: 0 8px 24px rgba(122, 32, 72, 0.08);
    --shadow-lg: 0 16px 48px rgba(122, 32, 72, 0.12);
    --shadow-card: 0 4px 20px rgba(122, 32, 72, 0.07);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--pink-dark);
    margin-bottom: 0.75rem;
}

.section-label.light {
    color: var(--pink-mid);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 180, 200, 0.2);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--marsala);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover {
    color: var(--marsala);
}

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

.nav-social {
    display: flex;
    gap: 0.75rem;
    margin-left: 0.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--pink-mid);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pink-light);
    color: var(--marsala);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--marsala);
    color: var(--white);
    transform: translateY(-2px);
}

.social-icon.social-whatsapp:hover {
    background: var(--whatsapp);
}

.social-icon.social-ifood:hover {
    background: #ea1d2c;
    color: var(--white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--marsala);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--marsala);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(122, 32, 72, 0.3);
}

.btn-primary:hover {
    background: var(--marsala-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(122, 32, 72, 0.4);
}

.btn-ifood {
    background: #ea1d2c;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(234, 29, 44, 0.3);
}

.btn-ifood:hover {
    background: #c01422;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 29, 44, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--marsala);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.btn-instagram {
    background: var(--instagram-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.25);
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.35);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--pink-mid);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge.highlight {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
}

.hero h1 .text-highlight {
    color: #F6D365; /* Tom dourado elegante */
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-style: italic;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-slow);
    cursor: pointer;
}

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

.product-image-wrapper {
    height: 330px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-bolo {
    object-position: center 20%;
}

.img-mousse {
    object-position: center 80%;
}

.img-sazonais {
    object-position: center 60%;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 1.75rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--marsala);
}

.product-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.product-cta {
    display: inline-block;
    color: var(--marsala);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-cta:hover {
    color: var(--marsala-dark);
    letter-spacing: 1px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    background: var(--pink-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(122, 32, 72, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item-h {
    grid-column: span 2;
}

.gallery-item-v {
    grid-row: span 2;
}

/* Custom Image Framing Utilities */
.img-pos-center { object-position: center center !important; }
.img-pos-top { object-position: center top !important; }
.img-pos-bottom { object-position: center bottom !important; }
.img-pos-10 { object-position: center 10% !important; }
.img-pos-20 { object-position: center 20% !important; }
.img-pos-30 { object-position: center 30% !important; }
.img-pos-40 { object-position: center 40% !important; }
.img-pos-60 { object-position: center 60% !important; }
.img-pos-70 { object-position: center 70% !important; }

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--white);
}

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

.about-image-col {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--marsala);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.about-badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    color: var(--marsala);
}

.about-text > p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

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

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--pink-light);
    color: var(--marsala);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.feature strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.feature p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--cream);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(232, 180, 200, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: #f5a623;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--pink-light);
    color: var(--marsala);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   CONTACT CTA
   ============================================ */
.contact {
    background: linear-gradient(135deg, var(--marsala-dark) 0%, var(--marsala) 50%, var(--pink-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--pink-mid);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

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

.footer-social a:hover {
    background: var(--marsala);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

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

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item-h {
        grid-column: span 2;
    }

    .gallery-item-v {
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .nav {
        position: fixed;
        top: 95px;
        left: 0;
        width: 100%;
        background: var(--cream);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        border-bottom: 2px solid var(--pink-mid);
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav-social {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        padding-top: 1rem;
        border-top: 1px solid var(--pink-mid);
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        padding: 8rem 1rem 4rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-badge {
        right: 10px;
        bottom: -20px;
    }
    
    .splide__arrow {
        display: none;
    }
}
