﻿/* ============================================================
   LIMEN Educação – Autonomia Digital Docente
   styles.css — Executivo Corporativo Dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0D0D0D;
    --bg-secondary: #141414;
    --bg-card: #191919;
    --bg-card-hover: #1F1F1F;
    --border: #2A2A2A;
    --border-gold: rgba(201, 162, 39, 0.35);
    --gold: #C9A227;
    --gold-light: #E2B84A;
    --gold-dim: rgba(201, 162, 39, 0.15);
    --red: #B1121C;
    --red-hover: #961018;
    --text-primary: #F2F2F2;
    --text-secondary: #CFCFCF;
    --text-muted: #8A8A8A;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
    --transition: 0.25s ease;
    /* Motion tokens */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-1: 0.35s;
    --dur-2: 0.55s;
    --dur-3: 0.75s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-light);
}

ul {
    list-style: none;
}

/* ── Typography ───────────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 4px 14px;
    border-radius: 40px;
    margin-bottom: 1.2rem;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--gold);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 88px 0;
}

/* ── Gold Divider ─────────────────────────────────────────── */
.gold-divider {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 1.2rem 0 1.8rem;
}

/* ── Nav ──────────────────────────────────────────────────── */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    border-bottom: 1px solid transparent;
    transition:
        background 0.35s var(--ease-out),
        padding 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        border-color 0.35s var(--ease-out);
}

#site-nav.scrolled {
    background: rgba(13, 13, 13, 0.93);
    padding: 12px 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom-color: rgba(201, 162, 39, 0.2);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--gold);
    letter-spacing: 0.03em;
}

.nav-logo span {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    display: block;
    letter-spacing: 0.08em;
}

.nav-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    background: var(--red);
    padding: 9px 22px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
    background: var(--red-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(177, 18, 28, 0.3);
}

.nav-cta:active {
    transform: scale(0.97) !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(201, 162, 39, 0.03) 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.hero-content {
    max-width: 560px;
}

.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.6rem 0 2.2rem;
}

.hero-bullet {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    padding: 5px 14px;
    border-radius: 40px;
    transition: background var(--transition), border-color var(--transition);
}

.hero-subheadline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 480px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2.4rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* Shine sweep — z-index 0 para não bloquear texto */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translateX(-140%) skewX(-12deg);
    pointer-events: none;
    z-index: 0;
}

/* Texto acima do shine */
.btn-primary>* {
    position: relative;
    z-index: 1;
}

.btn-primary:hover::before {
    animation: mx-shineSweep 0.55s var(--ease-out) forwards;
}

.btn-primary:hover {
    background: var(--red-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(177, 18, 28, 0.28);
}

.btn-primary:active {
    transform: scale(0.975) !important;
    box-shadow: none !important;
}

.btn-outline {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.12), transparent);
    transform: translateX(-140%) skewX(-12deg);
    pointer-events: none;
    z-index: 0;
}

.btn-outline>* {
    position: relative;
    z-index: 1;
}

.btn-outline:hover::before {
    animation: mx-shineSweep 0.55s var(--ease-out) forwards;
}

.btn-outline:hover {
    background: var(--gold-dim);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.15);
}

.btn-outline:active {
    transform: scale(0.975) !important;
}

/* Focus-visible acessível */
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.nav-cta:focus-visible,
.faq-trigger:focus-visible,
#back-top:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

.check-label:focus-within,
.radio-label:focus-within {
    outline: 2px solid rgba(201, 162, 39, 0.5);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Hero Image */
.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    z-index: 2;
    pointer-events: none;
}

.hero-image-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    filter: brightness(0.92) saturate(0.9);
    transition: filter 0.5s ease;
}

.hero-image-wrap:hover img {
    filter: brightness(0.97) saturate(0.95);
}

/* ── Section: Por que isso existe ─────────────────────────── */
#por-que {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.por-que-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.por-que-text p {
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    font-size: 0.97rem;
    line-height: 1.8;
}

.dores-list {
    margin-top: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dor-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    transition: transform 0.3s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.dor-item:hover {
    transform: translateX(4px);
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dor-item .dor-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.dor-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.dor-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.por-que-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gold);
}

.por-que-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: brightness(0.88) saturate(0.85);
    transition: filter 0.5s ease;
}

.por-que-image:hover img {
    filter: brightness(0.93) saturate(0.9);
}

/* ── Section: Como funciona ─────────────────────────────── */
#como-funciona {
    background: var(--bg-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2.4rem;
}

.feature-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition:
        border-color 0.3s ease,
        transform 0.3s var(--ease-spring),
        box-shadow 0.3s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    border-color: rgba(201, 162, 39, 0.45);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 18px rgba(201, 162, 39, 0.1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card .card-icon {
    font-size: 1.4rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover .card-icon {
    background: rgba(201, 162, 39, 0.2);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.15);
}

.feature-card p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.permanencia-note {
    margin-top: 2.4rem;
    padding: 20px 24px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.permanencia-note .note-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.permanencia-note strong {
    color: var(--gold);
}

/* ── Section: Trilhas ─────────────────────────────────────── */
#trilhas {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trilhas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 2.4rem;
}

.trilha-item {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.3s var(--ease-spring),
        box-shadow 0.25s ease;
}

.trilha-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.trilha-item:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    transform: translateX(3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.trilha-item:hover::after {
    opacity: 1;
}

.trilha-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    transition: background 0.25s ease;
}

.trilha-item:hover .trilha-num {
    background: rgba(201, 162, 39, 0.22);
}

.trilha-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.trilha-text span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Section: Sobre o criador ──────────────────────────────── */
#autoridade {
    background: var(--bg-primary);
}

.autoridade-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}

.foto-criador-wrap {
    position: relative;
}

.foto-criador-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--gold);
    border-radius: calc(var(--radius-lg) + 4px);
    pointer-events: none;
    z-index: 0;
}

.foto-criador {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 2px dashed var(--border-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.foto-placeholder .ph-icon {
    font-size: 2.5rem;
}

.foto-placeholder code {
    font-size: 0.7rem;
    color: var(--gold);
    background: var(--gold-dim);
    padding: 3px 8px;
    border-radius: 4px;
    display: block;
    margin-top: 6px;
}

.autoridade-text .bio-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.25s ease;
}

.autoridade-text .bio-item:first-child {
    padding-top: 0;
}

.autoridade-text .bio-item:last-child {
    border-bottom: none;
}

.autoridade-text .bio-item:hover {
    border-bottom-color: var(--border-gold);
}

.bio-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold);
}

.bio-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.bio-content span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Section: Processo Seletivo ──────────────────────────── */
#processo {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.processo-inner {
    max-width: 760px;
}

.processo-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 2.4rem 0;
    position: relative;
}

.processo-steps::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-gold);
    z-index: 0;
}

.processo-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    position: relative;
    z-index: 1;
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.processo-step:hover .step-num {
    background: var(--gold-dim);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.2);
}

.step-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.processo-aviso {
    padding: 18px 22px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.processo-aviso strong {
    color: var(--gold);
}

/* ── Section: Investimento ──────────────────────────────── */
#investimento {
    background: var(--bg-primary);
}

.investimento-card {
    max-width: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.investimento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.investimento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.investimento-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 28px rgba(201, 162, 39, 0.14);
    border-color: rgba(201, 162, 39, 0.55);
}

.preco-display {
    margin: 1.6rem 0;
}

.preco-prefixo {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.preco-valor {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 4rem);
    color: var(--gold);
    line-height: 1;
    font-weight: 700;
}

.preco-periodo {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.preco-permanencia {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    padding: 5px 14px;
    border-radius: 40px;
}

.investimento-itens {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.inv-item::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

.inv-item:hover {
    color: var(--text-primary);
}

/* ── Section: FAQ ──────────────────────────────────────────── */
#faq {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-list {
    max-width: 760px;
    margin-top: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
    border-color: var(--border-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 18px rgba(201, 162, 39, 0.1);
}

.faq-trigger {
    width: 100%;
    background: var(--bg-card);
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s ease;
}

.faq-trigger:hover {
    background: var(--bg-card-hover);
}

.faq-item.open .faq-trigger {
    background: rgba(201, 162, 39, 0.06);
}

.faq-trigger .faq-q {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.25s ease;
}

.faq-item.open .faq-trigger .faq-q {
    color: var(--gold-light);
}

.faq-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.7rem;
    transition:
        transform 0.34s var(--ease-spring),
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    background: rgba(201, 162, 39, 0.15);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.18);
}

/* FAQ body — CSS max-height é o fallback; WAAPI sobrescreve quando disponível */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-body {
    max-height: 600px;
}

.faq-body p {
    padding: 0 24px 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
    background: var(--bg-card);
}

/* ── Section: Fechamento ─────────────────────────────────── */
#fechamento {
    background: var(--bg-primary);
    text-align: center;
    padding: 100px 0;
}

.fechamento-inner {
    max-width: 680px;
    margin: 0 auto;
}

.fechamento-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--gold);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 2rem;
    padding: 28px 32px 28px 40px;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    background: var(--gold-dim);
    position: relative;
}

.fechamento-quote::before {
    content: '"';
    position: absolute;
    top: -16px;
    left: 24px;
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
    opacity: 0.4;
}

.fechamento-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.4rem;
    line-height: 1.8;
}

/* ── Formulário ──────────────────────────────────────────── */
#candidatura {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.form-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.form-intro {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.form-intro strong {
    color: var(--gold);
}

.form-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 2.4rem 0 1.2rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--gold);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}

.form-group label .required {
    color: var(--red);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 12px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Rating */
.rating-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rating-options {
    display: flex;
    gap: 8px;
}

.rating-options input {
    display: none;
}

.rating-options label {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.22s ease;
    margin-bottom: 0;
}

.rating-options input:checked+label {
    background: var(--gold);
    border-color: var(--gold);
    color: #0D0D0D;
}

.rating-options label:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.05);
}

/* Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: border-color 0.22s ease, background 0.22s ease;
    user-select: none;
}

.check-label:hover {
    border-color: var(--border-gold);
}

.check-label input {
    display: none;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
    background: var(--bg-primary);
}

.check-label input:checked~.check-box {
    background: var(--gold);
    border-color: var(--gold);
}

.check-label input:checked~.check-box::after {
    content: '✓';
    font-size: 0.7rem;
    color: #0D0D0D;
    font-weight: 700;
}

.check-label input:checked~span {
    color: var(--text-primary);
}

/* Radio */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: border-color 0.22s ease, background 0.22s ease;
    user-select: none;
}

.radio-label:hover {
    border-color: var(--border-gold);
}

.radio-label input {
    display: none;
}

.radio-dot {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
    background: var(--bg-primary);
}

.radio-label input:checked~.radio-dot {
    border-color: var(--gold);
}

.radio-label input:checked~.radio-dot::after {
    content: '';
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 50%;
}

.radio-label input:checked~span {
    color: var(--text-primary);
}

/* Termos */
.termos-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
    user-select: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.termos-label:hover {
    border-color: rgba(201, 162, 39, 0.55);
    background: rgba(201, 162, 39, 0.18);
}

.termos-label input {
    display: none;
}

.termos-box {
    width: 20px;
    height: 20px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
    background: var(--bg-primary);
    margin-top: 2px;
}

.termos-label input:checked~.termos-box {
    background: var(--gold);
    border-color: var(--gold);
}

.termos-label input:checked~.termos-box::after {
    content: '✓';
    font-size: 0.75rem;
    color: #0D0D0D;
    font-weight: 700;
}

/* Form Submit */
.form-submit-wrap {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.form-error {
    display: none;
    font-size: 0.82rem;
    color: #E05C5C;
    margin-top: 5px;
}

.field-error .form-control {
    border-color: #B74040;
    box-shadow: 0 0 0 2px rgba(183, 64, 64, 0.2);
}

.field-error .form-error {
    display: block;
}

/* Ao focar campo em erro: retorna ao estilo normal */
.field-error .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

/* Honeypot */
.hp-field {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* Success Message */
#success-msg {
    display: none;
    text-align: center;
    padding: 52px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
}

#success-msg .success-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#success-msg h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

#success-msg p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 1.8rem;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

footer .footer-logo {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Back to top — usa opacity/visibility, sem display:none ─ */
#back-top {
    display: flex;
    /* sempre flex; ocultado via opacity+visibility */
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
    z-index: 900;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity 0.35s var(--ease-out),
        visibility 0.35s linear,
        transform 0.38s var(--ease-spring),
        background 0.25s ease,
        box-shadow 0.25s ease;
}

#back-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#back-top:hover {
    background: var(--gold-dim);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.22);
    color: var(--gold);
}

/* ── Section: Transformação ─────────────────────────────── */
#transformacao {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.transformacao-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: center;
}

.transformacao-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gold);
}

.transformacao-img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: brightness(0.9) saturate(0.85);
    transition: filter 0.5s ease;
}

.transformacao-img-wrap:hover img {
    filter: brightness(0.95) saturate(0.9);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    section {
        padding: 64px 0;
    }

    .hero-grid,
    .por-que-grid,
    .autoridade-grid,
    .transformacao-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image-wrap {
        max-width: 100%;
        order: -1;
    }

    .autoridade-grid .foto-criador-wrap {
        max-width: 320px;
        margin: 0 auto;
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trilhas-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    section {
        padding: 52px 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-bullets {
        gap: 7px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        text-align: center;
        justify-content: center;
    }

    .rating-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .investimento-card {
        padding: 32px 22px;
    }

    .nav-cta {
        display: none;
    }

    .transformacao-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   MOTION + POLISH LAYER  v2
   ================================================================ */

/* ── Keyframes ────────────────────────────────────────────────── */
@keyframes mx-shineSweep {
    0% {
        transform: translateX(-140%) skewX(-12deg);
    }

    100% {
        transform: translateX(220%) skewX(-12deg);
    }
}

@keyframes mx-shakeX {

    0%,
    100% {
        transform: translateX(0);
    }

    18% {
        transform: translateX(-5px);
    }

    36% {
        transform: translateX(4px);
    }

    54% {
        transform: translateX(-3px);
    }

    72% {
        transform: translateX(2px);
    }

    86% {
        transform: translateX(-1px);
    }
}

@keyframes mx-successPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    55% {
        transform: translateY(-5px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    will-change: opacity, transform;
    transition:
        opacity var(--dur-2) var(--ease-out),
        transform var(--dur-2) var(--ease-out);
    transition-delay: var(--d, 0s);
}

.reveal[data-reveal="up"] {
    transform: translateY(22px);
}

.reveal[data-reveal="down"] {
    transform: translateY(-18px);
}

.reveal[data-reveal="left"] {
    transform: translateX(26px);
}

.reveal[data-reveal="right"] {
    transform: translateX(-26px);
}

.reveal[data-reveal="scale"] {
    transform: scale(0.93);
}

.reveal.is-inview {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ── Form shake ───────────────────────────────────────────────── */
.mx-field-shake {
    animation: mx-shakeX 0.4s var(--ease-out);
}

/* ── Success Message animada ─────────────────────────────────── */
#success-msg.mx-visible {
    animation: mx-successPop 0.55s var(--ease-spring) both;
}

/* ── prefers-reduced-motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .reveal.is-inview {
        opacity: 1;
        transform: none;
    }

    .btn-primary::before,
    .btn-outline::before,
    .nav-cta::before {
        display: none;
    }

    .feature-card:hover,
    .trilha-item:hover,
    .dor-item:hover {
        transform: none !important;
    }

    .mx-field-shake {
        animation: none;
    }

    #success-msg.mx-visible {
        animation: none;
        opacity: 1;
    }

    .faq-arrow {
        transition: transform 0.1s linear;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}