/* =========================================================================
   STYLE.CSS - FTRM-10 Industrial Landing Page
   ========================================================================= */

:root {
    /* Paleta Principal */
    --primary: #1D407D;
    --primary-dark: #1B344D;
    --accent: #FFD700;
    --accent-hover: #FFC43D;
    --white: #FFFFFF;

    /* Cores de Apoio */
    --bg-light: #F3F6F9;
    --text-main: #1E293B;
    --text-muted: #475569;
    --danger: #E11D48;
    --border: #E2E8F0;

    /* Efeitos */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glow-accent: 0 0 15px rgba(255, 215, 0, 0.4);

    /* Transições */
    --transition: all 0.3s ease;
}

/* Reset Genérico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilitários */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.text-white-muted {
    color: rgba(255, 255, 255, 0.8);
}

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

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Tipografia Básica */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.85;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.logo-highlight {
    color: var(--accent);
}

.logo-separator {
    width: 2px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 2px;
}

.logo-treal {
    height: 26px;
    /* ajustando baseado em 1634x484 para não ficar enorme */
    width: auto;
    object-fit: contain;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-menu a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-dark);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary-dark);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--glow-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-transparent {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-transparent:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.whatsapp-link {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

.whatsapp-link:hover {
    background-color: #20BA56 !important;
    border-color: #20BA56 !important;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4) !important;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin: 1.5rem 0;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-bullets {
    margin-bottom: 2.5rem;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hero-bullets .icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Layouts Grids */
.section {
    padding: 100px 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Seção Problema - Cards */
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-warning {
    border-top-color: var(--danger);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Layout Split (Metade Imagem / Text) */
.layout-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.layout-split.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
    position: relative;
}

.split-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.box-shadow-heavy {
    box-shadow: var(--shadow-lg);
}

.tech-overlay {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--primary);
    color: var(--accent);
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 4px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Seção Benefícios (Dark) */
.beneficios {
    background-color: var(--primary-dark);
    position: relative;
}

.beneficios .section-title::after {
    background-color: var(--accent);
}

.benefit-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.benefit-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.benefit-box .icon-circle {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-box h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.benefit-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Steps / Como funciona */
.steps-list {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--glow-accent);
}

.step-content h4 {
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
}

/* Tabelas (Specs e Comparativo) */
.table-responsive {
    overflow-x: auto;
}

.tech-table,
.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.tech-table th,
.tech-table td,
.compare-table th,
.compare-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.tech-table th {
    background: var(--primary);
    color: var(--white);
    width: 40%;
}

.compare-table th {
    background: var(--primary-dark);
    color: var(--white);
}

.compare-table .highlight {
    background: var(--bg-light);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.compare-table th.highlight {
    background: var(--primary);
    color: var(--accent);
}

/* Logos */
.logos-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-holder {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
    background: var(--primary);
    padding: 80px 0;
    color: var(--white);
    scroll-margin-top: 80px; /* Adiciona espaçamento ao rolar para a seção */
}

.cta-banner h2 {
    color: var(--white);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.25rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--text-main);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.brand-col p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

.links-col ul li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.links-col ul li a:hover {
    color: var(--accent);
}

.contact-col p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animações Genéricas */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.popup-anim {
    animation: popup 2s infinite alternate;
}

@keyframes popup {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.dl-1 {
    transition-delay: 0.1s;
}

.dl-2 {
    transition-delay: 0.2s;
}

.dl-3 {
    transition-delay: 0.3s;
}

.dl-4 {
    transition-delay: 0.5s;
}

/* Responsividade */
@media (max-width: 992px) {

    .layout-split,
    .layout-split.reverse {
        flex-direction: column;
        gap: 2rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .split-image {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-bg {
        background-image: url('assets/hero_br_mobile.png');
    }

    .logo {
        gap: 10px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-separator {
        height: 24px;
    }

    .logo-treal {
        height: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .tech-table th {
        width: auto;
        display: block;
        background: var(--bg-light);
        color: var(--text-main);
    }

    .tech-table td {
        display: block;
        border-bottom: 2px solid var(--primary);
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Esconder o CTA do menu lateral no Desktop */
.menu-cta {
    display: none;
}


/* Mobile UX Improvements */
@media (max-width: 768px) {
  /* FIX: Evitar overflow horizontal e rolagem do eixo X (Zoom out) */
  html, body { overflow-x: hidden !important; max-width: 100vw; }

  /* 1. Hero / 5. Reorganizar / 7. Overlay */
  .hero { padding: 120px 16px 60px !important; margin: 0; min-height: auto; }
  .hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 1; }
  .hero-bg { display: block !important; opacity: 1 !important; z-index: 0; background-size: cover !important; background-position: center !important; }
  .hero-bg img, .hero-bg video { object-fit: cover !important; width: 100% !important; height: 100% !important; }
  .hero-content { display: flex; flex-direction: column; position: relative; z-index: 2; width: 100%; max-width: 100vw; box-sizing: border-box; }
  .hero-content h1 { font-size: 26px; line-height: 1.2; order: 1; margin-top: 0; }
  .hero-content p { font-size: 14px; margin-top: 10px; order: 2; }
  .hero-content .hero-actions { order: 3; margin-top: 20px; margin-bottom: 20px; display: flex; flex-direction: column; width: 100%; gap: 10px; }
  .hero-actions .btn-primary { display: none !important; }
  .hero-content ul { margin-top: 0; order: 4; width: 100%; }

  /* 2. CTA WhatsApp */
  .cta-whatsapp { position: fixed; bottom: 0; left: 0; width: 100%; max-width: 100vw; z-index: 999; border-radius: 0 !important; display: flex; justify-content: center; align-items: center; background: #25D366; padding: 14px; box-sizing: border-box; }
  .cta-whatsapp::after { content: 'Fale pelo WhatsApp'; font-size: 16px; font-weight: bold; margin-left: 8px; color: #fff; }
  body { padding-bottom: 70px; }

  /* 3. Menu Mobile */
  /* Ajuste de transição por Transform evita bug de scroll X do iOS e Android Chromes */
  .nav-menu { position: fixed; top: 0; right: 0 !important; left: auto !important; width: 80%; max-width: 300px; height: 100%; background: #fff; transform: translateX(100%); transition: transform 0.3s ease; padding: 24px; padding-top: 80px; z-index: 1000; flex-direction: column; align-items: flex-start; box-shadow: -2px 0 10px rgba(0,0,0,0.1); }
  .nav-menu.active { transform: translateX(0) !important; }
  .nav-menu a { display: block; padding: 14px 0; font-size: 16px; width: 100%; border-bottom: 1px solid #f0f0f0; }
  .nav-menu .menu-cta { background: #25D366; color: #fff !important; padding: 12px; text-align: center; margin-top: 20px; border-radius: 6px; width: 100%; display: block; border: none; font-weight: bold; }

  /* Garantir que .mobile-menu-btn fique acima do menu */
  .mobile-menu-btn { z-index: 1001; position: relative; }

  /* Ajustes globais que possam vazar (Bug da faixa branca) */
  .container { width: 100% !important; max-width: 100vw !important; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  .row, .grid { max-width: 100vw; box-sizing: border-box; }
  .table-responsive { max-width: 100vw; margin: auto; }
  
  /* 4. Espacamento global mobile */
  section { padding: 50px 16px !important; width: 100%; max-width: 100vw; box-sizing: border-box; }

  /* 6. Tamanho de toque */
  a, button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* Ocultar secao de comparacao no mobile */
  .comparativo { display: none !important; }
}





