:root {
    --color-primary-yellow: #FFC000; 
    --color-secondary-red: #C8102E; 
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-gray-section: #E0E0E0;
    --color-whatsapp-green: #25D366; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; 
    line-height: 1.6;
    color: var(--color-text-dark);
    overflow-x: hidden;
}

h1 {
    font-size: 1.5em;
}

h2, h3 {
    color: var(--color-secondary-red);
}

/* --------------------------------- */
/* LAYOUT PRINCIPAL */
/* --------------------------------- */
.hero-section {
    background-color: var(--color-primary-yellow);
    background-image: url('assets/hero-banner.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    text-align: center;
    padding: 80px 10px 600px;
    height: 100vh;
    max-height: 800px;
}

.hero-logo {
    max-width: 80%;
    height: auto;
    margin: 0 auto 20px auto;
}

/* --------------------------------- */
/* POPUP DE BOAS-VINDAS */
/* --------------------------------- */
#welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.popup-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.popup-content {
    background-color: var(--color-primary-yellow);
    color: var(--color-secondary-red);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.popup-content h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

#close-popup {
    background-color: var(--color-secondary-red);
    color: var(--color-text-light);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#close-popup:hover {
    background-color: #A00C23; 
}


/* --------------------------------- */
/* ANIMAÇÃO DE BALÕES */
/* --------------------------------- */
.balloon-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 10;
    overflow: hidden;
}

.balloon {
    position: absolute;
    width: 70px;
    height: 90px; 
    border-radius: 50% 50% 50% 50% / 50% 50% 70% 70%;
    box-shadow: 
        inset -5px -10px 10px rgba(0, 0, 0, 0.4), 
        inset 10px 10px 15px rgba(255, 255, 255, 1); 
    cursor: pointer;
    pointer-events: auto; 
    opacity: 0.9;
    transition: transform 0.5s ease-out, opacity 0.3s ease;
    transform-origin: center bottom;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.2) 60%, rgba(0,0,0,0.05) 100%);
}

.balloon::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 8px;
    background: inherit;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 50px;
    box-shadow: inset -2px -2px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}


.balloon::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 70px;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    background: linear-gradient(to bottom, #888 0%, #aaa 30%, #888 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 100% 100%;
    animation: sway 2s ease-in-out infinite alternate;
    transform-origin: top center;
}

.balloon-red {
    background: #E53935; /* Cor base */
    background: radial-gradient(circle at 30% 30%, #FF8A80, #E53935 70%); /* Gradiente de Brilho */
}

.balloon-blue {
    background: #1E88E5;
    background: radial-gradient(circle at 30% 30%, #82B1FF, #1E88E5 70%);
}

.balloon-yellow {
    background: #FFD740;
    background: radial-gradient(circle at 30% 30%, #FFE57F, #FFD740 70%);
}

.balloon-green {
    background: #43A047;
    background: radial-gradient(circle at 30% 30%, #B9F6CA, #43A047 70%);
}

.balloon-purple {
    background: #8E24AA;
    background: radial-gradient(circle at 30% 30%, #E040FB, #8E24AA 70%);
}

@keyframes fly {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
        will-change: transform, opacity;
    }
    100% {
        transform: translateY(-100px) rotate(var(--fly-rotate, 5deg)); 
        opacity: 0.8;
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes sway {
    0% { transform: translateX(-50%) rotate(3deg); }
    50% { transform: translateX(-50%) rotate(-4deg); }
    100% { transform: translateX(-50%) rotate(3deg); }
}

/* --------------------------------- */
/* BOTÕES DE WHATSAPP (GERAL E ESPECÍFICOS) */
/* --------------------------------- */
.social-links {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999; 
}

.social-icon img {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background-color: var(--color-whatsapp-green); 
}

.social-icon img:hover {
    transform: scale(1.1);
}

.insta-button.big-button {
    background: linear-gradient(135deg, #fff);
    color: rgb(0, 0, 0);
    padding: 6px 25px; 
    max-width: 70%; 
    margin: 30px auto 10px auto; 
    border-radius: 20px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    transition: all 0.3s ease;
    border: 0.5px solid #fff;
}

.insta-button.big-button img {
    width: 35px; 
    height: 35px;
    margin-right: 10px;
    background-color: transparent;
    transition: transform 0.3s ease; 
}

.insta-button.big-button:hover {
    background: linear-gradient(135deg, #e6ff06, #d9ff00);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

.insta-button.big-button:hover img {
    transform: rotate(10deg) scale(1.1);
}

.whatsapp-button.big-button {
    background: linear-gradient(135deg, #3fe51e,#25D366, #17a15c, #3fe51e);
    color: rgb(0, 0, 0);
    padding: 6px 25px; 
    max-width: 70%; 
    margin: 30px auto 10px auto; 
    border-radius: 20px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    transition: all 0.3s ease;
    border: 0.5px solid #fff;
}

.whatsapp-button.big-button img {
    width: 35px; 
    height: 35px;
    margin-right: 10px;
    background-color: transparent;
    transition: transform 0.3s ease; 
}

.whatsapp-button.big-button:hover {
    background: linear-gradient(135deg, #e6ff06, #d9ff00);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

.whatsapp-button.big-button:hover img {
    transform: rotate(10deg) scale(1.1);
}

/* --------------------------------- */
/* SEÇÃO DE PRODUTOS */
/* --------------------------------- */
.products-section {
    background-image: url('assets/products-background.png');
    background-size: contain;
    background-color: #380000;
    color: var(--color-text-light);
    padding: 0;
    text-align: center;
}

.product-list-wrapper {
    display: flex;
    flex-direction: column; 
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;
    background-color: rgba(53, 53, 53, 0.562); 
}

.product-column {
    padding: 30px 15px;
    min-height: 350px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    background-color: rgba(71, 28, 32, 0.733);
}

.product-column ul {
    list-style: none;
    font-size: 1.2em;
    text-align: center; /* Centraliza os itens */
    padding: 0;
    margin: 0 auto 30px auto;
}

.product-column ul li {
    margin: 10px 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.product-column ul li:hover {
    transform: scale(1.05);
    color: var(--color-primary-yellow);
}

/* --------------------------------- */
/* SEÇÃO DELIVERY */
/* --------------------------------- */
.delivery-section {
    background-color: var(--color-gray-section);
    text-align: center;
    padding: 40px 10px;
}

.delivery-section h3 {
    font-size: 1.8em;
    color: var(--color-secondary-red);
    margin-bottom: 20px;
}

.delivery-flow-image {
    position: relative;
    display: inline-block;   
}

.delivery-flow-image img:first-child {
    width: 500px;
    max-width: 50%;
}

.delivery-flow-image img:nth-child(2) { 
    width: 100%;
    max-width: 500px; /* Mantém um limite para desktop */
    height: auto;
    margin: 0 auto;
    display: block;
}

.delivery-logo {
    position: absolute;
    right: 520px;
    bottom: -20px;
    width: 10px;
    animation: mascotMove 1.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.delivery-mascot {
    position: absolute;
    right: -220px;
    bottom: 10px;
    width: 160px;
    animation: mascotMove 1.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

@keyframes mascotMove {
    0% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(1deg); }
}

/* --------------------------------- */
/* SEÇÃO SOBRE */
/* --------------------------------- */
.about-section {
    background-color: var(--color-primary-yellow);
    text-align: center;
    padding: 30px 15px 50px;
}

.about-logo {
    max-width: 300px; 
    height: auto;
}

.text-block {
    margin: 0 auto;
    max-width: 1000px;
    text-align: justify;
    font-size: 1.10em;
    line-height: 1.8;
    padding: 0 10px;
    z-index: 2;
}

.text-block p {
    text-align: center;
    line-height: 1.7;
}

.party-history, .confectionery-history {
    background-repeat: no-repeat;
    background-size: 100px; 
    padding-left: 110px; 
    min-height: auto;
    background-position: left top;
    text-align: justify;
    padding-top: 0;
    padding-left: 0;
}

.party-history {
    position: relative;
}

.party-history::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -220px;
    width: 160px;
    height: 220px;
    background: url('assets/mascote_magico.png') no-repeat center/contain;
    animation: floatMascot 3s ease-in-out infinite alternate;
}

.confectionery-history {
    position: relative;
}

.confectionery-history::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -220px;
    width: 160px;
    height: 220px;
    background: url('assets/mascote_confeiteiro.png') no-repeat center/contain;
    animation: floatMascot 3s ease-in-out infinite alternate-reverse;
}

@keyframes floatMascot {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-text-dark);
}

.contact-info h2 {
    font-size: 1.2em;
}

.contact-info h3 {
    font-size: 1em;
}

.contact-info h5 {
    font-size: 0.9em;
    margin: 5px 0;
}

footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 10px 0;
    font-size: 0.8em;
}

/* --------------------------------- */
/* MEDIA QUERY (Desktop/Tablet) */
/* --------------------------------- */
@media (min-width: 768px) {
    .hero-section {
        padding: 80px 10px 600px;
        height: auto; 
    }

    .product-list-wrapper {
        flex-direction: row; 
        border-radius: 10px; 
        overflow: hidden;
    }

    .product-column {
        width: 50%;
        min-height: 500px;
        padding: 40px;
        margin-bottom: 0; 
    }

    .product-column ul {
        font-size: 1.5em;
        padding-left: 15%;
        max-width: none;
    }
    
    .delivery-flow-image img {
        max-width: 500px; 
    }

    .delivery-logo {
        display: block; /* Reativa no desktop */
        position: absolute;
        right: 520px; /* Posição ajustada */
        bottom: -20px;
        width: 100px; /* Aumenta o tamanho do logo */
    }
    
    .party-history {
        padding-left: 0;
    }
    .confectionery-history {
        padding-left: 0; 
    }
}