/**
 * todah Featured Carousel — Frontend Styles
 */

.todah-fc-wrapper {
	position: relative;
	padding: 30px 0;
	overflow: hidden;
}

.todah-fc-wrapper.todah-fc-fullwidth {
	width: 100vw;
	left: 50%;
	margin-left: -50vw;
}

.todah-project-carousel {
	width: 100%;
	visibility: hidden;
}

.todah-project-carousel.slick-initialized {
	visibility: visible;
}

.todah-project-carousel .slick-slide {
	margin: 0 15px;
	transition: filter 0.7s ease;
}

.todah-project-carousel .slick-slide:not(.slick-center):not(.slick-current) {
	filter: grayscale(40%) brightness(var(--todah-fc-brightness, 0.85));
}

.todah-project-carousel .slick-center,
.todah-project-carousel .slick-current {
	filter: grayscale(0%) brightness(1);
}

.todah-pc-slide {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2; /* default Featured Projects */
}

.todah-pc-slide > .todah-pc-card-link,
.todah-pc-slide > .todah-pc-card-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Overlay colorido com opacidade nos slides laterais */
/* Transition LENTA (1.8s) para sair gradualmente quando o slide vira central — preserva legibilidade do texto branco */
.todah-pc-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--todah-fc-overlay-color, #000000);
	opacity: var(--todah-fc-overlay-opacity, 0.4);
	pointer-events: none;
	transition: opacity 1.8s ease;
	z-index: 2;
}

/* Slide central tem overlay FIXO parametrizável (default 0.15 = sutil escurecimento que destaca cores) */
.todah-pc-slide.slick-center::after,
.todah-pc-slide.slick-current::after {
	opacity: var(--todah-fc-center-overlay-opacity, 0.15) !important;
}

.todah-pc-card-link {
	display: block;
	cursor: pointer;
	line-height: 0;
}

.todah-pc-slide img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 5s ease;
}

.todah-project-carousel .todah-pc-slide.slick-center:hover img,
.todah-project-carousel .todah-pc-slide.slick-current:hover img,
.todah-project-carousel .slick-active.todah-pc-slide.slick-current:hover img {
	transform: scale(1.4) !important;
}

/* === Caption (título + descrição) === */
.todah-pc-location {
	position: absolute;
	bottom: 50px;
	right: 40px;
	display: none;
	text-align: right;
	z-index: 3;
	pointer-events: none;
}

.todah-project-carousel .slick-center .todah-pc-location,
.todah-project-carousel .slick-current .todah-pc-location {
	display: block;
}

.todah-pc-location::before {
	content: "";
	position: absolute;
	bottom: 78px;
	right: 0;
	width: 350px;
	height: 1px;
	background: #FFFFFF;
	transition: width 1.5s ease;
}

.todah-pc-slide:hover .todah-pc-location::before {
	width: 0;
}

.todah-pc-location h5 {
	font-family: 'Fredoka One', sans-serif;
	font-size: 30px;
	font-weight: 400;
	color: #FFFFFF;
	text-transform: uppercase;
	margin: 0 0 6px 0;
	letter-spacing: 2px;
	transition: letter-spacing 1s, opacity 1s;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	line-height: 1.1;
}

.todah-pc-location p {
	font-family: 'Barlow', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #FFFFFF;
	letter-spacing: 1.5px;
	margin: 0;
	transition: letter-spacing 1s, opacity 1s;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Caption SOME completamente no hover do slide central (título, descrição, linha) */
.todah-project-carousel .todah-pc-slide.slick-center:hover .todah-pc-location h5,
.todah-project-carousel .todah-pc-slide.slick-current:hover .todah-pc-location h5 {
	letter-spacing: 15px !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

.todah-project-carousel .todah-pc-slide.slick-center:hover .todah-pc-location p,
.todah-project-carousel .todah-pc-slide.slick-current:hover .todah-pc-location p {
	letter-spacing: 8px !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

.todah-project-carousel .todah-pc-slide.slick-center:hover .todah-pc-location::before,
.todah-project-carousel .todah-pc-slide.slick-current:hover .todah-pc-location::before {
	width: 0 !important;
}

/* === Ícones de hover (zoom + link) com delay configurável === */
.todah-pc-hover {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 4;
	display: none;
	transform: translateY(-50%);
}

.todah-project-carousel .slick-center .todah-pc-hover,
.todah-project-carousel .slick-current .todah-pc-hover {
	display: block;
}

.todah-pc-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	color: #FFFFFF;
	margin: 0 8px;
	text-decoration: none;
	background: transparent;
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
	opacity: 0;
}

/* === ESTILO 1: minimalista (default, sem borda) === */
.todah-fc-wrapper.todah-fc-iconstyle-minimal .todah-pc-action,
.todah-fc-wrapper:not(.todah-fc-iconstyle-outline):not(.todah-fc-iconstyle-filled):not(.todah-fc-iconstyle-arrow) .todah-pc-action {
	border: 0;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 50%;
}

.todah-fc-iconstyle-minimal .todah-pc-action:hover {
	background: rgba(0, 0, 0, 0.5);
}

/* === ESTILO 2: outline (quadrado com borda) === */
.todah-fc-wrapper.todah-fc-iconstyle-outline .todah-pc-action {
	border: 2.5px solid #FFFFFF;
	border-radius: 0;
}

.todah-fc-wrapper.todah-fc-iconstyle-outline .todah-pc-action:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* === ESTILO 3: filled (círculo branco preenchido) === */
.todah-fc-wrapper.todah-fc-iconstyle-filled .todah-pc-action {
	border: 0;
	background: rgba(255, 255, 255, 0.95);
	color: #3E3A53;
	border-radius: 50%;
}

.todah-fc-wrapper.todah-fc-iconstyle-filled .todah-pc-action:hover {
	background: #FFFFFF;
	transform: translateX(0) scale(1.06);
}

/* === ESTILO 4: arrow (apenas o ícone, sem fundo nem borda) === */
.todah-fc-wrapper.todah-fc-iconstyle-arrow .todah-pc-action {
	border: 0;
	background: transparent;
	width: auto;
	height: auto;
	margin: 0 14px;
}

.todah-fc-wrapper.todah-fc-iconstyle-arrow .todah-pc-action svg {
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
	width: 32px;
	height: 32px;
	stroke-width: 1.6;
}

.todah-fc-wrapper.todah-fc-iconstyle-arrow .todah-pc-action:hover svg {
	transform: scale(1.18);
}

/* Animação slide-in: vêm das laterais e se encontram no centro */
.todah-pc-zoom {
	transform: translateX(-800px);
}

.todah-pc-link {
	transform: translateX(800px);
}

.todah-project-carousel .todah-pc-slide.slick-center:hover .todah-pc-zoom,
.todah-project-carousel .todah-pc-slide.slick-current:hover .todah-pc-zoom,
.todah-project-carousel .todah-pc-slide.slick-center:hover .todah-pc-link,
.todah-project-carousel .todah-pc-slide.slick-current:hover .todah-pc-link {
	opacity: 1 !important;
	transform: translateX(0) !important;
	transition:
		opacity 0.5s ease var(--todah-fc-icons-delay, 400ms),
		transform 0.7s ease var(--todah-fc-icons-delay, 400ms),
		background 0.3s ease,
		border-color 0.3s ease !important;
}

/* === Setas (brancas, minimalistas, sem botão laranja) === */
/* !important para sobrescrever estilos globais do tema (Hello/Hello Elementor) */
.todah-fc-wrapper .todah-pc-arrow,
.todah-fc-wrapper button.todah-pc-arrow,
.todah-fc-wrapper .slick-arrow.todah-pc-arrow {
	position: absolute !important;
	top: 50% !important;
	z-index: 100 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	color: #FFFFFF !important;
	cursor: pointer !important;
	padding: 14px !important;
	transform: translateY(-50%) !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	outline: none !important;
	box-shadow: none !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
}

.todah-fc-wrapper .todah-pc-arrow:hover,
.todah-fc-wrapper .todah-pc-arrow:focus,
.todah-fc-wrapper button.todah-pc-arrow:hover,
.todah-fc-wrapper button.todah-pc-arrow:focus {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	color: #FFFFFF !important;
}

.todah-fc-wrapper .todah-pc-arrow svg {
	width: 38px !important;
	height: 38px !important;
	stroke: #FFFFFF !important;
	fill: none !important;
	stroke-width: 1.6 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	transition: transform 0.3s ease, opacity 0.3s ease !important;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) !important;
	display: block !important;
}

.todah-fc-wrapper .todah-pc-arrow:hover svg {
	transform: scale(1.18) !important;
}

.todah-fc-wrapper .todah-pc-prev {
	left: 30px !important;
	right: auto !important;
}

.todah-fc-wrapper .todah-pc-next {
	right: 30px !important;
	left: auto !important;
}

.todah-pc-arrow.slick-disabled {
	opacity: 0.4;
	cursor: default;
}

/* === Lightbox === */
.todah-fc-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.93);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.todah-fc-lightbox.is-open {
	opacity: 1;
}

.todah-fc-lightbox img {
	max-width: 90%;
	max-height: 90vh;
	display: block;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.todah-fc-lightbox-close {
	position: absolute;
	top: 25px;
	right: 30px;
	background: transparent;
	border: none;
	color: #FFFFFF;
	font-size: 40px;
	cursor: pointer;
	line-height: 1;
	transition: transform 0.2s ease;
}

.todah-fc-lightbox-close:hover {
	transform: rotate(90deg);
}

/* Cursor de arrastar */
.todah-project-carousel .slick-list { cursor: grab; }
.todah-project-carousel .slick-list:active { cursor: grabbing; }

/* === Responsivo === */
@media (max-width: 1500px) {
	.todah-pc-location::before {
		width: 280px;
	}
}

@media (max-width: 1200px) {
	.todah-pc-location {
		bottom: 40px;
		right: 35px;
	}
	.todah-pc-location::before {
		width: 240px;
		bottom: 70px;
	}
	.todah-pc-location h5 {
		font-size: 26px;
	}
}

@media (max-width: 991px) {
	.todah-pc-location {
		bottom: 30px;
		right: 25px;
	}
	.todah-pc-location::before {
		width: 200px;
		bottom: 65px;
	}
	.todah-pc-location h5 {
		font-size: 22px;
		letter-spacing: 1.5px;
	}
	.todah-pc-location p {
		font-size: 12px;
	}
	.todah-pc-action {
		width: 48px;
		height: 48px;
	}
	.todah-pc-arrow svg {
		width: 30px;
		height: 30px;
	}
	.todah-pc-prev { left: 16px; }
	.todah-pc-next { right: 16px; }
}

@media (max-width: 767px) {
	.todah-fc-wrapper { padding: 20px 0; }
	.todah-pc-prev { left: 8px; }
	.todah-pc-next { right: 8px; }
	.todah-pc-arrow { padding: 8px; }
	.todah-pc-arrow svg {
		width: 24px;
		height: 24px;
	}
	.todah-pc-location {
		bottom: 18px;
		right: 18px;
	}
	.todah-pc-location::before {
		width: 130px;
		bottom: 52px;
	}
	.todah-pc-location h5 {
		font-size: 17px;
		letter-spacing: 1px;
	}
	.todah-pc-location p {
		font-size: 10px;
		letter-spacing: 1px;
	}
	.todah-pc-action {
		width: 42px;
		height: 42px;
		margin: 0 5px;
	}
	.todah-pc-action svg {
		width: 18px;
		height: 18px;
	}
	.todah-fc-wrapper.todah-fc-iconstyle-arrow .todah-pc-action svg {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 480px) {
	.todah-pc-location {
		bottom: 14px;
		right: 14px;
	}
	.todah-pc-location::before {
		width: 100px;
		bottom: 44px;
	}
	.todah-pc-location h5 {
		font-size: 15px;
	}
	.todah-pc-location p {
		font-size: 9px;
	}
}
