/* =====================================================================
   Landing page pública das unidades (/escola/{slug})
   As cores vêm da configuração da unidade via variáveis --lp-*
   ===================================================================== */

.lp {
    --lp-primary: #f97316;
    --lp-on-primary: #111;
    --lp-secondary: #0a0a0a;
    --lp-on-secondary: #fff;
    --lp-bg: #ffffff;
    --lp-text: #18181b;
    --lp-muted: color-mix(in srgb, var(--lp-text) 62%, var(--lp-bg));
    --lp-line: color-mix(in srgb, var(--lp-text) 10%, var(--lp-bg));
    --lp-soft: color-mix(in srgb, var(--lp-primary) 7%, var(--lp-bg));
    --lp-alt: color-mix(in srgb, var(--lp-text) 3%, var(--lp-bg));
    --lp-radius: 16px;
    --lp-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .08);

    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--g-font);
    min-height: 100vh;
    color-scheme: light;
}

.lp-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #18181b;
    font-family: var(--g-font);
}

.lp a { color: inherit; text-decoration: none; cursor: pointer; }
.lp h1, .lp h2, .lp h3, .lp h4 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
.lp p { margin: 0; }

.lp-wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.lp-wrap-estreito { width: min(820px, 100% - 32px); }

/* Botões ------------------------------------------------------------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .92rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease, background-color .15s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.2;
}

.lp-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.lp-btn:disabled { opacity: .5; cursor: not-allowed; }
.lp-btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.lp-btn-block { width: 100%; }
.lp-btn-primary { background: var(--lp-primary); color: var(--lp-on-primary); }
.lp-btn-outline { background: transparent; border-color: var(--lp-primary); color: var(--lp-primary); }
.lp-btn-ghost { background: transparent; color: var(--lp-text); }
.lp-btn-ghost:hover { background: var(--lp-alt); }
.lp-btn-claro { background: #fff; color: #111; }
.lp-btn-outline-claro { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }

.lp-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--lp-soft);
    color: var(--lp-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.lp-accent { color: var(--lp-primary); }

/* Barra superior ------------------------------------------------------ */
.lp-topbar { background: var(--lp-secondary); color: var(--lp-on-secondary); font-size: .8rem; }
.lp-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.lp-topbar-aviso { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-topbar-contatos { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lp-topbar-contatos a { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.lp-topbar-contatos a:hover { opacity: 1; }

/* Cabeçalho ----------------------------------------------------------- */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--lp-bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--lp-line);
}

.lp-header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.lp-logo { display: flex; align-items: center; font-weight: 800; font-size: 1.25rem; flex-shrink: 0; }
.lp-logo img { max-height: 46px; max-width: 170px; object-fit: contain; }
.lp-nav { display: flex; gap: 4px; flex: 1; }
.lp-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--lp-muted); }
.lp-nav a:hover { color: var(--lp-text); background: var(--lp-alt); }
.lp-nav-mobile-only { display: none; }
.lp-header-acoes { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lp-burger { display: none; background: none; border: 0; color: var(--lp-text); cursor: pointer; padding: 6px; }

/* Banners -------------------------------------------------------------- */
.lp-banners { background: var(--lp-secondary); }
.lp-carousel { height: clamp(220px, 42vw, 520px) !important; }
.lp-banner { position: relative; height: 100%; width: 100%; cursor: pointer; }
.lp-banner picture, .lp-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.lp-banner-texto {
    position: absolute;
    inset: auto 0 0 0;
    padding: clamp(20px, 5vw, 56px) max(16px, calc((100% - 1200px) / 2));
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.lp-banner-texto h2 { font-size: clamp(1.5rem, 3.6vw, 2.8rem); font-weight: 800; max-width: 760px; }
.lp-banner-texto p { font-size: clamp(.95rem, 1.6vw, 1.15rem); opacity: .9; max-width: 640px; }

/* Hero ----------------------------------------------------------------- */
.lp-hero {
    background:
        radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--lp-primary) 30%, transparent), transparent 60%),
        var(--lp-secondary);
    color: var(--lp-on-secondary);
    padding: clamp(48px, 8vw, 96px) 0;
}

.lp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lp-hero-texto { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.lp-hero .lp-tag { background: color-mix(in srgb, var(--lp-primary) 22%, transparent); color: var(--lp-on-secondary); }
.lp-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
.lp-hero p { font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: .85; max-width: 560px; line-height: 1.6; }
.lp-hero .lp-btn-outline { border-color: color-mix(in srgb, var(--lp-on-secondary) 50%, transparent); color: var(--lp-on-secondary); }
.lp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero-media img, .lp-hero-media iframe {
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.lp-hero-ilustracao {
    aspect-ratio: 16 / 11;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--lp-primary), color-mix(in srgb, var(--lp-primary) 50%, var(--lp-secondary)));
    color: var(--lp-on-primary);
}
.lp-hero-ilustracao .mud-icon-root { font-size: 120px; opacity: .9; }

/* Números -------------------------------------------------------------- */
.lp-numeros { background: var(--lp-primary); color: var(--lp-on-primary); }
.lp-numeros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 22px 0; text-align: center; }
.lp-numero strong { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.lp-numero span { font-size: .85rem; opacity: .85; }

/* Seções --------------------------------------------------------------- */
.lp-secao { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 72px; }
.lp-secao-alt { background: var(--lp-alt); }
.lp-secao-escura { background: var(--lp-secondary); color: var(--lp-on-secondary); }
.lp-secao-titulo { text-align: center; margin-bottom: 40px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lp-secao-titulo h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.lp-secao-titulo p { color: var(--lp-muted); font-size: 1.05rem; max-width: 640px; }
.lp-secao-escura .lp-secao-titulo p { color: inherit; opacity: .75; }
.lp-vazio { text-align: center; color: var(--lp-muted); margin-top: 24px; }

/* Filtros de cursos ---------------------------------------------------- */
.lp-filtros { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; align-items: center; }
.lp-busca {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(560px, 100%);
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--lp-line);
    background: var(--lp-bg);
    box-shadow: var(--lp-shadow);
    color: var(--lp-muted);
}
.lp-busca input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--lp-text); font: inherit; font-size: .98rem; }
.lp-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lp-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--lp-line);
    background: var(--lp-bg);
    color: var(--lp-text);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.lp-chip.ativo { background: var(--lp-primary); color: var(--lp-on-primary); border-color: var(--lp-primary); }

/* Cards de curso ------------------------------------------------------- */
.lp-cursos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.lp-curso {
    display: flex;
    flex-direction: column;
    background: var(--lp-bg);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.lp-curso:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.lp-curso-capa { position: relative; aspect-ratio: 16 / 9; background: var(--lp-alt); cursor: pointer; }
.lp-curso-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-curso-capa-vazia { height: 100%; display: grid; place-items: center; color: var(--lp-primary); background: var(--lp-soft); }
.lp-curso-capa-vazia .mud-icon-root { font-size: 56px; }
.lp-curso-cat, .lp-curso-off {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}
.lp-curso-cat { left: 12px; background: rgba(0, 0, 0, .65); color: #fff; backdrop-filter: blur(4px); }
.lp-curso-off { right: 12px; background: #16a34a; color: #fff; }
.lp-curso-corpo { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lp-curso-corpo h3 { font-size: 1.08rem; font-weight: 700; cursor: pointer; }
.lp-curso-resumo { color: var(--lp-muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-curso-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--lp-muted); }
.lp-curso-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lp-curso-meta .mud-icon-root { font-size: 1rem; }
.lp-curso-rodape { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--lp-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-preco { display: flex; flex-direction: column; line-height: 1.15; }
.lp-preco s { font-size: .8rem; color: var(--lp-muted); }
.lp-preco strong { font-size: 1.35rem; font-weight: 800; }
.lp-preco small { font-size: .72rem; color: var(--lp-muted); }
.lp-incluso { font-size: .82rem; font-weight: 600; color: var(--lp-primary); }

/* Diferenciais --------------------------------------------------------- */
.lp-diferenciais { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.lp-diferencial { background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.lp-diferencial-icone { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--lp-soft); color: var(--lp-primary); }
.lp-diferencial h3 { font-size: 1.05rem; font-weight: 700; }
.lp-diferencial p { color: var(--lp-muted); font-size: .92rem; line-height: 1.55; }

/* Planos --------------------------------------------------------------- */
.lp-planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.lp-plano {
    position: relative;
    border: 1px solid var(--lp-line);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--lp-bg);
}
.lp-plano.destaque { border: 2px solid var(--lp-primary); box-shadow: var(--lp-shadow); transform: translateY(-6px); }
.lp-plano-selo {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp-primary);
    color: var(--lp-on-primary);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}
.lp-plano h3 { font-size: 1.2rem; font-weight: 800; }
.lp-plano-desc { color: var(--lp-muted); font-size: .9rem; }
.lp-plano-preco { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lp-plano-preco s { color: var(--lp-muted); font-size: .9rem; width: 100%; }
.lp-plano-preco strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.lp-plano-preco span { color: var(--lp-muted); }
.lp-plano-tipo { color: var(--lp-muted); font-size: .78rem; }
.lp-plano ul { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-plano li { display: flex; gap: 8px; font-size: .92rem; align-items: flex-start; }
.lp-plano li .mud-icon-root { color: var(--lp-primary); flex-shrink: 0; margin-top: 1px; }

/* Aprovados / professores / depoimentos -------------------------------- */
.lp-aprovados { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.lp-aprovado { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lp-aprovado strong { margin-top: 8px; }
.lp-aprovado span { font-size: .85rem; color: var(--lp-primary); font-weight: 600; }
.lp-aprovado small { font-size: .78rem; opacity: .7; }
.lp-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--lp-primary);
    display: grid;
    place-items: center;
    background: var(--lp-soft);
    color: var(--lp-primary);
    flex-shrink: 0;
}
.lp-foto img { width: 100%; height: 100%; object-fit: cover; }
.lp-foto .mud-icon-root { font-size: 48px; }
.lp-foto-g { width: 140px; height: 140px; }
.lp-foto-p { width: 44px; height: 44px; border-width: 2px; font-weight: 800; font-size: .85rem; }
.lp-professores { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.lp-professor { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); }
.lp-professor strong { margin-top: 8px; font-size: 1.05rem; }
.lp-professor p { color: var(--lp-muted); font-size: .88rem; line-height: 1.5; }
.lp-depoimentos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.lp-depoimento { margin: 0; background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.lp-estrelas { color: #f59e0b; display: flex; }
.lp-depoimento blockquote { margin: 0; line-height: 1.6; font-size: .95rem; }
.lp-depoimento figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.lp-depoimento figcaption small { display: block; color: var(--lp-muted); font-size: .8rem; }

/* FAQ ------------------------------------------------------------------ */
.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { border: 1px solid var(--lp-line); border-radius: 12px; padding: 0 18px; background: var(--lp-bg); }
.lp-faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .mud-icon-root { transition: transform .2s ease; color: var(--lp-primary); }
.lp-faq details[open] summary .mud-icon-root { transform: rotate(180deg); }
.lp-faq details p { padding: 0 0 16px; color: var(--lp-muted); line-height: 1.6; }

/* CTA final / rodapé ---------------------------------------------------- */
.lp-cta-final { background: linear-gradient(135deg, var(--lp-primary), color-mix(in srgb, var(--lp-primary) 55%, #000)); color: #fff; padding: 56px 0; }
.lp-cta-final-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-cta-final h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.lp-cta-final p { opacity: .9; margin-top: 6px; }
.lp-footer { background: var(--lp-secondary); color: var(--lp-on-secondary); padding: 56px 0 0; scroll-margin-top: 72px; }
.lp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.lp-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; opacity: .7; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.lp-footer li, .lp-footer li a { display: flex; align-items: center; gap: 8px; opacity: .9; }
.lp-footer p { opacity: .75; font-size: .9rem; line-height: 1.6; margin-top: 14px; max-width: 360px; }
.lp-footer-logo { max-height: 52px; max-width: 200px; object-fit: contain; }
.lp-footer-nome { font-size: 1.3rem; }
.lp-redes { display: flex; gap: 10px; margin-top: 18px; }
.lp-redes a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.lp-redes a:hover { background: var(--lp-primary); color: var(--lp-on-primary); }
.lp-seguro { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .82rem; opacity: .8; }
.lp-footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; opacity: .65; }

.lp-whats {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
    transition: transform .15s ease;
}
.lp-whats:hover { transform: scale(1.06); }
.lp-whats .mud-icon-root { font-size: 30px; }

/* Modal do curso -------------------------------------------------------- */
.lp-modal-fundo { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; animation: lp-fade .2s ease; }
.lp-modal { position: relative; width: min(720px, 100%); max-height: 90vh; overflow: auto; background: var(--lp-bg); color: var(--lp-text); border-radius: 20px; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.lp-modal-capa { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.lp-modal-corpo { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.lp-modal-corpo h2 { font-size: 1.5rem; font-weight: 800; }
.lp-modal-corpo p { color: var(--lp-muted); line-height: 1.6; }
.lp-modal-fechar { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 1; }
.lp-modulos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--lp-muted); }

@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }

/* Responsivo ------------------------------------------------------------ */
@media (max-width: 960px) {
    .lp-hero-grid { grid-template-columns: 1fr; }
    .lp-hero-media { order: -1; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
    .lp-footer-grid > :first-child { grid-column: 1 / -1; }
    .lp-burger { display: inline-flex; }
    .lp-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 12px 16px 18px;
        background: var(--lp-bg);
        border-bottom: 1px solid var(--lp-line);
        box-shadow: var(--lp-shadow);
    }
    .lp-nav.aberto { display: flex; }
    .lp-nav a { padding: 12px; font-size: 1rem; }
    .lp-nav-mobile-only { display: block; }
    .lp-header-inner { position: relative; }
    .lp-plano.destaque { transform: none; }
}

@media (max-width: 600px) {
    .lp-topbar-aviso { font-size: .75rem; }
    .lp-topbar-contatos a:not(:first-child) { display: none; }
    .lp-header-inner { min-height: 62px; gap: 12px; }
    .lp-logo img { max-height: 38px; max-width: 130px; }
    .lp-header-acoes .lp-btn-primary { padding: 8px 12px; font-size: .85rem; }
    .lp-footer-grid { grid-template-columns: 1fr; }
    .lp-curso-rodape { flex-wrap: wrap; }
    .lp-curso-rodape .lp-btn { flex: 1; }
}
