/* --- PREVENÇÃO DE OVERFLOW E RESET BÁSICO --- */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* --- VARIÁVEIS DE CORES E FONTES --- */
:root {
    --primary-color: #2e4a1f;
    --secondary-color: #0a9396;
    --accent-color: #e9d8a6;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --border-color: #dee2e6;
    --font-family: 'Poppins', sans-serif;
    --header-height: 96px; /* was 80px - maior para acomodar o logo */
}

/* --- TEMA ESCURO (DARK MODE) --- */
[data-theme="dark"] {
    --primary-color: #94d2bd;
    --secondary-color: #0a9396;
    --accent-color: #e9d8a6;
    --text-color: #f8f9fa;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --border-color: #333;
}

/* --- ESTILOS GLOBAIS --- */
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER E NAVEGAÇÃO --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background-color 0.3s;
}
[data-theme="dark"] .header {
    box-shadow: 0 2px 10px rgba(255,255,255,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px; /* was 50px - logo do cabeçalho maior */
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle, .mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
}
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.mobile-menu-toggle {
    display: none;
}

/* --- SEÇÃO HERO --- */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: var(--header-height);
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.slide-content .btn {
    background-color: var(--accent-color);
    color: #333;
}

/* --- SEÇÃO SOBRE --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- SEÇÃO SERVIÇOS --- */
.services-section {
    background-color: var(--surface-color);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: var(--bg-color);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- SEÇÃO DEPOIMENTOS --- */
.testimonials-slider .swiper-slide {
    padding: 20px;
}
.testimonial-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.testimonial-card h4 {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- SEÇÃO GALERIA --- */
.gallery-section {
     background-color: var(--surface-color);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.gallery-grid a {
    overflow: hidden;
    border-radius: 8px;
}
.gallery-grid img {
    transition: transform 0.4s ease;
}
.gallery-grid a:hover img {
    transform: scale(1.1);
}

/* --- SEÇÃO BLOG --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.blog-card-content {
    padding: 25px;
}
.blog-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}
.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- SEÇÃO CONTATO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form-container, .contact-info-container {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
}
.contact-info-container p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.contact-info-container i {
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
.contact-info-container a {
    color: var(--text-color);
    text-decoration: none;
}
.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
}
[data-theme="dark"] .footer {
    background-color: #1e1e1e;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--primary-color);
}
.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- ELEMENTOS FLUTUANTES --- */
.back-to-top, .whatsapp-float {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
}
.back-to-top {
    bottom: 80px;
    background-color: var(--primary-color);
    opacity: 0;
    pointer-events: none;
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
.whatsapp-float {
    bottom: 20px;
    background-color: #25D366;
}

/* --- BANNER DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1100;
    transition: bottom 0.5s ease;
}
.cookie-banner.show {
    bottom: 0;
}
.cookie-banner a {
    color: var(--primary-color);
}
.cookie-accept-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .slide-content h1 { font-size: 2.2rem; }
    
    .mobile-menu-toggle { display: block; z-index: 1001; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--surface-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        padding-top: 100px;
    }
    .main-nav.active {
        right: 0;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    .nav-links li {
        margin: 20px 0;
    }
}

/* ---- Ajustes adicionais ---- */
/* Rodapé: mantém +30% de ampliação do logo */
.footer-logo {
  transform: scale(1.3);
  transform-origin: left center;
  display: inline-block;
}
