/**
 * Currículo Ideal - site público (mobile-first).
 * Temática "vibrante geométrico": blocos de cor chapados (azul, amarelo,
 * coral), formas geométricas (círculos, meias-luas, quartos de círculo),
 * tipografia geométrica (Outfit + DM Sans). Sem degradês.
 * @author Sandro Jordão.
 */

/* ------------------------------------------------------------ Fontes */

@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fontes/dmsans-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'DM Sans';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fontes/dmsans-italic.woff2') format('woff2');
}

@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url('../fontes/outfit-normal.woff2') format('woff2');
}

/* ------------------------------------------------------------ Tokens */

:root {
	--blue: #2457d6;
	--blue-dark: #1a43ad;
	--blue-50: #eef3ff;
	--blue-100: #dbe5ff;
	--navy: #0f2a5c;
	--navy-2: #183a78;
	--yellow: #ffc93c;
	--yellow-dark: #f2b200;
	--yellow-50: #fff7e1;
	--coral: #ff6b5b;
	--coral-50: #ffeceA;
	--green: #1f9d68;
	--green-50: #e3f6ec;
	--red: #c62f22;
	--red-50: #fdecea;
	--cream: #fffaf0;
	--line: #e3e7ef;
	--ink: #14213d;
	--muted: #56627a;
	--white: #fff;

	--font-text: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;

	--radius: 20px;
	--radius-sm: 12px;
	--shadow-sm: 0 1px 2px rgba(15, 42, 92, .06), 0 2px 6px rgba(15, 42, 92, .05);
	--shadow: 0 2px 4px rgba(15, 42, 92, .05), 0 10px 30px rgba(15, 42, 92, .08);
	--shadow-lg: 0 4px 10px rgba(15, 42, 92, .08), 0 24px 60px rgba(15, 42, 92, .14);
	--header-h: 72px;
}

/* ------------------------------------------------------------ Base */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; color: var(--navy); }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

mark { background: none; color: inherit; box-shadow: inset 0 -.32em 0 var(--yellow); padding: 0 .06em; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	padding: .6em 1em;
	background: var(--yellow);
	color: var(--navy);
	font-weight: 700;
	border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

main:focus { outline: none; }

/* Páginas curtas: o rodapé fica no fim da tela. */
body:not(.page-resume) { display: flex; flex-direction: column; min-height: 100vh; }
body:not(.page-resume) > main { flex: 1 0 auto; display: flex; flex-direction: column; }
body:not(.page-resume) > main > :last-child { flex: 1 0 auto; }

.icon {
	width: 1.2em; height: 1.2em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -.22em;
}

/* ------------------------------------------------------------ Botões */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 50px;
	padding: .6em 1.4em;
	border: 2px solid var(--blue);
	border-radius: var(--radius-sm);
	background: var(--blue);
	color: var(--white);
	font: 700 1.02rem/1.2 var(--font-text);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--white); background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 0 rgba(15, 42, 92, .12); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--accent { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn--accent:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--navy); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--sm { min-height: 42px; padding: .4em 1em; font-size: .95rem; }
.btn--block { width: 100%; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--navy);
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.icon-btn--danger:hover { background: var(--red-50); border-color: var(--red); color: var(--red); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	font-weight: 700;
	text-decoration: none;
}
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------ Formas geométricas */

.shape { position: absolute; display: block; pointer-events: none; }
.shape--circle { border-radius: 50%; background: var(--coral); }
.shape--half { border-radius: 999px 999px 0 0; background: var(--blue); }
.shape--quarter { border-radius: 100% 0 0 0; background: var(--navy); }
.shape--dots { background-image: radial-gradient(var(--navy) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .35; }

/* ------------------------------------------------------------ Cabeçalho */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(15, 42, 92, .08); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
}

.site-header__logo { display: block; line-height: 0; border-radius: 8px; }
.site-header__logo img { width: 190px; height: auto; transition: width .3s ease; }

.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 48px; height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--yellow);
	color: var(--navy);
	cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; stroke-width: 2.4; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--navy); color: var(--white); }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 16px 40px;
	background: var(--navy);
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
body.nav-open { overflow: hidden; }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-nav__list a {
	display: block;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	text-decoration: none;
}
.site-nav__list a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.site-nav__list a[aria-current="page"] { color: var(--yellow); }

.site-nav__account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.site-nav__account .btn { flex: 1; }
.site-nav .btn--outline { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.site-nav .btn--outline:hover { background: var(--white); color: var(--navy); }
.site-nav .btn:not(.btn--outline) { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }

.site-nav__user {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, .1);
	color: var(--white);
	font-weight: 700;
	text-decoration: none;
	flex-basis: 100%;
}
.site-nav__user:hover, .site-nav__user[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .18); }

/* ------------------------------------------------------------ Faixa do título (páginas internas) */

.page-head {
	position: relative;
	padding: 48px 0 56px;
	color: var(--white);
	background: var(--blue);
	overflow: hidden;
	isolation: isolate;
}
.page-head::before {
	content: '';
	position: absolute;
	z-index: -1;
	right: -40px; top: -50px;
	width: 120px; height: 120px;
	border-radius: 50%;
	background: var(--yellow);
}
.page-head::after {
	content: '';
	position: absolute;
	z-index: -1;
	right: 24px; bottom: -1px;
	width: 80px; height: 40px;
	border-radius: 999px 999px 0 0;
	background: var(--coral);
}
.page-head h1 { color: var(--white); margin: 0; max-width: 16em; }
.page-head p { margin: .6em 0 0; max-width: 56ch; font-size: 1.12rem; color: var(--blue-100); }
.page-head .kicker { background: var(--navy); color: var(--yellow); }

.kicker {
	display: inline-block;
	margin-bottom: 14px;
	padding: .3em .8em;
	border-radius: 999px;
	background: var(--yellow);
	color: var(--navy);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .02em;
}

/* ------------------------------------------------------------ Seções */

.section { padding: 64px 0; }
.section--band { background: var(--cream); }
.section--tight { padding: 40px 0; }
.section__head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

/* ------------------------------------------------------------ Home: hero */

.hero { position: relative; padding: 32px 0 56px; background: var(--white); overflow: hidden; }

.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }

.hero__title { margin-bottom: .35em; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.hero__proof li { display: inline-flex; align-items: center; gap: .45em; }
.hero__proof .icon { color: var(--blue); }

.hero__art {
	position: relative;
	min-height: 400px;
	border-radius: 28px;
	background: var(--yellow);
	overflow: hidden;
	isolation: isolate;
	display: grid;
	place-items: center;
	padding: 40px 24px;
}
.hero__art .shape { z-index: -1; }
.hero__art .shape--circle { width: 220px; height: 220px; right: -60px; top: -60px; }
.hero__art .shape--half { width: 180px; height: 90px; left: 24px; bottom: 0; }
.hero__art .shape--quarter { width: 120px; height: 120px; right: 0; bottom: 0; }
.hero__art .shape--dots { width: 120px; height: 96px; left: 20px; top: 24px; }

/* Folha de currículo de exemplo */
.paper-demo { position: relative; width: min(330px, 100%); }
.paper-demo__sheet {
	position: relative;
	padding: 26px 24px 28px;
	border-radius: 14px;
	background: var(--white);
	color: var(--ink);
	box-shadow: 0 18px 40px rgba(15, 42, 92, .22);
	transform: rotate(-3deg);
	overflow: hidden;
}
.paper-demo__sheet::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 8px; background: var(--blue); }
.paper-demo__name { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--navy); line-height: 1.1; }
.paper-demo__meta { margin: 4px 0 14px; font-size: .82rem; color: var(--muted); }
.paper-demo__h { margin: 14px 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.paper-demo__line { height: 8px; margin: 6px 0; border-radius: 4px; background: var(--blue-50); }
.paper-demo__line--strong { background: var(--blue-100); width: 75%; }
.paper-demo__line--short { width: 45%; }
.paper-demo__chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding: .5em .9em;
	border-radius: var(--radius-sm);
	background: var(--navy);
	color: var(--white);
	font-weight: 700;
	font-size: .85rem;
	box-shadow: var(--shadow);
	white-space: nowrap;
}
.paper-demo__chip .icon { color: var(--yellow); }
.paper-demo__chip--pdf { top: 18%; right: -18px; transform: rotate(4deg); }
.paper-demo__chip--mail { bottom: -14px; left: -10px; background: var(--coral); color: var(--navy); }
.paper-demo__chip--mail .icon { color: var(--navy); stroke-width: 3; }

/* ------------------------------------------------------------ Lista de checks */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; overflow-wrap: anywhere; }
.checks .badge { margin-top: 1px; }

.badge {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--navy);
}
.badge .icon { width: 16px; height: 16px; stroke-width: 3; }
.badge--lg { width: 60px; height: 60px; border-radius: 18px; }
.badge--lg .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.badge--blue { background: var(--blue); color: var(--white); }
.badge--coral { background: var(--coral); color: var(--navy); }
.badge--green { background: var(--green); color: var(--white); }

/* ------------------------------------------------------------ Cards */

.cards { display: grid; gap: 20px; }

.card {
	position: relative;
	padding: 28px 24px;
	border-radius: var(--radius);
	background: var(--white);
	border: 1.5px solid var(--line);
}
.card h3, .card h2.h3 { margin-top: 16px; }
.card p:last-child { margin-bottom: 0; }
.card--feature { display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; }
.card--feature::after {
	content: '';
	position: absolute;
	right: -30px; bottom: -30px;
	width: 90px; height: 90px;
	border-radius: 50%;
	background: var(--blue-50);
	z-index: 0;
}
.card--feature > * { position: relative; z-index: 1; }
.card--feature p { color: var(--muted); flex: 1; }
.card--feature .link-arrow { margin-top: 8px; }

/* ------------------------------------------------------------ Etapas */

.steps {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 12px;
}
.steps__item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; color: var(--navy); }
.steps__item small { display: block; font-weight: 500; color: var(--muted); font-size: .88rem; }
.steps__op { display: none; }

/* ------------------------------------------------------------ Blocos de texto */

.split { display: grid; gap: 32px; align-items: center; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.cta {
	position: relative;
	padding: 56px 24px;
	border-radius: 28px;
	color: var(--white);
	text-align: center;
	background: var(--navy);
	overflow: hidden;
	isolation: isolate;
}
.cta::before {
	content: '';
	position: absolute;
	z-index: -1;
	left: -50px; bottom: -70px;
	width: 200px; height: 200px;
	border-radius: 50%;
	background: var(--blue);
}
.cta::after {
	content: '';
	position: absolute;
	z-index: -1;
	right: 40px; top: 0;
	width: 110px; height: 55px;
	border-radius: 0 0 999px 999px;
	background: var(--coral);
}
.cta h2 { color: var(--white); }
.cta p { max-width: 46ch; margin: 0 auto 1.6em; font-size: 1.12rem; color: var(--blue-100); }

/* ------------------------------------------------------------ Artigos */

.articles { display: grid; gap: 20px; }
.article-card { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1.5px solid var(--line); }
.article-card__date { display: inline-flex; align-items: center; gap: .4em; font-size: .88rem; font-weight: 700; color: var(--muted); }
.article-card__date .icon { color: var(--coral); }
.article-card h2, .article-card h3 { font-family: var(--font-text); font-weight: 700; font-size: 1.22rem; letter-spacing: 0; margin: 0; }
.article-card h3 a { color: var(--navy); text-decoration: none; }
.article-card h3 a:hover { color: var(--blue); }
.article-card p { color: var(--muted); margin: 0; }
.article-card__body p { color: var(--ink); }
.article-card__body p + p { margin-top: .8em; }

/* ------------------------------------------------------------ Formulários */

.form-card { padding: 28px 20px; border-radius: var(--radius); background: var(--white); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-family: var(--font-text); font-weight: 700; font-size: 1.35rem; letter-spacing: 0; }

.auth { display: grid; gap: 24px; align-items: start; }
.auth__aside { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--yellow-50); overflow: hidden; }
.auth__aside::after { content: ''; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--yellow); opacity: .7; }
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside h2 { font-family: var(--font-text); font-weight: 700; font-size: 1.25rem; letter-spacing: 0; }

.form-grid { display: grid; gap: 18px; }
.form-grid > * { min-width: 0; }
/* align-content: start - sem isso, a dica ou o erro de um campo esticam as linhas do vizinho e desalinham os inputs. */
.field { display: grid; gap: 6px; align-content: start; }
.form-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-group > .form-grid { clear: both; }
.form-group + .form-group { margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--line); }
/* float tira a <legend> de dentro da borda do fieldset. */
.form-group__title { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.field > label, .field__label { font-weight: 700; color: var(--navy); }
.field__optional { font-weight: 500; color: var(--muted); font-size: .9em; }

.field input, .field select, .field textarea {
	width: 100%;
	min-height: 50px;
	padding: .65em .95em;
	border: 1.5px solid #cfd6e4;
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: none; }
.field select, .field .select__input {
	appearance: none;
	padding-right: 2.6em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .8em center;
	background-size: 1.1em;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 87, 214, .18); }
.field input[readonly], .field input:disabled, .field select:disabled { background-color: #f3f5f9; color: var(--muted); }

.field__hint { font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.field__error { display: none; font-size: .9rem; font-weight: 700; color: var(--red); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error .field__error { display: block; }

/* Select customizado (initSelects() em site.js): o <select> fica escondido e guarda o valor. */
.field .select__native { display: none; }
.select { position: relative; }
.field .select__input { cursor: pointer; text-overflow: ellipsis; }
.field .select__input[readonly] { background-color: var(--white); color: var(--ink); }
.field .select__input:disabled { background-color: #f3f5f9; color: var(--muted); cursor: not-allowed; }
.select.is-open .select__input { cursor: text; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 87, 214, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232457d6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }
.select__list {
	display: none;
	position: fixed;
	z-index: 60;
	max-height: min(300px, 50vh);
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
}
.select.is-open .select__list { display: block; }
.select__option { position: relative; padding: .6em .8em .6em 2.2em; border-radius: 8px; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.select__option.is-active { background: var(--blue-50); color: var(--blue-dark); }
.select__option[aria-selected="true"] { font-weight: 700; color: var(--blue); }
.select__option[aria-selected="true"]::before { content: ''; position: absolute; left: .8em; top: 50%; width: .45em; height: .8em; margin-top: -.5em; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.select__group { padding: .8em .8em .35em; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.select__empty { padding: .7em .8em; color: var(--muted); }

.field__with-btn { display: flex; gap: 8px; }
.field__with-btn input { flex: 1; min-width: 0; }
.field__with-btn .btn { min-height: 50px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
/* Checkbox ao lado de um input: mesma altura dele, centralizado. */
.field > .check { min-height: 50px; align-items: center; }
.field > .check input { margin: 0; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 10px; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 700; color: var(--red); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meter { display: grid; gap: 6px; }
.meter__bar { height: 8px; border-radius: 99px; background: #edf0f5; overflow: hidden; }
.meter__fill { height: 100%; width: 0; border-radius: inherit; background: var(--red); transition: width .25s, background .25s; }
.meter[data-level="2"] .meter__fill { background: var(--yellow-dark); }
.meter[data-level="3"] .meter__fill, .meter[data-level="4"] .meter__fill { background: var(--green); }
.meter__text { font-size: .9rem; font-weight: 500; color: var(--muted); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--navy); }
.notice .icon { color: var(--blue); margin-top: 2px; }

/* ------------------------------------------------------------ Minha conta */

.dash { display: grid; gap: 20px; }
.dash__side { display: grid; gap: 20px; align-content: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 16px 14px; border-radius: 16px; background: var(--blue-50); }
.stat:nth-child(2) { background: var(--yellow-50); }
.stat:nth-child(3) { background: var(--coral-50); }
.stat__value { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--navy); }
.stat__label { display: block; margin-top: 6px; font-size: .85rem; line-height: 1.3; font-weight: 500; color: var(--muted); }

.info-list { margin: 0; display: grid; gap: 12px; }
.info-list dt { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-list dd { margin: 0; font-weight: 700; word-break: break-word; }

.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1.5px solid var(--line);
	background: var(--white);
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
	transition: border-color .15s, transform .15s, background .15s;
}
a.service:hover { border-color: var(--blue); background: var(--blue-50); color: var(--navy); transform: translateX(3px); }
.service small { display: block; font-weight: 500; color: var(--muted); }
.service .badge { width: 44px; height: 44px; border-radius: 14px; }
.service .badge .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.service.is-disabled { opacity: .5; }

/* ------------------------------------------------------------ Construtor */

.builder { display: grid; gap: 20px; min-width: 0; }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stepper button {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 4px;
	border: 0;
	border-radius: 16px;
	background: transparent;
	color: var(--muted);
	font: 700 .8rem/1.2 var(--font-text);
	cursor: pointer;
}
.stepper .badge { width: 44px; height: 44px; border-radius: 14px; background: #edf0f5; color: var(--muted); }
.stepper .badge .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.stepper button:hover { color: var(--navy); }
.stepper button:hover .badge { background: var(--blue-100); color: var(--navy); }
.stepper button[aria-current="step"] { color: var(--navy); }
.stepper button[aria-current="step"] .badge { background: var(--blue); color: var(--white); }
.stepper button.is-done .badge { background: var(--yellow); color: var(--navy); }
.stepper__label { display: none; }

.panel { display: none; min-width: 0; }
.panel.is-active { display: block; }
.panel.card { box-shadow: var(--shadow); }
.panel__title { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.panel__title h2 { margin: 0; font-size: 1.7rem; }
.panel__title .badge { width: 44px; height: 44px; border-radius: 14px; }
.panel__title .badge .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.panel__intro { color: var(--muted); }
.panel__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--line); }

.subform { padding: 20px; border-radius: 16px; background: var(--cream); border: 1.5px dashed #f0d48a; }
.subform__title { font-size: 1.05rem; margin-bottom: 12px; }
.subform__fields { margin: 0; padding: 0; border: 0; min-width: 0; }
/* Limite de itens atingido (construtor.js): campos travados, com o aviso em cima. */
.subform__full { margin: 0 0 14px; }
.subform.is-full .subform__fields { opacity: .55; }
.subform.is-full .subform__fields * { cursor: not-allowed; }

.items { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.items__empty { padding: 18px; border-radius: 16px; border: 1.5px dashed var(--line); color: var(--muted); text-align: center; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--white); border: 1.5px solid var(--line); }
.item__icon { color: var(--blue); }
.item__text { flex: 1; min-width: 0; }
.item__text strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.item__text small { color: var(--muted); }
.item__actions { display: flex; gap: 6px; }

.slug-preview { font-weight: 700; color: var(--blue); word-break: break-all; }
.slug-status { font-weight: 700; }
.slug-status.is-ok { color: var(--green); }
.slug-status.is-error { color: var(--red); }

/* ------------------------------------------------------------ Tabela */

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--blue-50); color: var(--navy); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: .15em .65em; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #edf0f5; color: var(--muted); }
.tag--ok { background: var(--green-50); color: var(--green); }

/* ------------------------------------------------------------ Diálogo */

.modal {
	width: min(440px, 100% - 32px);
	padding: 0;
	border: 0;
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(15, 42, 92, .6); }
.modal__body { position: relative; padding: 36px 28px 28px; text-align: center; overflow: hidden; isolation: isolate; }
.modal__body::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -120px; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%; background: var(--yellow-50); }
.modal__body .badge { margin-bottom: 14px; }
.modal__title { font-family: var(--font-display); font-size: 1.7rem; }
.modal__text { color: var(--muted); }
.modal__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.modal--error .modal__body::before { background: var(--red-50); }
.modal--error .badge { background: var(--red); color: var(--white); }

/* ------------------------------------------------------------ Rodapé */

.site-footer { position: relative; color: var(--blue-100); background: var(--navy); overflow: hidden; isolation: isolate; }
.site-footer::before { content: ''; position: absolute; z-index: -1; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: var(--navy-2); }
.site-footer::after { content: ''; position: absolute; z-index: -1; left: 57%; top: 0; width: 100px; height: 50px; border-radius: 0 0 999px 999px; background: var(--yellow); }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; gap: 32px; padding: 56px 0 40px; }
.site-footer__logo img { width: 220px; }
.site-footer__brand p { max-width: 36ch; margin-top: 16px; }
.site-footer__title { margin: 0 0 12px; font-family: var(--font-text); font-size: .85rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: .1em; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__col a { text-decoration: none; font-weight: 500; }
.site-footer__col a:hover { text-decoration: underline; color: var(--white); }
.site-footer__mail, .site-footer__old a { display: inline-flex; align-items: center; gap: .5em; word-break: break-all; }
.site-footer__bottom { padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.site-footer__bottom p { margin: 0; }
/* © à esquerda e crédito à direita na mesma linha; a nota de portfólio embaixo. No celular, empilha. */
.site-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.site-footer__credit { text-align: right; }
.site-footer__note { flex-basis: 100%; color: var(--blue-100); }
@media (max-width: 639.98px) {
	.site-footer__bar { flex-direction: column; }
	.site-footer__credit { text-align: left; }
}

/* ------------------------------------------------------------ 404 */

.not-found { text-align: center; padding: 72px 0; }
.not-found__code { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--yellow); }

/* ------------------------------------------------------------ Animação ao rolar */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Títulos pequenos (fonte de texto) */

.h3, .card h2.h3 { font-family: var(--font-text); font-size: 1.2rem; font-weight: 700; letter-spacing: 0; display: flex; align-items: center; gap: .4em; }
.card h2.h3 .icon { color: var(--blue); }

/* ------------------------------------------------------------ Currículo público (folha) */

.page-resume { background: var(--cream); }

.resume-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.resume-bar__inner { width: min(860px, 100% - 32px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; }
.resume-bar__logo img { width: 170px; display: block; }
.resume-notice { width: min(860px, 100% - 32px); margin: 16px auto 0; }
.resume-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.resume {
	position: relative;
	width: min(860px, 100% - 24px);
	margin: 28px auto 56px;
	padding: 36px 22px 36px 30px;
	background: var(--white);
	border-radius: 18px;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	isolation: isolate;
}
.resume::before { content: ''; position: absolute; z-index: -1; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--yellow); }
.resume::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--blue); }
.resume__head { padding-bottom: 22px; border-bottom: 1.5px solid var(--line); }
.resume__name { margin: 0; font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); }
.resume__role { margin: 4px 0 6px; font-weight: 700; font-size: 1.15rem; color: var(--blue); }
.resume__personal { margin: 0 0 14px; color: var(--muted); font-weight: 500; }
.resume__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; }
.resume__contact li { display: inline-flex; align-items: center; gap: .4em; }
.resume__contact .icon { color: var(--coral); }
.resume__contact a { overflow-wrap: anywhere; }
.resume__section { padding-top: 24px; }
.resume__section h2 {
	display: inline-block;
	margin: 0 0 12px;
	padding: .25em .7em;
	border-radius: 8px;
	background: var(--navy);
	color: var(--white);
	font-family: var(--font-text);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.resume__section p { margin: 0 0 .3em; }
.resume__entry { margin-bottom: 16px; padding-left: 14px; border-left: 3px solid var(--blue-100); }
.resume__entry:last-child { margin-bottom: 0; }
.resume__entry h3 { margin: 0 0 2px; font-size: 1.08rem; color: var(--navy); }
.resume__muted { color: var(--muted); }
.resume__list { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.resume__list li::marker { color: var(--coral); }
.resume__foot { margin-top: 32px; padding-top: 14px; border-top: 1.5px solid var(--line); text-align: center; font-size: .85rem; color: var(--muted); }

@media print {
	@page { margin: 14mm; }
	.resume-bar, .resume-notice, .skip-link { display: none !important; }
	.page-resume { background: #fff; }
	.resume { width: auto; margin: 0; padding: 0 0 0 16px; box-shadow: none; border-radius: 0; }
	.resume::before { display: none; }
	.resume a { color: inherit; text-decoration: none; }
	.resume::after, .resume__section h2 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.resume__entry, .resume__list li { break-inside: avoid; }
}

/* ------------------------------------------------------------ Telas maiores */

@media (max-width: 479.98px) {
	.panel__nav .btn { flex: 1 1 auto; padding-inline: 1em; }
	.hero__art { min-height: 360px; }
}

@media (min-width: 640px) {
	.form-card { padding: 32px; }
	.form-grid--2, .form-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.form-grid .span-all, .form-grid--4 .span-2 { grid-column: 1 / -1; }
	.cards--3 { grid-template-columns: repeat(3, 1fr); }
	.cards--2 { grid-template-columns: repeat(2, 1fr); }
	.stepper__label { display: block; }
	.stepper button { font-size: .85rem; }
	.articles--grid { grid-template-columns: repeat(2, 1fr); }
	.resume { padding: 52px 60px 52px 68px; }
	.resume-bar__logo img { width: 190px; }
}

@media (min-width: 860px) {
	.form-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.form-grid--4 .span-3 { grid-column: span 3; }
	.form-grid--4 .span-2, .form-grid--4 .span-lg-2 { grid-column: span 2; }
	.hero { padding: 56px 0 88px; }
	.hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
	.hero__art { min-height: 480px; }
	.split { grid-template-columns: 1fr 1fr; gap: 56px; }
	.auth { grid-template-columns: 1.4fr 1fr; }
	.dash { grid-template-columns: 1fr 1fr; }
	.dash > .dash__full { grid-column: 1 / -1; }
	.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
	/* Itens com a mesma largura: cada ícone fica no meio da sua coluna e os operadores, à mesma distância dos dois lados. */
	.steps { grid-template-columns: repeat(5, minmax(0, 1fr) auto) minmax(0, 1fr); max-width: 1040px; margin-inline: auto; align-items: start; gap: 8px; }
	/* Operadores no meio da altura do ícone (.badge--lg, 60px), não do item inteiro. */
	.steps__op { display: flex; align-items: center; justify-content: center; height: 60px; padding: 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--coral); }
	/* O "›" é desenhado mais baixo que o "+" e o "=" na fonte. */
	.steps__op--next { padding-bottom: .14em; }
	.articles--grid { grid-template-columns: repeat(3, 1fr); }
	.section { padding: 88px 0; }
	.page-head { padding: 64px 0 72px; }
	.page-head::before { width: 360px; height: 360px; right: -60px; top: -140px; }
	.page-head h1, .page-head p { max-width: calc(100% - 360px); }
	.page-head::after { width: 160px; height: 80px; right: 300px; }
}

@media (min-width: 1024px) {
	:root { --header-h: 84px; }

	.site-header__logo img { width: 220px; }
	.site-header.is-scrolled .site-header__logo img { width: 190px; }

	.nav-toggle { display: none; }

	.site-nav {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 20px;
		padding: 0;
		background: none;
		overflow: visible;
		visibility: visible;
		opacity: 1;
		transform: none;
	}
	.site-nav__list { display: flex; gap: 2px; }
	.site-nav__list a { padding: 8px 12px; font-family: var(--font-text); font-size: 1rem; font-weight: 700; color: var(--navy); }
	.site-nav__list a:hover { background: var(--blue-50); color: var(--blue); }
	.site-nav__list a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
	.site-nav__account { flex-wrap: nowrap; }
	.site-nav__account .btn { flex: none; }
	.site-nav .btn--outline { border-color: var(--navy); color: var(--navy); }
	.site-nav .btn--outline:hover { background: var(--navy); color: var(--white); }
	.site-nav .btn:not(.btn--outline) { background: var(--blue); border-color: var(--blue); color: var(--white); }
	.site-nav .btn:not(.btn--outline):hover { background: var(--blue-dark); }
	.site-nav__user { flex-basis: auto; background: var(--blue-50); color: var(--navy); }
	.site-nav__user:hover, .site-nav__user[aria-current="page"] { background: var(--blue-100); color: var(--navy); }
}

@media (max-width: 1023.98px) {
	.site-header__logo img { width: min(260px, 100vw - 32px - 64px); }
}

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