/*
Projeto CSS para o Tema do Website Apex Geradores
Desenvolvedor: Criartweb - Consultoria e Desenvolvimento WEB
Data: Novembro 2025
Contato: Douglas Rick - 19 9.8343-8372
*/
:root {
    --primary: #62B38E;
    --secondary: #4B6475;
    --dark: #1a242c;
    --light-gray: #f5f5f5;
    --text-main: #1e2933;
    --accent: #62B38E;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

/* Container padrão */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 1 - BARRA DE ROLAGEM ANTES DA TOP HEADER */
.top-marquee {
    width: 100%;
    background: linear-gradient(90deg, #10171d, #24313d);
    color: #f8fafc;
    font-size: 0.85rem;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-marquee-inner {
    display: inline-block;
    padding: 8px 0;
    animation: marquee 30s linear infinite;
}

.top-marquee-inner span {
    margin-right: 42px;
    opacity: 0.9;
}

.top-marquee-inner i {
    color: var(--primary);
    margin-right: 6px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 2 - HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(15, 23, 32, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.header-left .social-icons a {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-right: 8px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.header-left .social-icons a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.business-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 6px;
    display: inline-block;
}

.business-status-text {
    font-weight: 500;
}

.business-status-online {
    color: #bbf7d0;
}

.business-status-offline {
    color: #fecaca;
}

/* Logo + Nav */
.main-nav-wrapper {
    background-color: #0b1117;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f9fafb;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: radial-gradient(circle at 30% 20%, #62B38E, #1f2933);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #f9fafb;
    font-weight: 700;
}

.logo img {
    max-height: 50px;
    border-radius: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

nav a {
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: #ffffff;
    border-color: var(--primary);
}

.nav-cta {
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #4ade80);
    color: #022c22;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
    font-size: 0.85rem;
}

.nav-cta i {
    font-size: 0.8rem;
}

/* Menu Hamburguer */
.hamburger {
    display: none;
    flex-direction: column;
    width: 28px;
    height: 18px;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: #e5e7eb;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* HERO */
.hero {
    background: radial-gradient(circle at top left, rgba(98, 179, 142, 0.2), transparent 45%),
        radial-gradient(circle at bottom right, rgba(75, 100, 117, 0.55), transparent 50%),
        linear-gradient(135deg, #050810, #111827);
    color: #f9fafb;
    padding: 52px 0 68px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 10%, rgba(148, 163, 184, 0.35) 0, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(15, 23, 42, 0.75) 0, transparent 60%);
    opacity: 0.55;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.8rem;
    color: #e5e7eb;
    margin-bottom: 10px;
}

.hero-badge i {
    color: var(--primary);
}

.hero-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5f5;
    margin-bottom: 16px;
    max-width: 560px;
}

.hero-keypoints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-keypoints span {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d1d5db;
}

.hero-keypoints i {
    color: var(--primary);
    font-size: 0.85rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #22c55e);
    color: #022c22;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: .2s;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: #ffffff;
}

.hero-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

.hero-meta i {
    color: var(--primary);
    margin-right: 6px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-panel {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.hero-panel-title {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 6px;
    font-weight: 500;
}

.hero-panel-list {
    list-style: none;
    font-size: 0.8rem;
    color: #cbd5e1;
    display: grid;
    gap: 4px;
}

.hero-panel-list li i {
    color: var(--primary);
    margin-right: 6px;
}

.hero-photo-placeholder {
    height: 300px;
    /*border-radius: 18px;*/
    background: linear-gradient(135deg, rgba(98, 179, 142, 0.15), rgba(15, 23, 42, 0.9));
    /*border: 1px dashed rgba(148, 163, 184, 0.55);*/
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
    /*padding: 12px;*/
}

.hero-photo-placeholder span {
    display: block;
    max-width: 220px;
}

/* Seções genéricas */
section {
    padding: 48px 0;
}

.section-light {
    background-color: var(--light-gray);
}

.section-dark {
    background: #0b1117;
    color: #e5e7eb;
}

.section-gradient {
    background: linear-gradient(135deg, #0b1720, #111827);
    color: #e5e7eb;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 24px;
    max-width: 640px;
}

.section-subtitle.section-subtitle-light {
    color: #9ca3af;
}

/* 1ª DOBRA - BENEFÍCIOS */
.benefits-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.benefit-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px 16px 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(98, 179, 142, 0.08);
    color: var(--secondary);
    margin-bottom: 4px;
}

.benefit-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

.benefit-text {
    font-size: 0.9rem;
    color: #4b5563;
}

.benefit-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(98, 179, 142, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translate(20px, 20px);
}

.benefit-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* 2ª DOBRA - SEJA CLIENTE + CONTATO */
.client-grid {
    display: grid;
    gap: 26px;
}

.client-text-block {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.client-text-block p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.client-text-block ul {
    font-size: 0.9rem;
    color: #4b5563;
    margin-left: 16px;
    margin-bottom: 14px;
}

.client-text-block ul li {
    margin-bottom: 4px;
}

.client-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.btn-whatsapp {
    background: #22c55e;
    color: #052e16;
}

.btn-whatsapp i {
    color: #052e16;
}

/* Formulário de Contato */
.contact-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 14px;
}

.form-grid {
    display: grid;
    gap: 10px;
}

.form-row {
    display: grid;
    gap: 10px;
}

.form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: block;
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 2px;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
    border-radius: 12px;
    min-height: 80px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(98, 179, 142, 0.4);
}

.form-error {
    font-size: 0.75rem;
    color: #b91c1c;
    margin-top: 2px;
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.form-footer small {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Setores - ENERGIA SOB DEMANDA (2ª DOBRA CONTINUAÇÃO) */
.section-gradient .section-subtitle {
    color: #9ca3af;
}

.sectors-carousel-wrapper {
    margin-top: 18px;
    position: relative;
}

.sectors-track {
    display: flex;
    gap: 14px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.sector-card {
    flex: 0 0 72%;
    background: radial-gradient(circle at top left, rgba(98, 179, 142, 0.08), rgba(15, 23, 42, 0.96));
    border-radius: 18px;
    padding: 14px 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.sector-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    color: var(--primary);
    margin-bottom: 6px;
}

.sector-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.sector-text {
    font-size: 0.8rem;
    color: #d1d5db;
}

.sectors-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.sectors-controls button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.sectors-controls button:hover {
    background: rgba(15, 23, 42, 1);
    transform: translateY(-1px);
}

/* 3ª DOBRA - SOBRE APEX GERADORES */
.about-grid {
    display: grid;
    gap: 20px;
}

.about-text {
    font-size: 0.95rem;
    color: #4b5563;
    display: grid;
    gap: 10px;
}

.about-highlight {
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    font-size: 0.9rem;
    color: #374151;
}

.about-photo {
    background: linear-gradient(135deg, rgba(98, 179, 142, 0.09), rgba(75, 100, 117, 0.25));
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    padding: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

/* 4ª DOBRA - SERVIÇOS */
.services-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 16px 16px 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 6px;
}

.service-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    font-weight: 600;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-text {
    font-size: 0.9rem;
    color: #4b5563;
}

.service-list {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 6px;
    margin-left: 16px;
}

.service-list li {
    margin-bottom: 3px;
}

.service-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 4px;
}

/* Footer */
footer {
    background: #020617;
    color: #e5e7eb;
    padding-top: 24px;
    padding-bottom: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-main {
    display: grid;
    gap: 18px;
    align-items: center;
    padding-bottom: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    max-height: 30px;
    border-radius: 0;
}

.footer-logo-text {
    display: grid;
    gap: 2px;
}

.footer-logo-text strong {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-logo-text span {
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.82rem;
}

.footer-status .business-status-text {
    font-weight: 500;
}

.footer-status small {
    font-size: 0.7rem;
    color: #9ca3af;
}

.footer-bottom {
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
}

.footer-bottom span {
    display: block;
    margin-top: 2px;
}

#user-ip-display {
    font-weight: 500;
    color: #e5e7eb;
}

/* WhatsApp Flutuante */
.whatsapp-floating {
    position: fixed;
    left: 16px;
    bottom: 18px;
    z-index: 9999;
}

.whatsapp-floating a {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #052e16;
    font-size: 1.7rem;
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-floating a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 50px rgba(22, 163, 74, 0.8);
}

/* Animação ao rolar */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (min-width: 640px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
        align-items: center;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .client-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    }

    .about-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        align-items: center;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sector-card {
        flex: 0 0 32%;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .footer-status {
        align-items: flex-end;
        text-align: right;
    }

    .footer-bottom span {
        display: inline;
    }
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        bottom: auto;
        background: #020617;
        padding: 10px 16px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        max-height: 0;
        overflow: hidden;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        transition: max-height 0.22s ease;
        z-index: 999;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    nav.open {
        max-height: 260px;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hamburger {
        display: flex;
    }
}

.section-white {
    background: #ffffff;
    border-bottom: 2px solid #d1d5db;
}

.section-gray {
    background: #f3f4f6;
    border-bottom: 2px solid #d1d5db;
}

.contact-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    border: 1px solid #e5e7eb;
}

.contact-box i {
    font-size: 38px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.contact-box h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--secondary);
}

.contact-box p {
    color: #4b5563;
    margin-bottom: 18px;
}

.contact-small {
    display: block;
    margin-top: 14px;
    font-size: .8rem;
    color: #6b7280;
}

.center-text {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.left-align {
    text-align: left !important;
}

#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;

  background: var(--primary);
  color: #ffffff;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .25s ease-in-out;
  z-index: 9999;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background: #4B6475;
}

@media (max-width: 480px) {
  .whatsapp-floating {
    left: 12px;
    bottom: 16px;
  }
}
