/* Header, footer, skip link — outside #ip-landing block content */

/* Faixa de confiança: oculta na landing (shell carrega depois do Tailwind e garante o hide no ar) */
body.insano-pudim-landing .insano-trust-strip {
	display: none !important;
}

:root {
	--ip-wine: #6b111c;
	--ip-wine-dark: #4a0c14;
	--ip-wine-light: #8c1d2f;
	--ip-gold: #c9a227;
	--ip-gold-light: #e8d48b;
	--ip-cream: #faf6f0;
	--ip-text: #2c2c2c;
	--ip-text-muted: #6b6b6b;
	--ip-max: 1440px;
	--ip-radius: 12px;
	--ip-transition: 0.25s ease;
	--ip-shadow: 0 4px 24px rgba(107, 17, 28, 0.06);
	--ip-font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--ip-font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

.ip-skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--ip-wine);
	color: #fff;
	font-family: var(--ip-font-body);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--ip-radius);
	transition: top var(--ip-transition);
}

.ip-skip-link:focus {
	top: 1rem;
	outline: 3px solid var(--ip-gold);
	outline-offset: 2px;
}

.ip-top-bar {
	display: none;
	background: var(--ip-wine);
	color: #fff;
	font-family: var(--ip-font-body);
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.ip-top-bar-inner {
	box-sizing: border-box;
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	padding: 0.5rem 1.5rem;
	max-width: var(--ip-max);
}

.ip-top-bar-text {
	margin: 0;
	max-width: none;
	opacity: 0.95;
	white-space: nowrap;
	flex-shrink: 0;
}

.ip-top-bar-link {
	color: var(--ip-gold-light);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
	flex-shrink: 0;
}

.ip-top-bar-link:hover {
	color: #fff;
}

.ip-top-bar-link:focus-visible {
	outline: 2px solid var(--ip-gold-light);
	outline-offset: 2px;
	border-radius: 4px;
}

.ip-header {
	background: #fff;
	box-shadow: var(--ip-shadow);
	position: sticky;
	top: 0;
	z-index: 100;
	transition: box-shadow var(--ip-transition);
}

.ip-header.scrolled {
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.ip-header-inner {
	box-sizing: border-box;
	max-width: var(--ip-max);
	margin: 0 auto;
	padding: 0.75rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.ip-logo-link {
	display: block;
	line-height: 0;
	flex: 0 1 auto;
	min-width: 0;
}

/* Landing (logo imagem + CTA): evita sobreposição no mobile estreito */
.insano-pudim-landing .ip-logo-link {
	max-width: min(52%, 200px);
}

.ip-logo {
	height: 42px;
	width: auto;
	max-width: 100%;
	display: block;
	object-fit: contain;
	object-position: left center;
}

@media (min-width: 480px) {
	.ip-header-inner {
		padding: 0.875rem 1.5rem;
		flex-wrap: nowrap;
		gap: 1rem;
	}

	.insano-pudim-landing .ip-logo-link {
		max-width: none;
	}
}

.ip-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.5rem;
	font-family: var(--ip-font-body);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ip-nav-list a {
	color: var(--ip-wine);
	text-decoration: none;
	padding: 0.25rem 0;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.ip-nav-list a:hover {
	text-decoration: underline;
}

.ip-nav-list a:focus-visible {
	outline: 2px solid var(--ip-wine);
	outline-offset: 2px;
	border-radius: 4px;
}

.ip-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	flex: 1 1 auto;
	min-width: 0;
}

.ip-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	max-width: 100%;
	padding: 0.625rem 1.125rem;
	background: #6b111c;
	color: #fff;
	font-family: var(--ip-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	text-decoration: none;
	text-align: center;
	border-radius: 999px;
	box-shadow: 0 2px 14px rgba(107, 17, 28, 0.35);
	transition: transform var(--ip-transition), box-shadow var(--ip-transition), background var(--ip-transition);
	white-space: nowrap;
}

.ip-header-cta-label--full {
	display: none;
}

.ip-header-cta-label--short {
	display: inline;
}

@media (min-width: 480px) {
	.ip-nav {
		gap: 1.5rem;
		flex: 0 0 auto;
	}

	.ip-header-cta {
		min-height: 50px;
		padding: 0.6875rem 1.375rem;
		font-size: 1rem;
		border-radius: var(--ip-radius);
	}

	.ip-header-cta-label--short {
		display: none;
	}

	.ip-header-cta-label--full {
		display: inline;
	}
}

.ip-header-cta:hover {
	background: var(--ip-wine-light);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 22px rgba(107, 17, 28, 0.45);
}

.ip-header-cta:focus-visible {
	outline: 2px solid var(--ip-gold);
	outline-offset: 2px;
}

/*
 * Pills sticky: coladas no header (#masthead). A top bar não é sticky e some ao rolar;
 * o offset é só a altura do header — landing.js define em px; valores abaixo = fallback sem JS.
 */
body.insano-pudim-landing {
	--insano-sticky-pill-top: 4.75rem;
}

@media (min-width: 480px) {
	body.insano-pudim-landing {
		--insano-sticky-pill-top: 5.25rem;
	}
}

body.insano-pudim-landing .insano-pill-section {
	position: sticky;
	top: var(--insano-sticky-pill-top);
	z-index: 90;
	background-color: rgba(250, 246, 240, 0.96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 14px rgba(45, 26, 20, 0.07);
}

@media (prefers-reduced-motion: reduce) {
	body.insano-pudim-landing .insano-pill-section {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background-color: var(--ip-cream);
	}
}

/* Âncoras dos pills: compensa header + barra sticky ao rolar */
body.insano-pudim-landing #produtos,
body.insano-pudim-landing #eventos-corporativos,
body.insano-pudim-landing #pudim-no-pote,
body.insano-pudim-landing #por-que-insano,
body.insano-pudim-landing #depoimentos,
body.insano-pudim-landing #faq {
	scroll-margin-top: calc(var(--insano-sticky-pill-top) + 3.75rem);
}

.ip-footer {
	background: var(--ip-wine-dark);
	color: #fff;
	text-align: center;
	padding: 1.75rem;
}

.ip-footer-inner {
	max-width: var(--ip-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.ip-footer-credits {
	margin: 0;
	font-family: var(--ip-font-body);
	font-size: 0.9rem;
	opacity: 0.9;
}

.ip-page {
	padding: 2.5rem 0;
}

.ip-page-title {
	font-family: var(--ip-font-heading);
	color: var(--ip-wine);
	margin: 0 0 1rem;
}

.ip-page-content {
	font-family: var(--ip-font-body);
	line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Menu mobile (landing): hambúrguer + drawer
   -------------------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.ip-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	border-radius: var(--ip-radius);
}

.ip-nav-toggle:focus-visible {
	outline: 2px solid var(--ip-wine);
	outline-offset: 2px;
}

.ip-nav-toggle-bars {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--ip-wine);
	box-shadow: 0 -7px 0 var(--ip-wine), 0 7px 0 var(--ip-wine);
	position: relative;
	top: 0;
}

@media (max-width: 767px) {
	body.insano-pudim-landing .ip-nav-toggle {
		display: inline-flex;
	}

	body.insano-pudim-landing .ip-nav-list,
	body.insano-pudim-landing .ip-header-cta {
		display: none;
	}

	body.insano-pudim-landing .ip-nav {
		flex: 0 0 auto;
		min-width: 0;
	}
}

.ip-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
}

.ip-mobile-drawer:not([hidden]) {
	pointer-events: auto;
}

.ip-mobile-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ip-mobile-drawer-panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(85vw, 320px);
	max-width: 100%;
	background: #fff;
	color: var(--ip-text);
	display: flex;
	flex-direction: column;
	box-shadow: 8px 0 32px rgba(107, 17, 28, 0.12);
	border-right: 1px solid rgba(107, 17, 28, 0.1);
	transform: translateX(-100%);
	transition: transform 0.28s ease;
}

.ip-mobile-drawer:not([hidden]) .ip-mobile-drawer-backdrop {
	opacity: 1;
}

.ip-mobile-drawer:not([hidden]) .ip-mobile-drawer-panel {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.ip-mobile-drawer-backdrop,
	.ip-mobile-drawer-panel {
		transition: none;
	}
}

.ip-mobile-drawer-topbar {
	flex-shrink: 0;
	height: 4px;
	background: var(--ip-wine);
}

.ip-mobile-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(107, 17, 28, 0.12);
	background: var(--ip-cream);
}

.ip-mobile-drawer-title {
	margin: 0;
	font-family: var(--ip-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ip-wine);
}

.ip-mobile-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	color: var(--ip-wine);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	border-radius: var(--ip-radius);
}

.ip-mobile-drawer-close:focus-visible {
	outline: 2px solid var(--ip-gold);
	outline-offset: 2px;
}

.ip-mobile-drawer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.ip-mobile-drawer-item {
	border-bottom: 1px solid rgba(107, 17, 28, 0.08);
}

.ip-mobile-drawer-link {
	display: block;
	padding: 0.875rem 1rem;
	font-family: var(--ip-font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	text-decoration: none;
	color: var(--ip-wine);
	line-height: 1.35;
}

.ip-mobile-drawer-link:hover {
	background: rgba(250, 246, 240, 0.9);
	color: var(--ip-wine);
}

.ip-mobile-drawer-link:focus-visible {
	outline: 2px solid var(--ip-gold);
	outline-offset: -2px;
}

.ip-mobile-drawer-item--whatsapp {
	border-bottom: none;
	margin-top: auto;
}

.ip-mobile-drawer-link--whatsapp {
	background: #25d366;
	color: #fff;
	font-weight: 700;
	text-align: center;
	padding: 1rem;
}

.ip-mobile-drawer-link--whatsapp:hover {
	background: #1ebe57;
	filter: none;
}

.ip-mobile-drawer-footer {
	flex-shrink: 0;
	padding: 0.75rem 1rem 1.25rem;
	border-top: 1px solid rgba(107, 17, 28, 0.1);
	background: var(--ip-cream);
}

.ip-mobile-drawer-anchor {
	font-family: var(--ip-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ip-wine);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ip-mobile-drawer-anchor:hover {
	color: var(--ip-wine-light);
}

.ip-mobile-drawer-anchor:focus-visible {
	outline: 2px solid var(--ip-gold);
	outline-offset: 2px;
	border-radius: 4px;
}

body.ip-mobile-menu-open {
	overflow: hidden;
	touch-action: none;
}

/* Botão flutuante WhatsApp (referência: pill verde + duas linhas) */
.ip-wa-float {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 150;
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	max-width: calc(100vw - 2rem);
	padding: 0.65rem 1.1rem 0.65rem 0.85rem;
	background: #25d366;
	color: #fff;
	font-family: var(--ip-font-body);
	text-decoration: none;
	border-radius: 999px;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
	transition: transform var(--ip-transition), box-shadow var(--ip-transition);
}

.ip-wa-float:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
	color: #fff;
}

.ip-wa-float:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.ip-wa-float-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
}

.ip-wa-float-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	line-height: 1.2;
	min-width: 0;
}

.ip-wa-float-line1 {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ip-wa-float-line2 {
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
}

@media (max-width: 380px) {
	.ip-wa-float-line1 {
		font-size: 0.625rem;
	}

	.ip-wa-float-line2 {
		font-size: 0.75rem;
	}

	.ip-wa-float {
		padding: 0.55rem 0.85rem 0.55rem 0.7rem;
		gap: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ip-wa-float {
		transition: none;
	}

	.ip-wa-float:hover {
		transform: none;
	}
}
