/* =================================================================
   SITES SIMPLES CMS - main.css
   CAMADA 1: Base Estrutural (Grid, Layout, Reset)
   VERSÃO 4.1 (Ajustes de Logo e Ratio)
   ================================================================= */

/* --- RESET BÁSICO E GLOBAIS --- */
:root {
    /* Cores base para estrutura, podem ser sobrescritas no tema.css */
    --dark: #2C3E50;
    --light: #ECF0F1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
}

.site-container {
    width: 100%;
    background: white;
}

/* --- ESTRUTURA NAVBAR --- */
.ss-navbar {
    background: white;
    padding: 20px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ss-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.ss-logo {
    width: 180px; /* Largura é o limite */
    height: auto; /* <-- MUDANÇA: Altura automática */
    /* object-fit: contain; <-- MUDANÇA: Removido */
}

.ss-menu {
    list-style: none;
    display: flex;
    gap: 5px;
}

.ss-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 22px;
}

.ss-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.ss-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--dark);
}

/* --- ESTRUTURA CARROSSEL --- */
.ss-hero {
    position: relative;
    overflow: hidden;
}

.ss-carousel-container {
    position: relative;
    height: 500px; /* <-- MUDANÇA: Ajustado de 600px para 500px (proporção 21:9) */
    cursor: grab;
    user-select: none;
}
.ss-carousel-container:active { cursor: grabbing; }

.ss-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.ss-carousel-slide.active { opacity: 1; }

.ss-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ss-slide-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.ss-slide-content p { font-size: 1.3rem; margin-bottom: 30px; }

.ss-btn-primary {
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    font-size: 1.1rem;
}

.ss-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}
.ss-carousel-arrow.prev { left: 20px; }
.ss-carousel-arrow.next { right: 20px; }

.ss-carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ss-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}
.ss-carousel-dot.active { width: 30px; border-radius: 6px; }

/* --- ESTRUTURA SEÇÕES E GRIDS --- */
.ss-section { padding: 80px 20px; }
.ss-section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }

.ss-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.ss-product-card { background: white; border-radius: 12px; overflow: hidden; cursor: pointer; }
.ss-product-image { width: 100%; height: 250px; object-fit: cover; }
.ss-product-info { padding: 20px; }
.ss-product-title { font-size: 1.3rem; margin-bottom: 10px; }

.ss-about { background: var(--light); }
.ss-about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.ss-about-text { font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; }

.ss-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.ss-feature-item { background: white; padding: 30px 20px; border-radius: 8px; text-align: center; }
.ss-feature-item i { font-size: 2.5rem; margin-bottom: 15px; }

.ss-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.ss-gallery-item { border-radius: 12px; overflow: hidden; cursor: pointer; }
.ss-gallery-image { width: 100%; height: 300px; object-fit: cover; }
.ss-gallery-caption { background: white; padding: 15px; text-align: center; font-weight: 600; }

.ss-testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.ss-testimonial-card { padding: 30px; border-radius: 12px; position: relative; }
.ss-testimonial-quote { font-size: 3rem; position: absolute; top: 10px; left: 20px; }
.ss-testimonial-text { font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; position: relative; z-index: 1; }
.ss-testimonial-author { font-weight: bold; margin-bottom: 5px; }
.ss-testimonial-role { font-size: 0.9rem; }

.ss-cta { text-align: center; padding: 80px 20px; }
.ss-cta h2 { font-size: 2.5rem; margin-bottom: 20px; }
.ss-cta p { font-size: 1.2rem; margin-bottom: 30px; }
.ss-cta-button { padding: 18px 50px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.1rem; display: inline-block; }

.ss-contact { background: var(--light); }
.ss-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.ss-contact-item { background: white; padding: 30px; border-radius: 12px; text-align: center; }
.ss-contact-item i { font-size: 2.5rem; margin-bottom: 15px; }
.ss-contact-item h3 { margin-bottom: 10px; }

/* --- ESTRUTURA LIGHTBOX --- */
.ss-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000; overflow: hidden; }
.ss-lightbox.active { display: flex; align-items: center; justify-content: center; }
.ss-lightbox-content { position: relative; width: 100%; max-width: 900px; padding: 20px; user-select: none; }
.ss-lightbox-image { width: 100%; max-width: 800px; height: auto; margin: 0 auto; border-radius: 12px; cursor: grab; display: block; object-fit: contain; }
.ss-lightbox-image.dragging { cursor: grabbing; }
.ss-lightbox-close { position: fixed; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10001; }
.ss-lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10001; }
.ss-lightbox-nav.prev { left: 20px; }
.ss-lightbox-nav.next { right: 20px; }
.ss-lightbox-caption { text-align: center; margin-top: 20px; font-size: 1.2rem; }

/* --- ESTRUTURA WHATSAPP --- */
.ss-whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; z-index: 9998; text-decoration: none; }

/* --- ESTRUTURA RODAPÉ --- */
.ss-footer { padding: 60px 20px 30px; }
.ss-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.ss-footer-section h3 { margin-bottom: 20px; font-size: 1.3rem; }
.ss-footer-logo { 
    width: 150px; 
    height: auto; /* <-- MUDANÇA: Altura automática */ 
    object-fit: contain; 
}
.ss-footer-links { list-style: none; }
.ss-footer-links li { margin-bottom: 12px; }
.ss-footer-links a { text-decoration: none; }
.ss-social-grid { display: flex; gap: 15px; flex-wrap: wrap; }
.ss-social-item { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; font-size: 1.2rem; }
.ss-newsletter-form { display: flex; gap: 10px; margin-top: 15px; }
.ss-newsletter-form input { flex: 1; padding: 12px; border: none; border-radius: 6px; }
.ss-newsletter-form button { padding: 12px 25px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; }
.ss-footer-bottom { text-align: center; padding: 30px 0 40px; font-size: 14px; }
.ss-footer-bottom a { text-decoration: none; font-weight: bold; }

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .ss-menu-toggle { display: flex; }
    .ss-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: white; flex-direction: column;
        max-height: 0; overflow: hidden;
    }
    .ss-menu.active { max-height: 500px; }
    .ss-menu li a { padding: 15px; }
    .ss-carousel-container { 
        height: 400px; /* <-- MUDANÇA: Ajustado de 400px para 400px (já era responsivo) */
    } 
    .ss-slide-content h1 { font-size: 2rem; }
    .ss-section-title { font-size: 1.8rem; }
    .ss-carousel-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
}