/* ------------------------- */
/* RESET E VARIÁVEIS GLOBAIS */
/* ------------------------- */
:root {
    --bg-color: #27272A;
    --primary-color: #D14ED4;
    --text-color: #F4F4F5;
    --dark-gray: #3F3F46;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
}

/* ------------------------- */
/* TIPOGRAFIA BASE (MOBILE)  */
/* ------------------------- */
h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

h2.section-title {
    font-size: 2.0rem;
    margin-bottom: 40px;
    text-align: center;
}

.hero-content p {
    font-size: 1.0rem;
    margin-bottom: 25px;
    color: #d4d4d8;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9rem;
    color: #A1A1AA;
    min-height: 80px;
}

.cta-button {
    font-size: 0.9rem;
    padding: 12px 24px;
}

/* ------------------------- */
/* CABEÇALHO (HEADER)        */
/* ------------------------- */
.header {
    background-color: rgba(39, 39, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #3F3F46;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link img {
    height: 150px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--dark-gray);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s ease-in-out;
    z-index: 1001;
}

.nav-menu.active {
    right: 0;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.2rem;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--primary-color);
    color: #fff;
}

.hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    position: relative;
    z-index: 1002;
    background: none;
    border: none;
    color: var(--text-color);
}

/* --------------------------------- */
/* HERO COM BACKGROUND E GRADIENTE   */
/* --------------------------------- */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 85vh;
    padding-top: 80px;
    background-size: cover;
    background-position: 70% center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-color) 30%, rgba(39, 39, 42, 0.8) 60%, rgba(39, 39, 42, 0) 85%);
    z-index: 1;
}

/* Fundos específicos por página */
.pagina-inicio #hero { background-image: url('images/foto-fundo-inicio.webp'); }
.pagina-proteinas #hero { background-image: url('images/foto-fundo-proteinas.webp'); }
.pagina-energia #hero { background-image: url('images/foto-fundo-energia.webp'); }
.pagina-contato #hero { background-image: url('images/foto-fundo-contato.webp'); }

#hero .container {
    max-width: none;
    margin: 0;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    padding: 1rem;
    text-align: left;
}

.highlight {
    color: var(--primary-color);
}

/* ------------------------- */
/* BOTÕES                    */
/* ------------------------- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(209, 78, 212, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(209, 78, 212, 0.5);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1003;
    transition: transform 0.3s, opacity 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* NOVO: Esconde o botão de WhatsApp quando o menu estiver aberto */
body.menu-open .whatsapp-float {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* ------------------------- */
/* SEÇÕES E CARDS            */
/* ------------------------- */
.section {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #52525B;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ------------------------- */
/* PÁGINA DE CONTATO         */
/* ------------------------- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.contact-info, .contact-map {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    border-radius: 10px;
}

/* ------------------------- */
/* RODAPÉ (FOOTER)           */
/* ------------------------- */
.footer {
    background-color: var(--dark-gray);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin-bottom: 30px;
}

.logo-footer {
    height: 120px;
    width: auto;
    margin-bottom: 15px;
}

.footer h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #52525B;
    font-size: 0.9rem;
}

/* --------------------------------- */
/* MEDIA QUERIES (MOBILE FIRST)      */
/* --------------------------------- */

/* TABLETS (e telas maiores) */
@media (min-width: 768px) {
    /* --- TIPOGRAFIA PARA DESKTOP --- */
    h1 {
        font-size: 3rem;
    }
    h2.section-title {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 15px 30px;
    }

    /* --- LAYOUT HEADER --- */
    .nav-menu {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background-color: transparent;
        gap: 30px;
    }
    .nav-menu a {
        font-size: 1rem;
        padding: 5px 10px;
    }
    .hamburger {
        display: none;
    }

    /* --- LAYOUT HERO --- */
    #hero {
        min-height: 90vh;
        background-position: center right;
    }
    #hero::before {
        background: linear-gradient(to right, var(--bg-color) 25%, rgba(39, 39, 42, 0.7) 55%, rgba(39, 39, 42, 0) 80%);
    }
    .hero-content {
        max-width: 550px;
        margin-left: 8%;
        padding: 0;
    }

    /* --- LAYOUT FOOTER --- */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .footer-about, .footer-contact, .footer-social {
        flex-basis: 30%;
    }
    .logo-footer {
        height: 150px;
        margin-top: -20px;
    }
}