/*
 * Quasar — estilos do site.
 *
 * Identidade Midnight & Gold aprovada (docs/brief/brand): azul profundo #0B1B2B,
 * dourado acetinado #C6AA77 chapado (sem degradê metálico), off-white #F5F3EE e cinza
 * azulado #647084; só Inter. Dourado é acento (linhas, estrela, botões com texto
 * navy); nunca texto dourado sobre fundo claro (contraste insuficiente).
 * Sem estilo inline: a CSP do site é style-src 'self'.
 *
 * As classes do formulário (.form, .field, .input, .phone, .alert...) são as do core
 * (app/Views/partials/form.php e field.php); cada site só muda o visual delas.
 */

/* ---------- Fonte (no próprio site) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/inter-variable-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --quasar-navy: #0B1B2B;
  --quasar-gold: #C6AA77;
  --quasar-offwhite: #F5F3EE;
  --quasar-slate: #647084;
  --quasar-white: #FFFFFF;
  --navy-deep: #07131F;
  --navy-2: #12273B;
  --navy-line: rgba(245, 243, 238, .12);
  --gold-hover: #D4BC8F;
  --gold-soft: rgba(198, 170, 119, .14);
  --text: #0B1B2B;
  --text-2: #3D4A5C;
  --text-3: #556174;
  --on-dark: #D9DCE2;
  --on-dark-2: #A3ACBA;
  --line: #E3DED3;
  --line-strong: #CFC8B9;
  --input-border: #8C94A3;
  --error: #B4232B;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-card: 12px;
  --content-width: 1160px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--quasar-white); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--quasar-gold); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: break-word; }
p { margin: 0; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 16px; border-radius: 8px; background: var(--quasar-gold); color: var(--quasar-navy); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.site-root { width: 100%; min-width: 0; }
.wrap { max-width: calc(var(--content-width) + 2 * clamp(16px, 4vw, 40px)); margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; font-family: inherit; font-weight: 500; letter-spacing: .02em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--quasar-gold); color: var(--quasar-navy); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--ghost { border-color: rgba(245, 243, 238, .38); color: var(--quasar-offwhite); }
.btn--ghost:hover { border-color: var(--quasar-offwhite); background: rgba(245, 243, 238, .06); }
.btn--outline { border-color: rgba(198, 170, 119, .7); color: var(--quasar-offwhite); }
.btn--outline:hover { border-color: var(--quasar-gold); background: var(--gold-soft); }
.btn--navy { background: var(--quasar-navy); color: var(--quasar-offwhite); }
.btn--navy:hover { background: var(--navy-2); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15.5px; }

/* ---------- Rótulos (caixa alta, tracking amplo, filete dourado) ---------- */
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.kicker::before { content: ""; flex: 0 0 auto; width: 28px; height: 1px; background: var(--quasar-gold); }
.kicker--dark, .kicker--hero { color: var(--quasar-gold); }

/* ---------- Cabeçalho (fixo; transparente sobre o hero, sólido ao rolar) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
.site-header.is-solid, .site-header.is-scrolled { background: rgba(11, 27, 43, .92); box-shadow: 0 1px 0 var(--navy-line); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; padding: 8px 0; }
.brand img { display: block; width: clamp(150px, 15vw, 180px); height: auto; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__link { position: relative; display: block; padding: 12px 14px; font-size: 14.5px; font-weight: 400; letter-spacing: .02em; color: var(--on-dark); text-decoration: none; transition: color .18s ease; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--quasar-gold); transform: scaleX(0); transform-origin: left center; transition: transform .25s ease; }
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--quasar-white); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }

/* Seletor PT/EN */
.lang { display: flex; align-items: center; gap: 2px; }
.lang__link { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--on-dark-2); text-decoration: none; transition: color .18s ease, background-color .18s ease; }
.lang__link:hover { color: var(--quasar-white); }
.lang__link.is-active { color: var(--quasar-navy); background: var(--quasar-gold); }
.lang--bar { padding-left: 12px; border-left: 1px solid var(--navy-line); }

/* Menu do celular: <details>, sem JavaScript obrigatório. */
.nav-mobile { display: none; }
.nav-mobile__toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; border-radius: 8px; color: var(--quasar-offwhite); cursor: pointer; list-style: none; }
.nav-mobile__toggle::-webkit-details-marker { display: none; }
.nav-mobile__toggle:focus-visible { outline-offset: -3px; }
.nav-mobile__bar { transition: transform .25s ease, opacity .2s ease; transform-origin: 11px 11px; }
.nav-mobile[open] .nav-mobile__bar--top { transform: translateY(5px) rotate(45deg); }
.nav-mobile[open] .nav-mobile__bar--mid { opacity: 0; }
.nav-mobile[open] .nav-mobile__bar--bottom { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile__panel { position: absolute; left: 0; right: 0; top: var(--header-h); padding: 8px clamp(16px, 4vw, 40px) 24px; background: var(--quasar-navy); border-top: 1px solid var(--navy-line); box-shadow: 0 24px 40px rgba(7, 19, 31, .5); }
.nav-mobile__list { list-style: none; margin: 0 0 20px; padding: 0; }
.nav-mobile__link { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--navy-line); font-size: 17px; font-weight: 400; color: var(--quasar-offwhite); text-decoration: none; }
.lang--panel { gap: 8px; }
.lang--panel .lang__link { min-width: 56px; height: 44px; border: 1px solid var(--navy-line); }
.lang--panel .lang__link.is-active { border-color: var(--quasar-gold); }

/* ---------- Hero: cosmos girando (canvas) e elemento orbital ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: max(660px, 100svh); padding: calc(var(--header-h) + 48px) 0 96px; overflow: hidden; background: radial-gradient(ellipse at 72% 42%, #16304A 0%, var(--quasar-navy) 52%, var(--navy-deep) 100%); color: var(--quasar-offwhite); isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: -1; height: 140px; background: linear-gradient(to bottom, rgba(7, 19, 31, 0), var(--navy-deep)); pointer-events: none; }
.hero__inner { width: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.hero__title { margin: 0; max-width: 13ch; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; font-weight: 300; letter-spacing: -.025em; color: var(--quasar-white); }
.hero__dot { color: var(--quasar-gold); }
.hero__text { max-width: 560px; margin-top: 28px; font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.7; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__art { display: flex; justify-content: center; }

/* Elemento orbital: o símbolo em grande, com órbitas e corpos que giram (main.js). */
.orbits { display: block; width: min(100%, 500px); height: auto; overflow: visible; }
.orbits__halo { fill: none; stroke: rgba(245, 243, 238, .08); stroke-width: 1; stroke-dasharray: 2 7; }
.orbits__ring { fill: none; stroke: var(--quasar-gold); }
.orbits__ring--main { stroke-width: 3; }
.orbits__ring--far { stroke-width: 1; stroke-opacity: .35; stroke-dasharray: 3 9; }
.orbits__ring--near { stroke-width: 1; stroke-opacity: .18; }
.orbits__axis { stroke: var(--quasar-gold); stroke-width: 1.3; }
.orbits__star { fill: var(--quasar-gold); transform-box: fill-box; transform-origin: center; animation: pulse 5s ease-in-out infinite; }
.orbits__moon { fill: var(--quasar-gold); }
.orbits__planet { fill: #1D3A55; stroke: var(--quasar-offwhite); stroke-opacity: .55; stroke-width: 1.2; }
.orbits__spark { fill: var(--quasar-offwhite); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* Página interna (404): faixa navy curta. */
.page-hero { padding: calc(var(--header-h) + 80px) 0 80px; background: radial-gradient(ellipse at 70% 0%, #16304A 0%, var(--quasar-navy) 60%, var(--navy-deep) 100%); color: var(--quasar-offwhite); }
.page-hero--tall { padding-bottom: 128px; }
.page-hero__title { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; font-weight: 300; letter-spacing: -.02em; color: var(--quasar-white); }
.page-hero__text { max-width: 560px; margin-top: 16px; font-size: 17px; color: var(--on-dark); }

/* ---------- Seções ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section--paper { background: var(--quasar-offwhite); }
.section--dark { position: relative; background: var(--quasar-navy); color: var(--quasar-offwhite); }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.section__title { margin: 0; max-width: 17ch; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.section__body { display: flex; flex-direction: column; gap: 20px; padding-top: 38px; font-size: 17px; line-height: 1.75; color: var(--text-2); }
.section__body--editorial p:first-child { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.6; color: var(--text); }

/* Pilares: três cartões sóbrios */
.pillars { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { display: flex; flex-direction: column; gap: 14px; padding: 32px 30px 34px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--quasar-white); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.pillar:hover { border-color: var(--line-strong); box-shadow: 0 22px 44px -30px rgba(11, 27, 43, .4); transform: translateY(-2px); }
.pillar__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pillar__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--quasar-navy); color: var(--quasar-offwhite); }
.pillar__icon .icon { width: 26px; height: 26px; }
.pillar__number { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--text-3); }
.pillar__title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.pillar__text { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.icon__accent { fill: var(--quasar-gold); stroke: var(--quasar-gold); }
.icon__accent-stroke { stroke: var(--quasar-gold); }

/* Oportunidades: texto institucional e critérios */
.opportunities { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.opportunities .section__title { color: var(--quasar-white); }
.opportunities__text { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; font-size: 17px; line-height: 1.75; color: var(--on-dark); }
.opportunities__text strong { font-weight: 600; color: var(--quasar-white); }
.criteria { position: sticky; top: calc(var(--header-h) + 32px); padding: 36px 32px; border: 1px solid var(--navy-line); border-radius: var(--radius-card); background: var(--navy-2); }
.criteria__title { margin: 0 0 20px; font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--quasar-gold); }
.criteria__list { list-style: none; margin: 0 0 32px; padding: 0; }
.criteria__item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--navy-line); font-size: 17.5px; color: var(--quasar-white); }
.criteria__item:first-child { border-top: 1px solid var(--navy-line); }
.criteria__star { flex: 0 0 auto; fill: var(--quasar-gold); }
.criteria__cta { width: 100%; }

/* ---------- Contato: texto e aviso ao lado do formulário ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.contact__text { margin-top: 24px; font-size: 17px; line-height: 1.75; color: var(--text-2); }
.contact__note { margin-top: 20px; font-size: 14.5px; line-height: 1.65; color: var(--text-3); }
.contact__form { min-width: 0; }

/* ---------- Formulário (classes do core) ---------- */
.form { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--quasar-white); box-shadow: 0 30px 60px -44px rgba(11, 27, 43, .45); scroll-margin-top: calc(var(--header-h) + 16px); }
.form__title { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 20px; align-items: start; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 14.5px; font-weight: 500; color: var(--text); }
.field__required { margin-left: 3px; color: var(--error); font-weight: 600; }
.field__optional { font-weight: 400; color: var(--text-3); }
.field__hint { font-size: 13.5px; color: var(--text-3); }

.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--quasar-white); font-family: inherit; font-size: 16px; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder { color: #8C94A3; opacity: 1; }
.input:hover { border-color: var(--text-3); }
.input:focus-visible { outline: none; border-color: var(--quasar-navy); box-shadow: 0 0 0 3px rgba(198, 170, 119, .6); }
.input--select { appearance: none; padding-right: 40px; background: var(--quasar-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23556174' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; text-overflow: ellipsis; cursor: pointer; }
.input--textarea { height: auto; min-height: 148px; padding: 12px 14px; line-height: 1.55; resize: vertical; }

.phone { display: flex; gap: 8px; min-width: 0; }
.phone .input { flex: 1 1 auto; min-width: 0; }
.phone__country { position: relative; flex: 0 0 auto; display: flex; align-items: center; height: 48px; padding: 0 32px 0 12px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--quasar-white); font-size: 16px; color: var(--text); white-space: nowrap; }
.phone__country::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(45deg); pointer-events: none; }
.phone__country:focus-within { border-color: var(--quasar-navy); box-shadow: 0 0 0 3px rgba(198, 170, 119, .6); }
.phone__country-label { font-variant-numeric: tabular-nums; }
.phone__select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }

/* "Dados da empresa" (só em Busca de investimento): bloco destacado, dois campos por linha. */
.field-group { margin: 0; padding: 22px 20px 24px; border: 1px solid var(--line); border-left: 2px solid var(--quasar-gold); border-radius: 8px; min-width: 0; display: flex; flex-direction: column; gap: 6px; background: #FBFAF7; }
.field-group__legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.field-group__row { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px 20px; align-items: start; }
.field--sub .field__label { font-size: 14px; font-weight: 500; color: var(--text); }

.input.is-invalid, .has-error .phone__country { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.input.is-invalid { background-color: #FFF7F7; }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--error); }
.field-error::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm-.75 3.5h1.5v5h-1.5zm0 6.25h1.5v1.5h-1.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm-.75 3.5h1.5v5h-1.5zm0 6.25h1.5v1.5h-1.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.has-error > .field__label, .field-group.has-error > .field-group__legend { color: var(--error); }

/* Turnstile no tamanho padrão (300×65), centralizado. */
.field--captcha { align-items: center; }
.captcha { display: flex; justify-content: center; width: 100%; min-height: 65px; }
.field--captcha .field-error { margin-top: 2px; text-align: center; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.alert svg { flex: 0 0 auto; margin-top: 2px; }
.alert--error { background: #FDEDEE; border: 1px solid #F2B8BC; color: #8A1A20; }
.alert--success { background: #EEF6F0; border: 1px solid #A9D3B5; color: #1B5530; }

.btn--submit { align-self: flex-start; height: 52px; padding: 0 32px; border: 0; background: var(--quasar-navy); color: var(--quasar-offwhite); font-size: 15.5px; }
.btn--submit:hover { background: var(--navy-2); }
.btn--submit:disabled { opacity: .7; cursor: progress; transform: none; }


/* ---------- Rodapé: só o copyright ---------- */
.site-footer { padding: 28px 0; background: var(--navy-deep); color: var(--on-dark-2); border-top: 1px solid var(--navy-line); }
.site-footer__copy { font-size: 13.5px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav__list .nav__link { padding: 12px 10px; }
  .nav { gap: 14px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav-mobile { display: block; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__art { order: -1; justify-content: flex-start; }
  .orbits { width: 220px; }
  .section__head, .contact, .opportunities { grid-template-columns: minmax(0, 1fr); }
  .section__body { padding-top: 0; }
  .section__title { max-width: 22ch; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criteria { position: static; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding-bottom: 72px; }
  .orbits { width: 168px; }
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .btn { width: 100%; }
  .form { margin-left: -16px; margin-right: -16px; padding: 28px 16px; border-left: 0; border-right: 0; border-radius: 0; }
  .field-group { padding: 18px 14px 20px; }
  .btn--submit { align-self: stretch; }
  .criteria { padding: 28px 20px; }
}

@media (hover: none) {
  .btn:hover, .pillar:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
