/* RESET E CONFIGURAÇÕES GLOBAIS */
:root {
    --primary-color: #000000; /* Cor principal (preto) */
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #f4f4f4;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

/* HEADER */
.header {
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    /* Ajustado para o novo logo 'A bonelaria' */
    max-width: 180px; 
    height: auto;
}

.header nav ul {
    list-style: none;
    display: flex;
}

.header nav ul li {
    margin-left: 2rem;
}

.header nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.header nav ul li a:hover {
    color: var(--primary-color);
}

.btn-cta {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-cta:hover {
    opacity: 0.8;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    
    /* CORREÇÃO PARA LARGURA TOTAL */
    width: 100%;
    overflow: hidden; /* Garante que nada vaze para os lados */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* transform: scale(1.1);  <- Removido para melhor visualização do novo vídeo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    z-index: 3;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-cta-hero {
    background: var(--primary-color); 
    color: var(--light-color);
    padding: 10px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 9000;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap; /* ADICIONADO PARA CORRIGIR O CORTE */
}

.btn-cta-hero:hover {
    transform: translateY(-3px); /* Efeito de 'levantar' o botão */
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.3); /* Sombra mais pronunciada */
}

/* QUALITY SECTION */
.quality-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    text-align: center;
}

.quality-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* PRODUCTS SECTION */
.products-section {
    background: var(--gray-color);
    padding: 4rem 0;
}

.products-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--dark-color);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-link {
    text-decoration: none;
}


/* CTA BUSINESS */
.cta-business {
    padding: 4rem 0;
}

.cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text p {
    margin-bottom: 2rem;
}

.cta-image {
    flex: 1;
}

/* Estilo aplicado a imagem e ao novo vídeo */
.cta-image img,
.cta-image video {
    width: 100%;
    border-radius: 10px;
}

/* FORM SECTION */
.form-section {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.form-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-section p {
    margin-bottom: 2rem;
}

#whatsapp-form {
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    flex: 1 1  calc(50% - 1rem);
    text-align: left;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #333;
    color: var(--light-color);
    font-family: var(--font-family);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: 2px solid var(--light-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.8;
}

/* FOOTER */
.footer {
    background: var(--dark-color);
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
}

.logo-footer {
    /* Ajustado para o novo logo 'A bonelaria' */
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--light-color);
}


/* =================================
   ESTILOS PÁGINA DE PRODUTO
   ================================= */

.product-page-section {
    padding: 8rem 0 4rem 0;
}

.product-page-section h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.product-page-section > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.back-link {
    display: block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.cta-container {
    text-align: center;
    padding: 2.5rem;
    background: var(--gray-color);
    border-radius: 10px;
}

.cta-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* RESPONSIVIDADE */
@media(max-width: 768px) {
    .header .container {
        /* Permite que o logo e os botões fiquem lado a lado */
        display: flex;
        flex-wrap: wrap; /* Permite que a navegação quebre a linha */
        justify-content: space-between;
        align-items: center;
    }

    .header nav {
        /* Faz a navegação ocupar a largura total abaixo do logo */
        order: 3; /* Coloca o menu de navegação por último */
        width: 100%;
        margin-top: 1rem;
    }

    /* Garante que o menu de navegação se centralize */
    .header nav ul {
        justify-content: center;
        width: 100%;
        padding-left: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .quality-section {
        grid-template-columns: 1fr 1fr;
    }
    .cta-flex {
        flex-direction: column;
    }
    .form-group {
        flex: 1 1 100%;
    }
}

@media(max-width: 500px) {
    .quality-section {
        grid-template-columns: 1fr;
    }
    /* A linha que escondia o botão foi removida daqui */
}