/*
Theme Name: BoRa Turismo Sustentável
Theme URI: https://bora.marchiori.digital/
Author: Marchiori Digital
Description: Tema próprio do BoRa. Header e rodapé do tema; páginas montadas no Elementor (cores e fontes nas Configurações do site do Elementor). Opções em Aparência > Personalizar > Tema BoRa.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bora
*/

:root {
	--bora-marrom: var(--e-global-color-primary, #68403A);
	--bora-marrom-fundo: var(--e-global-color-fundomr, #6B443E);
	--bora-marrom-sombra: var(--e-global-color-marrom2, #5B3732);
	--bora-escuro: var(--e-global-color-escuro1, #311E1B);
	--bora-verde: var(--e-global-color-secondary, #007D38);
	--bora-amarelo: var(--e-global-color-accent, #F8DC59);
	--bora-texto: var(--e-global-color-text, #5B5B5B);
	--bora-fonte: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }
html.bora-lock { overflow: hidden; }

body {
	margin: 0;
	background: #fff;
	color: var(--bora-texto);
	font-family: var(--bora-fonte);
	font-size: 20px;
	line-height: 1.6;
	overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--bora-verde); }

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

.bora-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	background: #fff;
	color: var(--bora-marrom);
	padding: 8px 16px;
	border-radius: 8px;
}
.bora-skip:focus { left: 16px; }

/* ---------- Botão ---------- */
body a.bora-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 60px;
	background: var(--bora-escuro);
	color: #fff;
	font-family: var(--bora-fonte);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.3px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .3s;
}
body a.bora-btn:hover, body a.bora-btn:focus-visible { background: var(--bora-marrom); color: #fff; }
.bora-btn img { width: 20px; height: auto; flex: none; }

/* ---------- Header ---------- */
.bora-header {
	position: relative;
	z-index: 20;
	max-width: 1500px;
	margin: 0 auto;
	padding: 20px 30px 0;
}

.bora-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 80px;
	padding: 12px 16px 12px 22px;
	border-radius: 250px;
	background: linear-gradient(100deg, var(--bora-marrom) 0%, var(--bora-marrom-sombra) 100%);
}

.bora-logo { display: block; flex: none; line-height: 0; }
.bora-logo__img { width: 135px; height: auto; }

.bora-nav { flex: 1 1 auto; }
.bora-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bora-header .bora-nav__list a {
	display: block;
	padding: 10px 14px;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.3px;
	text-decoration: none;
	transition: color .2s;
}
.bora-header .bora-nav__list a:hover,
.bora-header .bora-nav__list a:focus-visible,
.bora-header .bora-nav__list .current-menu-item.menu-item-object-page > a { color: var(--bora-amarelo); }

.bora-flags { display: flex; align-items: center; gap: 12px; flex: none; }
.bora-flags a { display: block; line-height: 0; }
.bora-flags img { width: 28px; height: 28px; }

.bora-header__cta { flex: none; }

.bora-header button.bora-burger {
	display: none;
	margin-left: auto;
	width: 44px; height: 44px;
	padding: 10px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}
.bora-header .bora-burger:hover, .bora-header .bora-burger:focus { background: rgba(255,255,255,.12); }
.bora-burger__line { display: block; width: 22px; margin: 0 auto; height: 2px; border-radius: 2px; background: #fff; }

/* Painel do menu (tablet e celular) */
.bora-panel { position: fixed; inset: 0; z-index: 1000; }
.bora-panel__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s; }
.bora-panel__box {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(320px, 85vw);
	padding: 72px 30px 30px;
	background: #fff;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .25s ease;
}
.bora-panel.is-open .bora-panel__backdrop { opacity: 1; }
.bora-panel.is-open .bora-panel__box { transform: none; }
.bora-panel button.bora-panel__close {
	position: absolute;
	top: 14px; right: 16px;
	width: 44px; height: 44px;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--bora-marrom);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}
.bora-panel__list { margin: 0 0 28px; padding: 0; list-style: none; }
.bora-panel .bora-panel__list a {
	display: block;
	padding: 12px 0;
	color: var(--bora-marrom);
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid #eee5e2;
}
.bora-panel .bora-panel__list a:hover { color: var(--bora-verde); }

/* ---------- Conteúdo comum (páginas sem Elementor) ---------- */
.bora-entry { max-width: 900px; margin: 0 auto; padding: 80px 24px; }
.bora-page-title { margin: 0 0 24px; color: var(--bora-marrom); font-size: 46px; line-height: 1.2; }
.bora-entry .bora-page-title a { color: inherit; text-decoration: none; }
.bora-entry__thumb img { border-radius: 24px; }
.bora-entry__content h2, .bora-entry__content h3 { color: var(--bora-marrom); }

/* ---------- Rodapé ---------- */
.bora-footer { padding: 0 30px 30px; }
.bora-footer__box {
	background: var(--bora-marrom-fundo);
	border-radius: 0 0 40px 40px;
	color: #fff;
}
.bora-footer__inner { max-width: 1492px; margin: 0 auto; padding: 60px 60px 30px; }

.bora-footer__cols { display: flex; flex-wrap: wrap; row-gap: 40px; }
.bora-footer__col { width: 22.5%; }
.bora-footer__col--about { width: 35%; padding-right: 40px; }
.bora-footer__col:nth-child(2) { width: 19%; }
.bora-footer__col:nth-child(4) { width: 23.5%; }

.bora-footer-logo { display: inline-block; line-height: 0; margin-bottom: 24px; }
.bora-footer-logo__img { width: 183px; height: auto; }

.bora-footer__text { font-size: 16px; line-height: 1.5; margin-bottom: 24px; }
.bora-footer__text p { margin: 0 0 12px; }

.bora-footer__title { margin: 0 0 20px; font-size: 20px; font-weight: 500; line-height: 1.5; letter-spacing: -0.4px; }

.bora-footer__list { margin: 0; padding: 0; list-style: none; }
.bora-footer .bora-footer__list a {
	display: inline-block;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 2.1;
	letter-spacing: -0.3px;
	text-decoration: none;
}
.bora-footer .bora-footer__list a:hover, .bora-footer .bora-footer__list a:focus-visible { color: var(--bora-amarelo); }

.bora-footer__awards { display: flex; flex-direction: column; gap: 16px; }
.bora-footer__awards img { width: 315px; max-width: 100%; border-radius: 15px; }

.bora-footer__copy { margin: 40px 0 0; text-align: center; font-size: 14px; line-height: 1.5; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.bora-header { padding: 16px 20px 0; }
	.bora-header__bar { min-height: 64px; padding: 8px 12px 8px 18px; }
	.bora-nav, .bora-flags, .bora-header a.bora-header__cta { display: none; }
	.bora-header button.bora-burger { display: flex; }

	.bora-footer { padding: 0 20px 20px; }
	.bora-footer__inner { padding: 60px 32px 30px; }
	.bora-footer__col--about { width: 100%; padding-right: 0; }
	.bora-footer__col:nth-child(2) { width: 30%; }
	.bora-footer__col:nth-child(3), .bora-footer__col:nth-child(4) { width: 35%; }
}

/* ---------- Celular ---------- */
@media (max-width: 767px) {
	body { font-size: 16px; }
	.bora-header { padding: 10px 10px 0; }
	.bora-logo__img { width: 100px; }
	.bora-page-title { font-size: 32px; }

	.bora-footer { padding: 0 10px 10px; }
	.bora-footer__box { border-radius: 0 0 24px 24px; }
	.bora-footer__inner { padding: 40px 20px 24px; }
	.bora-footer__col, .bora-footer__col:nth-child(n) { width: 100%; }
	.bora-footer-logo__img { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
	.bora-panel__box, .bora-panel__backdrop, .bora-btn { transition: none; }
}
