/* 
 * Maia Educação - Premium Style
 * Colors: Black (Base), Purple (Accent), Gold (Accent)
 */

:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-card-hover: rgba(30, 30, 30, 0.8);

    --primary-purple: #8b5cf6;
    --primary-purple-glow: rgba(139, 92, 246, 0.5);

    --accent-gold: #fbbf24;
    --accent-gold-glow: rgba(251, 191, 36, 0.5);

    --text-main: #ffffff;
    --text-muted: #a3a3a3;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

    --animation-speed: 0.3s;
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    top: 0;
    left: 0;
    /* Posicao inicial fora da tela. O JS assume o transform a partir do primeiro mousemove. */
    transform: translate(-50%, -50%) translate(-9999px, -9999px);
    will-change: transform;
}

/* Icones SVG do sprite */
.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--animation-speed) ease;
}

ul {
    list-style: none;
}

.text-gold {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.text-gradient {
    background: linear-gradient(to right, #c084fc, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px -10px var(--primary-purple-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px var(--primary-purple-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.9);
}

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

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

.logo-img {
    height: 50px;
    /* Adjusted assuming a standard logo size */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

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

.btn-header {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #0a0a0a;
    z-index: 1002;
    padding: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-link {
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

/* Hero Visual - Abstract Glass Cards */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Enforce thin white border */
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 1.8rem;
    line-height: 1;
}

/* Tech Grid Animation */
.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    height: 1px;
    width: 100%;
    animation: scanline 4s linear infinite;
}

.tech-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.tech-line:nth-child(2) {
    top: 40%;
    animation-delay: 2s;
}

.tech-line:nth-child(3) {
    top: 60%;
    animation-delay: 1s;
}

.tech-line:nth-child(4) {
    top: 80%;
    animation-delay: 3s;
}

.tech-line-vertical {
    position: absolute;
    background: linear-gradient(180deg, transparent, var(--accent-gold), transparent);
    width: 1px;
    height: 100%;
    animation: scanline-v 6s linear infinite;
}

.tech-line-vertical:nth-child(5) {
    left: 20%;
    animation-delay: 0.5s;
}

.tech-line-vertical:nth-child(6) {
    left: 50%;
    animation-delay: 2.5s;
}

.tech-line-vertical:nth-child(7) {
    left: 80%;
    animation-delay: 1.5s;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }

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

@keyframes scanline-v {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Updated Hero Cards Layout for 3 Items */
.main-card {
    width: 280px;
    z-index: 2;
    top: 25%;
    left: 0;
    transform: translateY(0);
    /* Remove center transform */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.secondary-card {
    width: 260px;
    z-index: 3;
    top: 5%;
    right: 0;
    background: rgba(10, 10, 10, 0.8);
}

.tertiary-card {
    width: 260px;
    z-index: 4;
    bottom: 15%;
    right: 10%;
    background: rgba(10, 10, 10, 0.8);
}

.tertiary-card .card-icon {
    color: #ffffff;
    background: transparent;
    /* Force removal of background color */
}

/* Services Section */
.services {
    padding: 6rem 0;
    position: relative;
    background-image: radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on large screens */
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.service-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.service-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Empurra o CTA para o rodape do card, independente do tamanho do texto acima. */
.service-content .service-cta {
    margin-top: auto;
    padding-top: 1.5rem;
    align-self: flex-start;
}

.service-icon {
    font-size: 2rem;
    color: #fff;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cor por servico, nao por posicao no DOM: reordenar os cards nao troca as cores. */
.service-card[data-service="erp"] .service-icon {
    color: #a78bfa;
}

.service-card[data-service="ia"] .service-icon {
    color: #3b82f6;
    /* Cyber Blue for AI */
}

.service-card[data-service="consultoria"] .service-icon {
    color: #fbbf24;
}

.service-card[data-service="excel"] .service-icon {
    color: #34d399;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Abaixo de 1200px os cards ficam em 2 colunas e voltam a ter espaco de sobra. */
@media (max-width: 1200px) {
    .service-card {
        padding: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #d4d4d4;
    font-size: 0.9rem;
}

.service-list li .icon {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    margin-bottom: 2rem;
}

.contact-container {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border-radius: 30px;
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #7c3aed, #fbbf24);
}

.contact-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-content p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 250px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Perfect centering */
    color: #c084fc;
    font-size: 1.2rem;
    flex-shrink: 0;
    /* Prevents squashing */
}

.icon-box .icon {
    font-size: 1.2rem;
}

.contact-item:nth-child(2) .icon-box {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.contact-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item .value {
    font-weight: 600;
    font-size: 1.05rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* WhatsApp specific style */
.contact-item.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.contact-item.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.1);
}

.contact-item.whatsapp .icon-box {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

/* Footer Company Info */
.footer-company-info {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-company-info strong {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    background: #020202;
    padding-bottom: 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .desktop-nav,
    .btn-header {
        display: none;
    }

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

    .hero {
        padding-top: 140px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }

    .main-card {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .glass-card:hover {
        /* Disable hover offset on mobile for better UX */
        transform: translate(-50%, -50%) scale(1.02);
    }

    .secondary-card {
        right: 10%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual {
        display: none;
    }


    .contact-container {
        padding: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        width: 100%;
        min-width: 0;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    /* Cabe "suporte@maiaeducacao.com.br" em uma linha na largura util de 375px. */
    .contact-item .icon-box {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .contact-item .value {
        font-size: 0.85rem;
    }
}

/* =========================================================
   Seções adicionadas na revisão de conversão (MELHORIAS.md)
   ========================================================= */

/* Nota abaixo dos CTAs do hero */
.hero-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Prova social no hero */
.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 520px;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-item strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
    color: var(--accent-gold);
}

.proof-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* CTA no rodapé de cada card de serviço */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.service-cta span {
    transition: transform var(--animation-speed) ease;
}

.service-card:hover .service-cta span {
    transform: translateX(4px);
}

/* Processo Section */
.process {
    padding: 6rem 0;
    position: relative;
    background-image: radial-gradient(at 100% 0%, rgba(251, 191, 36, 0.04) 0px, transparent 50%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    position: relative;
    padding: 2rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.process-step:first-child {
    border-left: none;
    padding-left: 0;
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Para quem é / não é */
.fit {
    padding: 0 0 6rem;
}

.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    /* Cada coluna toma a altura do proprio conteudo: as listas tem tamanhos diferentes
       e esticar as duas deixaria um vazio visivel na mais curta. */
    align-items: start;
}

.fit-col {
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
}

.fit-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.fit-col li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.fit-col li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.fit-yes li::before {
    content: "\2713";
    color: #34d399;
}

.fit-no li::before {
    content: "\2014";
    color: var(--text-muted);
}

.fit-no {
    opacity: 0.75;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color var(--animation-speed) ease;
}

.faq-item[open] {
    border-color: rgba(251, 191, 36, 0.25);
}

.faq-item summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Remove o triângulo padrão do Safari */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-gold);
    flex-shrink: 0;
    transition: transform var(--animation-speed) ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: -2px;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-footer {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--text-muted);
}

.faq-footer a {
    color: var(--accent-gold);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.faq-footer a:hover {
    border-bottom-color: var(--accent-gold);
}

/* Barra fixa de WhatsApp (apenas mobile) */
.sticky-whatsapp {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    background: #25d366;
    color: #05261a;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.sticky-whatsapp .icon {
    font-size: 1.3rem;
}

/* Revelação das seções ao entrar na viewport.
   Escondemos apenas sob .js: se o JavaScript não rodar, o conteúdo nasce visível
   em vez de ficar preso em opacity 0 para sempre. */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visivel {
    opacity: 1;
    transform: none;
}

/* Páginas de apoio: obrigado, 404 e política de privacidade */
.pagina-simples {
    padding: 180px 0 6rem;
    min-height: 70vh;
}

.pagina-simples h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pagina-simples h2 {
    font-size: 1.3rem;
    margin: 2.5rem 0 0.8rem;
}

.pagina-simples p,
.pagina-simples li {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pagina-simples ul {
    padding-left: 1.5rem;
    list-style: disc;
}

.pagina-simples a:not(.btn) {
    color: var(--accent-gold);
    border-bottom: 1px solid transparent;
}

.pagina-simples a:not(.btn):hover {
    border-bottom-color: var(--accent-gold);
}

.texto-legal {
    max-width: 760px;
}

.caixa-centro {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, #111, #0a0a0a);
}

.caixa-centro .icon-box {
    margin: 0 auto 1.5rem;
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.caixa-centro .btn {
    margin-top: 1rem;
}

.voltar-home {
    display: block;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Responsivo das seções novas */
@media (max-width: 992px) {
    .hero-proof {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .proof-item {
        align-items: center;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .process-step,
    .process-step:first-child {
        border-left: none;
        padding-left: 0;
    }

    .sticky-whatsapp {
        display: flex;
    }

    /* Impede que a barra fixa cubra o CNPJ e o endereço no rodapé */
    footer {
        padding-bottom: 6rem;
    }
}

@media (max-width: 768px) {
    .fit-grid {
        grid-template-columns: 1fr;
    }

    .fit-col {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .proof-item strong {
        font-size: 1.6rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .faq-item summary {
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.5rem 1.2rem;
    }

    .caixa-centro {
        padding: 2rem;
    }

    .pagina-simples h1 {
        font-size: 1.9rem;
    }
}

/* Respeita a preferência de movimento reduzido do sistema operacional */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .tech-lines,
    .cursor-glow {
        display: none;
    }

    /* .fade-in-up começa em opacity 0 e só fica visível ao fim da animação.
       Sem esta regra, desligar a animação deixaria o hero permanentemente invisível. */
    .fade-in-up,
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
