/* ==========================================================================
   RESET & VARIÁVEIS - TEMA EDITORIAL CLARO
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
video,
iframe,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    /* Paleta White / Editorial */
    --bg-white: #ffffff;
    --bg-light: #f5f6f8;
    --text-dark: #1f1f1f;
    /* Acessível e não 'tão preto' */
    --text-dim: #666666;
    --accent: #f5c627;
    /* Amarelo Solar solicitado */
    --accent-hover: #e0b420;
    --accent-dark: #cc9900;
    --border-color: #e5e5e5;

    /* Tipografia */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;

    /* Espaçamentos e Utilitários */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-accent {
    color: var(--accent);
}

.text-accent-dark {
    color: var(--accent-dark);
}

.text-dark {
    color: var(--text-dark);
}

.text-dim {
    color: var(--text-dim);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: max(5%, 1.25rem);
    padding-right: max(5%, 1.25rem);
    /* Removido overflow: hidden para evitar cortes laterais internos, gerenciado no body */
}

.text-center {
    text-align: center;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.section-padding {
    padding: var(--space-xl) 0;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--text-dark);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 1rem auto 0;
}

.limits-width {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botões */
.btn-primary,
.btn-dark,
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(245, 198, 39, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 198, 39, 0.4);
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-primary.large,
.btn-dark.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.btn-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   NAVEGAÇÃO
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.25rem 0;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--bg-white);
    border-color: var(--accent);
}

/* ==========================================================================
   HERO 3.3 (ASSIMETRIA BRUTAL)
   ========================================================================== */
.hero-3-3 {
    min-height: 100vh;
    padding: 8rem 0 4rem 5%;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    overflow-x: clip;
    width: 100%;
}

.h3-3-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.h3-3-content {
    flex: 0 0 40%;
    padding-right: 4rem;
    position: relative;
    z-index: 10;
}

.h3-3-title {
    font-size: clamp(4rem, 5.5vw, 6rem);
    line-height: 0.9;
    white-space: nowrap;
    /* Força o texto a vazar (bleed) pela tela */
    position: relative;
    margin-bottom: 3rem;
}

.h3-3-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--accent);
    top: -50px;
    left: -50px;
    z-index: -1;
    mix-blend-mode: multiply;
}

.h3-3-image-side {
    flex: 0 0 55%;
    position: relative;
    height: 80vh;
}

.h3-3-image-container {
    width: 100%;
    height: 100%;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    /* Quebra a forma retangular */
    position: relative;
    overflow: hidden;
}

/* Efeito Fotográfico: Flare Dourado reproduzindo o sol na cor #f5c627 */
.h3-3-image-container::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(245, 198, 39, 0.7) 0%, rgba(245, 198, 39, 0.2) 40%, rgba(245, 198, 39, 0) 70%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

.h3-3-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    mix-blend-mode: color;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.h3-3-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* A classe hero-img será targeteada pelo main-v2.js para overlay/parallax logo abaixo da clip-path */
}

.h3-3-metrics {
    position: absolute;
    bottom: 4rem;
    left: -10%;
    /* Puxa para dentro do texto */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media(max-width: 1024px) {
    .hero-3-3 {
        padding-top: 6rem;
        padding-left: max(5%, 1.25rem);
        padding-right: max(5%, 1.25rem);
    }

    .h3-3-wrapper {
        flex-direction: column;
    }

    .h3-3-content {
        flex: 0 0 100%;
        padding-right: 0;
    }

    .h3-3-circle {
        top: -60px;
        left: -80px;
        width: 220px;
        height: 220px;
    }

    .h3-3-image-side {
        width: 100%;
        flex: 0 0 100%;
        height: 400px;
        margin-top: 2rem;
    }

    .h3-3-image-container {
        clip-path: none;
        border-radius: var(--radius);
        overflow: hidden;
    }

    .h3-3-title {
        white-space: normal;
    }

    .h3-3-metrics {
        left: 1rem;
        bottom: 1rem;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}

/* ==========================================================================
   MARQUEE (BARRA DE PROVA)
   ========================================================================== */
.proof-bar {
    background: var(--accent);
    padding: 1.25rem 0;
    overflow: hidden;
    color: var(--text-dark);
}

.marquee {
    display: flex;
    width: 100%;
    user-select: none;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%;
    animation: scroll-left 20s linear infinite;
}

.proof-item {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0 2rem;
}

.separator {
    opacity: 0.3;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   PROBLEMA SECTION
   ========================================================================== */
.problem-section {
    width: 100%;
    /* Garante que o container interno não exceda */
}

.problem-inner {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.body-large {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text-dim);
    line-height: 1.7;
}

/* ==========================================================================
   BENEFÍCIOS (GRID DE CARDS CLAROS)
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--bg-light);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
}

.benefit-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.benefit-desc {
    color: var(--text-dim);
}

/* ==========================================================================
   COMO FUNCIONA
   ========================================================================== */
.how-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    overflow: hidden;
    /* Evita vazamento */
}

@media (max-width: 480px) {
    .step-card {
        gap: 1rem;
    }
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    line-height: 1;
    min-width: 50px;
}

.step-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-info p {
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .how-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   PORTFOLIO CLARO
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {

    .swiper-wrapper.portfolio-grid,
    .swiper-wrapper.testi-grid {
        display: flex;
        gap: 0;
    }

    .swiper-portfolio .swiper-slide,
    .swiper-testimonials .swiper-slide {
        height: auto;
    }
}

@media (min-width: 769px) {

    .swiper-wrapper.portfolio-grid,
    .swiper-wrapper.testi-grid {
        display: grid !important;
        gap: 2rem;
        transform: none !important;
        width: 100%;
    }

    .swiper-wrapper.portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .swiper-wrapper.testi-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .swiper-portfolio .swiper-slide,
    .swiper-testimonials .swiper-slide {
        width: auto !important;
        height: auto !important;
        margin-right: 0 !important;
    }

    .swiper-portfolio .swiper-pagination,
    .swiper-testimonials .swiper-pagination {
        display: none !important;
    }
}

/* Customização dos Bullets Premium (Cápsulas Fixas) Mobile */
.swiper-portfolio,
.swiper-testimonials {
    padding-bottom: 3rem !important;
    /* Espaço para as cápsulas / bullets */
}

.swiper-pagination-bullet {
    width: 16px !important;
    height: 4px !important;
    border-radius: 4px !important;
    background-color: var(--text-dim) !important;
    opacity: 0.3 !important;
    transition: background-color 0.3s ease, opacity 0.3s ease !important;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent) !important;
    opacity: 1 !important;
}

.port-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.port-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.port-img {
    height: 250px;
    overflow: hidden;
}

.port-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.port-card:hover .port-img img {
    transform: scale(1.05);
}

.port-info {
    padding: 2rem;
}

.port-tag {
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.port-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.port-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ==========================================================================
   TABELA DIFERENCIAIS
   ========================================================================== */
.table-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.d-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.d-row:last-child {
    border-bottom: none;
}

.d-col {
    padding: 1.5rem;
}

.d-header {
    background: var(--bg-light);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
}

.d-feature {
    font-weight: 600;
    border-right: 1px solid var(--border-color);
}

.d-ersolar {
    background: rgba(245, 198, 39, 0.1);
    font-weight: 600;
    border-right: 1px solid var(--border-color);
}

.d-header .d-ersolar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.d-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.d-outras {
    color: var(--text-dim);
}

/* Mobile Hint for Carousel */
.mobile-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    animation: pulse-horizontal 2s infinite;
}

@keyframes pulse-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    .mobile-hint {
        display: flex;
    }

    .container {
        padding-left: 24px;
        /* Aumentado para garantir respiro */
        padding-right: 24px;
        overflow: visible;
        /* Permite sombras e evita cortes bruscos internos */
    }

    .problem-inner,
    .faq-accordion,
    .how-layout {
        width: 100%;
        max-width: 100%;
    }

    /* Garante que o texto quebre e não vaze, sem hifenizar */
    .section-title,
    .body-large,
    .faq-btn span,
    .step-info p,
    .step-info h4 {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }

    /* FAQ Button Adjustment */
    .faq-btn {
        padding-right: 2rem;
        /* Espaço para o ícone não sobrepor texto */
    }

    /* Tabela scrollable */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        /* Space for scrollbar if visible */
        /* Fade effect on the right to indicate more content */
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }

    /* Force the table to be wide enough to require scrolling */
    .d-table {
        min-width: 700px;
        /* Adjust based on content needs */
    }

    /* Ensure rows maintain the grid structure */
    .d-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* Keep header visible */
    .d-header {
        display: grid;
        /* Was none in previous mobile style */
    }

    /* Reset column styles to match desktop but maybe tighter padding */
    .d-col {
        padding: 1rem;
    }

    .d-feature {
        border-right: 1px solid var(--border-color);
        background: transparent;
        border-bottom: none;
    }

    .d-ersolar {
        border-right: 1px solid var(--border-color);
        background: rgba(245, 198, 39, 0.1);
        border-bottom: none;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Remove the pseudo-elements added for card view */
    .d-ersolar::before {
        content: none;
    }

    .d-outras {
        background: transparent;
    }

    .d-outras::before {
        content: none;
    }
}

/* ==========================================================================
   DEPOIMENTOS 
   ========================================================================== */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testi-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    border: 1px solid var(--border-color);
}

.testi-icon {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.3;
}

.testi-text {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testi-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--accent-dark);
    border: 1px solid var(--border-color);
}

.testi-author-info {
    display: flex;
    flex-direction: column;
}

.testi-author-info strong {
    font-size: 1rem;
}

.testi-author-info span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    display: grid;
    /* Grid para evitar quebra de linha com ícone */
    grid-template-columns: 1fr 24px;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
}

.faq-btn span {
    padding-right: 0.5rem;
    /* Respiro */
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-dark);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-content p {
    padding-bottom: 1.5rem;
    color: var(--text-dim);
}

/* ==========================================================================
   CTA FINAL COLOR BLOCK
   ========================================================================== */
.final-cta {
    background-color: var(--accent);
}

.cta-actions {
    display: flex;
    justify-content: center;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot {
    opacity: 0.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 2rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

/* Utils e Animações GSAP */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}