/* ==========================================================================
   Safari Premium — Homepage
   Section-specific layout for the 8 home blocks.
   ========================================================================== */

/* Hero */
.sp-home-hero {
	position: relative;
	height: 600px;
	overflow: hidden;
	color: var(--sp-color-cream);
}
.sp-home-hero__media,
.sp-home-hero__media .sp-placeholder {
	position: absolute; inset: 0; height: 100%; aspect-ratio: auto;
}
.sp-home-hero__media .sp-home-hero__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: center;
	display: block;
}
.sp-home-hero__overlay {
	position: absolute; inset: 0;
	background: var(--sp-gradient-hero-overlay);
	pointer-events: none;
}
.sp-home-hero__inner {
	position: relative;
	max-width: var(--sp-container-max);
	margin: 0 auto;
	padding: 0 var(--sp-page-gutter);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
.sp-home-hero__title {
	font-family: var(--sp-font-serif);
	font-weight: 500;
	font-size: 62px;
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
	color: var(--sp-color-cream);
	text-wrap: balance;
}
.sp-home-hero__copy {
	font-family: var(--sp-font-sans);
	font-size: 17px;
	line-height: var(--sp-leading-base);
	color: var(--sp-color-text-cream-on-dark);
	max-width: 600px;
	margin: 0 0 28px;
}
.sp-home-hero__search { width: 100%; max-width: 960px; }

/* The CTA button is mobile-only; on desktop the search widget replaces it. */
.sp-home-hero__cta { display: none; }

@media (max-width: 1023px) {
	.sp-home-hero { height: 540px; }
	.sp-home-hero__title { font-size: 48px; }
}
@media (max-width: 767px) {
	.sp-home-hero {
		height: 560px;
	}
	.sp-home-hero__inner {
		padding: 32px var(--sp-page-gutter-mobile) 24px;
		justify-content: flex-end;
		align-items: stretch;
		text-align: left;
	}
	.sp-home-hero__title { font-size: 44px; line-height: 1.05; margin: 16px 0 12px; }
	.sp-home-hero__copy {
		font-size: 15px;
		line-height: 1.5;
		margin: 0 0 20px;
		max-width: none;
	}
	.sp-home-hero__search { display: none; } /* moved below hero */
	.sp-home-hero__cta { display: block; width: 100%; }
}

/* Mobile-only search widget below hero */
.sp-home-mobile-search {
	display: none;
	padding: 20px 16px 0;
	margin-top: -40px;
	position: relative;
	z-index: 2;
}
@media (max-width: 767px) {
	.sp-home-mobile-search { display: block; }
}

/* Section heads */
.sp-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 40px;
	gap: 24px;
}
.sp-section-head--center {
	justify-content: center;
	flex-direction: column;
	align-items: center; /* reset base align-items:flex-end so column content centers (not right-aligned) */
	text-align: center;
	margin-bottom: 56px;
}
.sp-section-head__title { margin-top: 12px; }
.sp-section-head__link {
	font-family: var(--sp-font-sans);
	font-size: var(--sp-text-base);
	color: var(--sp-color-burnt-orange);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.sp-section-head__link:hover { color: var(--sp-color-brown); }
@media (max-width: 767px) {
	.sp-section-head { flex-direction: column; align-items: stretch; margin-bottom: 24px; }
	.sp-section-head__link { display: none; }
	.sp-section-head--center { margin-bottom: 28px; }
}

/* Card grids */
.sp-grid {
	display: grid;
	gap: 28px;
}
.sp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sp-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1023px) {
	.sp-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.sp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.sp-grid--3 { grid-template-columns: 1fr; gap: 20px; }
	.sp-grid--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Centered "view all" footer link (mobile fallback) */
.sp-section-foot {
	text-align: center;
	margin-top: 24px;
	display: none;
}
@media (max-width: 767px) {
	.sp-section-foot { display: block; }
}

/* Newsletter wrapper for full-bleed feel on desktop */
.sp-home-newsletter-wrap {
	background: var(--sp-color-cream);
	padding: 0 var(--sp-page-gutter) var(--sp-section-pad-y);
}
.sp-home-newsletter-wrap__inner {
	max-width: var(--sp-container-max);
	margin: 0 auto;
}
@media (max-width: 767px) {
	.sp-home-newsletter-wrap { padding: 0; }
	.sp-home-newsletter-wrap__inner { max-width: none; }
}

/* Testimonials → reviews CTA */
.sp-testimonial-cta {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 36px;
}
