/* ===== SABIA — Academia do Corretor (MOCK / EM BREVE) ===== */
/* Segue o design system CorretorAAA (vermelho crimson, serifadas Didot/Bodoni).
   Página estática servida em /sabia/ pelo nginx (try_files). */

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

:root {
    --crimson-deep: #A00002;
    --crimson: #A00002;
    --crimson-accent: #CF0205;
    --crimson-dark: #4A0001;
    --black: #0A0A0A;
    --white: #FFFFFF;
    --off-white: #F5F0EB;
    --gold-subtle: #C9A96E;
    --text-muted: #8A7E72;
    --card-bg: #1A0000;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Bodoni 72 Oldstyle', 'Bodoni 72', 'Bodoni Moda', 'Bodoni MT', Georgia, serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 3rem;
    background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.75) 100%);
    backdrop-filter: blur(8px);
}

.nav-brand {
    font-family: 'Graphik', 'Graphik Bold', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.brand-corretor { color: var(--white); }
.brand-aaa { color: var(--crimson-accent); }

.nav-back {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.nav-back:hover { color: var(--crimson-accent); }
.nav-back svg { width: 16px; height: 16px; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 5rem;
    overflow: hidden;
    background: var(--black);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(160, 0, 2, 0.32) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 15%, rgba(207, 2, 5, 0.16) 0%, transparent 55%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 780px; }

/* "Selo" crimson com o wordmark — mesmo motivo do card no portal */
.hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: var(--crimson-deep);
    padding: 2rem 3rem;
    border-radius: 3px;
    box-shadow: 0 20px 60px rgba(160, 0, 2, 0.35);
    margin-bottom: 2.2rem;
}

.hero-badge-label {
    font-family: 'Didot', 'GFS Didot', 'Bodoni Moda', serif;
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: var(--black);
}

.hero-badge-line {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.4);
    margin: 0.3rem 0;
}

.wordmark {
    font-family: 'Didot', 'GFS Didot', 'Bodoni Moda', serif;
    font-size: clamp(3.5rem, 11vw, 6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 6px;
}

.wordmark .letter-dark { color: var(--black); }
.wordmark .letter-white { color: var(--white); }

.hero-title {
    font-family: 'Didot', 'GFS Didot', 'Bodoni Moda', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.hero-title .ia { color: var(--white); }
.hero-title .sab { color: var(--crimson-accent); }

.soon-pill {
    display: inline-block;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--crimson-accent);
    padding: 0.5rem 1.6rem;
    border-radius: 40px;
    margin-bottom: 1.8rem;
}

.hero-tagline {
    font-family: 'Bodoni Moda', 'Bodoni 72', Georgia, serif;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-style: italic;
    color: var(--off-white);
    margin-bottom: 1.2rem;
}

.hero-desc {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin: 0 auto 2rem;
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-scroll:hover { color: var(--crimson-accent); }
.hero-scroll svg { width: 18px; height: 18px; }

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--crimson-accent);
}

.section-title {
    font-family: 'Didot', 'GFS Didot', 'Bodoni Moda', serif;
    font-size: 1rem;
    letter-spacing: 7px;
    font-weight: 400;
    color: var(--off-white);
    text-align: center;
}

.section-subtitle {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

/* ===== TRILHAS (course modules) ===== */
.trilhas {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--black) 0%, #120000 100%);
}

.trilhas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, #0D0000 100%);
    border: 1px solid rgba(160, 0, 2, 0.3);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: var(--crimson-accent);
    box-shadow: 0 18px 50px rgba(207, 2, 5, 0.18);
}

/* --- Video slot (empty, awaiting upload — EM BREVE) --- */
.video-slot {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
        #140202;
    border-bottom: 1px solid rgba(160, 0, 2, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-align: center;
    padding: 1rem;
}

.video-slot::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1.5px dashed rgba(207, 2, 5, 0.35);
    border-radius: 4px;
    pointer-events: none;
}

.play-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(207, 2, 5, 0.15);
    border: 1.5px solid var(--crimson-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crimson-accent);
    position: relative;
    z-index: 1;
}

.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }

.video-slot-text {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--crimson-accent);
    padding: 0.28rem 0.7rem;
    border-radius: 30px;
}

.course-body {
    padding: 1.6rem 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-num {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--crimson-accent);
    margin-bottom: 0.5rem;
}

.course-title {
    font-family: 'Didot', 'GFS Didot', 'Bodoni Moda', serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.course-desc {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.lessons {
    list-style: none;
    margin-top: auto;
    border-top: 1px solid rgba(160, 0, 2, 0.2);
    padding-top: 1rem;
}

.lessons li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.45rem 0;
}

.lessons li svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.lessons li .dur {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ===== NOTIFY / CTA ===== */
.notify {
    padding: 6rem 2rem 7rem;
    background: linear-gradient(180deg, #120000 0%, var(--crimson-dark) 50%, var(--black) 100%);
    text-align: center;
}

.notify-inner { max-width: 560px; margin: 0 auto; }

.notify h2 {
    font-family: 'Didot', 'GFS Didot', 'Bodoni Moda', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.notify p {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.notify-form {
    display: flex;
    gap: 0.8rem;
    max-width: 460px;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.notify-form input {
    flex: 1 1 240px;
    padding: 0.9rem 1.2rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(207, 2, 5, 0.4);
    border-radius: 2px;
    color: var(--white);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.notify-form input::placeholder { color: var(--text-muted); }
.notify-form input:focus { border-color: var(--crimson-accent); }

.notify-form button {
    padding: 0.9rem 2rem;
    background: var(--crimson-accent);
    color: var(--white);
    border: 1px solid var(--crimson-accent);
    border-radius: 2px;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.notify-form button:hover {
    background: #E0030A;
    box-shadow: 0 0 20px rgba(207, 2, 5, 0.4);
}

.notify-note {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    min-height: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 2rem;
    background: var(--black);
    border-top: 1px solid rgba(160, 0, 2, 0.2);
    text-align: center;
}

.footer-brand {
    font-family: 'Graphik', 'Graphik Bold', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-line {
    width: 60px;
    height: 1px;
    background: var(--crimson-deep);
    margin: 0 auto 1.5rem;
}

.footer-copy {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav { padding: 1rem 1.5rem; }
    .hero { padding: 7rem 1.5rem 4rem; }
    .hero-badge { padding: 1.5rem 2rem; }
    .trilhas, .notify { padding: 4rem 1.5rem; }
    .trilhas-grid { grid-template-columns: 1fr; }
    .section-line { width: 32px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-inner > * { opacity: 0; animation: fadeInUp 0.7s ease forwards; }
.hero-badge { animation-delay: 0.05s; }
.soon-pill { animation-delay: 0.2s; }
.hero-title { animation-delay: 0.3s; }
.hero-tagline { animation-delay: 0.4s; }
.hero-desc { animation-delay: 0.5s; }
.hero-scroll { animation-delay: 0.6s; }

.course-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}
