/* =================================================================
   SITES SIMPLES CMS — main.css v3.0
   CAMADA 1: Base Estrutural (Reset, Grid, Layout)
   Alinhado 100% com as classes geradas pelo _body.php v3.0
   NUNCA contém cores, fontes ou animações (isso é tema.css)
   ================================================================= */

/* -----------------------------------------------------------------
   RESET & GLOBAIS
   ----------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a { text-decoration: none; }

ul, ol { list-style: none; }

/* Container universal */
.ss-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -----------------------------------------------------------------
   NAVBAR
   ----------------------------------------------------------------- */
.ss-navbar {
    width: 100%;
}

.ss-navbar .ss-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
}

/* Logo */
.ss-navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ss-navbar-logo img {
    object-fit: contain;
    /* largura/altura controladas via style inline (logo_largura / logo_altura do JSON) */
}

/* Hamburguer */
.ss-navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    flex-shrink: 0;
}
.ss-navbar-toggle span {
    width: 26px;
    height: 3px;
    border-radius: 2px;
    display: block;
    transition: all 0.3s;
}
.ss-navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.ss-navbar-toggle.active span:nth-child(2) { opacity: 0; }
.ss-navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Nav content: menu + social */
.ss-navbar-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Menu */
.ss-navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ss-navbar-menu li a {
    display: block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

/* Redes sociais na navbar */
.ss-navbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ss-navbar-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

/* -----------------------------------------------------------------
   HERO / CARROSSEL
   ----------------------------------------------------------------- */
.ss-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Track: contém todos os slides.
   KIMERA Fase 2: altura por proporcao 21:9 (panoramico), em vez de
   altura fixa em px. A altura segue a largura, escalavel a qualquer
   tela. (A proporcao especifica de mobile vem na Fase 3.) */
.ss-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

/* Slide individual */
.ss-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.ss-carousel-slide.active {
    opacity: 1;
    pointer-events: all;
}

/* Fallback: primeiro slide visível antes do JS inicializar */
.ss-carousel-slide:first-child {
    opacity: 1;
    pointer-events: all;
}
/* Quando QUALQUER slide tem .active, o first-child sem .active some.
   :has() detecta se existe um irmão .active no track.            */
.ss-carousel-track:has(.ss-carousel-slide.active) .ss-carousel-slide:first-child:not(.active) {
    opacity: 0;
    pointer-events: none;
}

/* Fundo do slide (background-image) */
.ss-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Overlay escuro sobre o fundo */
.ss-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

/* Conteúdo do slide */
.ss-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
    margin: 0 auto;
}
.ss-slide-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    margin-bottom: 16px;
    line-height: 1.2;
}
.ss-slide-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 28px;
    max-width: 600px;
}

/* Botões */
.ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
}
.ss-btn:hover { transform: translateY(-2px); }
.ss-btn-primary { /* cores no tema.css */ }

/* Botões de navegação do carrossel */
.ss-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
}
.ss-carousel-prev { left: 16px; }
.ss-carousel-next { right: 16px; }

/* Dots do carrossel */
.ss-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.ss-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}
.ss-dot.active { width: 28px; border-radius: 5px; }

/* -----------------------------------------------------------------
   SEÇÕES GERAIS
   ----------------------------------------------------------------- */
.ss-section {
    padding: 80px 20px;
    width: 100%;
}

.ss-section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 48px;
    line-height: 1.25;
}

/* -----------------------------------------------------------------
   PRODUTOS
   ----------------------------------------------------------------- */
.ss-produtos { /* background no tema.css */ }

.ss-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.ss-product-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.ss-product-card:hover {
    transform: translateY(-6px);
}

.ss-product-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.ss-product-info {
    padding: 18px 20px 22px;
}

.ss-product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ss-product-desc {
    font-size: 0.92rem;
    line-height: 1.55;
}

/* -----------------------------------------------------------------
   GALERIA
   ----------------------------------------------------------------- */
.ss-galeria { /* background no tema.css */ }

.ss-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.ss-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.ss-gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.ss-gallery-item:hover .ss-gallery-img { transform: scale(1.05); }

/* -----------------------------------------------------------------
   SOBRE
   ----------------------------------------------------------------- */
.ss-sobre { /* background no tema.css */ }

.ss-about-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.ss-about-text {
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 40px;
}

.ss-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.ss-feature-item {
    padding: 28px 18px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.ss-feature-item:hover { transform: translateY(-5px); }

.ss-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.ss-feature-title {
    font-size: 0.95rem;
    font-weight: 700;
}

/* -----------------------------------------------------------------
   DEPOIMENTOS
   ----------------------------------------------------------------- */
.ss-depoimentos { /* background no tema.css */ }

.ss-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.ss-testimonial-card {
    padding: 28px;
    border-radius: 14px;
    position: relative;
}

.ss-testimonial-text {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 20px;
    font-style: italic;
}

.ss-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ss-testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ss-testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.ss-testimonial-cargo {
    font-size: 0.82rem;
    opacity: 0.72;
}

/* -----------------------------------------------------------------
   CTA
   ----------------------------------------------------------------- */
.ss-cta {
    text-align: center;
    padding: 80px 20px;
}

.ss-cta-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 14px;
    line-height: 1.25;
}

.ss-cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.ss-cta-btn {
    font-size: 1.05rem;
    padding: 16px 44px;
}

/* -----------------------------------------------------------------
   CONTATO
   ----------------------------------------------------------------- */
.ss-contato { /* background no tema.css */ }

.ss-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* UNIDADE VISUAL: todos os cards de contato têm a mesma estrutura */
.ss-contact-card {
    background: #fff;
    padding: 28px 22px;
    border-radius: 14px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.ss-contact-card:hover { transform: translateY(-4px); }

.ss-contact-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.ss-contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ss-contact-card p {
    font-size: 0.93rem;
    line-height: 1.55;
}

/* -----------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------- */
.ss-footer {
    padding: 60px 20px 30px;
}

.ss-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.ss-footer-col { display: flex; flex-direction: column; gap: 14px; }

.ss-footer-logo {
    object-fit: contain;
    /* largura/altura via style inline */
}

.ss-footer-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    opacity: 0.8;
}

.ss-footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ss-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ss-footer-links a {
    font-size: 0.92rem;
    transition: opacity 0.2s;
}
.ss-footer-links a:hover { opacity: 1; }

.ss-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ss-footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: transform 0.2s, background 0.2s;
}
.ss-footer-social a:hover { transform: translateY(-3px); }

.ss-footer-bottom {
    text-align: center;
    padding-top: 28px;
    font-size: 13px;
    border-top-width: 1px;
    border-top-style: solid;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ss-footer-credit {
    opacity: 0.6;
    font-size: 12px;
}
.ss-footer-credit a { font-weight: 700; }

/* -----------------------------------------------------------------
   WHATSAPP FLUTUANTE
   ----------------------------------------------------------------- */
.ss-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    z-index: 9998;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ss-whatsapp-float:hover { transform: scale(1.12); }

/* -----------------------------------------------------------------
   RESPONSIVO
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Navbar mobile */
    .ss-navbar-toggle { display: flex; }

    .ss-navbar-content {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.2s;
        gap: 0;
        z-index: 999;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    .ss-navbar-content.active {
        max-height: 600px;
        padding: 12px 0 16px;
    }

    .ss-navbar-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .ss-navbar-menu li { width: 100%; }
    .ss-navbar-menu li a {
        padding: 12px 24px;
        border-radius: 0;
        width: 100%;
    }

    .ss-navbar-social {
        padding: 10px 24px 0;
    }

    /* Hero — KIMERA Fase 2: altura por aspect-ratio (definido acima).
       A proporcao propria de mobile (4:5) entra na Fase 3. */
    .ss-slide-content h1 { font-size: 1.7rem; }
    .ss-slide-subtitle { font-size: 0.95rem; }
    .ss-carousel-btn { width: 38px; height: 38px; font-size: 0.9rem; }

    /* Seções */
    .ss-section { padding: 56px 16px; }
    .ss-section-title { font-size: 1.5rem; margin-bottom: 32px; }

    /* Grids */
    .ss-products-grid,
    .ss-gallery-grid,
    .ss-testimonials-grid,
    .ss-contact-grid,
    .ss-footer-grid {
        grid-template-columns: 1fr;
    }

    .ss-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ss-features-grid { grid-template-columns: 1fr; }
    .ss-btn { padding: 12px 26px; font-size: 0.92rem; }
    .ss-cta-btn { padding: 13px 28px; }
}

/* =================================================================
   LIGHTBOX — adicionar ao final do main.css
   ================================================================= */
.ss-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ss-lightbox.active {
    opacity: 1;
}
.ss-lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ss-lightbox-image {
    max-width: 88vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    cursor: grab;
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
}
.ss-lightbox-image:active { cursor: grabbing; }
.ss-lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}
.ss-lightbox-close {
    position: fixed;
    top: 16px; right: 16px;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}
.ss-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

.ss-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}
.ss-lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.ss-lightbox-prev { left: 16px; }
.ss-lightbox-next { right: 16px; }

@media (max-width: 600px) {
    .ss-lightbox-nav { width: 38px; height: 38px; font-size: 13px; }
    .ss-lightbox-prev { left: 8px; }
    .ss-lightbox-next { right: 8px; }
}