/* ==================== RESET & BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Poppins', sans-serif; 
    color: #555; 
    background: #FFFFFF; 
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { 
    max-width: 100%; 
    height: auto; 
    display: block;
    pointer-events: none;
}

/* ==================== VARIÁVEIS ==================== */
:root {
    --header-height: 5rem;
    --header-height-scrolled: 4.5rem;
    --top-bar-height: 2.5rem;
    --primary-color: #C8A58A;
    --primary-color-dark: #b18f76;
    --title-color: #2c2c2c;
    --text-color: #555;
    --footer-bg: #222222;
    --body-color: #FFFFFF;
    --light-beige-bg: #FBF9F7;
    --dark-beige-bg: #F4F1EE;
    --border-color: #e9e9e9;
}

/* ==================== LAYOUT & HELPERS ==================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; gap: 2rem; }
.section { padding: 5rem 0; }
main .section:first-of-type { padding-top: calc(var(--header-height) + var(--top-bar-height)); }

.section header { margin-bottom: 4rem; text-align: center; }
.title { font-size: 2.5rem; font-weight: 700; color: var(--title-color); margin-bottom: 1rem; letter-spacing: -1px; }
.subtitle { font-size: 1.1rem; color: var(--text-color); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.button { background: var(--primary-color); color: white; padding: 0.9rem 2rem; border-radius: 8px; display: inline-block; font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent; box-shadow: 0 4px 15px rgba(200, 165, 138, 0.3); }
.button:hover { background: var(--primary-color-dark); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(200, 165, 138, 0.4); }

.animate-item { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.8s ease-out; transition-delay: var(--delay, 0s); }
.animate-item.visible { opacity: 1; transform: translateY(0); }

/* ==================== WHATSAPP FLOAT BUTTON ==================== */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25D366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 100; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background-color 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); background-color: #128C7E; }

/* ==================== HEADER ==================== */
#header { position: fixed; top: 0; left: 0; width: 100%; z-index: 99; transition: background-color 0.4s ease, box-shadow 0.4s ease; }
#header.scrolled { background: var(--body-color); box-shadow: 0 2px 15px rgba(0,0,0,0.08); }

.top-bar { height: var(--top-bar-height); background: rgba(34, 34, 34, 0.8); backdrop-filter: blur(5px); color: #ccc; font-size: 0.85rem; transition: height 0.4s ease; overflow: hidden; }
#header.scrolled .top-bar { height: 0; }

.top-bar .container, .main-nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.contact-info { display: flex; align-items: center; gap: 0.5rem; }
.contact-info a { display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s; }
.contact-info a:hover { color: var(--primary-color); }
.contact-info .divider { color: #555; margin: 0 0.5rem; }
.social-icons { display: flex; align-items: center; gap: 1rem; }
.social-icons a { font-size: 1rem; transition: color 0.3s, transform 0.3s; }
.social-icons a:hover { color: var(--primary-color); transform: translateY(-2px); }

.main-nav { height: var(--header-height); transition: height 0.4s ease; }
#header.scrolled .main-nav { height: var(--header-height-scrolled); }

.logo-container .logo-image { height: 72px; width: auto; transition: height 0.4s ease; }
#header.scrolled .logo-container .logo-image { height: 60px; }

.menu ul { display: flex; gap: 2.5rem; }
.menu ul li a.title { font-size: 1rem; font-weight: 600; position: relative; padding: 0.5rem 0; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
#header.scrolled .menu ul li a.title { color: #333; text-shadow: none; }
.menu ul li a.title::after { content: ''; width: 0; height: 3px; background: var(--primary-color); position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-radius: 2px; transition: width 0.3s ease; }
.menu ul li a.title:hover::after, .menu ul li a.title.active::after { width: 60%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.btn-quote { padding: 0.7rem 1.6rem; font-size: 0.9rem; white-space: nowrap; }

.toggle { display: none; width: 28px; height: 22px; cursor: pointer; position: relative; }
.bar { display: block; width: 100%; height: 3px; background-color: #fff; border-radius: 2px; position: absolute; left: 0; transition: all 0.35s ease-in-out; }
#header.scrolled .bar { background-color: #333; }
.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.bar:nth-child(3) { bottom: 0; }
body.menu-expanded .toggle .bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-expanded .toggle .bar:nth-child(2) { opacity: 0; }
body.menu-expanded .toggle .bar:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
body.menu-expanded #header:not(.scrolled) .bar { background-color: #333; }

/* ==================== HERO SECTION ==================== */
#home { height: 100vh; padding: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/fundo.webp') no-repeat center center/cover; }
#home .hero-content { max-width: 800px; }
#home .title { font-size: 3.5rem; color: #fff; margin-bottom: 1.5rem; line-height: 1.2; }
#home p { font-size: 1.25rem; font-weight: 300; opacity: 0.9; margin-bottom: 2.5rem; }

/* ==================== SEÇÕES RESTANTES ==================== */
#features { background: var(--light-beige-bg); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; text-align: center; }
.feature-card { padding: 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); }
.feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--title-color); }

#about { background: var(--body-color); }
#about .container { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
#about .text p { line-height: 1.8; margin-bottom: 1rem; }
#about .image img { border-radius: 10px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

#products { background: var(--dark-beige-bg); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-card { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 350px; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-card .card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 1.5rem; text-align: center; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.product-card h3 { font-size: 1.5rem; color: #fff; transform: translateY(20px); opacity: 0; transition: all 0.4s ease; }
.product-card:hover h3, .product-card.is-active h3 { transform: translateY(0); opacity: 1; }

#portfolio { background: var(--body-color); }
.portfolio-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 10px; }
.portfolio-item img { transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.4s ease; }
.portfolio-item:hover .overlay, .portfolio-item.is-active .overlay { opacity: 1; }
.overlay h3, .overlay p { transform: translateY(10px); transition: transform 0.4s ease; }
.overlay h3 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; transition-delay: 0.1s; }
.overlay p { transition-delay: 0.2s; }
.portfolio-item:hover .overlay h3, .portfolio-item:hover .overlay p,
.portfolio-item.is-active .overlay h3, .portfolio-item.is-active .overlay p { transform: translateY(0); }

#contact { background: var(--light-beige-bg); }
#contact .container { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 3rem; }
#contact .text p { margin: 1.5rem 0 2rem; line-height: 1.7; }
.whatsapp-contact-btn { background: #25D366; display: inline-flex; align-items: center; gap: 0.75rem; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.whatsapp-contact-btn:hover { background: #128C7E; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
#contact form input, 
#contact form textarea { 
    width: 100%; 
    padding: 1rem; 
    margin-bottom: 1rem; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s; 
    user-select: text; 
}
#contact form textarea {
    resize: vertical;
    min-height: 120px;
}
#contact form input::placeholder, 
#contact form textarea::placeholder {
    color: #aaa;
    font-weight: 400;
}
#contact form input:focus, 
#contact form textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(200, 165, 138, 0.3); 
}
#contact form button { width: 100%; border: none; cursor: pointer; }
.form-feedback { padding: 1rem; margin-bottom: 1rem; border-radius: 8px; text-align: center; font-weight: 600; }
.form-feedback.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-feedback.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ==================== FOOTER ==================== */
.footer { background: var(--footer-bg); color: #ccc; font-size: 0.9rem; }
.footer-content { padding: 5rem 1.5rem 4rem; }
.footer-content .grid { grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: 3rem; align-items: start; }
.footer-col .slogan { font-style: italic; color: #aaa; margin-top: 1rem; }
.logo-footer .logo-image { height: 60px; }
.social-icons-footer { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-icons-footer a { color: #fff; font-size: 1.3rem; transition: color 0.3s, transform 0.3s; }
.social-icons-footer a:hover { color: var(--primary-color); transform: translateY(-3px); }
.footer-col .title { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { transition: color 0.3s, padding-left 0.3s; }
.footer-col ul li a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-col p { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; }
.footer-col .horarios { margin-top: 1rem; border-left: 3px solid var(--primary-color); padding-left: 1rem; }
.footer-col.footer-col-center { text-align: center; }
.footer-col .seals { display: inline-flex; align-items: center; gap: 0.75rem; background: #333; padding: 0.75rem 1rem; border-radius: 8px; }
.seals i { color: #25D366; font-size: 1.5rem; }
.seals span { font-weight: 600; color: #fff; }
.footer-bottom { background: #111; text-align: center; padding: 1.5rem 0; font-size: 0.8rem; color: #888; border-top: 1px solid #333; }
.developer-credit { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 1rem; color: #aaa; transition: color 0.3s; }
.developer-credit:hover { color: #fff; }
.developer-credit span { font-size: 0.8rem; }
.developer-credit img { height: 24px; width: auto; }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .features-grid, .products-grid { grid-template-columns: 1fr 1fr; }
    .footer-content .grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
    body.menu-expanded { overflow: hidden; }
    .container { padding: 0 1rem; }
    .title { font-size: 2rem; }
    .section { padding: 4rem 0; }

    :root { --mobile-header-height: 4.5rem; }
    main .section:first-of-type { padding-top: var(--mobile-header-height); }
    #header { background: var(--body-color); box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
    #header:not(.scrolled) { background: transparent; box-shadow: none; }
    #header:not(.scrolled) .top-bar { background: rgba(34, 34, 34, 0.8); }

    .top-bar { display: none; }
    #header .main-nav { height: var(--mobile-header-height); }
    #header.scrolled .main-nav { height: var(--mobile-header-height); }
    
    .logo-container .logo-image { height: 50px; }
    #header.scrolled .logo-container .logo-image { height: 50px; }

    .toggle { display: block; }
    .bar { background-color: #333; }
    #header:not(.scrolled) .bar { background-color: #fff; }
    .btn-quote { display: none; }
    .menu { position: fixed; top: 0; right: 0; height: 100vh; width: 80vw; background: var(--body-color); transform: translateX(100%); transition: transform 0.3s ease-in-out; display: block; box-shadow: -5px 0 15px rgba(0,0,0,0.1); padding-top: var(--mobile-header-height); }
    body.menu-expanded .menu { transform: translateX(0); }
    .menu ul { flex-direction: column; padding: 2rem; gap: 1.5rem; align-items: flex-start; }
    .menu ul li a.title { font-size: 1.2rem; color: #333; text-shadow: none; }
    .menu ul li a.title::after { bottom: -2px; }
    
    #home { min-height: 80vh; }
    #home .hero-content { padding: 0 0.5rem; }
    #home .title { font-size: 2.1rem; line-height: 1.35; }
    #home p { font-size: 1rem; }
    
    .product-card img { height: 300px; object-position: center top; }
    .portfolio-item, .product-card { cursor: pointer; }
    
    #about .container, #contact .container { grid-template-columns: 1fr; text-align: center; }
    #about .image { order: 1; margin-bottom: 2rem; }
    #about .text { order: 2; }
    #contact .text { order: 1; }
    #contact .form-container { order: 2; }
    #contact .whatsapp-contact-btn { margin: 0 auto; }

    .features-grid, .products-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 1rem 0; }
    
    .footer-content .grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-col { padding-bottom: 1rem; }
    .footer-col .logo-footer { display: inline-flex; margin: 10px auto 1rem auto; }
    .footer-col.footer-col-center { padding-top: 1rem; }
    .footer-col .seals { margin-top: -10px; }
    .footer-col .slogan, .social-icons-footer { justify-content: center; }
    .footer-col p { justify-content: center; }
    .footer-col .horarios { border: none; padding: 0; }
    
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 24px; }
}

/* ==================== PÁGINA DE ERRO (404) ==================== */
#error-page {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Usa o mesmo fundo da página inicial para consistência */
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/fundo.webp') no-repeat center center/cover;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Começa escondido embaixo da tela */
    left: 0;
    width: 100%;
    background-color: #fff; /* Fundo branco ou use a cor do seu tema */
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px 0;
    transition: bottom 0.5s ease-in-out; /* Animação suave */
}

.cookie-banner.show {
    bottom: 0; /* Sobe para a tela */
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.cookie-btn {
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
}


#error-page .error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0;
}

#error-page .title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

#error-page p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#error-page .button {
    background: #fff;
    color: var(--title-color);
    box-shadow: none;
}

#error-page .button:hover {
    background: #f0f0f0;
    color: #000;
}

/* ==================== SEÇÃO DE ATENDIMENTO (SEO LOCAL) ==================== */
#atendimento {
    background: var(--dark-beige-bg);
}
.cities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.city-tag {
    background: var(--body-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.city-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== SEÇÃO DE FAQ (SEO) ==================== */
#faq {
    background: var(--light-beige-bg);
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--body-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.7;
}