/*
Theme Name: Tour House
Theme URI: https://tourhouse.com.br
Author: Tour House
Author URI: https://tourhouse.com.br
Description: Tema personalizado do site Tour House, grupo de turismo corporativo, eventos, brindes e viagens a lazer.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tourhouse
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ----------------------------------------
   Page transitions (native browser View Transitions API).
   Opts every same-origin navigation into a cross-fade instead of the
   default hard cut. No-ops gracefully in browsers without support.
---------------------------------------- */
@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.45s;
	animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------
   Design tokens
---------------------------------------- */
:root {
	--th-navy: #06065c;
	--th-navy-soft: #343274;
	--th-green: #69c41a;
	--th-amber: #f4b019;
	--th-orange: #ff8900;
	--th-red: #e92327;
	--th-white: #ffffff;
	--th-gray-50: #f6f6f6;
	--th-gray-100: #f1f1f1;
	--th-gray-200: #ececec;
	--th-gray-300: #d9d9d9;
	--th-gray-400: #d2d2c8;
	--th-text: #06065c;
	--th-font: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--th-radius-pill: 999px;
	--th-container: 1400px;
}

/* ----------------------------------------
   Reset / Base
---------------------------------------- */
* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	font-family: var(--th-font);
	color: var(--th-text);
	background: #fff;
	line-height: 1.6;
	font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--th-font);
	font-weight: 700;
	color: var(--th-navy);
	margin: 0 0 0.5em;
}

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

a {
	color: var(--th-navy);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

ul,
ol {
	padding-left: 1.2em;
}

.container {
	width: 100%;
	max-width: var(--th-container);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.skip-link:focus {
	position: fixed;
	left: 10px;
	top: 10px;
	z-index: 9999;
	background: #fff;
	padding: 10px 16px;
}

.mb-5 {
	margin-bottom: 20px;
}

/* ----------------------------------------
   Buttons
---------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--th-font);
	font-weight: 700;
	font-size: 16px;
	border-radius: var(--th-radius-pill);
	padding: 12px 28px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.button:hover,
.button:focus {
	text-decoration: none;
	opacity: 0.85;
}

.button--primary {
	background: var(--th-navy);
	color: var(--th-white);
}

.button--secondary {
	background: var(--th-white);
	color: var(--th-navy);
}

.button--outline {
	background: transparent;
	color: var(--th-navy);
	border-color: var(--th-navy);
}

.button--amber {
	background: var(--th-amber);
	color: var(--th-navy);
}

.button--green {
	background: var(--th-green);
	color: var(--th-white);
}

.button--lg {
	padding: 16px 36px;
	font-size: 18px;
}

/* ----------------------------------------
   Top bar
---------------------------------------- */
.top-bar {
	background: var(--th-amber);
	border-bottom: 1px solid var(--th-gray-200);
	font-size: 14px;
	padding: 7px 0;
}

.top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.top-bar__message {
	margin: 0;
	font-weight: 700;
}

.top-bar__link {
	font-weight: 600;
	white-space: nowrap;
}

/* ----------------------------------------
   Header
---------------------------------------- */
.site-header {
	padding: 7px 0;
	background: var(--th-gray-100);
}

.site-header__pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background: var(--th-gray-100);
	border-radius: var(--th-radius-pill);
	padding: 14px 40px;
}

.site-branding img {
	display: block;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 28px;
	flex-wrap: wrap;
}

.main-navigation a {
	color: var(--th-navy);
	font-weight: 600;
	font-size: 16px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 16px;
}

.header-login__icon {
	flex: 0 0 auto;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--th-navy);
	color: var(--th-white);
	font-size: 0;
	cursor: pointer;
	flex: 0 0 auto;
	order: -1;
}

.menu-toggle::before {
	content: '';
	width: 18px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* ----------------------------------------
   Content
---------------------------------------- */
.site-content {
	
}

.entry-title {
	margin-top: 0;
}

.entry-meta {
	color: #777;
	font-size: 0.875rem;
	margin-bottom: 1em;
}

.section-header {
	margin-bottom: 40px;
}

.section-header--center {
	text-align: center;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.section-header h2 {
	font-size: 40px;
}

.section-header p {
	font-size: 20px;
	font-weight: 500;
}

.section-eyebrow {
	font-weight: 500;
	color: var(--th-navy-soft);
	margin-bottom: 8px;
	text-transform: uppercase;
}

/* ----------------------------------------
   Shared accordion (reused across pages)
---------------------------------------- */
.esg-accordion {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.esg-accordion-item {
	border-bottom: 1px solid var(--th-gray-300);
	padding: 16px 0;
}

.esg-accordion-item:first-child {
	padding-top: 0;
}

.esg-accordion-item__label {
	font-weight: 700;
	font-size: 22px;
	color: var(--th-green);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.esg-accordion-item:not([open]) .esg-accordion-item__label {
	color: var(--th-gray-400);
}

.esg-accordion-item__label::-webkit-details-marker {
	display: none;
}

.esg-accordion-item__label::after {
	content: '\25BE';
	flex: 0 0 auto;
	font-size: 16px;
	transition: transform 0.2s ease;
}

.esg-accordion-item:not([open]) .esg-accordion-item__label::after {
	transform: rotate(180deg);
}

.esg-accordion-item__text {
	padding-top: 12px;
	color: var(--th-navy);
	font-size: 17px;
	font-weight: 500;
}

.esg-accordion-item__text p {
	margin: 0;
}

/* ----------------------------------------
   Shared slider controls (reused across pages)
---------------------------------------- */
.tri-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	color: var(--th-navy);
	cursor: pointer;
	flex: 0 0 auto;
	padding: 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.tri-arrow:hover {
	transform: scale(1.15);
	opacity: 0.8;
}

.tri-arrow--lg {
	width: 40px;
	height: 40px;
}

.tri-arrows--navy .tri-arrow {
	color: var(--th-navy);
}

.tri-arrows--white .tri-arrow {
	color: var(--th-white);
}

.tri-arrows {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin-bottom: 32px;
}

.slider-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}

.slider-dots button {
	border: 0;
	background: var(--th-gray-300);
	border-radius: var(--th-radius-pill);
	width: 10px;
	height: 10px;
	padding: 0;
	cursor: pointer;
	transition: width 0.3s ease, background 0.3s ease;
}

.slider-dots button.is-active {
	width: 28px;
	background: var(--th-green);
}

/* ----------------------------------------
   Brands strip (reused across pages)
---------------------------------------- */
.brands-strip {
	background: var(--th-navy);
	padding: 32px 0;
}

.brands-strip__inner {
	display: flex;
	align-items: center;
	gap: 32px;
}

.brands-strip__label {
	color: var(--th-white);
	font-weight: 500;
	font-size: 18px;
	margin: 0;
	max-width: 220px;
	flex: 0 0 auto;
}

.brands-strip__marquee {
	max-width: 100%;
	flex: 1 1 auto;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.brands-strip__track {
	display: flex;
	align-items: center;
	gap: 56px;
	width: max-content;
	animation: tourhouse-marquee 28s linear infinite;
}

.brands-strip__marquee:hover .brands-strip__track {
	animation-play-state: paused;
}

.brands-strip__track img {
	max-height: 50px;
	width: auto;
	flex: 0 0 auto;
}

@keyframes tourhouse-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.site-footer {
	padding: 56px 0 24px;
	background: var(--th-navy);
	color: var(--th-white);
	margin-top: 0;
}

.site-footer a {
	color: var(--th-white);
}

.footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding-bottom: 28px;
}

.footer-social {
	display: flex;
	align-items: center;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	color: var(--th-white);
}

.footer-social svg {
	width: 45px;
	height: 45px;
}

.footer-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin: 0 0 36px;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

.footer-column--small {
	grid-column: span 1;
}

.footer-column__title {
	font-size: 15px;
	text-transform: none;
	margin-bottom: 16px;
	color: var(--th-white);
}

.footer-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-column a {
	font-size: 16px;
	font-weight: 400;
	opacity: 0.9;
}

.footer-column a:hover {
	opacity: 1;
}

.footer-bottom {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	text-align: center;
}

.footer-bottom__text {
	font-size: 13px;
	font-weight: 600;
	margin: 0;
	opacity: 0.85;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 900px) {
	.footer-columns {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-header__pill {
		border-radius: 24px;
		padding: 12px 20px;
		position: relative;
	}

	.menu-toggle {
		display: flex;
	}

	.main-navigation,
	.site-header__actions {
		display: none;
		width: 100%;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 12px;
		padding: 16px 0 0;
	}

	.site-header__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding-top: 12px;
	}

	.site-header__pill.nav-open .main-navigation {
		display: block;
	}

	.site-header__pill.nav-open .site-header__actions {
		display: flex;
	}

	.site-header__pill.nav-open {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-header__pill:not(.nav-open) {
		flex-wrap: nowrap;
	}
}

@media (max-width: 600px) {
	.footer-columns {
		grid-template-columns: 1fr;
	}

	.brands-strip__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ----------------------------------------
   Floating WhatsApp button (all pages)
---------------------------------------- */
.whatsapp-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: var(--th-white);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
	transform: scale(1.08);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
	.whatsapp-float {
		right: 16px;
		bottom: 16px;
		width: 50px;
		height: 50px;
	}
}

/* ----------------------------------------
   Scroll reveal (entrance animations, all pages)
---------------------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
