/**
 * Estúdio da Salvação — custom section styles
 *
 * Native blocks/theme.json cover most of the design; anything that
 * needs true CSS (blur, absolute overlays, marquees, accordions...)
 * lives here, one section at a time as it's built. See CLAUDE.md.
 */

/* -------------------------------------------------------------- */
/* Textura de papel                                                */
/* -------------------------------------------------------------- */

/* Grão sutil sobre toda superfície branca do site (mesma classe
   utilitária que já sai em cada seção/botão branco: header, marquee,
   Serviços, Nosso Espaço, Portfólio, divisor de asteriscos, FAQ, Como
   Chegar, footer e os botões outline). Testado com uma foto de
   textura real (fornecida pela cliente) primeiro, mas trocado por
   ruído SVG gerado (feTurbulence + saturate:0) porque: 1) tileia sem
   costura nenhuma — uma foto real não é seamless e mostraria repetição
   nas bordas entre seções; 2) é ~0KB de peso de rede (data URI inline,
   sem requisição extra), ao contrário de um JPG grande aplicado no
   site inteiro. Dessaturado (saturate:0) + opacidade calibrada (16%, testada via
   sample de pixel — luminância mínima ~234/255) pra dar um grão
   visível de verdade sem escurecer o branco. Cinza neutro em cima do
   branco — nunca bege/amarelado. */
.has-white-background-color.has-background {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
	background-repeat: repeat;
}

/* 2026-09-16: mesma textura (idêntico data URI, pra reaproveitar o
   cache de imagem do navegador em vez de decodificar um segundo SVG)
   repetida no body, com `background-attachment: fixed` — sem isso, o
   fundo por trás de cada seção (antes dela existir/animar) ficava
   branco liso; no fade-in do .reveal (opacity 0→1, ver #Scroll
   Reveal), dava pra notar o instante em que ele "trocava" de branco
   liso pra textura. Com o body já texturizado por baixo o tempo todo
   (fixo, não rola com o conteúdo, então não re-tileia a cada scroll),
   a transição de opacidade passa a ser só textura-sobre-textura —
   sem salto visível. */
body {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-attachment: fixed;
}

/* -------------------------------------------------------------- */
/* Shared                                                          */
/* -------------------------------------------------------------- */

/* Pink underline used under a section title — originally built for
   Portfólio, now reused wherever a section title needs the same
   accent (Nosso Espaço, Perguntas Frequentes, Como Chegar). Not every
   section has one (Serviços has no heading at all, CTA-Convite uses a
   button instead) — added only where a plain title sits alone. */
.section-underline {
	width: 60px;
	height: 6px;
	margin: 12px 0 16px;
	background: var(--wp--preset--color--pink);
}

@media (min-width: 900px) {
	.section-underline {
		width: 90px;
		height: 8px;
		margin: 16px 0 24px;
	}
}

/* Nosso Espaço and Como Chegar lay their title out inside a flex
   column with its own `gap` — the underline's own margin would double
   up with that gap, so it's zeroed there and the parent gap alone
   handles spacing (unlike Portfólio/FAQ, which are plain block flow
   and rely on the underline's own margin for spacing). */
.sobre__title + .section-underline,
.chegar__title + .section-underline {
	margin: 0;
}

/* -------------------------------------------------------------- */
/* Hero                                                            */
/* -------------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(9px);
	transform: scale(1.08);
}

.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 2.2vw, 32px);
	min-height: clamp(420px, 55vw, 784px);
	padding: 40px 20px;
}

.hero__logo {
	width: clamp(170px, 22.2vw, 320px);
	height: auto;
	/* Subtle continuous wobble, leaning into the emblem's circular
	   shape for a bit of "rock" energy without being distracting —
	   slow (6s) and a small angle (±3deg) so it reads as alive, not
	   broken. Lives on the <img> itself, separate from the wrapper's
	   .reveal fade/slide-in transition (see .hero__logo-wrap below and
	   the docblock in hero.php) so the two transforms don't fight. */
	animation: hero-logo-wobble 6s ease-in-out infinite;
	transform-origin: 50% 50%;
}

@keyframes hero-logo-wobble {
	0%,
	100% {
		transform: rotate(-3deg);
	}
	50% {
		transform: rotate(3deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__logo {
		animation: none;
	}
}

.hero__buttons {
	gap: 8px 24px;
}

.hero__buttons .wp-block-button__link {
	width: 240px;
	white-space: nowrap;
	justify-content: center;
	font-size: 16px;
	border-width: 3px;
	/* .is-style-outline recalculates its own (smaller) padding to
	   compensate for its border, which made it shorter than the solid
	   pink button — force both to the same padding so heights match. */
	padding: 16px 28px;
	/* theme.json already swaps bg/text color on :hover (pink<->black);
	   only the movement below is new here — transitioning the color
	   swap too so it doesn't snap instantly under the new motion. */
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* Small "sticker peeling off the page" pop on hover/focus — hard-edged
   offset shadow instead of a soft blurred one, matching the flat
   2px-black-border zine look used everywhere else (Header, Serviços
   cards, FAQ) rather than a generic drop shadow. Reused as-is (same
   selector list, not copy-pasted) on the CTA Convite button above the
   Footer — see .cta-convite in style.css — since it's the same
   pink wp-element-button, just in a different section. */
.hero__buttons .wp-block-button__link:hover,
.hero__buttons .wp-block-button__link:focus-visible,
.cta-convite .wp-block-button__link:hover,
.cta-convite .wp-block-button__link:focus-visible {
	transform: translate(-3px, -3px);
	box-shadow: 4px 4px 0 var(--wp--preset--color--black);
}

@media (prefers-reduced-motion: reduce) {
	.hero__buttons .wp-block-button__link,
	.cta-convite .wp-block-button__link {
		transition: background-color 0.15s ease, color 0.15s ease;
	}

	.hero__buttons .wp-block-button__link:hover,
	.hero__buttons .wp-block-button__link:focus-visible,
	.cta-convite .wp-block-button__link:hover,
	.cta-convite .wp-block-button__link:focus-visible {
		transform: none;
		box-shadow: none;
	}
}

/* -------------------------------------------------------------- */
/* Header / masthead                                               */
/* -------------------------------------------------------------- */

.site-header {
	/* shared with .site-header__divider below, which breaks out of it */
	--site-header-pad-x: clamp(20px, 4vw, 32px);
	padding: 32px var(--site-header-pad-x) 20px;
}

.site-header__title,
.site-header__title a {
	display: block;
	/* fluid size fit to the header's actual content width (viewport minus
	   its side padding), not raw viewport width — see CLAUDE.md notes on
	   this section for the two Figma anchor points these were fit to. */
	font-size: clamp(36px, calc(17.72vw - 7.09px), 62px);
	line-height: 1.05;
	text-transform: uppercase;
	text-decoration: none;
}

.site-header__divider {
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--black);
	margin: 20px calc(-1 * var(--site-header-pad-x)) 0;
}

.site-header__nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-top: 20px;
}

.site-header__nav .wp-block-navigation-item__content {
	transition: color 0.15s ease;
}

.site-header__nav .wp-block-navigation-item__content:hover,
.site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--pink);
}

/* Mobile menu's "X" close button — same pink-on-hover affordance as
   the nav links themselves. The icon SVG has no fill of its own, so
   it follows the button's `color` (fill:currentColor, set by core's
   own navigation-block styles). */
.site-header__nav .wp-block-navigation__responsive-container-close {
	transition: color 0.15s ease;
}

.site-header__nav .wp-block-navigation__responsive-container-close:hover,
.site-header__nav .wp-block-navigation__responsive-container-close:focus-visible {
	color: var(--wp--preset--color--pink);
}

.site-header__location {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-header__status-dot {
	animation: site-header-blink 1.6s ease-in-out infinite;
}

@keyframes site-header-blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.25;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header__status-dot {
		animation: none;
	}
}

.site-header__location-text {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--pink);
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-header__location-text:hover,
.site-header__location-text:focus-visible {
	color: var(--wp--preset--color--black);
}

@media (min-width: 600px) {
	.site-header__title,
	.site-header__title a {
		font-size: clamp(48px, calc(12.28vw - 7.86px), 200px);
		white-space: nowrap;
	}
}

/* -------------------------------------------------------------- */
/* Quote (ticker marquee)                                          */
/* -------------------------------------------------------------- */

.marquee {
	position: relative;
	/* Figma actually had an asymmetric gap here (24px/42px mobile,
	   56px/96px desktop) — top and bottom padding fit through different
	   anchor points. A pedido da cliente (2026-09-16): igualados os
	   dois lados (usando o valor maior, o de baixo) pra a barra ficar
	   visualmente centralizada entre o Hero e os cards de Serviços —
	   ver também o padding-top zerado em .service-cards logo abaixo,
	   que também contribuía pro desbalanço. */
	padding-top: clamp(42px, calc(5.14vw + 21.9px), 96px);
	padding-bottom: clamp(42px, calc(5.14vw + 21.9px), 96px);
}

.marquee__rule {
	border: none;
	height: 1px;
	margin: 0;
	background: var(--wp--preset--color--black);
}

.marquee__viewport {
	overflow: hidden;
	/* Figma's rule-to-text gap works out to ~28-30px at both the desktop
	   and mobile anchor points despite the very different font sizes, so
	   a flat value (not a clamp) matches the real design here. */
	padding-block: 28px;
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee-scroll 30s linear infinite;
	animation-duration: var(--marquee-duration, 30s);
}

.marquee.is-paused .marquee__track,
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
	animation-play-state: paused;
}

.marquee__group {
	flex-shrink: 0;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--anton);
	/* Fit through the two real Figma anchor points: 30px at the 390px
	   mobile frame, 48px at the 1440px desktop frame. */
	font-size: clamp(30px, calc(1.7vw + 23.4px), 48px);
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--black);
}

.marquee__asterisk {
	color: var(--wp--preset--color--pink);
}

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

@media (prefers-reduced-motion: reduce) {
	.marquee__track {
		animation: none;
		transform: none;
	}

	.marquee__group[aria-hidden='true'] {
		display: none;
	}
}

/* -------------------------------------------------------------- */
/* Serviços                                                         */
/* -------------------------------------------------------------- */

.service-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	/* Top padding zeroed (was 32px) 2026-09-16 so the marquee bar's own
	   symmetric padding-bottom (see .marquee) is the only gap between
	   it and the cards — matches desktop, which was already 0 here.
	   Bottom padding stays: extra breathing room since there's no
	   divider between Serviços and Nosso Espaço anymore. */
	padding: 0 20px 56px;
}

.service-card {
	position: relative;
	aspect-ratio: 350 / 160;
	overflow: hidden;
	background: var(--wp--preset--color--black);
}

.service-card__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 20px;
	text-align: center;
}

.service-card__index {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--wp--preset--color--pink);
}

.service-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--anton);
	font-size: 26px;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	transition: color 0.2s ease;
}

.service-card__underline {
	width: 56px;
	height: 5px;
	background: var(--wp--preset--color--pink);
}

/* Real Figma hover state (e.g. node 242:159): the button isn't just an
   opacity toggle floating over the title — it's laid out BELOW the
   underline, and the whole index+title+underline+button block
   re-centers around the same card center once it's included. A plain
   height:auto can't be transitioned, so `grid-template-rows: 0fr → 1fr`
   is the CSS trick used to animate a child's height smoothly; the CTA
   link stays in the DOM (not display:none) so keyboard/screen-reader
   users can always reach it via :focus-within even before it expands. */
.service-card__cta-wrap {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.25s ease, opacity 0.2s ease;
}

.service-card__cta-inner {
	overflow: hidden;
	min-height: 0;
	padding-top: 8px;
}

.service-card:hover .service-card__title,
.service-card:focus-within .service-card__title {
	color: var(--wp--preset--color--pink);
}

.service-card:hover .service-card__cta-wrap,
.service-card:focus-within .service-card__cta-wrap {
	grid-template-rows: 1fr;
	opacity: 1;
}

.service-card__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 2px solid var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--wp--preset--color--black);
	text-decoration: none;
	white-space: nowrap;
}

.service-card__cta--primary {
	background: var(--wp--preset--color--pink);
}

.service-card__cta--secondary {
	background: var(--wp--preset--color--white);
}

@media (min-width: 900px) {
	.service-cards {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
		padding: 0 0 80px;
	}

	.service-card {
		aspect-ratio: 345 / 520;
	}

	.service-card__content {
		gap: 18px;
		padding: 0 24px;
	}

	.service-card__index {
		font-size: 14px;
		letter-spacing: 1.5px;
	}

	.service-card__title {
		font-size: 40px;
	}

	.service-card__underline {
		width: 80px;
		height: 8px;
	}
}

/* -------------------------------------------------------------- */
/* Divisor de asteriscos                                            */
/* -------------------------------------------------------------- */

.section-divider {
	margin: 0;
	text-align: center;
	font-family: var(--wp--preset--font-family--anton);
	color: var(--wp--preset--color--pink);
	/* Fit through the two real Figma anchor points: 40px at the 390px
	   mobile frame, 96px at the 1440px desktop frame. */
	font-size: clamp(40px, calc(5.333vw + 19.2px), 96px);
	line-height: 1;
	/* em-based so the breathing room above/below scales together with
	   the font-size instead of needing its own separate clamp fit. */
	padding: 0.3em 0;
}

/* Same wobble as .hero__logo (see @keyframes hero-logo-wobble) reused
   here on each asterisk instead of a new animation. */
.section-divider__asterisk {
	display: inline-block;
	animation: hero-logo-wobble 6s ease-in-out infinite;
	transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
	.section-divider__asterisk {
		animation: none;
	}
}

/* -------------------------------------------------------------- */
/* Nosso Espaço (Sobre)                                             */
/* -------------------------------------------------------------- */

/* Reverted 2026-09-16 to the original Figma layout (photo-beside-text,
   same as the first build feca6ae) after a stacked intermediate
   version — client asked to go back closer to Figma (see reference
   screenshot) with justified body text. Mobile: stacked (copy block,
   then carousel), both sharing the standard 20px side margin. Desktop:
   photo full-bleed on the left (no margin), copy column on the right
   with its own right-side margin, side by side. */
.sobre {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding: 40px 0;
}

.sobre__copy {
	order: 1;
	padding: 0 20px;
}

.sobre__carousel {
	order: 2;
	padding: 0 20px;
}

.sobre__title {
	margin: 0 0 20px;
	font-family: var(--wp--preset--font-family--anton);
	text-transform: uppercase;
	line-height: 0.95;
	color: var(--wp--preset--color--black);
	/* Fit through the two real Figma anchor points: 44px at the 390px
	   mobile frame, 68px at the 1440px desktop frame. */
	font-size: clamp(44px, calc(2.286vw + 35.09px), 68px);
}

.sobre__title + .section-underline {
	margin-bottom: 20px;
}

.sobre__copy-text {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	/* Fit through the two real Figma anchor points: 13px mobile, 15px desktop. */
	font-size: clamp(13px, calc(0.19vw + 12.26px), 15px);
	line-height: 1.5;
	color: var(--wp--preset--color--black);
	/* Requested 2026-09-16: justified body copy, matching the Figma
	   reference screenshot (wasn't justified before). */
	text-align: justify;
}

.sobre__copy-text p {
	margin: 0;
}

.sobre__copy-text p + p {
	margin-top: 1.5em;
}

/* The two breakpoints' body copy is genuinely different text in the
   real Figma file (not just a style change) — both versions render,
   CSS shows only the one matching the viewport. */
.sobre__copy-text--desktop {
	display: none;
}

@media (min-width: 900px) {
	.sobre {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
		padding: 0;
	}

	.sobre__carousel {
		order: 1;
		padding: 40px 0 40px 0;
	}

	.sobre__copy {
		order: 2;
		padding: 40px 32px 40px 0;
	}

	.sobre__copy-text--mobile {
		display: none;
	}

	.sobre__copy-text--desktop {
		display: block;
	}
}

/* -------------------------------------------------------------- */
/* Carrossel de fotos                                               */
/* -------------------------------------------------------------- */

.carousel {
	position: relative;
}

.carousel__viewport {
	position: relative;
	overflow: hidden;
}

.carousel__track {
	display: flex;
	transition: transform 0.4s ease;
}

.carousel__slide {
	flex: 0 0 100%;
	min-width: 0;
}

.carousel__photo {
	display: block;
	width: 100%;
	object-fit: cover;
	/* Genuinely different crop ratio per breakpoint in Figma, not just a
	   scaled-down version — 350:220 mobile, 720:668 desktop (reverted
	   2026-09-16 to these real Figma ratios, away from the intermediate
	   1:1/3:2 "contained" treatment). */
	aspect-ratio: 350 / 220;
}

.carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--black);
	background: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--black);
	cursor: pointer;
	padding: 0;
}

.carousel__arrow--prev {
	left: 12px;
}

.carousel__arrow--next {
	right: 12px;
}

.carousel__caption {
	margin: 0;
	padding: 16px 12px 0;
	text-align: center;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--black);
}

.carousel__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px;
	padding-top: 18px;
}

.carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--black);
	background: transparent;
	cursor: pointer;
}

.carousel__dot.is-active {
	border-color: var(--wp--preset--color--pink);
	background: var(--wp--preset--color--pink);
}

@media (min-width: 900px) {
	.carousel__photo {
		aspect-ratio: 720 / 668;
	}

	.carousel__arrow {
		width: 44px;
		height: 44px;
	}

	.carousel__arrow--prev {
		left: 20px;
	}

	.carousel__arrow--next {
		right: 20px;
	}

	.carousel__caption {
		padding: 28px 56px 0;
		font-size: 16px;
	}

	.carousel__dots {
		gap: 24px;
		padding-top: 22px;
	}

	.carousel__dot {
		width: 10px;
		height: 10px;
	}
}

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

/* -------------------------------------------------------------- */
/* Portfólio                                                        */
/* -------------------------------------------------------------- */

.portfolio {
	padding: 56px 20px 40px;
}

.portfolio__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--anton);
	text-transform: uppercase;
	line-height: 0.95;
	color: var(--wp--preset--color--black);
	/* Same real Figma anchor points as .sobre__title: 44px at the 390px
	   mobile frame, 68px at the 1440px desktop frame. */
	font-size: clamp(44px, calc(2.286vw + 35.09px), 68px);
}

.portfolio__subtitle {
	max-width: 350px;
	margin: 0 0 28px;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	/* Fit through the two real Figma anchor points: 14px mobile, 16px desktop. */
	font-size: clamp(14px, calc(0.19vw + 13.26px), 16px);
	line-height: 1.5;
	color: var(--wp--preset--color--black);
}

.portfolio__embed {
	background: var(--wp--preset--color--black);
	line-height: 0;
}

.portfolio__embed iframe {
	display: block;
	width: 100%;
}

@media (min-width: 900px) {
	.portfolio {
		padding: 72px 32px 96px;
	}

	.portfolio__subtitle {
		max-width: none;
		margin-bottom: 40px;
	}
}

/* -------------------------------------------------------------- */
/* Perguntas Frequentes                                             */
/* -------------------------------------------------------------- */

.faq {
	padding: 32px 20px 48px;
}

.faq__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--anton);
	text-transform: uppercase;
	line-height: 0.95;
	color: var(--wp--preset--color--black);
	/* Real Figma anchor points: 34px at the 390px mobile frame,
	   68px at the 1440px desktop frame — a different mobile anchor
	   than the other section titles (44px), so its own clamp. */
	font-size: clamp(34px, calc(3.24vw + 21.37px), 68px);
}

/* Category tabs — real ARIA tabs (role=tab/tabpanel), not just styled
   radio buttons, since keyboard users need arrow-key navigation
   between them (see initFaqTabs() in main.js). Horizontally
   scrollable by default (mobile can't fit 4 tabs in 350px) rather
   than wrapping to a second row or shrinking text illegibly; desktop
   naturally has room so it just never needs to scroll. */
.faq__tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 24px;
	padding-bottom: 4px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.faq__tab {
	flex: 0 0 auto;
	scroll-snap-align: start;
	padding: 10px 20px;
	border: 2px solid var(--wp--preset--color--black);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.faq__tab:hover,
.faq__tab:focus-visible {
	border-color: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--pink);
}

.faq__tab.is-active {
	background: var(--wp--preset--color--pink);
	border-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--black);
}

.faq__panel[hidden] {
	display: none;
}

.faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* The whole card is a native <details> — display:flex lays out its
   summary + content vertically, while the browser's own open/closed
   toggling still applies (non-summary children get display:none when
   closed), so a plain flex `gap` naturally collapses to 0 with no
   extra CSS needed for the closed state. */
.faq-item {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 24px;
	background: var(--wp--preset--color--black);
	border-radius: 12px;
	color: var(--wp--preset--color--white);
}

.faq-item__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	list-style: none;
	cursor: pointer;
}

.faq-item__header::-webkit-details-marker {
	display: none;
}

.faq-item__question {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 500;
	font-size: 19px;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
}

.faq-item__icon {
	display: flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
}

.faq-item__icon::before {
	content: "+";
}

.faq-item[open] .faq-item__icon::before {
	content: "\2212";
}

.faq-item__panel {
	margin: 0;
}

.faq-item__answer {
	margin: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 15px;
	line-height: 1.4;
	color: var(--wp--preset--color--white);
}

.faq-item__answer a {
	color: var(--wp--preset--color--pink);
}

@media (min-width: 900px) {
	.faq {
		padding: 96px 32px 100px;
	}

	.faq__tabs {
		gap: 12px;
		margin-bottom: 32px;
	}

	.faq__tab {
		padding: 12px 24px;
		font-size: 14px;
	}

	.faq__list {
		gap: 16px;
	}
}

/* -------------------------------------------------------------- */
/* Como Chegar                                                      */
/* -------------------------------------------------------------- */

.chegar {
	padding: 32px 20px 40px;
}

.chegar__top {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.chegar__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.chegar__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--anton);
	text-transform: uppercase;
	line-height: 0.95;
	color: var(--wp--preset--color--black);
	/* Same real Figma anchor points as .sobre__title/.portfolio__title. */
	font-size: clamp(44px, calc(2.286vw + 35.09px), 68px);
}

.chegar__address {
	margin: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 600;
	/* Fit through the two real Figma anchor points: 15px mobile, 19px desktop. */
	font-size: clamp(15px, calc(0.38vw + 13.51px), 19px);
	color: var(--wp--preset--color--black);
}

.chegar__hours {
	margin: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	line-height: 1.5;
	/* Fit through the two real Figma anchor points: 13px mobile, 15px desktop. */
	font-size: clamp(13px, calc(0.19vw + 12.26px), 15px);
	color: var(--wp--preset--color--black);
}

.chegar__entrance {
	margin: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	line-height: 1.5;
	/* Fit through the two real Figma anchor points: 14px mobile, 15px desktop. */
	font-size: clamp(14px, calc(0.1vw + 13.63px), 15px);
	color: var(--wp--preset--color--black);
}

.chegar__map {
	width: 100%;
	aspect-ratio: 390 / 260;
	background: var(--wp--preset--color--black);
}

.chegar__map iframe {
	display: block;
	width: 100%;
	height: 100%;
}

.chegar__routes {
	margin-top: 40px;
}

.chegar__routes-heading {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 600;
	text-transform: uppercase;
	/* Fit through the two real Figma anchor points: 13px mobile, 16px desktop. */
	font-size: clamp(13px, calc(0.29vw + 11.89px), 16px);
	letter-spacing: 1.2px;
	color: var(--wp--preset--color--pink);
}

.chegar__route {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--wp--preset--color--black);
}

.chegar__route:last-child {
	border-bottom: 1px solid var(--wp--preset--color--black);
}

.chegar__route-label {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	/* Fit through the two real Figma anchor points: 14px mobile, 16px desktop. */
	font-size: clamp(14px, calc(0.19vw + 13.26px), 16px);
	color: var(--wp--preset--color--black);
}

.chegar__route-link {
	flex: 0 0 auto;
	align-self: center;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 600;
	text-transform: uppercase;
	white-space: nowrap;
	/* Fit through the two real Figma anchor points: 12px mobile, 14px desktop. */
	font-size: clamp(12px, calc(0.19vw + 11.26px), 14px);
	letter-spacing: 0.8px;
	color: var(--wp--preset--color--pink);
}

@media (min-width: 900px) {
	.chegar {
		padding: 64px 32px 96px;
	}

	.chegar__top {
		flex-direction: row;
		align-items: flex-start;
		gap: 44px;
	}

	.chegar__copy {
		flex: 0 0 445px;
	}

	.chegar__map {
		flex: 1;
		/* Height is sized (instead of align-items:stretch) to line up with
		   .chegar__title at the top and end flush with the "Abrir no Maps"
		   button at the bottom — stretch was tried first but its
		   height:100% iframe child fights Chrome's auto-height flex-stretch
		   resolution and snowballs the row taller on every reflow. If the
		   copy column's text content changes, re-check this value. */
		height: 283px;
	}

	.chegar__routes {
		margin-top: 64px;
	}

	.chegar__route {
		gap: 24px;
	}
}

/* -------------------------------------------------------------- */
/* CTA Convite                                                      */
/* -------------------------------------------------------------- */

.cta-convite {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 20px 60px;
	text-align: center;
}

.cta-convite__title {
	max-width: 330px;
	margin: 0;
	font-family: var(--wp--preset--font-family--anton);
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--wp--preset--color--black);
	/* Same fluid formula the whole statement used before the split:
	   22px at the 390px mobile frame, 40px at the 1440px desktop frame. */
	font-size: clamp(22px, calc(1.71vw + 15.32px), 40px);
}

.cta-convite__subtitle {
	max-width: 330px;
	margin: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--black);
	font-size: clamp(14px, calc(0.29vw + 12.89px), 17px);
}

.cta-convite .wp-block-buttons {
	margin-top: 12px;
}

/* Same hover "pop" transition as .hero__buttons (see #Hero in this
   file for the :hover/:focus-visible rule + prefers-reduced-motion
   override, shared via selector list instead of duplicated here). */
.cta-convite .wp-block-button__link {
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

@media (min-width: 900px) {
	.cta-convite {
		gap: 16px;
		padding: 64px 32px 100px;
	}

	.cta-convite__title,
	.cta-convite__subtitle {
		max-width: 1000px;
	}

	.cta-convite .wp-block-buttons {
		margin-top: 16px;
	}
}

/* -------------------------------------------------------------- */
/* Footer                                                           */
/* -------------------------------------------------------------- */

.footer {
	padding: 24px 20px;
	/* Real 1px top border on the Figma frame itself — genuine, unlike
	   the invented 2px borders removed from other sections this project. */
	border-top: 1px solid var(--wp--preset--color--black);
}

/* Single row instead of the earlier two-row (contacts / divider /
   copyright) layout. Mobile: stacked and centered — Instagram link,
   then copyright, then the "Feito com ♥ por Bia Fernandes" signature
   (2026-09-16: email link removed, signature now also shown on mobile,
   previously desktop-only — see .footer__credit below). Desktop: both
   groups back on one row, left/right aligned via space-between (see
   the 900px override below). */
.footer__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	text-align: center;
}

.footer__contacts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 12px;
}

.footer__link {
	color: var(--wp--preset--color--black);
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
	color: var(--wp--preset--color--pink);
	text-decoration: underline;
}

.footer__dot {
	color: var(--wp--preset--color--pink);
}

.footer__meta {
	display: flex;
	/* Column, not row-wrap: at some mobile widths the copyright line and
	   the signature are both short enough to fit side by side when
	   wrapped, which reads oddly — forcing a column keeps the signature
	   on its own line below the copyright at every mobile width. */
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.footer__copyright {
	margin: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 10px;
	color: var(--wp--preset--color--black);
}

.footer__credit {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 9px;
	text-transform: lowercase;
	color: var(--wp--preset--color--black);
}

.footer__credit-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer__credit-link:hover,
.footer__credit-link:focus-visible {
	color: var(--wp--preset--color--pink);
	text-decoration: underline;
}

.footer__heart {
	width: 9px;
	height: 9px;
	color: var(--wp--preset--color--black);
}

@media (min-width: 900px) {
	.footer {
		padding: 28px 32px;
	}

	.footer__row {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}

	.footer__contacts {
		justify-content: flex-start;
		font-size: 15px;
	}

	.footer__meta {
		/* Back to a row: desktop only ever shows .footer__credit (copyright
		   stays mobile-only), so there's nothing to stack. */
		flex-direction: row;
		justify-content: flex-start;
	}

	.footer__copyright {
		/* Desktop keeps just the "Feito com ♥ por Bia Fernandes" signature —
		   copyright line stays mobile-only (the signature itself now shows
		   on both breakpoints, see the base .footer__credit rule above). */
		display: none;
	}

	.footer__credit {
		font-size: 10px;
	}

	.footer__heart {
		width: 10px;
		height: 10px;
	}
}

/* -------------------------------------------------------------- */
/* Scroll Reveal                                                    */
/* -------------------------------------------------------------- */

/*
 * Progressive enhancement: .reveal only starts hidden once initReveal()
 * (main.js) confirms it's actually going to animate it in — it stamps
 * `.js-reveal` on <html> before doing so. This way content never depends
 * on JS running to become visible: no JS (or a script error), or
 * prefers-reduced-motion, or no IntersectionObserver support, and
 * everything just renders normally at full opacity.
 */
.js-reveal .reveal {
	opacity: 0;
	transform: translateY(24px);
}

.reveal {
	transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Service cards fade in with a slight stagger instead of all at once. */
.reveal-group > .reveal:nth-child(2) {
	transition-delay: 0.08s;
}

.reveal-group > .reveal:nth-child(3) {
	transition-delay: 0.16s;
}

.reveal-group > .reveal:nth-child(4) {
	transition-delay: 0.24s;
}
