/* Front page only: retain the existing shared header/footer layout and behavior. */
body.notion-front-page {
	--home-teal: #f99045;
	--home-green: #f9ad75;
	--home-gold: #f99045;
	--home-canvas: #f7f3ee;
	background: var(--home-canvas);
	padding-inline: 0;
}

.notion-front-page .notion-topbar {
	background: #f0ebe5;
	border-bottom-color: var(--home-gold);
}

.notion-front-page .notion-primary-menu a,
.notion-front-page .notion-header-actions a {
	color: var(--home-teal);
}

.notion-front-page .notion-primary-menu a:hover,
.notion-front-page .notion-header-actions a:hover {
	color: #ad4f0b;
}

.notion-front-page .notion-site-footer {
	background: var(--home-canvas);
	border-top-color: #e7dacf;
}

.notion-front-page .notion-footer-column a,
.notion-front-page .notion-footer-logo {
	color: var(--home-teal);
}

body.notion-front-page .wp-site-blocks > main.notion-homepage {
	box-sizing: border-box;
	margin-block: 0;
	padding: var(--notion-fixed-header-height, 72px) 0 0 !important;
	max-width: none;
}

.notion-home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(520px, 38vw, 680px);
	background-color: #e8ecef;
	background-image:
		linear-gradient(110deg, rgb(246 247 248 / 60%), rgb(224 229 234 / 18%)),
		url('../homepage/hero-background.png');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.notion-home-hero__inner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	min-height: inherit;
	max-width: 1440px;
	margin-inline: auto;
	padding: 72px 40px;
}

.notion-home-hero__copy {
	position: relative;
	z-index: 2;
	width: 52%;
}

.notion-home-hero__copy h1 {
	color: #159e91;
	font-size: clamp(36px, 3.6vw, 64px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.04em;
	margin: 0 0 26px;
	overflow-wrap: anywhere;
}

.notion-home-hero__copy p {
	color: #38596a;
	font-size: clamp(17px, 1.3vw, 22px);
	line-height: 1.7;
	max-width: 470px;
	margin: 0 0 38px;
}

.notion-home-hero__copy .notion-home-hero__brand {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #f99045;
	margin: 0 0 20px;
}

.notion-home-hero__headlines {
	display: grid;
	min-height: 2.36em;
}

.notion-home-hero__headline {
	grid-area: 1 / 1;
	align-self: center;
	opacity: 0;
	animation: notion-hero-slide 6s linear infinite;
}

.notion-home-hero__headline:nth-child(2),
.notion-home-hero__photo:nth-child(2) { animation-delay: 2s; }
.notion-home-hero__headline:nth-child(3),
.notion-home-hero__photo:nth-child(3) { animation-delay: 4s; }

.notion-home-hero__actions { display: flex; align-items: center; gap: 16px; }
.notion-home-hero__toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px dashed #e5a321;
	border-radius: 50%;
	background: #ffcf52;
	color: #674509;
	font-size: 19px;
	font-weight: 700;
	cursor: pointer;
}
.notion-home-hero__toggle:focus-visible { outline: 3px solid #ad4f0b; outline-offset: 5px; }
.notion-home-hero__toggle span { box-sizing: border-box; width: 11px; height: 14px; border-inline: 3px solid currentColor; }
.notion-home-hero__toggle[aria-pressed="true"] span { width: 0; height: 0; border: 7px solid transparent; border-right: 0; border-left: 11px solid currentColor; }

.notion-home-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	background: var(--home-teal);
	color: #fff;
	border: 2px solid transparent;
	border-radius: 999px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease;
}

.notion-home-hero__cta:hover {
	background: #08636d;
	color: #fff;
}

.notion-home-hero__cta:focus-visible {
	outline: 3px solid #ad4f0b;
	outline-offset: 5px;
}

.notion-home-hero__art {
	position: absolute;
	z-index: 1;
	width: min(58vw, 1000px);
	aspect-ratio: 1;
	right: -4%;
	top: 50%;
	transform: translateY(-44%);
}

.notion-home-hero__art .notion-home-hero__photo {
	position: absolute;
	inset: 12%;
	width: 76%;
	height: 76%;
	border-radius: 50%;
	background-image: url('../homepage/west-africa-home-photos.png');
	background-size: 400% 200%;
	background-position: var(--photo-x, 0%) 0%;
}

.notion-home-hero__photo {
	opacity: 0;
	animation: notion-hero-slide 6s linear infinite;
}

.notion-home-hero__art::before,
.notion-home-hero__art::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	mask: radial-gradient(farthest-side, transparent calc(100% - 82px), #000 calc(100% - 81px));
}

.notion-home-hero__art::before {
	inset: 0;
	background: conic-gradient(from 248deg, #098b8b 0deg 100deg, transparent 100deg);
	animation: notion-hero-outer 6s ease infinite;
}

.notion-home-hero__art::after {
	inset: 7%;
	background: conic-gradient(from 158deg, #f99045, #ffe47a 192deg, transparent 192deg);
	animation: notion-hero-inner 6s ease infinite;
}

/* The reference's six-second cycle, with independently moving arcs. */
@keyframes notion-hero-slide {
	0% { opacity: 0; }
	4%, 33.33% { opacity: 1; }
	37.33%, 100% { opacity: 0; }
}

@keyframes notion-hero-outer {
	0% { transform: rotate(-390deg); }
	33.33% { transform: rotate(40deg); }
	66.66% { transform: rotate(-320deg); }
	100% { transform: rotate(-390deg); }
}

@keyframes notion-hero-inner {
	0% { transform: rotate(-65deg); }
	33.33% { transform: rotate(15deg); }
	66.66% { transform: rotate(0deg); }
	100% { transform: rotate(-65deg); }
}

.notion-home-hero.is-paused .notion-home-hero__headline,
.notion-home-hero.is-paused .notion-home-hero__photo,
.notion-home-hero.is-paused .notion-home-hero__art::before,
.notion-home-hero.is-paused .notion-home-hero__art::after { animation-play-state: paused; }

@media (max-width: 1000px) {
	.notion-home-hero__inner { padding-inline: 30px; }
	.notion-home-hero__art { right: -18%; width: 76vw; }
	.notion-home-hero__copy { width: 58%; }
	.notion-home-hero__copy h1 { font-size: clamp(32px, 4.8vw, 48px); }
	.notion-home-hero__copy p { max-width: 340px; }
}

@media (max-width: 640px) {
	.notion-home-hero { min-height: 720px; }
	.notion-home-hero__inner { align-items: flex-start; padding: 54px 24px 390px; }
	.notion-home-hero__copy { width: 100%; }
	.notion-home-hero__copy h1 { font-size: clamp(30px, 7.5vw, 46px); margin-bottom: 18px; }
	.notion-home-hero__copy p { max-width: 390px; font-size: 17px; margin-bottom: 25px; }
	.notion-home-hero__cta { padding: 12px 24px; font-size: 14px; }
	.notion-home-hero__art { width: 490px; max-width: 120vw; right: -15%; top: auto; bottom: -65px; transform: none; }
	.notion-home-hero__art::before,
	.notion-home-hero__art::after { mask: radial-gradient(farthest-side, transparent calc(100% - 48px), #000 calc(100% - 47px)); }
}

@media (prefers-reduced-motion: reduce) {
	.notion-home-hero__cta { transition: none; }
	.notion-home-hero__headline,
	.notion-home-hero__photo,
	.notion-home-hero__art::before,
	.notion-home-hero__art::after { animation: none; }
	.notion-home-hero__headline:first-child,
	.notion-home-hero__photo:first-child { opacity: 1; }
	.notion-home-hero__toggle { display: none; }
}

/* Coverage figures and the reference's five-card perspective carousel. */
.notion-homepage > .notion-home-stats,
.notion-homepage > .notion-home-services {
	margin-block: 0;
}

.notion-home-stats {
	padding: 44px 24px 70px;
	background: var(--home-canvas);
}

.notion-home-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
}

.notion-home-stats__item {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	justify-content: flex-end;
	gap: 28px;
	text-align: center;
}

.notion-home-stats__item dd {
	margin: 0;
	font-size: clamp(32px, 3.3vw, 48px);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1.2;
	color: #ffbb12;
	background: linear-gradient(100deg, #ff9900, #ffe55a);
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.notion-home-stats__item dt {
	color: #078696;
	font-size: clamp(15px, 1.5vw, 22px);
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
}

.notion-home-services {
	padding: 28px 0 30px;
	background: var(--home-canvas);
	overflow: clip;
}

.notion-home-services__intro {
	max-width: 600px;
	padding-inline: 24px;
	margin: 0 auto 44px;
}

.notion-home-services__intro h2 {
	color: #91a0b5;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.notion-home-services__intro > p {
	color: #40372f;
	font-size: 13px;
	line-height: 1.9;
	text-align: justify;
	margin: 0;
}

.notion-services-carousel {
	--card-width: clamp(230px, 20vw, 300px);
	--card-step: clamp(190px, 18vw, 275px);
	--image-height: clamp(280px, 23vw, 345px);
	--ring-radius: calc(var(--card-step) * 1.7);
	position: relative;
	max-width: 1500px;
	margin: 0 auto;
}

.notion-services-carousel:focus-visible {
	outline: 2px solid var(--home-teal);
	outline-offset: -2px;
}

.notion-services-carousel__stage {
	position: relative;
	height: calc(var(--image-height) + 190px);
	perspective: 1400px;
	perspective-origin: 50% calc(var(--image-height) / 2 + 40px);
	clip-path: inset(-45px 4.8% -75px);
}

.notion-services-carousel__ring {
	position: absolute;
	left: 50%;
	width: var(--card-width);
	height: 100%;
	margin-left: calc(var(--card-width) / -2);
	transform-style: preserve-3d;
	transform: translateZ(var(--ring-radius)) rotateY(var(--ring-rotation, 72deg));
}

.notion-services-carousel.is-ready .notion-services-carousel__ring {
	transition: transform 500ms ease;
}

.notion-service-card {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	width: var(--card-width);
	height: calc(var(--image-height) + 190px);
	padding: 40px 10px 12px;
	border-bottom: 7px solid transparent;
	border-radius: 34px;
	transform: rotateY(var(--slot-angle, 0deg)) translateZ(calc(var(--ring-radius) * -1));
	backface-visibility: hidden;
	transition: background-color 350ms ease, box-shadow 350ms ease;
}

.notion-service-card:nth-child(1) { --slot-angle: 0deg; }
.notion-service-card:nth-child(2) { --slot-angle: -36deg; }
.notion-service-card:nth-child(3) { --slot-angle: -72deg; }
.notion-service-card:nth-child(4) { --slot-angle: -108deg; }
.notion-service-card:nth-child(5) { --slot-angle: -144deg; }

.notion-service-card.is-active {
	background: #fff;
	border-bottom-color: #ffd000;
	box-shadow: 0 0 35px rgb(96 126 161 / 12%);
}

.notion-service-card__select {
	position: relative;
	display: block;
	width: 100%;
	height: var(--image-height);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #dce5e8;
	color: #fff;
	cursor: pointer;
	overflow: hidden;
}

.notion-service-card__select::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 45%, rgb(0 0 0 / 40%));
}

.notion-service-photo {
	position: absolute;
	top: 0;
	left: 50%;
	display: block;
	width: var(--image-height);
	height: var(--image-height);
	transform: translateX(-50%);
	background-image: url('../homepage/west-africa-home-photos.png');
	background-size: 400% 200%;
}

.notion-service-card__title {
	position: absolute;
	z-index: 1;
	bottom: 22px;
	left: 15px;
	right: 15px;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.55;
	text-align: center;
	text-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}

.notion-service-card__caption {
	margin: 18px 5px 0;
	color: #383d43;
	font-size: 11px;
	line-height: 1.7;
	text-align: center;
}

.notion-service-card [hidden] { display: none; }

.notion-services-carousel__controls {
	position: absolute;
	z-index: 4;
	top: calc(var(--image-height) + 64px);
	left: 50%;
	width: calc(var(--card-width) + 180px);
	display: flex;
	justify-content: space-between;
	transform: translateX(-50%);
	pointer-events: none;
}

.notion-services-carousel__controls button {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	padding: 10px;
	border: 1px solid #7b838b;
	border-radius: 50%;
	background: var(--home-canvas);
	color: #717b84;
	cursor: pointer;
	pointer-events: auto;
}

.notion-services-carousel__controls button:hover {
	color: var(--home-teal);
	border-color: var(--home-teal);
	background: #fff0e3;
}

.notion-services-carousel button:focus-visible {
	outline: 3px solid var(--home-teal);
	outline-offset: 4px;
}

.notion-service-card__play {
	position: absolute;
	top: calc(var(--image-height) / 2);
	left: 50%;
	z-index: 2;
	transform: translateX(-50%);
	width: 58px;
	height: 58px;
	padding: 0 0 0 4px;
	border: 2px dashed #ffbc24;
	border-radius: 50%;
	background: #ffd04c;
	color: #fff;
	font-size: 23px;
	cursor: pointer;
}

.notion-service-video {
	box-sizing: border-box;
	width: min(900px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	padding: 20px;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: #40372f;
}

.notion-service-video::backdrop { background: rgb(10 27 34 / 78%); }
.notion-service-video__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.notion-service-video__header h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.notion-service-video__header button { border: 0; border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; background: #edf3f6; color: #40372f; font-size: 28px; cursor: pointer; }
.notion-service-video video { display: block; width: 100%; max-height: 65vh; background: #10282d; }

@media (max-width: 760px) {
	.notion-home-stats { padding: 35px 24px 45px; }
	.notion-home-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
	.notion-home-stats__item { gap: 12px; }
	.notion-home-stats__item dt { font-size: 15px; }
	.notion-home-services__intro { margin-bottom: 25px; }
	.notion-home-services__intro > p { text-align: left; }
	.notion-services-carousel { --card-width: 260px; --card-step: 250px; --image-height: 310px; }
	.notion-service-card { padding-top: 25px; }
	.notion-services-carousel__stage { height: 600px; clip-path: inset(-45px 0 -75px); }
	.notion-services-carousel__controls { top: 530px; width: 160px; }
	.notion-services-carousel__controls button { width: 52px; height: 52px; padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
	.notion-service-card,
	.notion-services-carousel.is-ready .notion-services-carousel__ring { transition: none; }
}

/* Newsletter: compact reference layout, connected to the shared signup handler. */
.notion-homepage > .notion-home-newsletter,
.notion-about-main > .notion-home-newsletter,
.notion-faq-main > .notion-home-newsletter,
.notion-contact-main > .notion-home-newsletter,
.notion-commerce-main > .notion-home-newsletter,
.notion-benefits-main > .notion-home-newsletter {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1fr);
	gap: 48px;
	width: calc(100% - 64px);
	max-width: 1120px;
	margin: 48px auto 0;
	padding: 22px 0 28px;
	border-bottom: 0;
}

.notion-home-newsletter h2 {
	position: relative;
	align-self: start;
	width: fit-content;
	margin: 0;
	color: #14242d;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.3;
	text-transform: uppercase;
}

.notion-home-newsletter h2::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -9px;
	width: 76px;
	height: 3px;
	background: #b51c53;
}

.notion-home-newsletter__form { margin: 0; min-width: 0; }
.notion-home-newsletter__field { display: flex; align-items: center; background: #e3e7ed; border: 1px solid #d5dce4; border-radius: 999px; }
.notion-home-newsletter__field:focus-within { outline: 2px solid var(--home-teal); outline-offset: 3px; }
.notion-home-newsletter__field input[type="email"] {
	box-sizing: border-box;
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 8px 24px;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	background: transparent;
	color: #243f4d;
	font-size: 14px;
}
.notion-home-newsletter__field input::placeholder { color: #737d88; opacity: 1; }
.notion-home-newsletter__field input:focus { outline: none; }
.notion-home-newsletter__field button {
	flex-shrink: 0;
	min-height: 40px;
	margin: -1px;
	padding: 9px 25px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(100deg, #f99045, #009b88);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
}
.notion-home-newsletter__field button:hover { background: #08636d; }
.notion-home-newsletter__field button:focus-visible { outline: 3px solid #ad4f0b; outline-offset: 4px; }
.notion-home-newsletter__field button:disabled { opacity: 0.65; cursor: wait; }
.notion-home-newsletter__description { margin: 28px 0 0; color: #40372f; font-size: 11px; line-height: 1.8; }
.notion-home-newsletter .notion-newsletter-message { min-height: 0; margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.notion-home-newsletter .notion-newsletter-message:empty { display: none; }
.notion-home-newsletter .notion-newsletter-hp { display: none !important; }

@media (max-width: 760px) {
	.notion-homepage > .notion-home-newsletter,
	.notion-about-main > .notion-home-newsletter,
	.notion-faq-main > .notion-home-newsletter,
	.notion-contact-main > .notion-home-newsletter,
.notion-commerce-main > .notion-home-newsletter,
.notion-benefits-main > .notion-home-newsletter { grid-template-columns: 1fr; gap: 30px; width: calc(100% - 48px); margin-top: 20px; }
	.notion-home-newsletter h2 { font-size: 25px; }
	.notion-home-newsletter__field input[type="email"] { padding-inline: 15px; font-size: 13px; }
	.notion-home-newsletter__field button { padding-inline: 17px; font-size: 13px; }
	.notion-home-newsletter__description { margin-top: 20px; }
}
