/*
 * André Borges Advocacia — estilos do tema filho.
 * Paleta oficial (claude.md, v0.10.0): grafite + dourado.
 * Layout de referência: docs/layout/mockup-pagina-inicial.dc.html
 */

/* ---------- Fontes locais (SIL OFL — ver assets/fonts/OFL.txt) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-normal-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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/playfair-display-normal-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; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/playfair-display-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
	--ab-grafite: #232326;
	--ab-grafite-2: #2c2d32;
	--ab-grafite-3: #33343a;
	--ab-linha: #46474d;
	--ab-linha-2: #3a3b40;
	--ab-rodape: #18181b;
	--ab-ouro: #b08d57;
	--ab-ouro-escuro: #8a6a3c;
	--ab-ouro-claro: #c9a86a;
	--ab-creme: #f7f4ef;
	--ab-bege: #e7dfd3;
	--ab-branco: #fff;
	--ab-texto-claro: #f3eee6;
	--ab-texto-claro-2: #c9c9cc;
	--ab-texto-claro-3: #d9d9dc;
	--ab-texto: #43434a;
	--ab-texto-2: #626268;
	--ab-wa: #25d366;
	--ab-wa-texto: #0f2a18;
	--ab-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--ab-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ab-max: 1180px;
	--ab-gutter: 24px;
}

body {
	font-family: var(--ab-sans);
	color: var(--ab-texto);
	background: var(--ab-creme);
}

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

/* ---------- Cabeçalho ---------- */
.ab-header {
	background: var(--ab-grafite);
	color: var(--ab-texto-claro);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .ab-header { top: 32px; }
.ab-header__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 16px;
}
.ab-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	color: inherit;
	text-decoration: none;
}
.ab-brand:hover { color: inherit; }
.ab-brand__mark {
	width: 50px;
	height: 50px;
	border: 1.5px solid var(--ab-ouro);
	color: var(--ab-ouro);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ab-serif);
	font-size: 21px;
}
.ab-brand__text { display: flex; flex-direction: column; gap: 2px; }
.ab-brand__name { font-family: var(--ab-serif); font-size: 25px; letter-spacing: .08em; }
.ab-brand__sub { font-size: 11px; letter-spacing: .26em; color: var(--ab-texto-claro-2); }

.ab-header__actions { display: flex; align-items: center; gap: 10px; }
.ab-icon-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--ab-linha);
	color: var(--ab-texto-claro);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ab-icon-btn--wa { background: var(--ab-wa); border-color: var(--ab-wa); color: var(--ab-wa-texto); }
.ab-icon-btn:hover { color: var(--ab-ouro-claro); }
.ab-icon-btn--wa:hover { color: var(--ab-wa-texto); filter: brightness(1.05); }
.ab-header__tel { color: var(--ab-texto-claro); text-decoration: none; font-size: 14px; padding: 0 6px; }
.ab-header__tel:hover { color: var(--ab-ouro-claro); }

.ab-nav { border-top: 1px solid var(--ab-linha-2); }
.ab-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 32px;
	font-family: var(--ab-serif);
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ab-nav__list a {
	display: block;
	padding: 14px 0;
	color: var(--ab-texto-claro);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.ab-nav__list a:hover,
.ab-nav__list a:focus-visible { color: var(--ab-ouro); border-bottom-color: var(--ab-ouro); }

.ab-burger { display: none; }

/* ---------- Seções ---------- */
.ab-section { padding-block: 96px; margin: 0; }
.ab-section > .wp-block-group__inner-container,
.ab-section > .ab-inner { max-width: var(--ab-max); margin-inline: auto; padding-inline: var(--ab-gutter); }
.ab-section--dark { background: var(--ab-grafite); color: var(--ab-texto-claro); }
.ab-section--light { background: var(--ab-creme); }
.ab-section--white { background: var(--ab-branco); }
.ab-section--dark p { color: var(--ab-texto-claro-3); }

.ab-section h2,
.ab-hero h1,
.ab-card h3,
.ab-dif h3 { font-family: var(--ab-serif); font-weight: 500; }
.ab-section h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; margin: 0 0 14px; color: inherit; }
.ab-section--light h2,
.ab-section--white h2 { color: var(--ab-grafite); }

/* Filete dourado abaixo dos títulos */
.ab-rule::after,
.ab-section h2.ab-rule::after {
	content: '';
	display: block;
	width: 64px;
	height: 2px;
	background: var(--ab-ouro);
	margin-top: 16px;
}
.ab-center { text-align: center; }
.ab-center .ab-rule::after,
.ab-center.ab-rule::after { margin-inline: auto; }
.ab-lead { font-size: 17px; line-height: 1.7; max-width: 680px; }
.ab-center .ab-lead { margin-inline: auto; }
.ab-eyebrow { font-size: 12px; letter-spacing: .24em; color: var(--ab-ouro-escuro); text-transform: uppercase; margin: 0 0 12px; }

/* ---------- Hero ---------- */
.ab-hero.wp-block-cover { min-height: 600px; padding: 72px var(--ab-gutter); }
.ab-hero .wp-block-cover__inner-container { max-width: var(--ab-max); margin-inline: auto; width: 100%; color: var(--ab-branco); }
.ab-hero h1 {
	font-size: clamp(36px, 5.2vw, 60px);
	line-height: 1.08;
	letter-spacing: .02em;
	text-transform: uppercase;
	max-width: 760px;
	margin: 0 0 22px;
	color: var(--ab-branco);
}
.ab-hero h1::after { content: ''; display: block; width: 96px; height: 3px; background: var(--ab-ouro); margin-top: 22px; }
.ab-hero__tagline { font-family: var(--ab-serif); font-size: 22px; line-height: 1.4; max-width: 560px; margin: 0 0 14px; }
.ab-hero__tagline strong { color: var(--ab-ouro-claro); font-weight: 500; }
.ab-hero__sub { font-size: 16px; line-height: 1.6; color: var(--ab-texto-claro-3); max-width: 540px; margin: 0 0 28px; }

/* ---------- Botões ---------- */
.ab-btn,
.ab-buttons .wp-block-button__link {
	display: inline-block;
	padding: 16px 30px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	line-height: 1.2;
	font-family: var(--ab-sans);
}
.ab-buttons { gap: 0 !important; }
.ab-btn--gold,
.ab-buttons .is-style-gold .wp-block-button__link { background: var(--ab-ouro); color: var(--ab-grafite); }
.ab-btn--gold:hover,
.ab-buttons .is-style-gold .wp-block-button__link:hover { background: var(--ab-ouro-claro); color: var(--ab-grafite); }
.ab-buttons .is-style-dark .wp-block-button__link { background: var(--ab-grafite); color: var(--ab-branco); }
.ab-buttons .is-style-dark .wp-block-button__link:hover { background: var(--ab-grafite-3); color: var(--ab-branco); }
.ab-btn--ghost,
.ab-buttons .is-style-ghost .wp-block-button__link { background: transparent; border-color: var(--ab-ouro); color: var(--ab-ouro); }
.ab-btn--ghost:hover,
.ab-buttons .is-style-ghost .wp-block-button__link:hover { background: var(--ab-ouro); color: var(--ab-grafite); }
.ab-btn--wa { background: var(--ab-wa); color: var(--ab-wa-texto); font-weight: 600; border-radius: 999px; padding: 14px 26px; }
.ab-btn--wa:hover { color: var(--ab-wa-texto); filter: brightness(1.05); }
.ab-btn:focus-visible,
.ab-buttons .wp-block-button__link:focus-visible,
.ab-tab:focus-visible { outline: 2px solid var(--ab-ouro-claro); outline-offset: 3px; }

/* ---------- Abas (O escritório) ---------- */
.ab-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	border-bottom: 1px solid var(--ab-linha);
	margin-bottom: 40px;
}
.ab-tab {
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	color: var(--ab-texto-claro-2);
	padding: 14px 0;
	font-family: var(--ab-serif);
	font-size: 20px;
	cursor: pointer;
}
.ab-tab[aria-selected='true'] { color: var(--ab-ouro); border-bottom-color: var(--ab-ouro); }
.ab-tab:hover { color: var(--ab-ouro-claro); }
.ab-tab-panel + .ab-tab-panel { margin-top: 64px; } /* sem JS: painéis empilhados */
.ab-tab-title { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ab-ouro) !important; margin: 0 0 12px; }
.ab-tabs.is-ready .ab-tab-title { display: none; }
.ab-tabs.is-ready .ab-tab-panel { margin-top: 0; }
.ab-tab-panel .ab-statement { font-family: var(--ab-serif); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.6; color: var(--ab-texto-claro); max-width: 860px; }

/* ---------- Cards (Valores e Áreas) ---------- */
.ab-cards { gap: 20px; }
.ab-card {
	padding: 28px;
	border: 1px solid var(--ab-bege);
	border-top: 3px solid var(--ab-ouro);
	background: var(--ab-creme);
	margin: 0 !important;
}
.ab-card h3 { font-size: 21px; font-weight: 600; margin: 0 0 12px; color: var(--ab-grafite); }
.ab-card p { font-size: 15px; line-height: 1.65; margin: 0; color: var(--ab-texto); }
.ab-card__num { display: block; font-family: var(--ab-serif); font-size: 15px; color: var(--ab-ouro-escuro); margin-bottom: 12px; }
.ab-section--dark .ab-card { background: var(--ab-grafite-2); border-color: var(--ab-linha); border-top-color: var(--ab-ouro); }
.ab-section--dark .ab-card h3 { color: var(--ab-branco); }
.ab-section--dark .ab-card p { color: var(--ab-texto-claro-2); }
.ab-section--dark .ab-card__num { color: var(--ab-ouro); }

/* ---------- Imagens das seções ---------- */
.ab-photo { margin: 0; }
.ab-photo img { width: 100%; height: 100%; min-height: 420px; max-height: 480px; object-fit: cover; display: block; }
.ab-section--dark .ab-photo img { border: 1px solid var(--ab-linha); }

/* ---------- Fundador: números ---------- */
.ab-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 24px; }
.ab-stat { display: flex; flex-direction: column; gap: 4px; }
.ab-stat strong { font-family: var(--ab-serif); font-weight: 500; font-size: 40px; line-height: 1.1; color: var(--ab-grafite); }
.ab-stat span { font-size: 13px; color: var(--ab-texto-2); }

/* ---------- Diferenciais ---------- */
.ab-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.ab-difs { gap: 40px 48px; }
.ab-dif { position: relative; padding-left: 70px; margin: 0 !important; min-height: 52px; }
.ab-dif::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 52px;
	height: 52px;
	border: 1px solid var(--ab-ouro);
	border-radius: 50%;
	background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08d57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.ab-dif h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; color: var(--ab-branco); }
.ab-dif p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--ab-texto-claro-2) !important; }

/* ---------- Contato ---------- */
.ab-form { display: flex; flex-direction: column; gap: 18px; }
.ab-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ab-texto-claro-2); }
.ab-form input[type='text'],
.ab-form input[type='email'],
.ab-form input[type='tel'] {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ab-linha);
	border-radius: 0;
	color: var(--ab-branco);
	padding: 10px 0;
	font-size: 16px;
}
.ab-form input:focus { outline: none; border-bottom-color: var(--ab-ouro); box-shadow: none; }
.ab-form__check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; line-height: 1.5; }
.ab-form__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ab-ouro); }
.ab-form__check a { color: var(--ab-ouro-claro); }
.ab-form__hint { font-size: 13px; color: var(--ab-texto-claro-2) !important; margin: 0; }
.ab-form .ab-btn { align-self: flex-start; padding-inline: 40px; font-weight: 600; }
.ab-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ab-form__msg { padding: 12px 16px; margin: 0; font-size: 15px; }
.ab-form__msg--sucesso { background: #1f3a2a; color: #d8f3e1 !important; }
.ab-form__msg--erro { background: #4a2323; color: #f6dada !important; }

.ab-contact { display: flex; flex-direction: column; gap: 26px; }
.ab-contact__item { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.ab-contact__item h3 { font-family: var(--ab-serif); font-weight: 500; font-size: 20px; color: var(--ab-ouro); margin: 0; }
.ab-contact__item a,
.ab-contact__item span { color: var(--ab-texto-claro); text-decoration: none; line-height: 1.6; }
.ab-contact__item a:hover { color: var(--ab-ouro-claro); }
.ab-contact__item .ab-contact__wa { color: var(--ab-wa); }

/* ---------- Mapa ---------- */
.ab-map-section { background: var(--ab-grafite); border-top: 1px solid var(--ab-linha-2); margin: 0; }
.ab-map { position: relative; }
.ab-map img,
.ab-map iframe { display: block; width: 100%; height: 420px; object-fit: cover; border: 0; }
.ab-map.is-live img { display: none; }
.ab-map__actions { position: absolute; left: 24px; bottom: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.ab-map.is-live .ab-map__actions { position: static; padding: 16px 24px 0; }
.ab-map .ab-btn--ghost { background: var(--ab-grafite); }
.ab-map__note { position: absolute; left: 24px; bottom: 14px; margin: 0; font-size: 12px; color: var(--ab-texto-claro); background: rgba(24, 24, 27, .8); padding: 4px 8px; }
.ab-map.is-live .ab-map__note { display: none; }

/* ---------- Rodapé e WhatsApp flutuante ---------- */
.ab-footer { background: var(--ab-rodape); color: var(--ab-texto-claro-2); font-size: 13px; }
.ab-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; }
.ab-footer a { color: var(--ab-texto-claro-2); }
.ab-footer a:hover { color: var(--ab-ouro-claro); }
.ab-wa-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ab-wa);
	color: var(--ab-wa-texto);
	text-decoration: none;
	padding: 14px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.ab-wa-float:hover { color: var(--ab-wa-texto); filter: brightness(1.05); }
.ab-wa-float svg { width: 18px; height: 18px; }

/* Âncoras não ficam escondidas atrás do cabeçalho fixo */
[id] { scroll-margin-top: 140px; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
	.ab-section { padding-block: 64px; }
	.ab-header__top { flex-wrap: nowrap; padding-block: 12px; }
	.ab-brand { gap: 10px; min-width: 0; }
	.ab-brand__mark { width: 40px; height: 40px; font-size: 17px; flex: 0 0 auto; }
	.ab-brand__name { font-size: 18px; }
	.ab-brand__sub { font-size: 8px; letter-spacing: .14em; }
	.ab-header__actions { gap: 8px; flex: 0 0 auto; }
	.ab-tablist { gap: 4px 22px; }
	.ab-tab { font-size: 17px; }
	.ab-header__tel { display: none; }
	.ab-burger {
		display: inline-flex;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		background: transparent;
		border: 1px solid var(--ab-linha);
		border-radius: 50%;
		color: var(--ab-texto-claro);
		cursor: pointer;
	}
	.ab-burger span[aria-hidden],
	.ab-burger span[aria-hidden]::before,
	.ab-burger span[aria-hidden]::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ''; }
	.ab-burger span[aria-hidden]::before { position: absolute; top: -6px; }
	.ab-burger span[aria-hidden]::after { position: absolute; top: 6px; }
	.ab-nav { display: none; }
	.ab-nav.is-open { display: block; }
	.ab-nav__list { flex-direction: column; gap: 0; }
	.ab-nav__list a { padding: 14px 0; border-bottom: 1px solid var(--ab-linha-2); }
	.ab-hero.wp-block-cover { min-height: 520px; }
	.ab-photo img { min-height: 300px; }
	.ab-map__actions { position: static; padding: 16px 24px 0; }
	.ab-map__note { position: static; display: block; margin: 8px 24px 16px; background: none; }
	.ab-wa-float span { display: none; }
	.ab-wa-float { padding: 14px; }
	[id] { scroll-margin-top: 90px; }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* ---------- Grades ---------- */
.ab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ab-grid--valores { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ab-section .wp-block-columns { gap: 56px; margin-bottom: 0; }
.ab-inner > * + * { margin-top: 0; }

/* Seções coladas umas nas outras (o Kadence põe margem entre blocos) */
.home .entry-content > *,
.ab-section .ab-inner > .ab-tabs,
.ab-inner > .wp-block-columns { margin-block: 0 !important; }
.home .entry-content-wrap,
.home .content-container.site-container { padding: 0; max-width: none; }

/* Selo de foto provisória (some quando a foto real entrar) */
.ab-photo { position: relative; }
.ab-photo figcaption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	margin: 0;
	background: var(--ab-grafite);
	color: var(--ab-texto-claro);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 6px 10px;
}
