/**
 * Soukara — Home / Hero chrome styles.
 *
 * Enqueued only on the static front page (is_front_page()) in inc/enqueue.php.
 * Provides structural and visual chrome for the hero section and home page
 * layout. Does NOT duplicate any .sx-* utility class defined in storefront.css.
 *
 * Hero layout
 * ──────────────────────────────────────────────────────────────────────────────
 * The hero uses a position:relative container so the background image and the
 * gradient overlay can be absolutely positioned behind the content shell.
 */

/* ── Hero section wrapper ────────────────────────────────────────────────── */
.sx-hero {
	position: relative;
	background: var(--slate-950, #0d0c09);
	overflow: hidden;
}

/* ── Background image ───────────────────────────────────────────────────── */
.sx-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.6;
	pointer-events: none;
	user-select: none;
}

/* ── Gradient overlay (alpha values injected inline by hero.php) ────────── */
.sx-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* ── Inner container (max-width shell + vertical padding) ───────────────── */
.sx-hero__inner {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding-left: 28px;
	padding-right: 28px;
	/* Vertical padding is driven by the soukara_hero_height Customizer
	   setting — applied as inline style in hero.php. */
}

/* ── Content column (max-width matches handoff ~620 px) ─────────────────── */
.sx-hero__content {
	max-width: 620px;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */
.sx-hero__eyebrow {
	font-size: 12px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--clay-300, #e8c9b7);
	font-weight: 700;
	margin-bottom: 22px;
}

/* ── Headline ────────────────────────────────────────────────────────────── */
.sx-hero__heading {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-weight: 500;
	color: var(--cream, #fbf8f3);
	font-size: clamp(46px, 6.2vw, 90px);
	line-height: 0.98;
	letter-spacing: -0.02em;
	margin: 0;
}

/* ── Subcopy ─────────────────────────────────────────────────────────────── */
.sx-hero__subcopy {
	color: var(--sand-200, #e8ddd1);
	font-size: 18px;
	line-height: 1.65;
	max-width: 484px;
	margin: 26px 0 36px;
}

/* ── CTA row ─────────────────────────────────────────────────────────────── */
.sx-hero__ctas {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

/* ── Primary CTA — cream solid button with arrow ────────────────────────── */
.sx-hero__cta--primary {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--cream, #fbf8f3);
	color: var(--slate-900, #14130f);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 0 30px;
	height: 54px;
	border-radius: 6px;
}

.sx-hero__cta--primary:hover,
.sx-hero__cta--primary:focus-visible {
	background: var(--sand-100, #f5ede3);
	color: var(--slate-900, #14130f);
	text-decoration: none;
}

/* ── Secondary CTA — outline button ─────────────────────────────────────── */
.sx-hero__cta--outline {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: transparent;
	color: var(--cream, #fbf8f3);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 0 30px;
	height: 54px;
	border-radius: 6px;
	border: 1px solid rgba(251, 248, 243, 0.45);
}

.sx-hero__cta--outline:hover,
.sx-hero__cta--outline:focus-visible {
	border-color: rgba(251, 248, 243, 0.75);
	background: rgba(251, 248, 243, 0.06);
	color: var(--cream, #fbf8f3);
	text-decoration: none;
}

/* ── Responsive: narrow viewport ────────────────────────────────────────── */
@media (max-width: 600px) {
	.sx-hero__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.sx-hero__subcopy {
		font-size: 16px;
	}

	.sx-hero__ctas {
		flex-direction: column;
		align-items: stretch;
	}

	.sx-hero__cta--primary,
	.sx-hero__cta--outline {
		justify-content: center;
		width: 100%;
	}
}

/* ==========================================================================
   Home sections — shared chrome
   --------------------------------------------------------------------------
   Section wrapper, heading/eyebrow, and "view all" link used by the category,
   featured, maison and new-arrivals sections. Builds on (does not duplicate)
   the .sx-grid / .sx-tile / .sx-card / .sx-btn / .sx-link utilities defined in
   storefront.css.
   ========================================================================== */

/* ── Section wrapper (max-width shell + vertical rhythm) ─────────────────── */
.sx-sec {
	max-width: 1320px;
	margin: 0 auto;
	padding: 64px 28px 30px;
}

/* The first home section under the hero gets extra top breathing room,
   matching the handoff (86px). Targets category tiles (the first .sx-sec). */
.sx-home .sx-feat + .sx-sec {
	padding-top: 86px;
}

/* ── Section header (intro + optional "view all" link) ──────────────────── */
.sx-sec__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 30px;
}

.sx-sec__head--stack {
	display: block;
}

.sx-sec__head--center {
	display: block;
	text-align: center;
	margin-bottom: 38px;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */
.sx-sec__eyebrow {
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--clay-600, #b8552f);
	font-weight: 700;
	margin-bottom: 10px;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */
.sx-sec__heading {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-weight: 500;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--text-strong, #1f1d18);
	margin: 0;
}

/* ── "View all" / "Shop all" link ───────────────────────────────────────── */
.sx-sec__viewall {
	text-decoration: none;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--slate-800, #2a2f45);
	display: inline-flex;
	gap: 7px;
	align-items: center;
	white-space: nowrap;
}

/* ==========================================================================
   Feature / trust strip
   ========================================================================== */
.sx-feat {
	background: var(--white, #fff);
	border-bottom: 1px solid var(--color-border, #e8e1d6);
}

.sx-feat__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 22px 28px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.sx-feat__item {
	display: flex;
	align-items: center;
	gap: 13px;
}

.sx-feat__icon {
	display: inline-flex;
	color: var(--clay-500, #cf6a48);
	flex: none;
}

.sx-feat__title {
	font-weight: 700;
	color: var(--text-strong, #1f1d18);
	font-size: 13.5px;
}

.sx-feat__sub {
	font-size: 12.5px;
	color: var(--text-muted, #6b6557);
}

/* ==========================================================================
   Category tiles ("Find your shape")
   ========================================================================== */
.sx-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 18px;
}

/* Structural styles for category tiles — the .sx-tile hover lives in
   storefront.css; these add the box the handoff sets inline. */
.sx-tile--cat {
	position: relative;
	display: block;
	text-decoration: none;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--slate-900, #14130f);
}

.sx-tile__media {
	position: absolute;
	inset: 0;
	opacity: 0.8;
}

/* Hover zoom is defined below (.sx-tile--cat .sx-tile__img); storefront.css's .sx-tileimg rule does not apply to this BEM class. */
.sx-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sx-tile__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 19, 15, 0) 38%, rgba(20, 19, 15, 0.82) 100%);
	pointer-events: none;
}

.sx-tile__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px;
}

.sx-tile__label {
	display: block;
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-size: 23px;
	font-weight: 600;
	color: var(--cream, #fbf8f3);
	line-height: 1.05;
}

.sx-tile__count {
	display: block;
	font-size: 12px;
	color: var(--sand-200, #e8ddd1);
	margin-top: 3px;
	font-family: var(--font-mono, 'Spline Sans Mono', monospace);
}

/* Apply the storefront hover-zoom transition to the category image. */
.sx-tile--cat .sx-tile__img {
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-tile--cat:hover .sx-tile__img {
	transform: scale(1.07);
}

/* ==========================================================================
   Sale band ("On sale now") — dark
   ========================================================================== */
.sx-sale {
	background: var(--slate-900, #14130f);
	margin-top: 60px;
}

.sx-sale__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 70px 28px;
}

.sx-sale__head {
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.sx-sale__eyebrow {
	color: var(--clay-300, #e8c9b7);
}

.sx-sale__heading {
	color: var(--cream, #fbf8f3);
}

.sx-sale__subcopy {
	color: var(--sand-300, #d8cab9);
	font-size: 15px;
	margin: 12px 0 0;
	max-width: 440px;
}

.sx-sale__cta {
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	color: var(--slate-900, #14130f);
	background: var(--clay-300, #e8c9b7);
	padding: 0 26px;
	height: 50px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.sx-sale__cta:hover,
.sx-sale__cta:focus-visible {
	color: var(--slate-900, #14130f);
	text-decoration: none;
}

/* ==========================================================================
   Maison cards ("Three houses, one cellar")
   ========================================================================== */
.sx-maisons__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
}

.sx-maison {
	display: block;
	text-decoration: none;
	background: var(--white, #fff);
	border: 1px solid var(--color-border, #e8e1d6);
	border-radius: 14px;
	padding: 32px 30px 28px;
	box-shadow: var(--shadow-sm);
}

.sx-maison__logo {
	height: 44px;
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.sx-maison__logoimg {
	height: 40px;
	width: auto;
	max-width: 168px;
	object-fit: contain;
	display: block;
}

.sx-maison__logotext {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-size: 26px;
	font-weight: 600;
	color: var(--text-strong, #1f1d18);
	line-height: 1;
}

.sx-maison__name {
	display: block;
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-size: 25px;
	font-weight: 600;
	color: var(--text-strong, #1f1d18);
	line-height: 1.1;
}

.sx-maison__tag {
	display: block;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--clay-600, #b8552f);
	font-weight: 700;
	margin: 6px 0 12px;
}

.sx-maison__blurb {
	display: block;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted, #6b6557);
	margin: 0 0 16px;
}

.sx-maison__more {
	font-weight: 700;
	font-size: 13px;
	color: var(--slate-800, #2a2f45);
	display: inline-flex;
	gap: 7px;
	align-items: center;
}

/* ==========================================================================
   Editorial band ("We choose the glass. They blow it.")
   ========================================================================== */
.sx-editorial {
	padding-bottom: 90px;
	padding-top: 72px;
}

.sx-editorial__card {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	border-radius: 16px;
	overflow: hidden;
	background: var(--sand-50, #faf6ef);
	border: 1px solid var(--color-border, #e8e1d6);
}

.sx-editorial__media {
	min-height: 380px;
	position: relative;
	background: var(--slate-900, #14130f);
}

.sx-editorial__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sx-editorial__body {
	padding: 52px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sx-editorial__heading {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-weight: 500;
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--text-strong, #1f1d18);
	margin: 16px 0 18px;
}

.sx-editorial__body .sx-sec__eyebrow {
	margin-bottom: 0;
}

.sx-editorial__copy {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--text-muted, #6b6557);
	margin: 0 0 26px;
}

.sx-editorial__cta {
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	color: var(--slate-800, #2a2f45);
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

/* ── Responsive: tablet / mobile ────────────────────────────────────────── */
@media (max-width: 980px) {
	.sx-editorial__body {
		padding: 40px 30px;
	}

	.sx-editorial__media {
		min-height: 260px;
	}
}

@media (max-width: 600px) {
	.sx-sec {
		padding: 48px 20px 24px;
	}

	.sx-home .sx-feat + .sx-sec {
		padding-top: 56px;
	}

	.sx-sale__inner {
		padding: 48px 20px;
	}

	.sx-feat__inner {
		padding: 20px;
	}
}
