/* =====================================================
   PROJETO 800+ — Aula presencial de Grandezas Proporcionais
   Identidade Curso Darlan Moutinho (manual v1.1, paleta OFICIAL)
   Preto Youbiz · gradiente azul→violeta · laranja comercial · lima urgência
   Form card creme + CTA verde (padrão aprovado 03/08/2026).
   ===================================================== */

:root {
    --bg: #0B0B12;
    --bg-1: #0F0F19;
    --bg-2: #14142A;
    --surface: #12121E;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --blue: #4D7CFF;
    --violet: #9B5CFF;
    --orange: #FF8A3D;
    --lime: #B6FF3D;
    --menta: #6FE6C0;
    --blue-glow: rgba(77, 124, 255, 0.35);
    --violet-glow: rgba(155, 92, 255, 0.35);
    --orange-glow: rgba(255, 138, 61, 0.40);

    --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);

    --text: #F2F3F7;
    --text-dim: #B4B6C6;
    --text-mute: #7C7E92;

    --heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

    --container: 1180px;
    --radius: 16px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }

/* Regra de ouro: 1 palavra do título em gradiente, resto branco */
em.grad {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
em.orange { font-style: normal; color: var(--orange); }

/* ---------- Marca ---------- */
.rainbow-bar { height: 4px; width: 100%; background: linear-gradient(90deg, var(--blue) 0%, var(--violet) 35%, var(--orange) 70%, var(--lime) 100%); }
.rainbow-top { position: fixed; top: 0; left: 0; right: 0; z-index: 101; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 4px; left: 0; right: 0; z-index: 100;
    transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled { background: rgba(11, 11, 18, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 44px; width: auto; }
.brand-sep { width: 1px; height: 30px; background: var(--line-strong); }
.brand-projeto { font-family: var(--heading); font-weight: 500; font-size: 1.05rem; color: var(--text-dim); letter-spacing: -0.01em; white-space: nowrap; }
.brand-projeto b { color: var(--orange); font-weight: 700; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--heading); font-weight: 600; letter-spacing: 0.01em;
    padding: 15px 28px; border-radius: var(--radius-pill);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
/* CTA laranja = voz comercial da marca */
.btn-primary {
    background: var(--orange);
    color: #1A0C03;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 14px 40px -12px var(--orange-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 20px 50px -12px var(--orange-glow); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-ghost {
    border: 1.5px solid var(--line-strong); color: var(--text);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ---------- Badges (pill, caixa-alta, tracking +14%) ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--heading); font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em;
    padding: 8px 16px; border-radius: var(--radius-pill); border: 1.5px solid;
    margin-bottom: 20px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-lime { color: var(--lime); border-color: rgba(182, 255, 61, 0.7); background: rgba(182, 255, 61, 0.10); }
.badge-orange { color: var(--orange); border-color: rgba(255, 138, 61, 0.7); background: rgba(255, 138, 61, 0.10); }

/* ---------- Elementos de marca ---------- */
.bg-grid {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 0%, transparent 72%);
    opacity: 0.16;
}
.glow { position: absolute; border-radius: 50%; filter: blur(150px); pointer-events: none; }
.glow-violet { width: 520px; height: 520px; background: var(--violet-glow); top: -180px; left: -140px; opacity: 0.35; }
.glow-orange { width: 460px; height: 460px; background: var(--orange-glow); top: -160px; right: -100px; opacity: 0.3; }
.plus { position: absolute; z-index: 2; font-family: var(--heading); font-weight: 700; pointer-events: none; opacity: 0.85; }
.plus-1 { color: var(--lime); font-size: 34px; top: 18%; right: 8%; }
.plus-2 { color: var(--blue); font-size: 26px; bottom: 22%; left: 5%; }
.plus-3 { color: var(--violet); font-size: 46px; top: 62%; right: 3%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-photo { padding: 160px 0 100px; }
.hero-photo-bg { position: absolute; inset: 0; background-size: cover; background-position: 40% center; z-index: 0; }
.hero-photo-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(11, 11, 18, .94) 0%, rgba(11, 11, 18, .80) 55%, rgba(11, 11, 18, .62) 100%),
        linear-gradient(180deg, rgba(11, 11, 18, .35) 0%, rgba(11, 11, 18, .2) 40%, rgba(11, 11, 18, .7) 100%);
}
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-sub { color: var(--text-dim); font-size: 1.1rem; margin-top: 20px; max-width: 560px; }
.hero-sub strong { color: var(--text); }

.agenda { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 6px; }
.agenda-item {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
    padding: 8px 16px; font-size: .95rem; color: var(--text-dim);
    background: rgba(255, 255, 255, .04);
}
.agenda-item strong { color: var(--text); }

.hero-exam { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.exam-mini { background: rgba(255, 255, 255, 0.94); border-radius: 10px; padding: 8px 14px; display: inline-flex; align-items: center; }
.exam-mini img { height: 26px; width: auto; }
.hero-exam-note { color: var(--text-mute); font-size: 0.9rem; }

/* ---------- Formulário (card creme + CTA verde, padrão aprovado) ---------- */
.card-form {
    position: relative;
    background: #F7F1E3;
    color: #0B0B12;
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.sticker {
    position: absolute; top: -14px; right: 22px;
    font-family: var(--heading); font-weight: 700; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    background: var(--orange); color: #1A0C03;
    padding: 7px 14px; border-radius: var(--radius-pill);
    box-shadow: 0 10px 24px -10px var(--orange-glow);
}
.form-title { margin-bottom: 6px; color: #0B0B12; }
.form-sub { color: #5A5866; font-size: 0.96rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label {
    display: block; font-family: var(--heading); font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em; color: #0B0B12; margin-bottom: 7px;
}
.field input, .field select {
    width: 100%; background: #fff;
    border: 1.5px solid #D9D2C2; border-radius: 12px;
    padding: 14px 16px; outline: none; color: #0B0B12;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #5A5866 50%), linear-gradient(135deg, #5A5866 50%, transparent 50%);
    background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
    background-size: 6px 6px; background-repeat: no-repeat;
    padding-right: 42px;
}
.field select:invalid { color: #9A958A; }
.field select option { background: #fff; color: #0B0B12; }
.field input::placeholder { color: #9A958A; }
.field input:focus, .field select:focus { border-color: #23A45D; box-shadow: 0 0 0 3px rgba(35, 164, 93, 0.22); }
.field input.invalid, .field select.invalid { border-color: #E5484D; background: #FEF4F4; }
.form-note { text-align: center; color: #5A5866; font-size: 0.86rem; margin-top: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.card-form .btn-primary {
    background: #23A45D; color: #fff;
    box-shadow: 0 14px 40px -12px rgba(35, 164, 93, 0.6);
}
.card-form .btn-primary:hover { background: #1E9151; box-shadow: 0 14px 40px -12px rgba(35, 164, 93, 0.75); }

.form-success { text-align: center; padding: 26px 6px; }
.form-success h3 { color: #0B0B12; }
.form-success p { color: #5A5866; margin-top: 8px; }
.form-success p strong { color: #0B0B12; }
.form-success .btn { margin-top: 18px; }
.success-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(35, 164, 93, 0.14); border: 1.5px solid #23A45D;
    color: #1E9151; font-size: 1.6rem; font-weight: 700; margin-bottom: 14px;
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 84px 0; }
.section-alt { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 46px; }
.section-sub { color: var(--text-dim); margin-top: 16px; }
.section-sub strong { color: var(--text); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 30px 26px;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }
.card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 18px; border: 1.5px solid;
}
.icon-blue { border-color: var(--blue); background: rgba(77, 124, 255, 0.12); }
.icon-violet { border-color: var(--violet); background: rgba(155, 92, 255, 0.12); }
.icon-lime { border-color: var(--lime); background: rgba(182, 255, 61, 0.12); }

/* ---------- Turnos (cards clicáveis que preenchem o select) ---------- */
.card-turno {
    text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
    border: 1.5px solid var(--line); cursor: pointer; color: var(--text);
}
.card-turno:hover, .card-turno:focus-visible { border-color: var(--orange); outline: none; }
.card-turno.selected { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(182, 255, 61, 0.18); }
.turno-dia { font-family: var(--heading); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.turno-periodo {
    font-family: var(--heading); font-weight: 600; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute);
}
.turno-hora { margin-top: 10px; font-family: var(--heading); font-weight: 700; font-size: 1.7rem; color: var(--lime); font-variant-numeric: tabular-nums; }
.turno-cta {
    margin-top: 18px; font-family: var(--heading); font-weight: 600; font-size: 0.9rem;
    color: var(--orange); border: 1.5px solid rgba(255, 138, 61, 0.55); border-radius: var(--radius-pill);
    padding: 9px 18px; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.card-turno:hover .turno-cta { background: var(--orange); color: #1A0C03; }
.card-turno.selected .turno-cta { background: var(--lime); border-color: var(--lime); color: #12200A; }
.card-turno.selected .turno-cta::before { content: '✓ '; }

/* ---------- Professor ---------- */
.section-prof { overflow: hidden; }
.prof-inner { position: relative; display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: center; }
.prof-photo { position: relative; display: flex; justify-content: center; }
.prof-photo::before {
    content: ''; position: absolute; inset: 12% 8% 0; border-radius: var(--radius-lg);
    background: var(--grad); opacity: 0.55; filter: blur(2px);
}
.prof-photo img { position: relative; max-height: 520px; width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.prof-copy p { color: var(--text-dim); margin-top: 16px; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; margin-top: 30px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px; }
.stat-num { display: block; font-family: var(--heading); font-weight: 700; font-size: 1.8rem; color: var(--lime); }
.stat-label { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Local ---------- */
.local-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.local-endereco { margin-top: 18px; font-family: var(--heading); font-weight: 600; font-size: 1.4rem; line-height: 1.3; color: var(--text); }
.local-copy .btn-ghost { margin-top: 26px; }
.local-map {
    border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); background: var(--surface);
    aspect-ratio: 4 / 3;
}
.local-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.9); }

/* ---------- FAQ ---------- */
.faq details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 22px;
    font-family: var(--heading); font-weight: 600; font-size: 1.02rem;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 700; color: var(--lime); font-size: 1.3rem; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-dim); }

/* ---------- CTA final ---------- */
.section-final { overflow: hidden; padding: 100px 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 46px; width: auto; opacity: 0.7; }
.footer-contact p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 6px; }
.footer-contact strong { color: var(--text); }
.footer-contact a:hover { color: var(--orange); }
.footer-legal { color: var(--text-mute); font-size: 0.85rem; margin-top: 28px; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    background: #22c55e; color: #06230f;
    font-family: var(--heading); font-weight: 600; font-size: 0.9rem;
    padding: 12px 20px; border-radius: var(--radius-pill);
    box-shadow: 0 14px 40px -12px rgba(34, 197, 94, 0.55);
    transition: transform 0.2s var(--ease);
}
.whats-float:hover { transform: translateY(-2px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
    .hero, .hero-photo { padding-top: 120px; }
    .hero-inner, .prof-inner, .local-inner { grid-template-columns: 1fr; gap: 40px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .prof-photo img { max-height: 380px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .plus { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .brand-logo { height: 36px; }
    .brand-sep, .brand-projeto { display: none; }
    .header-inner .btn-sm { padding: 9px 14px; font-size: 0.8rem; }
    .card-form { padding: 28px 20px; }
    .stats { grid-template-columns: 1fr; }
    .whats-float { font-size: 0; padding: 14px; }
    .whats-float::after { content: '💬'; font-size: 1.3rem; }
}
