/*
 * Estilos da pagina publica de vaga (public_html/vaga.php).
 *
 * Extraido do <style> inline em 2026-07-30 (consultoria STD-A02): eram 706
 * linhas de CSS estatico dentro de um arquivo PHP de 1.368 — mais da metade
 * do arquivo. Aqui vira estatico e CACHEAVEL pelo navegador, em vez de ser
 * reenviado a cada abertura de vaga.
 *
 * As cores da empresa (white-label) NAO vem para ca: continuam num <style>
 * minimo no proprio vaga.php, definindo as variaveis --cor-primaria,
 * --cor-primaria-dark, --cor-primaria-light, --cor-btn e --cor-btn-dark.
 * Este arquivo apenas as consome via var(), como ja fazia.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #f8f9fb;
            color: #1e293b;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* ── Topbar ── */
        .topbar {
            background: #fff;
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .topbar-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .topbar-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: #1e293b;
        }

        .topbar-logo {
            height: 36px;
            width: auto;
            object-fit: contain;
        }

        .topbar-company {
            font-weight: 700;
            font-size: 15px;
            color: #334155;
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .topbar-link {
            color: #64748b;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .topbar-link:hover {
            background: #f1f5f9;
            color: #1e293b;
        }

        .topbar-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--cor-btn);
            color: #fff;
            text-decoration: none;
            padding: 9px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
        }

        .topbar-btn:hover {
            background: var(--cor-btn-dark);
        }

        /* ── Hero / Banner ── */
        .hero {
            background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-primaria-dark) 100%);
            height: 220px;
            position: relative;
        }

        .hero.has-banner {
            background: transparent;
            height: 600px;
            max-width: 1980px;
            margin: 0 auto;
            overflow: hidden;
        }

        .hero-banner {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .hero-banner img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        @media (max-width: 992px) {
            .hero.has-banner { height: 400px; }
        }
        @media (max-width: 576px) {
            .hero.has-banner { height: 250px; }
        }

        /* ── Hero Texto (frase de impacto) ── */
        .hero.has-texto { height: 400px; }
        .hero-texto-wrap {
            position: relative;
            z-index: 1;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1.5rem;
            text-align: center;
        }
        .hero-texto {
            font-size: clamp(1.4rem, 3.6vw, 2.6rem);
            font-weight: 700;
            line-height: 1.25;
            max-width: 900px;
            margin: 0;
            letter-spacing: -0.01em;
            text-shadow: 0 2px 12px rgba(0,0,0,0.10);
        }

        /* ── Hero Predefinido (texto + mosaico + símbolo) ── */
        .hero.has-predef { background: transparent; height: 600px; padding: 0; max-width: 1980px; margin: 0 auto; }
        .hero-predef { position: relative; width: 100%; height: 100%; overflow: hidden; }
        .hpp-bg-base { position:absolute; inset:0; background: var(--hpp-fundo, #1E40AF); }
        .hpp-bg-side {
            position:absolute; top:0; right:0; bottom:0; width: calc(2.5rem + clamp(270px, 25vw, 460px));
            background-color: var(--hpp-fundo, #1E40AF);
            background-image: linear-gradient(to left, transparent 0%, rgba(255,255,255,0.18) 100%);
            border-top-left-radius: 100px; border-bottom-left-radius: 100px;
        }
        .hpp-content {
            position: absolute; inset: 0; display: flex;
            align-items: center; justify-content: flex-start;
            padding: 4rem 2.5rem; gap: clamp(1rem, 1.6vw, 2rem); /* texto + fotos agrupados à esquerda; símbolo empurrado à direita */
        }
        .hpp-texto { color: #fff; flex: 0 0 auto; width: clamp(270px, 25vw, 460px); }
        .hpp-row { display: flex; align-items: center; justify-content: flex-start; gap: 18px; transform-origin: left center; }
        .hpp-hash {
            font-family: Georgia, 'Playfair Display', 'Times New Roman', serif;
            font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 900; line-height: 0.85;
            color: var(--hpp-cor-1, #FFFFFF);
            font-style: italic;
        }
        .hpp-frases { display: flex; flex-direction: column; line-height: 1.05; gap: 6px; min-width: 0; }
        .hpp-frase-1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); font-weight: 100; color: var(--hpp-cor-1, #FFFFFF); white-space: nowrap; }
        .hpp-frase-2 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 600; color: var(--hpp-cor-2, #F59E0B); white-space: nowrap; }
        .hpp-mosaico { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 14px; width: clamp(320px, 38vw, 720px); }
        .hpp-mosaico-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
        .hpp-foto-mini, .hpp-foto-grande {
            background-color: rgba(255,255,255,.08); border-radius: 16px;
            background-size: cover; background-position: center;
        }
        .hpp-foto-mini { aspect-ratio: 3 / 2; }
        .hpp-foto-grande { aspect-ratio: 3.4 / 1; }
        .hpp-simbolo {
            flex: 0 0 auto; margin-left: auto; position: relative; z-index: 1;
            /* ocupa a faixa do painel lateral e centraliza o símbolo nela,
               em vez de colá-lo na borda direita */
            width: clamp(270px, 25vw, 460px); height: 100%;
            display: flex; align-items: center; justify-content: center;
        }
        /* dimensiona proporcional à altura do hero (como no preview): símbolos
           pequenos crescem pra preencher melhor a faixa; largos respeitam o teto */
        .hpp-simbolo img { width: auto; height: 60%; max-width: 80%; object-fit: contain; }
        @media (max-width: 992px) {
            .hero.has-texto { height: 300px; }
            .hero.has-predef { height: auto; min-height: 360px; }
        }
        @media (max-width: 768px) {
            .hpp-content { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; gap: 1rem; text-align: center; }
            .hpp-bg-side { display: none; }
            .hpp-row { justify-content: center; }
            .hpp-simbolo { width: auto; height: auto; margin-left: 0; }
            .hpp-simbolo img { width: auto; height: auto; max-width: 60%; max-height: 100px; }
        }
        @media (max-width: 576px) {
            .hero.has-texto { height: 240px; }
        }

        /* ── Layout ── */
        .page-container {
            max-width: 1060px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .page-layout {
            display: grid;
            grid-template-columns: 1fr 340px;
            gap: 28px;
            margin-top: -48px;
            position: relative;
            z-index: 2;
            padding-bottom: 80px;
        }

        /* ── Main Column ── */
        .main-col {
            min-width: 0;
        }

        .card {
            background: #fff;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.04);
        }

        /* Job Header Card */
        .job-header {
            padding: 36px 36px 28px;
        }

        .job-title {
            font-size: 28px;
            font-weight: 800;
            color: #0f172a;
            line-height: 1.25;
            margin-bottom: 20px;
            letter-spacing: -0.02em;
        }

        .job-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .job-tag {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: #f1f5f9;
            color: #475569;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
        }

        .job-tag i {
            color: var(--cor-primaria);
            font-size: 12px;
        }

        /* Job Content */
        .job-content {
            padding: 0 36px 36px;
        }

        .job-section {
            margin-bottom: 32px;
        }

        .job-section:last-child {
            margin-bottom: 0;
        }

        .job-section-title {
            font-size: 16px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .job-section-title::before {
            content: '';
            width: 4px;
            height: 20px;
            background: var(--cor-primaria);
            border-radius: 4px;
            flex-shrink: 0;
        }

        .description {
            font-size: 15px;
            color: #475569;
            line-height: 1.8;
        }

        .description h2 {
            font-size: 16px;
            font-weight: 700;
            color: #0f172a;
            margin: 32px 0 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .description h2::before {
            content: '';
            width: 4px;
            height: 20px;
            background: var(--cor-primaria);
            border-radius: 4px;
            flex-shrink: 0;
        }

        .description h2:first-child {
            margin-top: 0;
        }

        .description p {
            margin-bottom: 14px;
        }

        .description ul, .description ol {
            margin: 14px 0;
            padding-left: 0;
            list-style: none;
        }

        .description li {
            position: relative;
            padding-left: 24px;
            margin-bottom: 10px;
            color: #475569;
        }

        .description li::before {
            content: '';
            position: absolute;
            left: 2px;
            top: 9px;
            width: 6px;
            height: 6px;
            background: var(--cor-primaria);
            border-radius: 50%;
        }

        .description strong {
            color: #1e293b;
            font-weight: 600;
        }

        /* ── Sidebar ── */
        .sidebar-col {
            position: relative;
        }

        .sidebar-sticky {
            position: sticky;
            top: 88px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Apply Card */
        .apply-card {
            padding: 28px;
            text-align: center;
        }

        .apply-card .btn-apply {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            background: var(--cor-btn);
            color: #fff;
            text-decoration: none;
            padding: 16px 24px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 700;
            transition: all 0.25s ease;
            border: none;
            cursor: pointer;
        }

        .apply-card .btn-apply:hover {
            background: var(--cor-btn-dark);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }

        .apply-card .btn-apply i {
            font-size: 16px;
        }

        .apply-login {
            margin-top: 14px;
            font-size: 13px;
            color: #94a3b8;
        }

        .apply-login a {
            color: var(--cor-primaria);
            font-weight: 600;
            text-decoration: none;
        }

        .apply-login a:hover {
            text-decoration: underline;
        }

        .apply-trust {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 16px;
            font-size: 12px;
            color: #94a3b8;
        }

        .apply-trust i {
            color: var(--cor-primaria);
            font-size: 11px;
        }

        /* Company Card */
        .company-card {
            padding: 28px;
        }

        .company-card-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 16px;
        }

        .company-logo-sm {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            object-fit: contain;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            padding: 6px;
        }

        .company-logo-placeholder {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: var(--cor-primaria-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--cor-primaria);
            font-size: 20px;
            font-weight: 800;
            flex-shrink: 0;
        }

        .company-info h3 {
            font-size: 15px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.3;
        }

        .company-info span {
            font-size: 13px;
            color: #94a3b8;
        }

        .company-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 10px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            color: #475569;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s;
        }

        .company-link:hover {
            border-color: var(--cor-primaria);
            color: var(--cor-primaria);
            background: var(--cor-primaria-light);
        }

        /* Info Card */
        .info-card {
            padding: 24px 28px;
        }

        .info-card-title {
            font-size: 13px;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }

        .info-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 0;
        }

        .info-item + .info-item {
            border-top: 1px solid #f1f5f9;
        }

        .info-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: var(--cor-primaria-light);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .info-icon i {
            color: var(--cor-primaria);
            font-size: 14px;
        }

        .info-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 36px;
        }

        .info-label {
            font-size: 11px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .info-value {
            font-size: 14px;
            font-weight: 600;
            color: #334155;
        }

        /* Share */
        .share-section {
            padding: 20px 28px;
            border-top: 1px solid #f1f5f9;
        }

        .share-title {
            font-size: 12px;
            font-weight: 600;
            color: #94a3b8;
            margin-bottom: 10px;
        }

        .share-buttons {
            display: flex;
            gap: 8px;
        }

        .share-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
            border: 1px solid #e2e8f0;
            color: #475569;
            background: #fff;
        }

        .share-btn:hover {
            border-color: #cbd5e1;
            background: #f8fafc;
        }

        .share-btn.whatsapp { color: #25d366; }
        .share-btn.whatsapp:hover { background: #25d36610; border-color: #25d366; }
        .share-btn.copy:hover { background: var(--cor-primaria-light); border-color: var(--cor-primaria); color: var(--cor-primaria); }

        /* ── Footer ── */
        .page-footer {
            text-align: center;
            padding: 32px 24px;
            color: #94a3b8;
            font-size: 13px;
            border-top: 1px solid #e2e8f0;
            background: #fff;
        }

        .page-footer strong {
            color: #64748b;
            font-weight: 600;
        }

        /* ── Mobile CTA Bar ── */
        .mobile-cta {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-top: 1px solid #e2e8f0;
            padding: 12px 16px;
            z-index: 100;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        }

        .mobile-cta a {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            background: var(--cor-btn);
            color: #fff;
            text-decoration: none;
            padding: 14px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 700;
        }

        /* ── Responsive ── */
        @media (max-width: 860px) {
            .page-layout {
                grid-template-columns: 1fr;
                margin-top: -32px;
                padding-bottom: 100px;
            }

            .topbar-btn { display: none; }
            .topbar-link.desktop { display: none; }

            .mobile-cta { display: block; }

            .sidebar-sticky {
                position: static;
            }

            .apply-card { display: none; }

            .hero:not(.has-banner) { height: 160px; }

            .job-header { padding: 28px 24px 20px; }
            .job-content { padding: 0 24px 28px; }
            .job-title { font-size: 22px; }

            .info-card { padding: 20px 24px; }
            .company-card { padding: 20px 24px; }
        }

        @media (min-width: 861px) and (max-width: 1060px) {
            .page-layout {
                grid-template-columns: 1fr 300px;
                gap: 20px;
            }
        }

        /* ── Misc ── */
        html { scroll-behavior: smooth; }
        ::selection { background: var(--cor-primaria); color: white; }
