/**
 * Homepage-only styles matching ickfederation.com
 */

/* Header — centered nav inside 980px container */
.ickf-front-page .ickf-site-header__inner {
	min-height: 110px;
}

.ickf-front-page .ickf-site-nav__list,
.ickf-front-page .ickf-site-nav .menu {
	flex-wrap: nowrap;
}

/* Hero */
.ickf-hero__subtitle,
.ickf-hero__title {
	color: #fff;
	text-align: center;
	width: 100%;
}

.ickf-hero__subtitle {
	font-family: var(--ickf-font-body);
}

.ickf-hero__title {
	font-family: var(--ickf-font-display);
}

/* About */
.ickf-about__text {
	padding: 49px 1.5rem 40px 33px;
}

.ickf-about__media {
	min-height: 606px;
}

/* News — logo as B&W background, overflows left like Wix */
.ickf-news__bg {
	left: 50%;
	transform: translateX(calc(-490px - 72px));
}

.ickf-news__inner {
	padding-left: 33px;
	padding-right: 33px;
}

.ickf-news__line {
	margin-top: 0;
	margin-bottom: 10px;
}

.ickf-news__heading {
	margin-top: 0;
	margin-bottom: 1.25rem;
	font-size: 32px;
}

.ickf-news__grid {
	margin-left: 0;
	margin-right: 0;
}

.ickf-news__footer {
	padding-left: 33px;
	padding-right: 33px;
}

/* Load animations — header & hero visible immediately */
.ickf-front-page .ickf-site-header__logo.ickf-motion,
.ickf-front-page .ickf-site-header__tagline.ickf-motion,
.ickf-front-page .ickf-site-nav.ickf-motion,
.ickf-hero .ickf-motion {
	opacity: 1;
	transform: none;
	animation: ickf-float-in 1.2s cubic-bezier(0.445, 0.05, 0.55, 0.95) backwards;
}

.ickf-front-page .ickf-site-header__logo.ickf-motion,
.ickf-front-page .ickf-site-header__tagline.ickf-motion,
.ickf-front-page .ickf-site-nav.ickf-motion {
	animation-name: ickf-float-in-left;
}

.ickf-hero .ickf-motion {
	animation-name: ickf-float-in-up;
}

.ickf-hero__title.ickf-motion {
	animation-delay: 50ms;
}

@keyframes ickf-float-in-left {
	from {
		opacity: 0;
		transform: translate3d(-60px, 0, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes ickf-float-in-up {
	from {
		opacity: 0;
		transform: translate3d(0, 60px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (max-width: 1100px) {
	.ickf-front-page .ickf-news {
		--ickf-news-bg-height: calc(min(1085px, 140vw) * 852 / 1085);
	}

	.ickf-news__bg {
		left: 0;
		width: min(1085px, 140%);
		transform: none;
	}
}

@media (max-width: 1024px) {
	.ickf-front-page .ickf-site-header__logo,
	.ickf-front-page .ickf-site-header__tagline,
	.ickf-front-page .ickf-site-nav {
		position: static;
		transform: none;
	}

	.ickf-about__grid {
		grid-template-columns: 1fr;
	}

	.ickf-about__media {
		min-height: 360px;
	}

	.ickf-news__inner {
		padding-left: 0;
		padding-right: 0;
	}

	.ickf-news__grid {
		margin-left: 0;
		margin-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ickf-front-page .ickf-site-header__logo.ickf-motion,
	.ickf-front-page .ickf-site-header__tagline.ickf-motion,
	.ickf-front-page .ickf-site-nav.ickf-motion,
	.ickf-hero .ickf-motion {
		animation: none;
	}
}
