/*
Theme Name: Viaje AGR Leve
Theme URI: https://viajeagr.com.br/
Author: Viaje AGR
Description: Tema editorial de viagens, rápido, responsivo e sem page builder.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: viaje-agr-leve
*/

:root {
  --navy: #082452;
  --blue: #0969da;
  --blue-dark: #0756b5;
  --sky: #eaf5ff;
  --line: #d9e5f1;
  --muted: #5c6f89;
  --paper: #ffffff;
  --soft: #f6faff;
  --shadow: 0 10px 30px rgba(8, 36, 82, .08);
  --radius: 14px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
.container { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; }
.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 { z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px; clip: auto; color: var(--navy); background: #fff; border-radius: 8px; }
.skip-link { position: absolute; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(217,229,241,.8); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding { flex: 0 0 auto; }
.site-branding .custom-logo-link { display: block; }
.custom-logo { width: auto; max-height: 54px; }
.brand-link { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-symbol { width: 54px; color: var(--blue); }
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.48rem; line-height: 1; }
.brand-text small { margin-top: 6px; color: var(--muted); font-size: .55rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; display: block; padding: 27px 0 23px; color: var(--navy); font-size: .92rem; font-weight: 650; }
.site-nav a::after { position: absolute; right: 0; bottom: 18px; left: 0; height: 2px; content: ""; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
.header-search { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); border-radius: 50%; }
.header-search:hover { color: #fff; background: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; color: var(--navy); background: transparent; border: 0; border-radius: 8px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.site-main { min-height: 60vh; }
.hero { position: relative; min-height: 470px; margin-top: 18px; overflow: hidden; border-radius: 18px; background: #cfe7fa; isolation: isolate; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(235,247,255,.98) 0%, rgba(235,247,255,.86) 32%, rgba(8,36,82,.05) 66%, rgba(8,36,82,.12) 100%); }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { position: absolute; z-index: -2; inset: 0; background: linear-gradient(135deg, #dff1ff 0%, #91c9ec 45%, #287fb8 100%); }
.hero-content { width: min(55%, 650px); padding: clamp(42px, 7vw, 78px) clamp(26px, 5vw, 56px); }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hero-excerpt { max-width: 580px; color: #274564; font-size: 1.06rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0; color: var(--muted); font-size: .86rem; }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 9px; font-weight: 750; transition: background .2s ease, transform .2s ease; }
.button:hover { color: #fff; background: var(--blue-dark); transform: translateY(-1px); }
.hero-location { position: absolute; right: 22px; bottom: 18px; padding: 7px 10px; color: #fff; background: rgba(5,25,53,.62); border-radius: 7px; font-size: .75rem; backdrop-filter: blur(6px); }

.search-band { position: relative; z-index: 2; width: min(690px, calc(100% - 40px)); margin: 14px auto 20px; }
.search-form-main { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 5px 5px 5px 17px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.search-form-main svg { color: var(--blue); }
.search-form-main input { width: 100%; min-width: 0; padding: 12px 4px; color: var(--navy); background: transparent; border: 0; outline: 0; }
.search-form-main button { min-width: 120px; padding: 12px 24px; color: #fff; background: var(--blue); border: 0; border-radius: 999px; font-weight: 750; cursor: pointer; }

.topic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 24px 0 44px; }
.topic-card { min-height: 92px; display: flex; align-items: center; gap: 13px; padding: 16px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.topic-card:hover { color: var(--navy); border-color: #99c8f5; box-shadow: var(--shadow); transform: translateY(-2px); }
.topic-card svg { flex: 0 0 32px; color: var(--blue); }
.topic-card strong { display: block; font-size: .92rem; }
.topic-card small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.35; }

.section { margin: 0 0 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-heading h2 { margin: 0; }
.section-link { flex: 0 0 auto; font-size: .84rem; font-weight: 700; }
.home-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 28px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #cce9ff, #4ca1d8); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body { padding: 15px; }
.post-card-body .eyebrow { margin-bottom: 7px; }
.post-card h3 { margin-bottom: 8px; }
.post-card h3 a { color: var(--navy); }
.post-card p { color: var(--muted); font-size: .88rem; }
.post-card .meta { margin: 13px 0 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card .post-card-body { padding-top: 12px; }

.sidebar-stack { display: grid; align-content: start; gap: 18px; }
.panel { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.about-panel { text-align: center; }
.about-avatar { width: 74px; height: 74px; margin: 0 auto 12px; overflow: hidden; background: var(--sky); border-radius: 50%; }
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.panel h3 { margin-bottom: 7px; }
.panel p { color: var(--muted); font-size: .9rem; }
.newsletter-panel { background: linear-gradient(135deg, #eaf5ff, #d9ebfc); }
.newsletter-title { display: flex; align-items: center; gap: 10px; }
.newsletter-title svg { color: var(--blue); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newsletter-form input { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 7px; }
.newsletter-form button { padding: 10px 14px; color: #fff; background: var(--blue); border: 0; border-radius: 7px; font-weight: 700; cursor: pointer; }
.form-note { margin: 7px 0 0 !important; font-size: .7rem !important; }
.form-status { margin-top: 8px; color: var(--blue); font-size: .78rem; }

.split-section { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; }
.link-list, .faq-list { margin: 0; padding: 0; list-style: none; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; color: var(--navy); font-size: .87rem; }
.link-list img, .link-thumb { width: 54px; height: 38px; object-fit: cover; background: var(--sky); border-radius: 5px; }
.link-arrow { color: var(--blue); font-size: 1.1rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 10px 0; cursor: pointer; font-size: .87rem; font-weight: 650; }
.faq-list p { padding: 0 0 12px; color: var(--muted); font-size: .84rem; }

.content-area { padding: 42px 0 64px; }
.page-header { max-width: 800px; margin-bottom: 30px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.entry-article { max-width: 820px; margin: 0 auto; }
.entry-header { margin-bottom: 26px; }
.entry-thumbnail { margin: 24px 0; overflow: hidden; border-radius: var(--radius); }
.entry-content { color: #203b5c; font-size: 1.05rem; }
.entry-content > * { max-width: 760px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: 1060px; }
.entry-content > .alignfull { max-width: none; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { padding: 18px 24px; color: var(--navy); background: var(--soft); border-left: 4px solid var(--blue); }
.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 38px; min-height: 38px; place-items: center; padding: 6px; color: var(--navy); border: 1px solid var(--line); border-radius: 7px; }
.page-numbers.current { color: #fff; background: var(--blue); border-color: var(--blue); }
.empty-state { padding: 40px; text-align: center; background: var(--soft); border: 1px dashed #b8cde2; border-radius: var(--radius); }

.site-footer { margin-top: 32px; border-top: 1px solid var(--line); background: #fbfdff; }
.footer-main { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr 1fr; gap: 32px; padding: 38px 0; }
.footer-copy { color: var(--muted); font-size: .82rem; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: var(--navy); font-size: .82rem; }
.footer-quote { text-align: center; color: #3c5572; font-family: Georgia, serif; font-size: 1.05rem; font-style: italic; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .75rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .header-search { margin-left: auto; }
  .site-nav { position: fixed; top: 76px; right: 0; bottom: 0; width: min(360px, 90vw); padding: 24px; background: #fff; box-shadow: -12px 12px 30px rgba(8,36,82,.12); transform: translateX(105%); transition: transform .25s ease; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav ul { display: block; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .home-columns { grid-template-columns: 1fr; }
  .sidebar-stack { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 24px), var(--content)); }
  .header-inner { min-height: 68px; gap: 10px; }
  .brand-symbol { width: 42px; }
  .brand-text { font-size: 1.2rem; }
  .brand-text small { display: none; }
  .site-nav { top: 68px; }
  .hero { min-height: 520px; margin-top: 12px; }
  .hero::before { background: linear-gradient(180deg, rgba(235,247,255,.98) 0%, rgba(235,247,255,.9) 54%, rgba(8,36,82,.2) 100%); }
  .hero-content { width: 100%; padding: 34px 24px 90px; }
  .hero-location { right: 12px; bottom: 12px; left: 12px; text-align: center; }
  .search-form-main { grid-template-columns: auto 1fr; border-radius: 14px; }
  .search-form-main button { grid-column: 1 / -1; width: 100%; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid, .guide-grid, .archive-grid { grid-template-columns: 1fr; }
  .sidebar-stack { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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

/* Formulário de contato — Viaje AGR */
.viaje-contato-form {
	max-width: 680px;
	margin-top: 32px;
}

.viaje-contato-campo {
	margin-bottom: 20px;
}

.viaje-contato-campo label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
	color: #082b5c;
}

.viaje-contato-campo input,
.viaje-contato-campo textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #172033;
	font: inherit;
	line-height: 1.5;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.viaje-contato-campo input:focus,
.viaje-contato-campo textarea:focus {
	outline: none;
	border-color: #1265c7;
	box-shadow: 0 0 0 3px rgba(18, 101, 199, 0.15);
}

.viaje-contato-campo textarea {
	resize: vertical;
	min-height: 160px;
}

.viaje-contato-botao {
	display: inline-block;
	padding: 12px 22px;
	border: 0;
	border-radius: 6px;
	background: #082b5c;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
}

.viaje-contato-botao:hover {
	opacity: .9;
}

.viaje-contato-botao:focus-visible {
	outline: 3px solid #1265c7;
	outline-offset: 3px;
}

/* Campo antispam: invisível para pessoas, presente para bots */
.viaje-contato-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Mensagens do formulário */
.viaje-contato-aviso {
	max-width: 680px;
	margin: 24px 0;
	padding: 12px 16px;
	border-radius: 6px;
}

.viaje-contato-aviso.sucesso {
	background: #edf8f0;
	border: 1px solid #9fd5aa;
}

.viaje-contato-aviso.erro {
	background: #fff1f1;
	border: 1px solid #e3aaaa;
}

@media (max-width: 640px) {
	.viaje-contato-form {
		max-width: 100%;
	}

	.viaje-contato-botao {
		width: 100%;
	}
}