/* --- CONFIGURAÇÕES GLOBAIS E FONTES --- */
:root {
    --bg-main: #f7f8fa;
    --accent-color: #E91E63;
    --accent-dark: #c2185b;
    --accent-light: #F8E0E5;
    --dark-color: #333333;
    --text-light: #666;
    --white: #ffffff;
    --border-color: #eee;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- CABEÇALHO --- */
.main-header {
    background-color: var(--dark-color);
    border-bottom: 1px solid #4f4f4f; /* Borda sutil */
    padding: 0.75rem 0; /* Mais compacto */
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap; /* Impede a quebra de linha */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    flex-shrink: 0; /* Impede que o logo encolha */
}

.logo-img {
    height: 48px;
    margin-right: 10px;
}

.logo h2 { /* Usando H2 para SEO, conforme discutido */
    font-size: 1.25rem;
    color: var(--white);
    white-space: nowrap;
}

.search-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 700px;
    background-color: #f0f2f5;
    border-radius: 25px;
    padding: 5px;
    margin: 0 auto;
}

#search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    color: var(--dark-color);
}

#search-button {
    border: none;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    width: 60px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: var(--accent-dark);
}

.main-nav {
    flex-shrink: 0;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #f0f0f0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

/* --- RODAPÉ --- */
.main-footer {
    background-color: var(--dark-color);
    color: #bbb;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

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

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column a {
    color: #bbb;
    text-decoration: none;
}
.footer-column a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links img {
    width: 24px;
    height: 24px;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid #555;
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* --- ANÚNCIO FIXO --- */
.sticky-ad {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--white);
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    z-index: 1000;
}

.ad-text {
    flex-grow: 1;
    text-align: center;
    font-size: 0.9rem;
}

.close-ad {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

/* --- BOTÃO FLUTUANTE DO WHATSAPP --- */
.whatsapp-float-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.whatsapp-float-button img {
    width: 35px;
    height: 35px;
}

/* --- RESPONSIVIDADE GLOBAL E MENU MOBILE --- */

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .search-bar {
        max-width: 500px;
    }

    /* Regras para o menu mobile quando ele estiver aberto */
    .main-nav.is-active {
        display: block;
        position: absolute;
        top: 71px; /* Altura do header */
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .main-nav.is-active .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .main-nav.is-active .nav-links li {
        width: 100%;
        text-align: center;
        border-top: 1px solid #4f4f4f;
    }
    .main-nav.is-active .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .search-bar {
        display: none;
    }
    .main-header .container {
        justify-content: space-between;
    }
}