/**
 * Visita Guiada à Igreja — mobile first.
 */

 :root {
	--cmd-orange: #e05f32;
	--cmd-text: #1a1a1a;
	--cmd-muted: #5a5a5a;
	--cmd-white: #ffffff;
	--cmd-map-brown: #805E53;
	--cmd-site-max-width: 1290px;
	--cmd-site-gutter: 20px;
}

@media (min-width: 768px) {
	:root {
		--cmd-site-gutter: 50px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body.cmd-igreja-body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	min-height: 100dvh;
}

body.cmd-igreja-body {
	font-family: "polymath-text", sans-serif;
	color: var(--cmd-text);
	background: var(--cmd-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.cmd-igreja-body .skip-link,
body.cmd-igreja-body .screen-reader-text.skip-link {
	display: none !important;
}

.cmd-igreja {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--cmd-white);
	padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.cmd-igreja__container {
	width: 100%;
	max-width: var(--cmd-site-max-width);
	margin-inline: auto;
	padding-inline: var(--cmd-site-gutter);
}

.cmd-igreja__container--header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 12px;
}

.cmd-igreja__header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	padding-top: max(8px, env(safe-area-inset-top));
}

.cmd-igreja__brand {
	display: inline-flex;
	line-height: 0;
}

.cmd-igreja__logo {
	display: block;
	width: 148px;
	max-width: 46vw;
	height: auto;
}

.cmd-igreja__menu-btn {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 10px;
	margin: 0;
	cursor: pointer;
	color: var(--cmd-text);
}

.cmd-igreja__menu-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
}

.cmd-igreja__menu-icon span {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	border-radius: 2px;
}

.cmd-igreja__stage {
	position: relative;
	isolation: isolate;
	padding-bottom: 40px;
}

.cmd-igreja__hero {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: #f2f2f2;
	background-image: var(--cmd-igreja-banner);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

.cmd-igreja__hero-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 1) 0%,
		rgba(255, 255, 255, 0.55) 18%,
		rgba(255, 255, 255, 0) 42%,
		rgba(255, 255, 255, 0) 78%,
		rgba(255, 255, 255, 0.35) 100%
	);
}

.cmd-igreja__hero-content {
	position: relative;
	z-index: 1;
	padding-top: calc(120px + env(safe-area-inset-top, 0px));
}

.cmd-igreja__map-wrap {
	position: relative;
	z-index: 2;
	margin-top: 36px;
}

.cmd-igreja__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	color: var(--cmd-text);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cmd-igreja__back svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: var(--cmd-orange);
}

.cmd-igreja__title {
	margin: 0;
	max-width: 80%;
	font-family: "polymath-display", sans-serif;
	font-size: clamp(2.1rem, 8.5vw, 2.75rem);
	line-height: 1.15;
	font-weight: 700;
	color: var(--cmd-text);
}

.cmd-igreja__main {
	position: relative;
	z-index: 2;
	margin-top: 0;
	background: var(--cmd-white);
}

.cmd-igreja__map-card {
	margin-top: 0;
	background: var(--cmd-map-brown);
	border-radius: 28px;
	padding: 22px 18px 28px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.cmd-igreja__map-hint {
	margin: 0 0 16px;
	text-align: center;
	font-size: 0.98rem;
	line-height: 1.35;
	font-weight: 600;
	color: var(--cmd-white);
}

.cmd-igreja__map-frame {
	position: relative;
	width: min(100%, 280px);
	margin-inline: auto;
}

.cmd-igreja__map {
	position: relative;
	width: 100%;
	margin: 0;
}

.cmd-igreja__map picture {
	display: block;
	width: 100%;
}

.cmd-igreja__map-img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
}

.cmd-igreja__hotspot {
	position: absolute;
	display: block;
	width: 65px;
	height: 65px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cmd-orange);
	transform: translate(-50%, -50%);
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	-webkit-tap-highlight-color: transparent;
}

.cmd-igreja__hotspot-dot {
	position: absolute;
	inset: 15px;
	border-radius: 50%;
	background: var(--cmd-white);
	transition: background 0.15s ease;
}

.cmd-igreja__hotspot.is-active .cmd-igreja__hotspot-dot,
.cmd-igreja__hotspot[aria-pressed="true"] .cmd-igreja__hotspot-dot {
	background: var(--cmd-white);
}

.cmd-igreja__hotspot:focus-visible {
	outline: 2px solid var(--cmd-orange);
	outline-offset: 3px;
}

.cmd-igreja__list-section {
	padding-top: 36px;
}

.cmd-igreja__list-title {
	margin: 0 0 18px;
	font-family: "polymath-display", sans-serif;
	font-size: 1.35rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--cmd-text);
}

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

.cmd-igreja__acc {
	border: 1.5px solid var(--cmd-orange);
	border-radius: 14px;
	overflow: hidden;
	background: var(--cmd-white);
}

.cmd-igreja__acc-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border: 0;
	background: transparent;
	color: var(--cmd-orange);
	font-family: "polymath-display", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.cmd-igreja__acc.is-open .cmd-igreja__acc-toggle {
	background: var(--cmd-orange);
	color: var(--cmd-white);
	border-radius: 0;
}

.cmd-igreja__acc-chevron {
	display: inline-flex;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cmd-igreja__acc.is-open .cmd-igreja__acc-chevron {
	transform: rotate(180deg);
}

.cmd-igreja__acc-panel {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	visibility: hidden;
	transition:
		grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.25s ease,
		visibility 0s linear 0.3s;
}

.cmd-igreja__acc.is-open .cmd-igreja__acc-panel {
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
	transition:
		grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.25s ease,
		visibility 0s linear 0s;
}

.cmd-igreja__acc-panel-inner {
	overflow: hidden;
	min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
	.cmd-igreja__acc-panel,
	.cmd-igreja__acc-chevron {
		transition: none;
	}
}

.cmd-igreja__acc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cmd-igreja__acc-list li + li {
	border-top: 1px solid rgba(224, 95, 50, 0.22);
}

.cmd-igreja__acc-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	color: var(--cmd-muted);
	text-decoration: none;
	font-size: 0.98rem;
	line-height: 1.35;
	font-weight: 500;
}

.cmd-igreja__acc-link-arrow {
	flex-shrink: 0;
	color: var(--cmd-orange);
	display: inline-flex;
}

.cmd-igreja__acc-empty {
	margin: 0;
	padding: 16px 18px;
	color: var(--cmd-muted);
	font-size: 0.95rem;
}

/* Reveal */
.cmd-reveal {
	opacity: 0;
	transform: translate3d(0, 10px, 0);
	transition:
		opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--cmd-reveal-delay, 0ms);
}

.cmd-reveal.is-in {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
	.cmd-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (min-width: 768px) {
	.cmd-igreja {
		padding-bottom: 64px;
	}

	.cmd-igreja__container {
		max-width: 1400px;
		width: 100%;
		margin-inline: auto;
		padding-inline: var(--cmd-site-gutter);
	}

	.cmd-igreja__stage {
		padding-bottom: 56px;
		min-height: 720px;
	}

	.cmd-igreja__hero {
		background-image: var(--cmd-igreja-banner-pc, var(--cmd-igreja-banner));
	}

	.cmd-igreja__hero-content {
		padding-top: calc(120px + env(safe-area-inset-top, 0px));
		padding-bottom: 8px;
	}

	.cmd-igreja__back {
		font-size: 0.82rem;
		margin-bottom: 20px;
		color: var(--cmd-text);
		font-weight: 700;
	}

	.cmd-igreja__title {
		max-width: 14ch;
		font-size: clamp(2.6rem, 4vw, 3.4rem);
		line-height: 1.08;
	}

	.cmd-igreja__map-wrap {
		margin-top: 48px;
	}

	.cmd-igreja__map-card {
		padding: 36px 48px 44px;
		border-radius: 32px;
	}

	.cmd-igreja__map-hint {
		font-size: 1.12rem;
		margin-bottom: 28px;
	}

	.cmd-igreja__map-frame {
		width: min(100%, 860px);
		aspect-ratio: 491 / 248;
	}

	.cmd-igreja__map {
		position: absolute;
		left: 50%;
		top: 50%;
		width: calc(100% * 248 / 491);
		transform: translate(-50%, -50%) rotate(90deg);
		transform-origin: center center;
	}

	.cmd-igreja__hotspot {
		width: 56px;
		height: 56px;
		background: var(--cmd-orange);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	}

	.cmd-igreja__hotspot-dot {
		inset: 16px;
		background: var(--cmd-white);
	}

	.cmd-igreja__hotspot.is-active .cmd-igreja__hotspot-dot,
	.cmd-igreja__hotspot[aria-pressed="true"] .cmd-igreja__hotspot-dot {
		background: var(--cmd-white);
	}

	.cmd-igreja__hotspot:hover {
		filter: brightness(1.06);
	}

	.cmd-igreja__list-section {
		padding-top: 40px;
		padding-bottom: 16px;
	}

	.cmd-igreja__list-title {
		display: none;
	}

	.cmd-igreja__accordions {
		gap: 14px;
		max-width: none;
		width: 100%;
	}

	.cmd-igreja__acc {
		border-radius: 16px;
	}

	.cmd-igreja__acc-toggle {
		padding: 20px 24px;
		font-size: 1.15rem;
	}

	.cmd-igreja__acc-link {
		padding: 18px 24px;
		font-size: 1.05rem;
	}

	.cmd-igreja__acc-link-arrow {
		color: var(--cmd-orange);
	}
}

@media (min-width: 1024px) {
	.cmd-igreja__stage {
		min-height: 820px;
		padding-bottom: 72px;
	}

	.cmd-igreja__title {
		font-size: clamp(2.9rem, 3.4vw, 3.6rem);
	}

	.cmd-igreja__map-wrap {
		margin-top: 56px;
	}

	.cmd-igreja__map-card {
		padding: 40px 56px 52px;
	}

	.cmd-igreja__map-frame {
		width: min(100%, 980px);
	}

	.cmd-igreja__hotspot {
		width: 60px;
		height: 60px;
	}

	.cmd-igreja__hotspot-dot {
		inset: 18px;
	}

	.cmd-igreja__list-section {
		padding-top: 48px;
	}

	.cmd-igreja__acc-toggle {
		padding: 22px 28px;
		font-size: 1.2rem;
	}

	.cmd-igreja__acc-link {
		padding: 20px 28px;
		font-size: 1.08rem;
	}
}
