/*
Theme Name: Bode Viajante
Theme URI: https://bode-viajante.rogerioatorresdf.chatgpt.site
Author: Rogério Torres
Description: Tema responsivo para relatos de passeios, viagens e dicas de motocicletas.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bode-viajante
Tags: blog, custom-logo, custom-header, featured-images, responsive-layout
*/

:root {
	--ink: #1f211e;
	--paper: #f3efe6;
	--orange: #d96832;
	--orange-dark: #a84622;
	--white: #fffdf8;
	--muted: #6e6d65;
	--line: #cfc5b3;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
	margin-top: 0;
}

h1,
h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--white);
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid #f3a46f;
	outline-offset: 4px;
}

.topbar {
	position: sticky;
	z-index: 100;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding: 0 5vw;
	border-bottom: 1px solid rgba(31, 33, 30, 0.12);
	background: rgba(243, 239, 230, 0.94);
	backdrop-filter: blur(12px);
}

.admin-bar .topbar {
	top: 32px;
}

.brand,
.brand-link {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.brand-mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 50%;
	background: var(--ink);
	color: var(--white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
}

.brand-logo .custom-logo-link,
.brand-logo img {
	display: block;
}

.brand-logo img {
	max-width: min(230px, 42vw);
	max-height: 56px;
	width: auto;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: clamp(18px, 3vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
	color: #4d4f49;
	font-size: 0.84rem;
	font-weight: 700;
}

.nav-links a,
.site-footer a,
.card h3 a,
.tip h3 a,
.post-card h2 a {
	transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.card h3 a:hover,
.card h3 a:focus-visible,
.tip h3 a:hover,
.tip h3 a:focus-visible,
.post-card h2 a:hover,
.post-card h2 a:focus-visible {
	color: var(--orange-dark);
}

.hero {
	position: relative;
	display: grid;
	min-height: min(740px, calc(100svh - 76px));
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}

.hero-image,
.hero-shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero-image {
	z-index: -2;
	object-fit: cover;
	object-position: center;
}

.hero-shade {
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(18, 19, 17, 0.91) 0%, rgba(18, 19, 17, 0.7) 42%, rgba(18, 19, 17, 0.12) 76%),
		linear-gradient(0deg, rgba(18, 19, 17, 0.36), transparent 44%);
}

.hero-content {
	width: min(680px, 90vw);
	margin-left: 8vw;
	padding: 88px 0;
	color: var(--white);
}

.eyebrow {
	margin: 0 0 20px;
	color: #f3a46f;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.eyebrow.dark {
	color: var(--orange-dark);
}

.hero h1 {
	max-width: 700px;
	margin-bottom: 24px;
	color: var(--white);
	font-size: clamp(3.1rem, 7.4vw, 6.8rem);
	line-height: 0.92;
	letter-spacing: -0.055em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

.hero-copy {
	max-width: 540px;
	margin-bottom: 34px;
	color: rgba(255, 253, 248, 0.82);
	font-size: clamp(1rem, 1.8vw, 1.25rem);
	line-height: 1.7;
}

.hero-link,
.button-dark {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 14px 19px;
	border: 1px solid rgba(255, 253, 248, 0.55);
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 800;
	transition: background 160ms ease, color 160ms ease;
}

.hero-link:hover,
.hero-link:focus-visible {
	background: var(--white);
	color: var(--ink);
}

.button-dark {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.button-dark:hover,
.button-dark:focus-visible {
	background: var(--orange-dark);
	border-color: var(--orange-dark);
}

.section,
.content-shell {
	width: min(1160px, 90vw);
	margin: 0 auto;
}

.section {
	padding: 112px 0;
}

.section-heading {
	display: grid;
	grid-template-columns: minmax(230px, 0.8fr) 1.5fr;
	column-gap: 56px;
	align-items: end;
	margin-bottom: 48px;
}

.section-heading .eyebrow {
	grid-column: 1 / -1;
}

.section-heading h2 {
	margin-bottom: 0;
	font-size: clamp(2.6rem, 5vw, 4.6rem);
	letter-spacing: -0.04em;
}

.section-heading > p:last-child {
	max-width: 510px;
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.7;
}

.section-heading > div > p {
	max-width: 510px;
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.7;
}

.text-link {
	display: inline-block;
	margin-top: 16px;
	color: var(--orange-dark);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

.text-link:hover,
.text-link:focus-visible {
	color: var(--orange);
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line);
}

.card {
	min-height: 260px;
	padding: 32px 34px 28px 0;
	border-bottom: 1px solid var(--line);
}

.card + .card {
	padding-left: 34px;
	border-left: 1px solid var(--line);
}

.card-tag {
	margin-bottom: 54px;
	color: var(--orange-dark);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.card h3,
.tip h3 {
	margin-bottom: 12px;
	font-size: 1.22rem;
}

.card > p:last-child,
.tip p {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.75;
}

/* Passeios em cartões com imagens. */
.travel-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.travel-card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: rgba(255, 253, 248, 0.72);
	box-shadow: 0 14px 34px rgba(31, 33, 30, 0.06);
}

.travel-card-image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ddd4c5;
}

.travel-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 260ms ease;
}

.travel-card:hover .travel-card-image img {
	transform: scale(1.035);
}

.travel-card-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(135deg, #393c37, #1f211e);
	color: #f3a46f;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.5rem;
}

.travel-card-body {
	padding: 28px;
}

.travel-card .card-tag {
	margin-bottom: 18px;
}

.travel-card h3 {
	margin-bottom: 14px;
	font-size: 1.28rem;
	line-height: 1.28;
}

.travel-card h3 a:hover,
.travel-card h3 a:focus-visible {
	color: var(--orange-dark);
}

.travel-card-body > p:not(.card-tag):not(.travel-card-detail) {
	margin-bottom: 20px;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.7;
}

.travel-card-detail {
	margin: 0;
	padding-top: 15px;
	border-top: 1px solid var(--line);
	color: #53554f;
	font-size: 0.78rem;
	font-weight: 800;
}

.travel-card-empty {
	min-height: 280px;
}

/* Agenda de eventos. */
.events-section {
	background: #2b2e2a;
	color: var(--white);
}

.events-heading > div > p {
	color: rgba(255, 253, 248, 0.64);
}

.light-link {
	color: #f3a46f;
}

.event-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.event-card {
	display: grid;
	grid-template-columns: minmax(180px, 0.86fr) 1.14fr;
	min-height: 390px;
	overflow: hidden;
	border: 1px solid rgba(255, 253, 248, 0.18);
	background: #20221f;
}

.event-visual {
	position: relative;
	min-height: 100%;
	overflow: hidden;
	background: #111310;
}

.event-visual > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.event-placeholder {
	display: flex;
	height: 100%;
	min-height: 390px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 65% 24%, rgba(217, 104, 50, 0.55), transparent 28%),
		linear-gradient(145deg, #111310, #343a34);
	color: var(--white);
	letter-spacing: 0.12em;
}

.event-placeholder span {
	font-size: 0.8rem;
	font-weight: 900;
}

.event-placeholder strong {
	color: #f3a46f;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.2rem, 5vw, 4.6rem);
	letter-spacing: -0.05em;
}

.event-date {
	position: absolute;
	top: 18px;
	left: 18px;
	display: grid;
	width: 62px;
	min-height: 68px;
	place-items: center;
	padding: 8px;
	background: var(--orange);
	color: var(--white);
	line-height: 1;
	text-transform: uppercase;
}

.event-date strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.65rem;
}

.event-date span {
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.event-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 34px;
}

.event-card .card-tag {
	margin-bottom: 18px;
	color: #f3a46f;
	line-height: 1.5;
}

.event-card h3 {
	margin-bottom: 14px;
	font-size: 1.35rem;
	line-height: 1.3;
}

.event-card h3 a:hover,
.event-card h3 a:focus-visible {
	color: #f3a46f;
}

.event-card-body > p:not(.card-tag):not(.event-time) {
	margin-bottom: 18px;
	color: rgba(255, 253, 248, 0.66);
	font-size: 0.92rem;
	line-height: 1.68;
}

.event-time {
	margin: 0 0 20px;
	color: var(--white);
	font-size: 0.82rem;
	font-weight: 800;
}

.event-link {
	margin-top: auto;
	color: #f3a46f;
	font-size: 0.79rem;
	font-weight: 900;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.event-card-empty {
	display: block;
	min-height: 220px;
}

.tips-section {
	background: var(--ink);
	color: var(--white);
}

.tips-inner {
	display: grid;
	grid-template-columns: 0.92fr 1.08fr;
	gap: clamp(50px, 8vw, 110px);
}

.tips-inner .section-heading {
	display: block;
	margin: 0;
}

.section-heading.light h2 {
	max-width: 420px;
	margin-bottom: 28px;
}

.section-heading.light > p:last-child {
	color: rgba(255, 253, 248, 0.58);
}

.tips-list {
	border-top: 1px solid rgba(255, 253, 248, 0.2);
}

.tip {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 22px;
	padding: 28px 0;
	border-bottom: 1px solid rgba(255, 253, 248, 0.2);
}

.tip > span {
	color: #f3a46f;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.1rem;
}

.tip p {
	color: rgba(255, 253, 248, 0.62);
}

.tip h3 a:hover,
.tip h3 a:focus-visible {
	color: #f3a46f;
}

.about {
	display: grid;
	grid-template-columns: 0.9fr 1.6fr;
	gap: clamp(40px, 8vw, 120px);
	align-items: start;
}

.about-kicker {
	padding-top: 14px;
	color: var(--orange-dark);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.about-copy h2 {
	margin-bottom: 24px;
	font-size: clamp(2.7rem, 5vw, 4.8rem);
	letter-spacing: -0.045em;
}

.about-copy p {
	max-width: 720px;
	margin-bottom: 0;
	color: #55564f;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.75;
}

.site-footer {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 5vw;
	border-top: 1px solid var(--line);
	color: #65665f;
	font-size: 0.8rem;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	font-weight: 700;
}

/* Publicações e páginas internas. */
.content-shell {
	min-height: calc(100svh - 150px);
	padding: 96px 0 112px;
}

.archive-header,
.article-header {
	max-width: 850px;
	margin-bottom: 58px;
}

.archive-header h1,
.article-header h1,
.empty-state h1 {
	margin-bottom: 22px;
	font-size: clamp(3rem, 7vw, 6.2rem);
	line-height: 0.98;
	letter-spacing: -0.05em;
}

.archive-header > p:last-child,
.archive-description,
.article-meta {
	color: var(--muted);
	line-height: 1.7;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.post-card {
	overflow: hidden;
	border: 1px solid var(--line);
	background: rgba(255, 253, 248, 0.6);
}

.post-card-image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ddd4c5;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.post-card:hover .post-card-image img {
	transform: scale(1.025);
}

.post-card-body {
	padding: 28px;
}

.post-card-body .card-tag {
	margin-bottom: 28px;
}

.post-card h2 {
	margin-bottom: 14px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
}

.post-card-body > p:last-child {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
}

.article-shell {
	width: min(980px, 90vw);
}

.article-header {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.article-cover {
	margin: 0 0 54px;
}

.article-cover img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
}

.article-content {
	width: min(760px, 100%);
	margin: 0 auto;
	font-size: 1.08rem;
	line-height: 1.85;
}

.article-content h2,
.article-content h3 {
	margin-top: 2.2em;
	margin-bottom: 0.7em;
}

.article-content h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.article-content a {
	color: var(--orange-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.content-facts {
	display: grid;
	grid-template-columns: minmax(120px, 0.4fr) 1.6fr;
	gap: 20px;
	margin-bottom: 42px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	background: rgba(255, 253, 248, 0.55);
}

.content-facts strong {
	color: var(--orange-dark);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.content-button {
	margin-top: 24px;
	color: var(--white) !important;
	text-decoration: none !important;
}

.article-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 28px;
	border-left: 4px solid var(--orange);
	color: #55564f;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
}

.article-content .alignwide {
	width: min(980px, 100vw - 10vw);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	width: min(760px, 100%);
	margin: 72px auto 0;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	font-weight: 700;
}

.post-navigation div:last-child {
	text-align: right;
}

.navigation.pagination {
	margin-top: 50px;
}

.nav-links .page-numbers,
.navigation.pagination .page-numbers {
	display: inline-grid;
	min-width: 40px;
	height: 40px;
	margin-right: 5px;
	place-items: center;
	border: 1px solid var(--line);
}

.navigation.pagination .current {
	background: var(--ink);
	color: var(--white);
}

.empty-state {
	max-width: 760px;
	padding: 70px 0;
}

.empty-state h2 {
	font-size: clamp(2rem, 5vw, 3.5rem);
}

@media (max-width: 900px) {
	.post-grid,
	.travel-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.event-card {
		grid-template-columns: 1fr;
	}

	.event-visual,
	.event-placeholder {
		min-height: 330px;
	}
}

@media (max-width: 760px) {
	html {
		scroll-padding-top: 116px;
	}

	.admin-bar .topbar {
		top: 46px;
	}

	.topbar {
		min-height: 106px;
		flex-direction: column;
		justify-content: center;
		gap: 15px;
	}

	.main-nav,
	.nav-links {
		width: 100%;
	}

	.nav-links {
		justify-content: space-between;
		gap: 8px;
		font-size: 0.76rem;
	}

	.hero {
		min-height: 860px;
		align-items: flex-end;
		background: var(--ink);
	}

	.hero-image {
		bottom: auto;
		height: 48%;
		object-position: 76% center;
	}

	.hero-shade {
		bottom: auto;
		height: 50%;
		background: linear-gradient(0deg, var(--ink), transparent 42%);
	}

	.hero-content {
		width: 86vw;
		margin: 0 auto;
		padding: 48px 0 64px;
	}

	.hero h1 {
		font-size: clamp(3rem, 16vw, 4.7rem);
	}

	.section {
		padding: 76px 0;
	}

	.section-heading,
	.tips-inner,
	.about {
		grid-template-columns: 1fr;
	}

	.section-heading {
		gap: 18px;
	}

	.cards,
	.post-grid,
	.travel-grid,
	.event-grid {
		grid-template-columns: 1fr;
	}

	.event-card {
		grid-template-columns: minmax(145px, 0.75fr) 1.25fr;
	}

	.event-visual,
	.event-placeholder {
		min-height: 360px;
	}

	.card {
		min-height: auto;
		padding: 28px 0;
	}

	.card + .card {
		padding-left: 0;
		border-left: 0;
	}

	.card-tag {
		margin-bottom: 28px;
	}

	.content-shell {
		padding: 70px 0 82px;
	}

	.article-header {
		text-align: left;
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation div:last-child {
		text-align: left;
	}

	.site-footer {
		flex-direction: column;
	}
}

@media (max-width: 520px) {
	.event-card {
		grid-template-columns: 1fr;
	}

	.event-visual,
	.event-placeholder {
		min-height: 320px;
	}

	.content-facts {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: 0.01ms !important;
	}
}
