/* TriPiratas — header, footer, WhatsApp FAB, cards de viagem */

/* ---------- Header ---------- */
.tp-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--tp-dark);
	border-bottom: 1px solid rgba(200, 146, 10, 0.15);
	transition: background 0.3s;
	overflow: visible; /* o logo transborda a barra */
}
.tp-header.is-scrolled { background: rgba(15, 8, 4, 0.96); backdrop-filter: blur(12px); }
.tp-header__goldline {
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, var(--tp-gold) 30%, var(--tp-gold-bright) 50%, var(--tp-gold) 70%, transparent 100%);
}
.tp-header__inner {
	max-width: var(--tp-container);
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	height: 92px;
	gap: 20px;
}
/*
 * O logo é absoluto dentro da âncora: no topo da página ele transborda a barra
 * (130px) e, com .is-scrolled (header.js, scrollY > 60), encolhe para dentro
 * dela (72px). A altura da barra — e o token --tp-header-h — não mudam.
 */
.tp-header__logo { flex: 1; display: flex; align-items: center; align-self: stretch; position: relative; }
.tp-header__logo img {
	position: absolute;
	left: 0;
	top: 10px;
	height: 110px;
	width: auto;
	filter: drop-shadow(0 8px 20px rgba(15, 8, 4, 0.55));
	transition: height 0.25s ease, top 0.25s ease, filter 0.25s ease;
}
.tp-header.is-scrolled .tp-header__logo img { top: 10px; height: 72px; filter: none; }
.tp-header__nav { display: flex; gap: 36px; align-items: center; }
.tp-header__nav a {
	color: var(--tp-cream-dim);
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	padding: 6px 0;
	border-bottom: 1.5px solid transparent;
	transition: all 0.2s;
}
.tp-header__nav a:hover { color: var(--tp-cream); }
.tp-header__nav a.is-current { color: var(--tp-gold-bright); border-bottom-color: var(--tp-gold-bright); }
.tp-header__actions { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
/* Caveira em dourado claro: destaca na barra escura e conversa com o botão da reserva. */
.tp-header__account {
	color: var(--tp-gold-bright);
	display: flex;
	align-items: center;
	padding: 6px;
	transition: color 0.2s, transform 0.2s;
}
.tp-header__account:hover { color: var(--tp-cream); transform: translateY(-1px); }
.tp-header__action-icon {
	background-color: var(--tp-cream);
	display: block;
	flex-shrink: 0;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}
.tp-header__action-icon--pirate {
	width: 32px;
	height: 32px;
	-webkit-mask-image: url("../img/icones/pirata.svg");
	mask-image: url("../img/icones/pirata.svg");
}
.tp-icon--pirate { width: 26px; height: 26px; display: block; }
.tp-mobile-menu__account { display: flex; align-items: center; gap: 10px; }
.tp-mobile-menu__account .tp-icon--pirate { width: 20px; height: 20px; color: var(--tp-gold-bright); }
.tp-header__cart {
	border: 1.5px solid rgba(200, 146, 10, 0.4);
	color: var(--tp-cream);
	padding: 8px 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	transition: border-color 0.2s;
	background: var(--tp-price);
}
.tp-header__cart:hover { border-color: var(--tp-gold); }
.tp-header__cart-label {
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.tp-header__cart-count {
	position: absolute;
	top: -7px;
	right: -7px;
	background: var(--tp-red);
	color: var(--tp-surface);
	border-radius: 50%;
	width: 18px;
	height: 19px;
	font-size: 11px;
	display: none;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.tp-header__cart-count.is-visible { display: flex; }

/* Burger + menu móvel */
.tp-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.tp-header__burger span {
	width: 24px;
	height: 2px;
	background: var(--tp-cream);
	transition: all 0.25s;
}
.tp-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tp-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tp-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.tp-mobile-menu {
	background: var(--tp-dark-2);
	border-top: 1px solid rgba(200, 146, 10, 0.15);
	position: relative; /* fica acima do logo transbordante quando aberto */
	z-index: 2;
}
.tp-mobile-menu nav { display: flex; flex-direction: column; padding: 12px 20px 20px; }
.tp-mobile-menu a {
	color: var(--tp-cream);
	font-family: var(--tp-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 14px 4px;
	border-bottom: 1px solid rgba(200, 146, 10, 0.08);
}
.tp-mobile-menu a.is-current { color: var(--tp-gold-bright); }

@media (max-width: 1024px) {
	.tp-header__inner { height: 72px; padding: 0 20px; }
	.tp-header__logo img { height: 96px; top: 4px; }
	.tp-header.is-scrolled .tp-header__logo img { height: 52px; top: 10px; }
	.tp-header__nav { display: none; }
	.tp-header__burger { display: flex; }
	.tp-header__cart-label { display: none; }
	.tp-header__cart { padding: 8px 12px; }
	:root { --tp-header-h: 74px; }
}

/* ---------- Card de viagem ---------- */
.tp-card {
	background: var(--tp-surface);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--tp-shadow-card);
	transition: all 0.28s ease;
}
.tp-card:hover { box-shadow: var(--tp-shadow-card-hover); transform: translateY(-6px); }
.tp-card__link { display: flex; flex-direction: column; height: 100%; }
.tp-card__media { position: relative; overflow: hidden; line-height: 0; }
.tp-card__media .tp-img { height: 210px; transition: transform 0.5s ease; }
.tp-card:hover .tp-card__media .tp-img { transform: scale(1.04); }
.tp-card__media-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(15, 8, 4, 0.75) 100%);
}
.tp-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tp-card__title {
	position: absolute;
	bottom: 14px;
	left: 14px;
	right: 14px;
	font-family: var(--tp-font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--tp-cream);
	line-height: 1.2;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.tp-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.tp-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tp-muted);
	font-size: 12px;
	font-weight: 600;
	flex-wrap: wrap;
}
.tp-card__meta .dot { color: var(--tp-muted-3); }
.tp-card__departures {
	background: var(--tp-bg);
	border-radius: 6px;
	padding: 8px 10px;
	border: 1px solid var(--tp-border-cream-2);
}
.tp-card__departures-title {
	font-size: 11px;
	font-weight: 800;
	color: var(--tp-gold-text);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 5px;
}
.tp-card__departure-row {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--tp-muted-2);
	margin-bottom: 2px;
	gap: 8px;
}
.tp-card__departure-row .time { font-weight: 700; color: var(--tp-muted); white-space: nowrap; }
.tp-card__departure-single { font-size: 13px; color: var(--tp-muted-3); }
.tp-card__spots-label { font-size: 12px; color: var(--tp-muted); display: block; margin-bottom: 5px; }
.tp-card__spots-label.is-low { color: var(--tp-red); font-weight: 700; }
.tp-card__footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tp-card__cta { padding: 11px 20px; font-size: 12px; letter-spacing: 0.5px; white-space: nowrap; box-shadow: none; }
.tp-card.is-sold-out .tp-card__media .tp-img { filter: grayscale(0.75); }
.tp-card.is-sold-out .tp-price__value { color: var(--tp-muted); }

/* ---------- Footer ---------- */
.tp-footer { background: var(--tp-dark); color: var(--tp-cream); }
.tp-footer__news { background: linear-gradient(135deg, var(--tp-gold) 0%, var(--tp-gold-deep) 100%); padding: 56px 40px; }
.tp-footer__news-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.tp-footer__news-eyebrow {
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 800;
	color: var(--tp-dark-2);
	letter-spacing: 4px;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.tp-footer__news h3 {
	font-family: var(--tp-font-display);
	font-size: 28px;
	font-weight: 900;
	color: var(--tp-dark-2);
	margin: 0 0 10px;
	line-height: 1.1;
}
.tp-footer__news p { font-size: 14px; color: rgba(28, 15, 5, 0.7); margin-bottom: 24px; }
.tp-footer__news-success { font-size: 16px; font-weight: 700; color: var(--tp-dark-2); }
.tp-footer__news-form { display: flex; max-width: 460px; margin: 0 auto; }
.tp-footer__news-form input[type="email"] {
	flex: 1;
	padding: 14px 18px;
	border: none;
	font-size: 14px;
	outline: none;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 0;
	min-width: 0;
}
.tp-footer__news-form button {
	background: var(--tp-dark-2);
	color: var(--tp-gold-bright);
	border: none;
	padding: 14px 24px;
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	cursor: pointer;
	white-space: nowrap;
}
.tp-footer__grid {
	max-width: var(--tp-container);
	margin: 0 auto;
	padding: 64px 40px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
}
.tp-footer__brand img { height: 72px; width: auto; margin-bottom: 20px; }
.tp-footer__brand p { font-size: 14px; color: var(--tp-cream-dim); line-height: 1.8; }
.tp-footer__col-title {
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 700;
	color: var(--tp-gold);
	margin-bottom: 20px;
	letter-spacing: 3px;
	text-transform: uppercase;
}
.tp-footer__col a {
	display: block;
	font-size: 14px;
	color: var(--tp-cream-dim);
	margin-bottom: 10px;
	transition: color 0.2s;
}
.tp-footer__col a:hover { color: var(--tp-cream); }
.tp-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 20px 40px;
	max-width: var(--tp-container);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.tp-footer__bottom > span { font-size: 12px; color: var(--tp-cream-dim-2); letter-spacing: 1px; }
.tp-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.tp-footer__legal a { font-size: 12px; color: var(--tp-cream-dim-2); }
.tp-footer__legal a:hover { color: var(--tp-gold-bright); }

@media (max-width: 1024px) {
	.tp-footer__grid { grid-template-columns: 1fr 1fr; padding: 48px 20px 24px; }
}
@media (max-width: 560px) {
	.tp-footer__grid { grid-template-columns: 1fr; }
	.tp-footer__news { padding: 40px 20px; }
}

/* ---------- Ícones sociais ---------- */
.tp-icon { width: 1em; height: 1em; display: block; }
.tp-social { display: flex; gap: 12px; }
.tp-social__link {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(200, 146, 10, 0.25);
	color: rgba(245, 237, 216, 0.6);
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tp-social__link .tp-icon { font-size: 18px; }
.tp-social__link:hover { color: var(--tp-gold-bright); border-color: var(--tp-gold); background: rgba(200, 146, 10, 0.08); }
.tp-footer__social { margin-top: 22px; }

/* ---------- WhatsApp FAB ---------- */
.tp-whatsapp {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 9999;
	width: 56px;
	height: 56px;
	background: var(--tp-wa);
	color: var(--tp-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
	transition: transform 0.25s, box-shadow 0.25s;
}
.tp-whatsapp .tp-icon { font-size: 30px; }
.tp-whatsapp:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6); }

/* Coluna de contato do rodapé */
.tp-footer__col .tp-footer__contact {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 16px;
	color: var(--tp-cream-dim);
	transition: color 0.2s;
}
.tp-footer__col a.tp-footer__contact:hover { color: var(--tp-cream); }
.tp-footer__col .tp-footer__contact > span:first-child { font-size: 15px; line-height: 1.5; flex-shrink: 0; }
.tp-footer__col .tp-footer__contact .tp-icon { font-size: 17px; margin-top: 2px; }
.tp-footer__col .tp-footer__contact .label {
	display: block;
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--tp-gold);
	margin-bottom: 2px;
}
.tp-footer__col .tp-footer__contact .value { display: block; font-size: 14px; line-height: 1.5; }

/* Card estreito: preço em cima, CTA em largura total embaixo. */
@media (max-width: 560px) {
	.tp-card__footer { flex-direction: column; align-items: stretch; gap: 14px; }
	.tp-card__cta { text-align: center; }
}
