/**
 * Homepage sections — hero slider, partners, testimonials, FAQ, WhatsApp.
 */

/* Scroll / entrance reveal */
.p99-reveal.is-revealed,
body.is-reveal-ready .p99-whatsapp-float.p99-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

.p99-home.is-reveal-ready .p99-reveal,
body.is-reveal-ready .p99-whatsapp-float.p99-reveal {
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--p99-reveal-delay, 0ms);
}

.p99-home.is-reveal-ready .p99-reveal:not(.is-revealed),
body.is-reveal-ready .p99-whatsapp-float.p99-reveal:not(.is-revealed) {
	opacity: 0;
}

.p99-home.is-reveal-ready .p99-reveal--fade:not(.is-revealed) {
	transform: none;
}

.p99-home.is-reveal-ready .p99-reveal--fade-up:not(.is-revealed) {
	transform: translateY(28px);
}

.p99-home.is-reveal-ready .p99-reveal--fade-down:not(.is-revealed) {
	transform: translateY(-20px);
}

.p99-home.is-reveal-ready .p99-reveal--slide-end:not(.is-revealed) {
	transform: translateX(-32px);
}

.p99-home.is-reveal-ready .p99-reveal--slide-start:not(.is-revealed) {
	transform: translateX(32px);
}

.p99-home.is-reveal-ready .p99-reveal--scale:not(.is-revealed),
body.is-reveal-ready .p99-whatsapp-float.p99-reveal--scale:not(.is-revealed) {
	transform: scale(0.94);
}

/* Homepage section titles — centered */
.p99-home .p99-section__head {
	justify-content: center;
	text-align: center;
}

.p99-home .p99-section__title {
	text-align: center;
	width: 100%;
	margin-bottom: 0;
}

.p99-section__footer {
	text-align: center;
	margin-top: 2rem;
}

/* Hero slider */
.p99-hero-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--p99-bg-soft);
}

.p99-hero-slider__viewport {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 5;
	direction: ltr;
}

.p99-hero-slider__track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.6s ease;
	will-change: transform;
}

.p99-hero-slider__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.p99-hero-slider__link,
.p99-hero-slider__media {
	display: block;
	width: 100%;
	height: 100%;
}

.p99-hero-slider__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p99-hero-slider__img--mobile {
	display: none;
}

@media (min-width: 769px) {
	.p99-hero-slider--no-desktop {
		display: none;
	}

	.p99-hero-slider__slide--mobile-only {
		display: none;
	}
}

.p99-hero-slider__dots {
	position: absolute;
	inset-inline: 0;
	bottom: 1rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.p99-hero-slider__dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
}

.p99-hero-slider__dot.is-active {
	background: var(--p99-green);
	transform: scale(1.15);
}

/* Section head centered */
.p99-section__head--center {
	text-align: center;
	justify-content: center;
	flex-direction: column;
}

/* Why + Video combined */
.p99-section--why-video {
	background: #fff;
}

.p99-why-video-grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.p99-why-video-grid--both {
	grid-template-columns: 1fr 1fr;
	direction: ltr;
}

.p99-why-video__col--features {
	direction: rtl;
}

.p99-why-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
}

.p99-why-features::before {
	content: "";
	position: absolute;
	top: 2.6rem;
	bottom: 2.6rem;
	left: calc(1.35rem + 26px);
	width: 2px;
	background: #dce4ef;
	z-index: 0;
}

.p99-why-feature {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.15rem;
	padding: 1.15rem 1.35rem;
	background: #fff;
	border: 1px solid var(--p99-border);
	border-radius: var(--p99-radius);
	box-shadow: 0 4px 18px rgba(43, 91, 174, 0.07);
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.p99-why-feature:hover,
.p99-why-feature:focus-within {
	background: var(--p99-blue);
	border-color: var(--p99-blue);
	box-shadow: 0 8px 24px rgba(43, 91, 174, 0.28);
}

.p99-why-feature__icon-wrap {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(43, 91, 174, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.p99-why-feature:hover .p99-why-feature__icon-wrap,
.p99-why-feature:focus-within .p99-why-feature__icon-wrap {
	background: rgba(255, 255, 255, 0.18);
}

.p99-why-feature__icon {
	font-size: 1.45rem;
	line-height: 1;
	transition: filter 0.3s ease;
}

.p99-why-feature:hover .p99-why-feature__icon,
.p99-why-feature:focus-within .p99-why-feature__icon {
	filter: brightness(0) invert(1);
}

.p99-why-feature__body {
	flex: 1;
	min-width: 0;
	text-align: right;
}

.p99-why-feature__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--p99-text);
	transition: color 0.3s ease;
}

.p99-why-feature__text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--p99-text-muted);
	transition: color 0.3s ease;
}

.p99-why-feature:hover .p99-why-feature__title,
.p99-why-feature:hover .p99-why-feature__text,
.p99-why-feature:focus-within .p99-why-feature__title,
.p99-why-feature:focus-within .p99-why-feature__text {
	color: #fff;
}

.p99-why-video__col--video {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.p99-why-video__col--video .p99-video-wrap {
	width: 100%;
	max-width: 100%;
	border-radius: var(--p99-radius);
	overflow: hidden;
	box-shadow: 0 10px 36px rgba(43, 91, 174, 0.12);
	background: var(--p99-blue);
}

.p99-video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background: var(--p99-blue-dark);
}

/* Partners marquee */
.p99-section--partners {
	padding-bottom: 3rem;
	overflow: hidden;
	background: var(--p99-bg);
	--p99-partners-fade: var(--p99-bg);
}

.p99-partners {
	position: relative;
}

.p99-partners__viewport {
	overflow: hidden;
	direction: ltr;
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0%,
		rgba(0, 0, 0, 0.08) 3%,
		rgba(0, 0, 0, 0.35) 8%,
		rgba(0, 0, 0, 0.7) 14%,
		#000 22%,
		#000 78%,
		rgba(0, 0, 0, 0.7) 86%,
		rgba(0, 0, 0, 0.35) 92%,
		rgba(0, 0, 0, 0.08) 97%,
		transparent 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0%,
		rgba(0, 0, 0, 0.08) 3%,
		rgba(0, 0, 0, 0.35) 8%,
		rgba(0, 0, 0, 0.7) 14%,
		#000 22%,
		#000 78%,
		rgba(0, 0, 0, 0.7) 86%,
		rgba(0, 0, 0, 0.35) 92%,
		rgba(0, 0, 0, 0.08) 97%,
		transparent 100%
	);
}

.p99-partners__track {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	width: max-content;
	direction: ltr;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	animation: p99-partners-scroll 56s linear infinite;
}

.p99-partners__logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 70px;
}

.p99-partners__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(20%);
	opacity: 0.85;
}

@keyframes p99-partners-scroll {
	from {
		transform: translate3d(var(--marquee-start, -50%), 0, 0);
	}
	to {
		transform: translate3d(0, 0, 0);
	}
}

/* Testimonials — 3 square cards per page */
.p99-section--testimonials {
	background: var(--p99-bg-soft);
}

/* Homepage blog */
.p99-section--blog {
	background: var(--p99-bg);
}

.p99-home-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.p99-section--blog .p99-blog-card {
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p99-section--blog .p99-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 40px rgba(43, 91, 174, 0.12);
}

@media (max-width: 1023px) {
	.p99-home-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p99-home-blog-grid > *:nth-child(n + 5) {
		display: none;
	}
}

@media (max-width: 639px) {
	.p99-home-blog-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.p99-home-blog-grid > *:nth-child(n + 4) {
		display: none;
	}
}

.p99-testimonials {
	max-width: 100%;
}

.p99-testimonials__viewport {
	overflow: hidden;
	width: 100%;
	max-width: var(--p99-container);
	margin-inline: auto;
	direction: ltr;
}

.p99-testimonials__track {
	display: flex;
	transition: transform 0.55s ease;
	will-change: transform;
}

.p99-testimonials__page {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.15rem;
}

.p99-testimonial-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 190px;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--p99-border);
	border-radius: var(--p99-radius);
	background: #fff;
	text-align: center;
	box-shadow: var(--p99-shadow);
	overflow: hidden;
}

.p99-testimonial-card .p99-stars {
	display: inline-flex;
	gap: 0.2rem;
	margin-bottom: 0.6rem;
	color: #d1d5db;
	font-size: 1.5rem;
	flex-shrink: 0;
}

.p99-stars__star.is-filled {
	color: #f59e0b;
}

.p99-testimonial-card__quote {
	margin: 0 0 0.75rem;
	flex: 1;
	min-height: 0;
	width: 100%;
	overflow: hidden;
}

.p99-testimonial-card__quote p {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.6;
	color: var(--p99-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
}

.p99-testimonial-card__author {
	font-style: normal;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--p99-blue);
	flex-shrink: 0;
}

.p99-testimonials__dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 1.5rem;
}

.p99-testimonials__dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: var(--p99-border);
	cursor: pointer;
	padding: 0;
}

.p99-testimonials__dot.is-active {
	background: var(--p99-blue);
}

/* FAQ — smooth slide accordion */
.p99-section--faq {
	background: var(--p99-bg-soft);
}

.p99-faq__list {
	max-width: 760px;
	margin-inline: auto;
	display: grid;
	gap: 0;
}

.p99-faq__item {
	border: none;
	border-radius: 0;
	background: transparent;
	border-bottom: 1px solid var(--p99-border);
	overflow: hidden;
	transition: background 0.35s ease, border-radius 0.35s ease;
}

.p99-faq__item:first-child {
	border-top: 1px solid var(--p99-border);
}

.p99-faq__item.is-open {
	background: rgba(43, 91, 174, 0.08);
	border-radius: var(--p99-radius-sm);
	border-bottom-color: rgba(43, 91, 174, 0.08);
	border-top-color: rgba(43, 91, 174, 0.08);
}

.p99-faq__item:has(+ .p99-faq__item.is-open) {
	border-bottom-color: rgba(43, 91, 174, 0.08);
}

.p99-faq__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 0.75rem;
	margin: 0;
	border: none;
	background: transparent;
	font: inherit;
	font-weight: 600;
	text-align: right;
	cursor: pointer;
	color: var(--p99-text);
	border-radius: 0;
	transition: color 0.25s ease;
}

.p99-faq__item.is-open .p99-faq__question,
.p99-faq__question.is-open {
	color: var(--p99-blue);
}

.p99-faq__plus {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	color: var(--p99-blue);
	transition: transform 0.25s ease;
}

.p99-faq__question.is-open .p99-faq__plus {
	transform: rotate(45deg);
}

.p99-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}

.p99-faq__item.is-open .p99-faq__answer {
	grid-template-rows: 1fr;
}

.p99-faq__answer-inner {
	overflow: hidden;
	padding: 0 0.75rem;
	color: var(--p99-text-muted);
}

.p99-faq__item.is-open .p99-faq__answer-inner {
	padding-bottom: 1.15rem;
	color: var(--p99-text);
}

.p99-faq__answer-inner p:first-child {
	margin-top: 0;
}

.p99-faq__answer-inner p:last-child {
	margin-bottom: 0;
}

/* WhatsApp float — direct child of body on homepage, above footer */
body.home .p99-whatsapp-float {
	position: fixed;
	inset-inline-start: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.home .p99-whatsapp-float:hover {
	transform: scale(1.06);
	color: #fff;
	box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* Responsive */
@media (max-width: 900px) {
	.p99-why-video-grid--both {
		grid-template-columns: 1fr;
		direction: rtl;
	}

	.p99-why-features::before {
		display: none;
	}

	.p99-testimonials__page {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.p99-hero-slider__viewport {
		aspect-ratio: 4 / 5;
	}

	.p99-hero-slider__img--desktop {
		display: none;
	}

	.p99-hero-slider__img--mobile {
		display: block;
	}

	.p99-testimonials__page {
		grid-template-columns: 1fr;
	}

	.p99-whatsapp-float {
		width: 50px;
		height: 50px;
		inset-inline-start: 1rem;
		bottom: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.p99-home.is-reveal-ready .p99-reveal,
	body.is-reveal-ready .p99-whatsapp-float.p99-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.p99-partners__track {
		animation: none;
	}

	.p99-hero-slider__track,
	.p99-testimonials__track,
	.p99-faq__answer,
	.p99-why-feature {
		transition: none;
	}
}
