/* --- Variáveis e Estilos Globais --- */
:root {
    --primary-color: #e79f15;;
    --secondary-color: #000;
    --accent-color: #bf8e0c;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white: #ffffff;
    --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);
    color: var(--dark-gray);
    line-height: 1.6;
}

img.logo-colored {
    width: 140px;
    margin-top: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }

.locations-grid div p, .locations-grid div h3 {
    text-shadow: 0px 2px 4px rgb(181 138 17);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #734900;
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #d48800;
    border-color: #d48800;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Animação de Fade-in --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header e Navegação --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky; /* Sticky é melhor que fixed para páginas com scroll */
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}
.logo strong {
    font-weight: 700;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
}
.menu-toggle span {
    background: var(--primary-color);
    height: 3px;
    width: 25px;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* --- Seção Hero --- */
/* Primeiro, o CSS para o container principal */
.hero {
    position: relative; /* Essencial para o ::after funcionar corretamente */
    min-height: 90vh;
    background-color: #f3c02f; /* Sua cor de fundo amarela/mostarda */
    background-image: linear-gradient(#fbc638, #ffaa09c2);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white); /* Garanta que a variável --white esteja definida ou troque por #FFF */
    overflow: hidden; /* Evita que a imagem vaze se for muito grande */
}

/* Agora, criamos a camada para os óculos com ::after */
.hero::after {
    content: ''; /* Obrigatório para o pseudo-elemento aparecer */
    position: absolute; /* Posição absoluta em relação ao .hero */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Aqui colocamos a imagem dos óculos */
    background-image: url('oculos.svg'); /* <<<<<<< COLOQUE O CAMINHO CORRETO PARA O SEU ARQUIVO */
    background-size: contain; /* ou '70%', '80%', etc., para ajustar o tamanho */
    background-position: center;
    background-repeat: no-repeat;

    /* Opcional: para deixar o óculos mais sutil, como uma marca d'água */
    opacity: 0.25;

    /* Importante: coloca os óculos atrás do conteúdo de texto */
    z-index: 0;
}

/* Por fim, garantimos que o conteúdo fique na frente dos óculos */
.hero-content {
    position: relative; /* Necessário para o z-index funcionar */
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Seções Gerais --- */
.about-section, .product-section, .services-section, .contact-section {
    padding: 6rem 0;
}

/* --- Seção Sobre --- */
.about-section {
    background: var(--white);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text p {
    margin-bottom: 1rem;
}

/* --- Seção Produtos (Preview e Vitrine) --- */
.product-section {
    background: var(--light-gray);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-card h3 {
    margin: 1rem 1.5rem 0.5rem;
}
.product-card p {
    padding: 0 1.5rem 1rem;
    font-size: 0.9rem;
}
.product-card .price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem 1rem;
}
.product-card .btn-small {
    padding: 10px 20px;
    margin: 0 1.5rem 1.5rem;
    align-self: flex-start;
}

/* --- Seção Serviços --- */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; text-align: center; }
.service-item svg { color: var(--secondary-color); margin-bottom: 1rem; }
.service-item h3 { margin-bottom: 0.5rem; }

/* --- Seção Contato/Unidades --- */
.contact-section { background-color: var(--primary-color); }
.contact-section .section-title, .contact-section h3 { color: var(--white); }
.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.location-card { background: rgba(255,255,255,0.1); padding: 2rem; border-radius: 10px; color: var(--light-gray); }
.location-card p { margin-bottom: 0.5rem; }
.location-card .btn-secondary { margin-top: 1rem; color: var(--white); border-color: var(--white); }
.location-card .btn-secondary:hover { background: var(--white); color: var(--primary-color); }

/* --- Footer --- */
.footer { background: var(--dark-gray); color: var(--light-gray); text-align: center; padding: 2rem 0; }

/* --- ESTILOS PARA A PÁGINA DA VITRINE (produtos.html) --- */
.showcase-main {
    padding-top: 4rem;
}
.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.showcase-header .section-title {
    margin-bottom: 0;
    text-align: left;
}
.showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}


/* --- Responsividade --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .grid, .locations-grid { grid-template-columns: 1fr; }
    .about-image { grid-row: 1; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 77px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 77px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; text-align: center; }
    .nav-menu li { margin: 1.5rem 0; }
    .nav-menu a { font-size: 1.5rem; }
    .menu-toggle { display: flex; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    .showcase-header { justify-content: center; text-align: center; }
    .showcase-header .section-title { text-align: center; width: 100%; }
}