/**
 * NinetyDegreeFocus custom homepage.
 */

.ndf-home-page .content-area,
.ndf-home-page .site-main {
	margin: 0;
	padding: 0;
}

.ndf-home-page .entry-header,
.ndf-home-page .entry-content {
	margin: 0;
	max-width: none;
	padding: 0;
}

.ndf-home {
	overflow: clip;
}

.ndf-image-section {
	position: relative;
	background: var(--ndf-black);
}

.ndf-banner-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.ndf-hero-actions {
	position: absolute;
	left: clamp(24px, 7.4vw, 116px);
	bottom: clamp(30px, 7vw, 106px);
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	z-index: 2;
}

.ndf-focus {
	padding: clamp(72px, 9vw, 132px) 0;
	background: var(--ndf-white);
	text-align: center;
}

.ndf-focus h2 {
	max-width: 820px;
	margin: 0 auto 30px;
	font-size: clamp(2.15rem, 4vw, 4rem);
	line-height: 1.05;
}

.ndf-focus blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	font-style: normal;
	line-height: 1.55;
}

.ndf-focus blockquote p {
	margin: 0 0 12px;
}

.ndf-focus cite {
	color: var(--ndf-gray);
	font-size: 0.95rem;
	font-style: normal;
	font-weight: 700;
}

.ndf-focus-copy {
	max-width: 680px;
	margin: 28px auto 0;
	color: var(--ndf-gray);
	font-size: 1.08rem;
}

.ndf-story-section .ndf-section-action {
	display: flex;
	justify-content: center;
	padding: 24px 20px 28px;
	background: var(--ndf-black);
	color: var(--ndf-white);
}

.ndf-collections,
.ndf-products-section,
.ndf-newsletter {
	padding: clamp(72px, 9vw, 132px) 0;
}

.ndf-collections {
	background: var(--ndf-white);
}

.ndf-section-heading {
	display: flex;
	gap: 30px;
	align-items: end;
	justify-content: space-between;
	margin-bottom: clamp(36px, 5vw, 70px);
}

.ndf-section-heading h2 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(2.1rem, 4vw, 4.4rem);
	line-height: 1.04;
}

.ndf-collection-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--ndf-border);
	border: 1px solid var(--ndf-border);
}

.ndf-collection-card {
	min-height: 330px;
	padding: 34px;
	background: var(--ndf-white);
	color: var(--ndf-black);
	text-decoration: none;
	transition:
		background-color var(--ndf-transition),
		color var(--ndf-transition),
		transform var(--ndf-transition);
}

.ndf-collection-card:hover {
	background: var(--ndf-black);
	color: var(--ndf-white);
	transform: translateY(-4px);
}

.ndf-collection-number {
	display: block;
	margin-bottom: 80px;
	color: var(--ndf-lime-dark);
	font-weight: 800;
	letter-spacing: 0.14em;
}

.ndf-collection-card h3 {
	margin: 0 0 15px;
	font-size: 1.75rem;
}

.ndf-collection-card p {
	margin: 0;
	color: var(--ndf-gray);
	line-height: 1.6;
}

.ndf-collection-card:hover p {
	color: rgba(255, 255, 255, 0.72);
}

.ndf-lifestyle {
	padding-top: clamp(72px, 8vw, 120px);
	background: var(--ndf-light-gray);
}

.ndf-lifestyle .ndf-section-heading {
	margin-bottom: 40px;
}

.ndf-products-section {
	background: var(--ndf-white);
}

.ndf-product-output .products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px 22px;
	margin: 0;
	padding: 0;
}

.ndf-product-output .products::before,
.ndf-product-output .products::after {
	display: none;
}

.ndf-product-output .product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.ndf-product-output .woocommerce-loop-product__link {
	color: var(--ndf-black);
	text-decoration: none;
}

.ndf-product-output .product img {
	aspect-ratio: 1 / 1.15;
	width: 100%;
	object-fit: cover;
	border-radius: var(--ndf-radius-md);
	background: var(--ndf-light-gray);
	transition: transform 240ms ease;
}

.ndf-product-output .product:hover img {
	transform: scale(1.015);
}

.ndf-product-output .woocommerce-loop-product__title {
	margin: 18px 0 8px !important;
	padding: 0 !important;
	font-size: 1.03rem !important;
	font-weight: 750;
}

.ndf-product-output .price {
	color: var(--ndf-gray) !important;
	font-weight: 700 !important;
}

.ndf-product-output .button {
	width: 100%;
	margin-top: 14px !important;
	border-radius: var(--ndf-radius-md) !important;
	background: var(--ndf-black) !important;
	color: var(--ndf-white) !important;
	text-align: center;
}

.ndf-product-output .button:hover {
	background: var(--ndf-lime) !important;
	color: var(--ndf-black) !important;
}

.ndf-products-empty {
	padding: 48px;
	border: 1px dashed var(--ndf-border);
	background: var(--ndf-light-gray);
	text-align: center;
}

.ndf-community {
	border-top: 1px solid var(--ndf-black);
}

.ndf-newsletter {
	background: var(--ndf-black);
	color: var(--ndf-white);
}

.ndf-newsletter-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: clamp(44px, 8vw, 120px);
	align-items: center;
}

.ndf-newsletter h2 {
	margin: 0 0 24px;
	font-size: clamp(2.2rem, 4vw, 4.25rem);
	line-height: 1.05;
}

.ndf-newsletter p {
	max-width: 660px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.05rem;
	line-height: 1.7;
}

.ndf-newsletter-form > label:first-of-type {
	display: block;
	margin-bottom: 10px;
	font-weight: 750;
}

.ndf-email-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
}

.ndf-email-row input {
	min-height: 54px;
	padding: 12px 16px;
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.08);
	color: var(--ndf-white);
}

.ndf-email-row input::placeholder {
	color: rgba(255, 255, 255, 0.48);
}

.ndf-consent {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.64);
	font-size: 0.84rem;
	line-height: 1.5;
}

.ndf-consent input {
	margin-top: 4px;
}

.ndf-form-message {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: var(--ndf-radius-sm);
	font-weight: 700;
}

.ndf-form-message--success {
	background: rgba(183, 255, 0, 0.14);
	color: var(--ndf-lime);
}

.ndf-form-message--error {
	background: rgba(159, 37, 33, 0.22);
	color: #ffb2ae;
}

@media (max-width: 1100px) {
	.ndf-collection-grid,
	.ndf-product-output .products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ndf-hero-actions {
		position: static;
		justify-content: center;
		padding: 24px 20px;
		background: var(--ndf-black);
	}
}

@media (max-width: 800px) {
	.ndf-section-heading,
	.ndf-newsletter-grid {
		display: block;
	}

	.ndf-section-heading .ndf-text-link {
		margin-top: 20px;
	}

	.ndf-newsletter-grid > div + div {
		margin-top: 44px;
	}
}

@media (max-width: 600px) {
	.ndf-hero-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ndf-hero-actions .ndf-button {
		width: 100%;
	}

	.ndf-collection-grid,
	.ndf-product-output .products {
		grid-template-columns: 1fr;
	}

	.ndf-collection-card {
		min-height: 250px;
	}

	.ndf-collection-number {
		margin-bottom: 48px;
	}

	.ndf-email-row {
		grid-template-columns: 1fr;
	}

	.ndf-email-row .ndf-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ndf-home *,
	.ndf-home *::before,
	.ndf-home *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
