/*
Theme Name: Portfólio Artista
Description: Tema minimalista para portfólio de artista visual. Home, Séries, Processo, Imprensa, Curadoria e Contato. Versão em português e inglês (Polylang).
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: portfolio-artista
*/

:root {
	--bg: #fff;
	--ink: #000;
	--muted: #707070;
	--line: #e3e3e3;
	--soft: #f3f3f3;
	--overlay: rgba(255, 255, 255, 0.78);
	--gutter: clamp(1.25rem, 5vw, 3rem);
	--max: 1120px;
	--font: "Jost", "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #000;
	--ink: #ededed;
	--muted: #8f8f8f;
	--line: #232323;
	--soft: #141414;
	--overlay: rgba(0, 0, 0, 0.78);
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 300;
	font-size: 0.9375rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 1px solid var(--ink);
	outline-offset: 3px;
}

h1, h2, h3 { font-weight: 300; line-height: 1.2; margin: 0 0 0.9rem; text-wrap: balance; }

p { margin: 0 0 1.25em; text-wrap: pretty; }

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed; top: 0.5rem; left: 0.5rem; z-index: 200;
	background: var(--ink); color: var(--bg); padding: 0.5rem 0.9rem;
}

/* ---------- Cabeçalho ---------- */
.site-header { border-bottom: 1px solid var(--line); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 1rem;
}

.site-brand a { text-decoration: none; display: block; }
.site-brand img { max-height: 40px; width: auto; }
.site-brand__title { font-size: 0.95rem; font-weight: 400; letter-spacing: 0.06em; }

.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }

.site-nav a {
	text-decoration: none;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	color: var(--muted);
	padding-block: 0.3rem;
	border-bottom: 1px solid transparent;
	transition: color 0.3s, border-color 0.3s;
}

.site-nav a:hover { color: var(--ink); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--ink); border-bottom-color: var(--ink); }

.site-tools { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: flex; gap: 0.6rem; list-style: none; margin: 0; padding: 0; font-size: 0.78rem; letter-spacing: 0.08em; }
.lang-switch a { text-decoration: none; color: var(--muted); }
.lang-switch a:hover, .lang-switch a.is-ativo { color: var(--ink); }
.lang-switch a.is-ativo { border-bottom: 1px solid var(--ink); }

.theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: none;
	border: 0;
	color: var(--muted);
	font: inherit;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	padding: 0.3rem 0;
	cursor: pointer;
	transition: color 0.3s;
}

.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { flex: none; width: 15px; height: 15px; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	color: var(--ink);
	font: inherit;
	font-size: 0.8rem;
	padding: 0.3rem 0.85rem;
	cursor: pointer;
}

@media (max-width: 900px) {
	.site-nav ul { gap: 1.25rem; }
}

@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.site-header__inner { flex-wrap: wrap; gap: 0.6rem 1rem; }
	.site-nav { display: none; width: 100%; order: 3; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0.15rem; padding-block: 0.6rem 0.4rem; }
	.site-nav a { display: inline-block; font-size: 0.95rem; }
}

/* ---------- Botões ---------- */
.btn {
	display: inline-block;
	font: inherit;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	background: var(--ink);
	color: var(--bg);
	border: 1px solid var(--ink);
	padding: 0.55rem 1.4rem;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
}

.btn:hover { background: var(--bg); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Home: capa ---------- */
.intro-split {
	display: grid;
	grid-template-columns: minmax(170px, 270px) minmax(0, 1fr);
	gap: clamp(2rem, 8vw, 6.5rem);
	align-items: start;
	padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}

.intro-split--sem-foto { grid-template-columns: 1fr; max-width: 58ch; }

.intro-split__foto img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
}

.intro-split__foto--vazia {
	aspect-ratio: 4 / 5;
	background: var(--soft);
	display: grid;
	place-items: center;
	text-align: center;
	padding: 1rem;
	color: var(--muted);
	font-size: 0.8rem;
}

.intro-split__nome {
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	font-weight: 200;
	line-height: 1.05;
	letter-spacing: -0.015em;
	margin: 0 0 0.75rem;
}

.intro-split__cargo { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.75rem; max-width: 52ch; }
.intro-split__bio { max-width: 54ch; }
.intro-split__bio > :last-child { margin-bottom: 0; }

.destaques {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.5rem;
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--line);
	font-size: 0.82rem;
	color: var(--muted);
}

.intro-split__acoes { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 0; }

@media (max-width: 760px) {
	.intro-split { grid-template-columns: 1fr; gap: 1.75rem; }
	.intro-split__foto { max-width: 200px; }
}

/* ---------- Frase de destaque ---------- */
.quote-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }

.pull-quote { margin: 0; max-width: 44ch; }
.pull-quote blockquote { margin: 0; }

.pull-quote p {
	font-size: clamp(1.2rem, 2.4vw, 1.65rem);
	font-weight: 200;
	line-height: 1.35;
	letter-spacing: -0.005em;
	margin: 0;
}

.pull-quote figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.03em; }
.pull-quote figcaption a { text-decoration: none; border-bottom: 1px solid var(--line); }
.pull-quote figcaption a:hover { border-bottom-color: var(--ink); }

/* ---------- Seções ---------- */
.section { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }

.section__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-top: 1px solid var(--line);
	padding-top: 0.9rem;
	margin-bottom: 1.75rem;
}

.section__head h2 { font-size: 0.95rem; font-weight: 400; letter-spacing: 0.06em; margin: 0; }
.section__head a { font-size: 0.8rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.section__head a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Grade de séries ---------- */
.pa-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
	gap: 2.25rem 1.25rem;
}

.pa-grid--large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 2.75rem 1.5rem; }

.card { margin: 0; }
.card a { display: block; text-decoration: none; }

.card__img { aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }

.card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.card a:hover .card__img img, .card a:focus-visible .card__img img { transform: scale(1.03); }

.card__title { font-size: 0.95rem; font-weight: 400; margin: 0.8rem 0 0.1rem; }

.card__title span {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	padding-bottom: 0.15em;
	transition: background-size 0.6s var(--ease);
}

.card a:hover .card__title span, .card a:focus-visible .card__title span { background-size: 100% 1px; }

.card__meta { color: var(--muted); font-size: 0.8rem; margin: 0.3rem 0 0; line-height: 1.5; }

/* ---------- Vídeo ---------- */
.video-frame { aspect-ratio: 16 / 9; background: var(--soft); max-width: 720px; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; }

/* ---------- Páginas internas ---------- */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.25rem); }
.page-head h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 200; letter-spacing: -0.015em; margin: 0; }
.page-head p { color: var(--muted); max-width: 56ch; margin: 0.9rem 0 0; font-size: 0.9rem; }

.page-intro { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.entry-content { max-width: 60ch; }
.entry-content--serie { max-width: none; }
.entry-content--serie > p { max-width: 60ch; }
.entry-content figure { margin: 0 0 1.25rem; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; }
.entry-content--serie img { cursor: zoom-in; }
.wp-block-gallery { gap: 0.75rem; }

.entry-content--page h2 {
	font-size: 1.05rem;
	font-weight: 400;
	margin: 3rem 0 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--line);
}

.entry-content--page h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.entry-content--page ul, .entry-content--page ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.entry-content--page li { margin-bottom: 0.5em; padding-left: 0.2em; }
.entry-content--page .quote-section, .entry-content--page .visto-em { max-width: none; }
.entry-content--page .pull-quote { margin-block: 2.25rem; }

/* ---------- Tags (temas) ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.25rem 0 0; padding: 0; }

.tags a {
	display: inline-block;
	border: 1px solid var(--line);
	padding: 0.1rem 0.7rem;
	font-size: 0.75rem;
	letter-spacing: 0.03em;
	color: var(--muted);
	text-decoration: none;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.tags a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Obras e fichas (galeria menor) ---------- */
.obras {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 2.75rem 1.75rem;
	margin-top: 1rem;
	max-width: 900px;
}

.obra { margin: 0; }
.obra__img { background: var(--soft); }
.obra__img img { width: 100%; height: auto; cursor: zoom-in; }
.obra__ficha { padding-top: 0.8rem; }
.obra__titulo { font-size: 0.95rem; font-weight: 400; margin: 0 0 0.5rem; }

.ficha { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.1rem 0.75rem; margin: 0; font-size: 0.8rem; line-height: 1.55; }
.ficha dt { color: var(--muted); }
.ficha dd { margin: 0; }
.ficha__status { margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--muted); }
.ficha__acao { margin: 0.4rem 0 0; font-size: 0.8rem; }

.serie-cta { margin: 2.75rem 0 0; }

.serie-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid var(--line);
	margin-top: 3rem;
	padding-block: 1.25rem 3.5rem;
	font-size: 0.8rem;
	color: var(--muted);
}

/* ---------- Imprensa ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }

.filtro {
	font: inherit;
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	background: none;
	color: var(--muted);
	border: 1px solid var(--line);
	padding: 0.15rem 0.85rem;
	cursor: pointer;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.filtro:hover, .filtro.is-ativo { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.press-item {
	display: grid;
	grid-template-columns: 6rem 12rem 1fr;
	gap: 1.25rem;
	align-items: baseline;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--line);
}

.press-item[hidden] { display: none; }
.press-item__date, .press-item__vehicle { color: var(--muted); font-size: 0.8rem; }
.press-item__title { font-size: 1rem; font-weight: 300; margin: 0; }
.press-item__title a { text-decoration: none; }
.press-item__title a:hover { text-decoration: underline; }
.press-item__excerpt { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; }
.press-item__video { margin-top: 0.9rem; max-width: 520px; }

.press-list--compact .press-item { padding-block: 0.85rem; }
.press-list--compact .press-item__title { font-size: 0.95rem; }

.visto-em__veiculos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1.75rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	font-weight: 200;
}

@media (max-width: 760px) {
	.press-item { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- Contato ---------- */
.contact {
	display: grid;
	grid-template-columns: 4fr 7fr;
	gap: clamp(2rem, 7vw, 5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
	max-width: 900px;
}

@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

.contact__info dl { margin: 0; }
.contact__info dt { color: var(--muted); font-size: 0.8rem; margin-top: 1.25rem; }
.contact__info dd { margin: 0; font-size: 0.95rem; }

.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }

.field input, .field textarea {
	width: 100%;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ink);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	padding: 0.45rem 0;
	transition: border-color 0.3s;
}

.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); outline: none; }
.field textarea { min-height: 7rem; resize: vertical; }

.hp { position: absolute; left: -9999px; }

.notice { padding: 0.8rem 1rem; border: 1px solid var(--line); margin-bottom: 1.75rem; font-size: 0.85rem; }

/* ---------- Perguntas frequentes ---------- */
.faq { border-top: 1px solid var(--line); margin-bottom: 2rem; }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
	cursor: pointer;
	list-style: none;
	padding: 0.85rem 2rem 0.85rem 0;
	position: relative;
	font-size: 0.95rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
	content: "+";
	position: absolute;
	right: 0.2rem;
	top: 0.75rem;
	font-size: 1.2rem;
	line-height: 1;
	color: var(--muted);
	transition: transform 0.3s var(--ease);
}

.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 1.1rem; color: var(--muted); max-width: 56ch; font-size: 0.88rem; }

/* ---------- Fechamento ---------- */
.closing {
	border-top: 1px solid var(--line);
	text-align: center;
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

.closing__frase {
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 200;
	letter-spacing: -0.005em;
	line-height: 1.15;
	margin: 0;
}

.closing__texto { color: var(--muted); font-size: 0.82rem; max-width: 44ch; margin: 1rem auto 0; }
.closing__acoes { margin: 1.75rem 0 0; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: 0.75rem; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; }
.site-footer a { color: inherit; }

/* ---------- WhatsApp e cookies ---------- */
.whatsapp {
	position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
	width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center;
	background: #1e8e4a; color: #fff;
}

.whatsapp svg { width: 24px; height: 24px; fill: currentColor; }

.cookies {
	position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 95;
	max-width: 22rem;
	background: var(--bg);
	border: 1px solid var(--line);
	padding: 0.9rem 1.1rem;
	font-size: 0.78rem; line-height: 1.55;
}

.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 0.6rem; }
.cookies .btn { padding: 0.35rem 1rem; font-size: 0.75rem; }

@media (max-width: 560px) { .cookies { right: 4.5rem; } }

/* ---------- Ampliação de imagem (zoom lento, fundo translúcido) ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 150;
	display: grid; place-items: center;
	padding: 3rem 1rem;
	background: var(--overlay);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__fig {
	margin: 0;
	text-align: center;
	opacity: 0;
	transform: scale(0.94);
	transition: transform 0.9s var(--ease), opacity 0.7s ease;
}

.lightbox.is-open .lightbox__fig { opacity: 1; transform: scale(1); }

.lightbox__fig img { margin-inline: auto; max-width: 90vw; max-height: 74vh; width: auto; height: auto; object-fit: contain; }
.lightbox__legenda { margin: 0.8rem auto 0; font-size: 0.78rem; color: var(--muted); max-width: 64ch; }
.lightbox__legenda:empty { display: none; }

.lightbox button {
	position: absolute;
	background: none; border: 0; color: var(--ink);
	font: inherit; font-size: 0.8rem; letter-spacing: 0.05em; cursor: pointer; padding: 0.7rem 0.9rem;
}

.lightbox__close { top: 0.4rem; right: 0.4rem; }
.lightbox__prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
