/* ============================================
   LNL SOLUÇÕES — ESTILO PRINCIPAL (PRODUÇÃO)
   Arquivo: assets/css/style.css
   ============================================ */

/* ============================================
   VARIÁVEIS / TOKENS DE DESIGN
   ============================================ */
:root {
    /* Paleta principal */
    --color-navy:        #0f172a; /* Azul marinho — títulos, fundo escuro */
    --color-navy-mid:    #1e293b; /* Azul marinho médio */
    --color-orange:      #ea580c; /* Laranja — ação principal */
    --color-orange-dark: #c2410c; /* Laranja escuro — hover */
    --color-gold:        #f59e0b; /* Dourado — detalhe premium */

    /* Neutros */
    --color-bg:          #f8fafc;
    --color-surface:     #ffffff;
    --color-border:      #e2e8f0;
    --color-text:        #334155;
    --color-muted:       #64748b;

    /* Estrutura */
    --container-max:     1240px;
    --radius-sm:         8px;
    --radius-md:         14px;
    --radius-lg:         20px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s, opacity 0.2s; }
ul { list-style: none; }
h1, h2, h3, h4 {
    font-family: 'Sora', sans-serif;
    color: var(--color-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ============================================
   UTILITÁRIOS MÍNIMOS
   ============================================ */
.container   { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-white  { color: #ffffff !important; }
.text-accent { color: var(--color-gold); }
.text-muted-light { color: #94a3b8; }
.mx-auto     { margin-left: auto; margin-right: auto; }
.relative-z  { position: relative; z-index: 10; }

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--color-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: height 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
    height: 66px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo em imagem real */
.logo-link { display: flex; align-items: center; }
.logo-img  { height: 52px; width: auto; display: block; }


.nav-menu { display: flex; align-items: center; gap: 28px; }

.nav-link {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--color-orange);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--color-orange); }
.nav-link:hover::after { width: 100%; }

.btn-nav {
    background: var(--color-navy);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-nav:hover {
    background: var(--color-navy-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-navy);
    cursor: pointer;
    line-height: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    position: relative;
    padding: 10rem 0 12rem;
    background-color: var(--color-navy);
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

/* Padrão pontilhado sutil como fundo geométrico */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 28px 28px;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        150deg,
        rgba(15, 23, 42, 0.96) 0%,
        rgba(30, 41, 59, 0.88) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 88, 12, 0.12);
    border: 1px solid rgba(234, 88, 12, 0.35);
    color: var(--color-orange);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff !important;
    margin-bottom: 24px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cbd5e1 !important;
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   BOTÕES GLOBAIS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-orange);
    color: #ffffff !important;
    padding: 15px 34px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    background: var(--color-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.45);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--color-navy) !important;
}

.btn-card {
    display: block;
    background: var(--color-navy);
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.2s;
    margin-top: 20px;
    border: 2px solid var(--color-navy);
}
.btn-card:hover {
    background: transparent;
    color: var(--color-navy);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--color-surface);
    margin-top: -60px;
    padding: 40px 50px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-around;
    text-align: center;
    border-top: 4px solid var(--color-orange);
}
.stat-item {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid var(--color-border);
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 6px;
}
.stat-item span {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.4;
}

/* ============================================
   FORMAÇÕES / CURSOS
   ============================================ */
.courses-section { padding: 7rem 0; background: var(--color-bg); }

.section-header {
    text-align: center;
    margin-bottom: 52px;
}
.section-tag {
    display: block;
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.section-tag--light { color: var(--color-gold); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-desc {
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 580px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
}

.course-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
    border-color: rgba(234, 88, 12, 0.25);
}

/* Thumbs dos cards — variantes por área */
.course-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.course-thumb--blue   { background: linear-gradient(140deg, #0f172a, #1e3a5f); }
.course-thumb--dark   { background: linear-gradient(140deg, #1e293b, #0f172a); }
.course-thumb--accent { background: linear-gradient(140deg, #7c2d12, #c2410c); }

.course-thumb-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.badge-area {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(234, 88, 12, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 4px;
}

.course-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.course-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-navy);
}
.course-desc {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}
.course-meta {
    display: flex;
    gap: 18px;
    font-size: 0.82rem;
    color: var(--color-muted);
    font-weight: 500;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}
.course-meta i { font-size: 16px; vertical-align: bottom; margin-right: 4px; color: var(--color-orange); }

/* ============================================
   DIFERENCIAIS
   ============================================ */
.features-section { padding: 7rem 0; background: var(--color-surface); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--color-bg);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
    background: var(--color-surface);
    border-bottom: 4px solid var(--color-orange);
}
.feature-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(234, 88, 12, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--color-orange);
    margin-bottom: 24px;
}
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--color-navy);
}
.feature-card p {
    font-size: 0.93rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* ============================================
   CORPO DOCENTE
   ============================================ */
.professors-section {
    padding: 7rem 0;
    background: var(--color-navy);
    position: relative;
    overflow: hidden;
}
.professors-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}
.professors-section .section-header { position: relative; z-index: 2; }
.professors-section .section-desc { max-width: 560px; }

.professors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 2;
}

.professor-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.professor-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
}

.professor-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--color-gold);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy-mid);
}
.professor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.professor-initials {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.professor-info h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.professor-title {
    display: block;
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.professor-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   CTA / CONTATO
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}
.cta-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 16px;
}
.cta-desc {
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 40px;
}
.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-wa {
    background: #16a34a;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}
.btn-wa:hover {
    background: #15803d;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s, color 0.2s;
}
.btn-outline-dark:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #080e1b;
    color: #94a3b8;
    padding: 5rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 4rem;
}

/* Logo no footer: filtro inverte para branco sobre fundo escuro */
.footer-logo {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 1; }
.footer-copy {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    color: #f8fafc;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col a {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover {
    color: var(--color-orange);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}
.social-links a {
    color: #f8fafc;
    font-size: 1.4rem;
    transition: color 0.2s, transform 0.2s;
}
.social-links a:hover {
    color: var(--color-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    gap: 16px;
}

/* ============================================
   WHATSAPP FLUTUANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    transition: background 0.2s, transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

/* ============================================
   ANIMAÇÃO DE SCROLL (IntersectionObserver)
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVO — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .stats-bar { padding: 30px 24px; }
    .stat-item strong { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
   RESPONSIVO — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    /* Header */
    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 34px;
        transition: left 0.4s ease;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    .nav-menu.active { left: 0; }
    .nav-link { font-size: 1.2rem; }
    .btn-nav { font-size: 1rem; padding: 14px 32px; }

    /* Hero */
    .hero-section { padding: 7rem 0 5rem; }
    .hero-btns { justify-content: center; flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; max-width: 320px; justify-content: center; }

    /* Stats */
    .stats-bar {
        flex-direction: column;
        margin-top: 0;
        border-radius: var(--radius-md);
        border-top: none;
        border-bottom: 4px solid var(--color-orange);
        gap: 28px;
    }
    .stat-item { border-right: none; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
    .stat-item:last-child { border-bottom: none; padding-bottom: 0; }

    /* Grids */
    .courses-grid,
    .features-grid,
    .professors-grid { grid-template-columns: 1fr; }

    /* Professores */
    .professor-card { flex-direction: column; align-items: center; text-align: center; }
    .professor-title { margin: 6px 0 12px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
    .footer-brand { order: -1; }
    .footer-copy { margin: 0 auto 16px; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* CTA */
    .cta-btns { flex-direction: column; align-items: center; }
    .btn-primary.btn-wa, .btn-outline-dark { width: 100%; max-width: 340px; justify-content: center; }

    /* WhatsApp */
    .whatsapp-float { width: 54px; height: 54px; font-size: 30px; bottom: 20px; right: 20px; }
}

/* ============================================
   RESPONSIVO — MOBILE PEQUENO (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-section { padding: 6rem 0 4rem; }
    .badge-hero { font-size: 0.72rem; padding: 6px 14px; }
    .stats-bar { padding: 24px 16px; }
    .section-title { font-size: 1.6rem; }
    .course-body { padding: 22px; }
    .feature-card { padding: 28px 22px; }
}
