/* TriPiratas — páginas institucionais (Sobre, Contato) */

/* ---------- Hero das páginas institucionais (Sobre e Contato) ---------- */
.tp-page-hero {
	background: var(--tp-dark);
	padding: 96px 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.tp-page-hero__goldline {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--tp-gold) 30%, var(--tp-gold-bright) 50%, var(--tp-gold) 70%, transparent);
}
.tp-page-hero__dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 1px 1px, rgba(200, 146, 10, 0.08) 1px, transparent 0);
	background-size: 24px 24px;
	pointer-events: none;
}
.tp-page-hero__content { position: relative; }
.tp-page-hero__content h1 {
	font-family: var(--tp-font-display);
	font-size: clamp(32px, 5vw, 60px);
	font-weight: 900;
	color: var(--tp-cream);
	margin: 0 0 20px;
	line-height: 1.05;
	letter-spacing: -1px;
}
.tp-page-hero__content p {
	font-size: 18px;
	color: var(--tp-cream-dim);
	max-width: 620px;
	margin: 0 auto;
	line-height: 1.8;
}

/* ---------- Sobre ---------- */
/* Manifesto: texto + espaço para imagem (imagem destacada da página) */
.tp-about__manifesto {
	max-width: 1200px;
	margin: 0 auto;
	padding: 96px 40px 64px;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 72px;
	align-items: center;
}
.tp-about__manifesto h2 {
	font-family: var(--tp-font-display);
	font-size: clamp(26px, 3.5vw, 42px);
	font-weight: 900;
	color: var(--tp-dark-2);
	margin: 18px 0 24px;
	line-height: 1.15;
	letter-spacing: -0.5px;
}
.tp-about__manifesto p { font-size: 17px; color: var(--tp-muted-2); line-height: 1.9; margin-bottom: 20px; }
.tp-about__manifesto p:last-child { margin-bottom: 0; }

/* Fecho do manifesto: faixa própria, centralizada, entre réguas douradas. */
.tp-about__closing {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 40px 96px;
	text-align: center;
}
.tp-about__closing-mark {
	display: block;
	width: 96px;
	height: auto;
	margin: 0 auto 24px;
}
.tp-about__closing p {
	position: relative;
	font-family: var(--tp-font-display);
	font-size: clamp(21px, 2.6vw, 30px);
	font-weight: 700;
	color: var(--tp-dark-2);
	line-height: 1.5;
	margin: 0;
	padding: 28px 0;
	border-top: 1px solid var(--tp-gold);
	border-bottom: 1px solid var(--tp-gold);
}

.tp-about__photo {
	position: relative;
	margin: 0;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(28, 15, 5, 0.22);
	border: 6px solid var(--tp-surface);
	outline: 1px solid var(--tp-border-cream);
}
.tp-about__photo-img {
	display: block;
	width: 100%;
	height: 480px;
	object-fit: cover;
}
.tp-about__photo .tp-img--placeholder { display: flex; align-items: center; justify-content: center; }
.tp-about__photo-flag {
	position: absolute;
	right: 10px;
	bottom: 8px;
	font-size: 46px;
	line-height: 1;
	filter: drop-shadow(0 4px 12px rgba(15, 8, 4, 0.6));
}

/* O Código da Tripulação */
.tp-about__code { background: var(--tp-dark-2); padding: 96px 40px; position: relative; overflow: hidden; }
.tp-about__code::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 1px 1px, rgba(200, 146, 10, 0.07) 1px, transparent 0);
	background-size: 26px 26px;
	pointer-events: none;
}
.tp-about__code-inner { max-width: 1200px; margin: 0 auto; position: relative; }
/*
 * São 5 itens: em grade auto-fit sobrava um card órfão numa linha própria.
 * Flex centralizado distribui 3 + 2 (e 2 + 2 + 1 no tablet) sem canto vazio.
 */
.tp-about__code-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-top: 12px;
}
.tp-code-card {
	flex: 1 1 300px;
	max-width: 344px;
	background: rgba(245, 237, 216, 0.04);
	border: 1px solid rgba(200, 146, 10, 0.28);
	padding: 26px 24px;
	transition: border-color 0.25s, background 0.25s;
}
.tp-code-card:hover { border-color: var(--tp-gold); background: rgba(245, 237, 216, 0.07); }
/* Ícone ao lado do título: sobra largura e os títulos longos param de quebrar. */
.tp-code-card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.tp-code-card__icon {
	/* Medalhão folgado: o ícone desenhado tem detalhe e some se ficar miúdo. */
	font-size: 32px;
	line-height: 1;
	width: 58px;
	height: 58px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(200, 146, 10, 0.1);
}
.tp-code-card h3 {
	font-family: var(--tp-font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--tp-gold-bright);
	margin: 0;
	line-height: 1.25;
}
.tp-code-card p { font-size: 15px; color: var(--tp-cream-dim); line-height: 1.75; margin: 0; }

/* ---------- Contato ---------- */
.tp-contact__grid {
	max-width: 1120px;
	margin: 0 auto;
	padding: 80px 24px;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 32px;
	/* Sem esticar: a coluna de canais é mais curta que a do formulário. */
	align-items: start;
}
.tp-contact__grid h2 {
	font-family: var(--tp-font-display);
	font-size: 24px;
	font-weight: 900;
	color: var(--tp-dark-2);
	margin: 0 0 10px;
	letter-spacing: -0.3px;
}

/* Formulário em cartão: antes flutuava solto ao lado dos cartões de canal. */
.tp-contact__card {
	background: var(--tp-surface);
	border: 1px solid var(--tp-border-cream);
	border-radius: 18px;
	padding: 40px;
	box-shadow: var(--tp-shadow-card);
}
.tp-contact__lead { font-size: 15px; color: var(--tp-muted); line-height: 1.7; margin: 0 0 8px; }
.tp-contact__form input, .tp-contact__form textarea { background: var(--tp-bg); }
.tp-contact__form label { margin-top: 18px; }
.tp-contact__form textarea { resize: vertical; }
/* E-mail e telefone lado a lado — encurta o formulário sem apertar nada. */
.tp-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp-contact__row label { margin-top: 18px; }
.tp-contact__form .tp-btn--block { margin-top: 28px; border-radius: 10px; padding: 16px; }
.tp-contact__success { text-align: center; padding: 24px 0; }
.tp-contact__success .icon { font-size: 48px; margin-bottom: 16px; }
.tp-contact__success p { color: var(--tp-muted); line-height: 1.7; }

/* O recuo iguala o título ao "Envie uma mensagem", que nasce após o padding do cartão. */
.tp-contact__aside { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; }

/*
 * WhatsApp: cartão inteiro clicável e em destaque, no topo da coluna.
 * É o canal principal da agência — antes aparecia duas vezes (linha na lista
 * + botão logo abaixo) e nenhuma das duas puxava o olho.
 */
.tp-contact__wa {
	display: block;
	/* O verde da marca (o mesmo do FAB). Sobre ele o texto tem de ser escuro:
	   branco renderia 2:1, enquanto --tp-ink rende 8.4:1. */
	background: var(--tp-wa);
	color: var(--tp-ink);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.tp-contact__wa:hover {
	color: var(--tp-ink);
	transform: translateY(-3px);
	box-shadow: 0 14px 38px rgba(37, 211, 102, 0.5);
}
.tp-contact__wa-head { display: flex; align-items: center; gap: 15px; }
/* Glifo verde em disco branco — o mesmo arranjo do logo do WhatsApp. */
.tp-contact__wa-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--tp-surface);
	color: var(--tp-wa);
}
.tp-contact__wa-icon .tp-icon { font-size: 27px; }
.tp-contact__wa .label {
	display: block;
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--tp-ink);
	margin-bottom: 3px;
}
/* Número e chamada em Nunito: o Cinzel é de título, e em dígito ficava rebuscado. */
.tp-contact__wa .phone {
	display: block;
	font-family: var(--tp-font-body);
	font-size: 23px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.2px;
	color: var(--tp-dark);
}
.tp-contact__wa-go {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(245, 237, 216, 0.25);
	font-family: var(--tp-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.tp-contact__wa-go .arrow { transition: transform 0.22s ease; }
.tp-contact__wa:hover .arrow { transform: translateX(5px); }

.tp-contact__channel {
	display: flex;
	align-items: center;
	gap: 15px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-border-cream);
	border-radius: 14px;
	padding: 18px 20px;
	box-shadow: var(--tp-shadow-card);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
a.tp-contact__channel:hover { border-color: var(--tp-gold); transform: translateY(-2px); }
/* Medalhão dourado, igual ao do Código da Tripulação no Sobre. */
.tp-contact__channel .icon {
	width: 58px;
	height: 58px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	line-height: 1;
	border: 1px solid rgba(200, 146, 10, 0.4);
	border-radius: 50%;
	background: rgba(200, 146, 10, 0.1);
}
.tp-contact__channel-body { min-width: 0; }
.tp-contact__channel .title {
	display: block;
	font-family: var(--tp-font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--tp-muted);
	margin-bottom: 3px;
}
.tp-contact__channel .main { display: block; font-size: 15px; color: var(--tp-gold-text); font-weight: 800; word-break: break-word; }
.tp-contact__channel .sub { display: block; font-size: 12px; color: var(--tp-muted); line-height: 1.5; margin-top: 2px; }

.tp-contact__social {
	text-align: center;
	margin-top: 6px;
	padding-top: 20px;
	border-top: 1px solid var(--tp-border-cream);
}
.tp-contact__social-label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--tp-muted);
	margin-bottom: 12px;
}
.tp-contact__social-links { justify-content: center; }
.tp-contact__social-links .tp-social__link {
	border-color: var(--tp-border-cream);
	color: var(--tp-muted);
	border-radius: 10px;
	background: var(--tp-surface);
}
.tp-contact__social-links .tp-social__link:hover {
	color: var(--tp-gold-deep);
	border-color: var(--tp-gold);
	background: rgba(200, 146, 10, 0.06);
}

@media (max-width: 880px) {
	.tp-page-hero { padding: 48px 20px; }
	.tp-about__manifesto { grid-template-columns: 1fr; gap: 32px; padding: 44px 20px 32px; }
	.tp-about__closing { padding: 0 20px 44px; }
	.tp-about__closing p { padding: 22px 0; }
	.tp-about__photo-img { height: 320px; }
	.tp-about__code { padding: 44px 20px; }
	.tp-contact__grid { grid-template-columns: 1fr; padding: 36px 20px; gap: 20px; }
	/* No celular o contato direto vem antes do formulário. */
	.tp-contact__aside { order: -1; padding-top: 0; }
	.tp-contact__card { padding: 28px 22px; }
}

@media (max-width: 480px) {
	.tp-contact__row { grid-template-columns: 1fr; gap: 0; }
}
