/* ==========================================================================
   APROVAPDF - GLOBAL STYLES (shared navbar, tokens, reset)
   ========================================================================== */

:root {
    /* Brand palette */
    --navy-950: #060e1d;
    --navy-900: #0a1628;
    --navy-800: #122241;
    --primary-blue: var(--navy-900);
    --secondary-blue: #14294d;
    --accent-orange: #ff6b2c;
    --accent-orange-hover: #f25a19;
    --accent-gold: #ffb703;
    --green-success: #10b981;

    /* Neutrals */
    --ink: #0b1220;
    --text-dark: var(--ink);
    --muted: #55647d;
    --text-muted: var(--muted);
    --line: #e6eaf2;
    --surface: #ffffff;
    --canvas: #f5f7fc;
    --text-light: #f8fafc;

    /* Legacy theme hooks */
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-light: #ffffff;
    --hero-bg: var(--navy-900);
    --hero-text: #f5f8ff;
    --top-bar-bg: #ffffff;
    --top-bar-text: var(--ink);
    --top-bar-muted: var(--muted);
    --salary-label-color: #aab8ce;
    --stat-number-color: var(--navy-900);
    --stat-card-bg: #ffffff;
    --stat-card-border: var(--line);

    /* Fonts */
    --font-heading: 'Sora', 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Motion & elevation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-xs: 0 1px 2px rgba(11, 18, 32, 0.05);
    --shadow-soft: 0 24px 56px -32px rgba(11, 18, 32, 0.28), 0 2px 6px rgba(11, 18, 32, 0.04);
    --shadow-strong: 0 48px 90px -44px rgba(7, 14, 28, 0.6), 0 2px 8px rgba(7, 14, 28, 0.08);

    /* Accents */
    --grad-gold: linear-gradient(120deg, #ffc93c 0%, #ffb703 48%, #ff8a3d 100%);
    --grad-cta: linear-gradient(120deg, #ff8a3d 0%, #ff5f1f 55%, #e84500 100%);
    --ring-focus: 0 0 0 3px rgba(255, 183, 3, 0.45);

    /* Fixed navbar */
    --nav-height: 72px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--surface);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    padding-top: 0; /* sem barra superior nesta página: começa direto na faixa da prova */
    padding-bottom: 84px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    text-wrap: pretty;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

button {
    font-family: inherit;
}

::selection {
    background: rgba(255, 183, 3, 0.35);
}

/* Typography utilities */
.text-center { text-align: center; }
.text-green { color: var(--green-success); }
.highlight-gold { color: var(--accent-gold); }
.margin-top-cta { margin-top: 44px; }
.margin-top-sm { margin-top: 20px; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
}

/* --------------------------------------------------------------------------
   GLOBAL TOP BAR (fixed navbar)
   -------------------------------------------------------------------------- */
.global-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 9999;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(11, 18, 32, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    padding: 0 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.global-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.global-topbar-logo {
    display: flex;
    align-items: center;
}

/* PADRÃO DA LOGO DO TOPO — mesmo corte do rodapé: a logo (500x500)
   ocupa só a faixa central da imagem, então exibir com 34px de altura
   deixava o desenho com ~9px — minúsculo. Com object-fit: cover em
   150x40px, só a faixa do desenho aparece, ~4x maior. */
.logo-img-nav {
    width: 150px;
    height: 40px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.global-topbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover {
    color: var(--navy-900);
    background: rgba(11, 18, 32, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(140deg, #0b1220, #1b2c4a);
    box-shadow: 0 8px 18px -12px rgba(11, 18, 32, 0.9);
}

/* Navbar buy button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--grad-cta);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow: 0 12px 24px -14px rgba(232, 69, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.nav-cta i {
    font-size: 0.72rem;
    opacity: 0.9;
}

.nav-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 30px -14px rgba(232, 69, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.nav-mobile-toggle {
    display: none;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    color: var(--navy-900);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

/* Mobile dropdown menu */
.global-topbar-mobile {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #ffffff;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 1000;
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(10, 22, 40, 0.35);
    border-radius: 16px;
}

.global-topbar-mobile a {
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--canvas);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-topbar-mobile a:hover {
    background: rgba(255, 183, 3, 0.18);
    color: var(--navy-900);
}

.global-topbar-mobile.active {
    display: flex;
}

/* Shared logo wrapper (footer / legacy) */
.logo-wrapper {
    background: #ffffff;
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: var(--shadow-xs);
    display: inline-flex;
}

/* --------------------------------------------------------------------------
   Responsive navbar
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: inline-flex;
    }

    .global-topbar-nav .nav-link,
    .global-topbar-nav .nav-cta {
        display: none;
    }
}

/* Botão flutuante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}
.whatsapp-float:hover { background: #1eb35a; color: #fff; }
@media (max-width: 768px) {
    .whatsapp-float { bottom: 86px; }
}

/* Botão flutuante do chat (substitui o flutuante de WhatsApp) */
.chat-float {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ff6b00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}
.chat-float:hover { background: #e65e00; color: #fff; }
.chat-float { cursor: pointer; border: none; padding: 0; font-family: inherit; }
@media (max-width: 768px) {
    .chat-float { bottom: 86px; }
}

/* Janela flutuante do chat: abre por cima da página, sem sair dela.
   O botão flutuante continua visível enquanto a janela está aberta. */
.chat-widget {
    position: fixed;
    right: 18px;
    bottom: 96px;
    z-index: 9998;
    width: 360px;
    max-width: calc(100vw - 36px);
    height: 560px;
    max-height: calc(100vh - 180px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-widget[hidden] { display: none; }
.chat-widget-topo {
    background: #0b1d3a;
    color: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}
.chat-widget-topo button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.chat-widget iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 768px) {
    .chat-widget { right: 12px; left: 12px; width: auto; bottom: 152px; height: 68vh; max-height: none; }
}
