/* Guia do Homem 40+ — estilos dos patterns customizados */

:root {
	--gh40-surface: var(--wp--preset--color--branco);
	--gh40-border: #D9D6D2;
	--gh40-shadow: rgba(28, 27, 26, 0.08);
	--gh40-surface-pros: #EAF0EC;
	--gh40-surface-cons: #F7E9E1;
}

/* Dark mode nativo — leitura às 2h da manhã sem estourar a retina. */
@media (prefers-color-scheme: dark) {
	:root {
		--wp--preset--color--areia: #14181A;
		--wp--preset--color--grafite: #E9E7E4;
		--gh40-surface: #1E2426;
		--gh40-border: #33393C;
		--gh40-shadow: rgba(0, 0, 0, 0.4);
		--gh40-surface-pros: #1D2B22;
		--gh40-surface-cons: #2B2019;
	}

	body {
		background-color: var(--wp--preset--color--areia);
		color: var(--wp--preset--color--grafite);
	}
}

/* ---- Papo reto do Ricardo (destaque de opinião pessoal) ---- */
.gh40-papo-reto {
	background-color: var(--gh40-surface);
	border-left: 4px solid var(--wp--preset--color--grafite);
	border-radius: 4px;
	padding: 1.75rem 2rem;
	margin: 2.5rem 0;
	box-shadow: 0 1px 3px var(--gh40-shadow);
}

.gh40-papo-reto__label {
	display: inline-flex;
	align-items: center;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--grafite);
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.gh40-papo-reto p:last-child {
	margin-bottom: 0;
}

/* ---- Quando procurar o médico (padrão visual fixo, obrigatório) ---- */
.gh40-quando-medico {
	background-color: var(--gh40-surface);
	border: 2px solid var(--wp--preset--color--bronze);
	border-radius: 4px;
	padding: 1.75rem 2rem;
	margin: 2.5rem 0;
	box-shadow: 0 1px 3px var(--gh40-shadow);
}

.gh40-quando-medico__label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 800;
	font-size: 1.375rem !important;
	color: var(--wp--preset--color--bronze);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 0.9rem;
}

.gh40-quando-medico__label::before {
	content: "";
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	background-color: var(--wp--preset--color--bronze);
	border-radius: 50%;
	flex-shrink: 0;
}

.gh40-quando-medico p:last-child {
	margin-bottom: 0;
}

/* ---- Disclaimer médico ---- */
.gh40-disclaimer {
	background-color: #EAE7E2;
	border-radius: 4px;
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
	font-size: 0.9375rem;
	color: #4A4540;
}

@media (prefers-color-scheme: dark) {
	.gh40-disclaimer {
		background-color: #23282A;
		color: #C7C3BE;
	}
}

.gh40-disclaimer strong {
	color: var(--wp--preset--color--grafite);
}

/* ---- Box de review (prós/contras + nota + CTA) ---- */
.gh40-review-box {
	background-color: var(--gh40-surface);
	border: 1px solid var(--gh40-border);
	border-radius: 6px;
	padding: 2rem;
	margin: 2.5rem 0;
}

.gh40-review-box__nota {
	display: inline-block;
	background-color: var(--wp--preset--color--aco);
	color: #FFFFFF;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 800;
	font-size: 1.5rem;
	border-radius: 999px;
	padding: 0.5rem 1.25rem;
	margin-bottom: 1rem;
}

.gh40-review-box__pros-cons {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

@media (min-width: 700px) {
	.gh40-review-box__pros-cons {
		grid-template-columns: 1fr 1fr;
	}
}

.gh40-review-box__pros,
.gh40-review-box__cons {
	padding: 1.25rem;
	border-radius: 6px;
}

.gh40-review-box__pros {
	background-color: var(--gh40-surface-pros);
}

.gh40-review-box__cons {
	background-color: var(--gh40-surface-cons);
}

.gh40-review-box__pros h4,
.gh40-review-box__cons h4 {
	margin-top: 0;
	font-size: 1.0625rem;
}

.gh40-review-box__cta {
	text-align: center;
	margin-top: 1.5rem;
}

/* ---- Tabela comparativa ---- */
.gh40-comparison-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	font-size: 0.9375rem;
}

.gh40-comparison-table th,
.gh40-comparison-table td {
	border: 1px solid var(--gh40-border);
	padding: 0.75rem 1rem;
	text-align: left;
}

.gh40-comparison-table th {
	background-color: var(--wp--preset--color--areia);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
}

.gh40-comparison-table tr:nth-child(even) td {
	background-color: var(--gh40-surface);
}

/* ---- Box de autor (fim do post) ---- */
.gh40-author-box {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: flex-start;
	background-color: var(--gh40-surface);
	border-radius: 6px;
	padding: 2rem;
	margin: 3rem 0 1rem;
	border: 1px solid var(--gh40-border);
}

@media (min-width: 600px) {
	.gh40-author-box {
		flex-direction: row;
		align-items: center;
	}
}

.gh40-author-box__avatar img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.gh40-author-box__name {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 800;
	font-size: 1.1875rem;
	margin: 0 0 0.35rem;
	color: var(--wp--preset--color--grafite);
}

.gh40-author-box p {
	margin: 0;
}

/* ---- Blocos de navegação por problema (home) ---- */
.gh40-problem-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 600px) {
	.gh40-problem-nav ul {
		grid-template-columns: 1fr 1fr;
	}
}

.gh40-problem-nav li {
	background-color: var(--gh40-surface);
	border: 1px solid var(--gh40-border);
	border-radius: 6px;
}

.gh40-problem-nav li a {
	display: block;
	padding: 1.25rem 1.5rem;
	font-weight: 600;
	text-decoration: none;
}

.gh40-problem-nav li a:hover {
	color: var(--wp--preset--color--bronze);
}

/* ---- Formulário de contato ---- */
.gh40-contact-form {
	max-width: 520px;
	margin: 2rem 0;
}

.gh40-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
}

.gh40-contact-form__field label {
	font-weight: 600;
	font-size: 0.9375rem;
}

.gh40-contact-form__field input,
.gh40-contact-form__field textarea {
	font-family: inherit;
	font-size: 1rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--gh40-border);
	border-radius: 4px;
	background-color: var(--gh40-surface);
	color: var(--wp--preset--color--grafite);
}

.gh40-contact-form__field input:focus,
.gh40-contact-form__field textarea:focus {
	outline: 2px solid var(--wp--preset--color--bronze);
	outline-offset: 1px;
}

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

.gh40-contact-form button[type="submit"] {
	border: none;
	cursor: pointer;
	font-size: 1rem;
	padding: 0.75rem 1.5rem;
}

.gh40-contact-form__notice {
	padding: 0.9rem 1.1rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
}

.gh40-contact-form__notice--success {
	background-color: var(--gh40-surface-pros);
	color: #2C4B34;
}

.gh40-contact-form__notice--error {
	background-color: var(--gh40-surface-cons);
	color: #96351E;
}

/* ---- Acessibilidade: área de toque e foco visível ---- */
a,
button,
.wp-block-button__link {
	min-height: 24px;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--wp--preset--color--bronze);
	outline-offset: 2px;
}
