/**
 * Homepage — section-specific styles.
 *
 * Loaded only on the front page (see inc/enqueue.php) — nothing here
 * reaches Shop/Product/Cart/Checkout/Account, which keep using
 * woocommerce.css untouched. Builds on tokens/base/layout/components
 * rather than redefining them: every value is a token reference, every
 * primitive (buttons, ratios, grid, section spacing, section-heading,
 * .link) is reused from the existing design system, not duplicated.
 *
 * Section rhythm is deliberate rather than uniform — spacing, background
 * (paper / paper-alt) and hairline dividers vary section-to-section so
 * the page reads as a sequence of editorial "beats" (image moment →
 * curated edit → quiet pause → image moment → close) instead of a flat
 * stack of identical blocks. No motion beyond the restrained hover/focus
 * transitions already defined site-wide — no scroll animation, no 3D.
 */

/* ---------------------------------------------------------------------
   Editorial banner — shared base (Hero + Editorial Campaign)
--------------------------------------------------------------------- */

.editorial-banner {
	position: relative;
}

.editorial-banner__media {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xs);
}

.editorial-banner__eyebrow {
	display: block;
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: var(--ls-eyebrow);
	margin-bottom: var(--space-2xs);
}

.editorial-banner__heading {
	max-width: 18ch;
	margin-bottom: var(--space-sm);
}

.editorial-banner__copy {
	max-width: 42ch;
	margin-bottom: var(--space-md);
}

/* ---------------------------------------------------------------------
   Hero — full-bleed, dominant. Text overlays the image on a soft scrim
   so it reads correctly once real photography replaces the placeholder;
   sized with clamp() rather than a bare vh unit so very short (landscape
   phone) and very tall (large desktop) viewports both stay proportional.
--------------------------------------------------------------------- */

.editorial-banner--hero .editorial-banner__media-slot {
	min-height: clamp(480px, 82vh, 860px);
}

.editorial-banner--hero .editorial-banner__media-slot.ratio-hero {
	aspect-ratio: auto;
}

.editorial-banner--hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(22, 19, 17, 0.55) 0%, rgba(22, 19, 17, 0) 48%);
	pointer-events: none;
}

.editorial-banner--hero .editorial-banner__content {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: var(--space-lg) var(--container-gutter) var(--space-xl);
	color: var(--color-paper);
	pointer-events: none;
}

.editorial-banner--hero .editorial-banner__eyebrow {
	color: rgba(250, 248, 245, 0.8);
}

.editorial-banner--hero .editorial-banner__heading {
	font-size: var(--fs-2xl);
	max-width: 14ch;
}

.editorial-banner--hero .editorial-banner__copy {
	color: rgba(250, 248, 245, 0.85);
}

.editorial-banner--hero .editorial-banner__cta {
	pointer-events: auto;
	background: var(--color-paper);
	color: var(--color-ink);
	border-color: var(--color-paper);
}

.editorial-banner--hero .editorial-banner__cta:hover {
	background: var(--color-accent);
	color: var(--color-accent-ink);
	border-color: var(--color-accent);
}

@media (min-width: 1024px) {
	.editorial-banner--hero .editorial-banner__heading {
		font-size: var(--fs-3xl);
		max-width: 12ch;
	}

	.editorial-banner--hero .editorial-banner__content {
		padding: var(--space-2xl) var(--container-gutter-lg) var(--space-2xl);
	}
}

/* ---------------------------------------------------------------------
   Editorial campaign — asymmetric two-image spread, caption sits below
   the images (not overlaid), so it stays quieter and secondary to Hero.
--------------------------------------------------------------------- */

.editorial-banner--campaign .editorial-banner__media-slot {
	min-height: 0;
}

.editorial-banner--campaign .editorial-banner__content {
	padding: var(--space-md) var(--container-gutter) var(--space-lg);
}

.editorial-banner--campaign .editorial-banner__eyebrow {
	color: var(--color-ink-muted);
}

.editorial-banner--campaign .editorial-banner__heading {
	font-size: var(--fs-xl);
	max-width: 16ch;
	margin-bottom: var(--space-2xs);
}

.editorial-banner--campaign .editorial-banner__copy {
	color: var(--color-ink-muted);
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.editorial-banner--campaign .editorial-banner__media {
		grid-template-columns: 1.4fr 1fr;
		align-items: end;
	}

	.editorial-banner--campaign .editorial-banner__content {
		padding: var(--space-lg) var(--container-gutter-md) var(--space-xl);
	}
}

@media (min-width: 1024px) {
	.editorial-banner--campaign .editorial-banner__heading {
		font-size: var(--fs-2xl);
	}

	.editorial-banner--campaign .editorial-banner__content {
		padding: var(--space-xl) var(--container-gutter-lg) var(--space-2xl);
	}
}

/* ---------------------------------------------------------------------
   Section rhythm — background + spacing per section so transitions
   between sections read as deliberate beats, not a flat repeated stack.
--------------------------------------------------------------------- */

.featured-collection {
	padding-block: var(--space-xl);
}

/* New Arrivals sits directly under Featured Collection with no top
   padding — the two read as one continuous "shop" moment, separated
   from what follows by the full-bleed Editorial Campaign image. */
.new-arrivals {
	padding-top: 0;
}

.editorial-campaign {
	padding-block: 0;
}

.brand-story {
	background: var(--color-paper-alt);
	border-top: var(--border-width) solid var(--color-line);
	padding-block: var(--space-2xl);
}

.best-sellers {
	padding-top: var(--space-2xl);
}

.social-section {
	border-top: var(--border-width) solid var(--color-line);
	padding-block: var(--space-xl);
}

.newsletter-section {
	background: var(--color-paper-alt);
	border-top: var(--border-width) solid var(--color-line);
	padding-block: var(--space-2xl);
}

@media (min-width: 1024px) {
	.featured-collection {
		padding-block: var(--space-2xl);
	}

	.brand-story {
		padding-block: var(--space-3xl);
	}

	.best-sellers {
		padding-top: var(--space-3xl);
	}

	.social-section {
		padding-block: var(--space-2xl);
	}

	.newsletter-section {
		padding-block: var(--space-3xl);
	}
}

/* ---------------------------------------------------------------------
   Featured collection tiles
--------------------------------------------------------------------- */

.collection-tiles {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
}

@media (min-width: 640px) {
	.collection-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.collection-tiles {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-lg);
	}
}

.featured-collection .collection-tile {
	transition: opacity var(--duration-fast) var(--ease);
}

.featured-collection .collection-tile:hover {
	opacity: 0.85;
}

/* ---------------------------------------------------------------------
   Product rails (New Arrivals / Best Sellers) — heading + a quiet
   "Shop all" link share one row; the catalog itself stays editorial
   (image, title, price only) rather than a second Shop page, so
   add-to-cart controls and star ratings are hidden in this context
   only. The actual Shop page/template is untouched.
--------------------------------------------------------------------- */

.product-rail__head,
.social-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-sm);
	margin-bottom: var(--space-lg);
}

.product-rail__head .section-heading,
.social-section__head .section-heading {
	margin-bottom: 0;
}

.product-rail__view-all,
.social-section__cta {
	flex-shrink: 0;
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: var(--ls-eyebrow);
}

.product-rail .section-heading__title,
.social-section .section-heading__title {
	font-size: var(--fs-lg);
}

.product-rail ul.products li.product .woocommerce-loop-product__title {
	font-size: var(--fs-sm);
}

.product-rail ul.products li.product a.button,
.product-rail ul.products li.product .added_to_cart,
.product-rail ul.products li.product .star-rating {
	display: none;
}

/* ---------------------------------------------------------------------
   Brand story — quiet editorial pause between the two "shop" moments.
   Image and copy swap sides at desktop vs. the campaign section above,
   so the page doesn't read as the same two-column layout twice in a row.
--------------------------------------------------------------------- */

.brand-story__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
	align-items: center;
}

.brand-story__media {
	max-width: 420px;
	margin-inline: auto;
}

.brand-story__content {
	text-align: center;
}

.brand-story__heading {
	font-size: var(--fs-xl);
	margin-block: var(--space-2xs) var(--space-sm);
	max-width: 18ch;
	margin-inline: auto;
}

.brand-story__copy {
	color: var(--color-ink-muted);
	max-width: 46ch;
	margin-inline: auto;
}

@media (min-width: 768px) {
	.brand-story__grid {
		grid-template-columns: 1fr 1.1fr;
		gap: var(--space-2xl);
		text-align: left;
	}

	.brand-story__media {
		order: 2;
		max-width: none;
		margin-inline: 0;
	}

	.brand-story__content {
		order: 1;
		text-align: left;
	}

	.brand-story__heading,
	.brand-story__copy {
		margin-inline: 0;
	}
}

@media (min-width: 1024px) {
	.brand-story__heading {
		font-size: var(--fs-2xl);
	}
}

/* ---------------------------------------------------------------------
   Social / Instagram — kept deliberately minimal: a uniform image grid
   and one quiet text link, no boxed button or extra UI.
--------------------------------------------------------------------- */

.social-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-sm);
}

.social-grid__tile {
	min-height: auto;
	padding: var(--space-sm);
}

@media (min-width: 640px) {
	.social-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.social-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

/* ---------------------------------------------------------------------
   Newsletter section — quiet close before the footer; no loud CTA.
--------------------------------------------------------------------- */

.newsletter-section__inner {
	text-align: center;
}

.newsletter-section__heading {
	font-size: var(--fs-lg);
	margin-block: var(--space-2xs) var(--space-sm);
}

.newsletter-section__copy {
	color: var(--color-ink-muted);
	max-width: 46ch;
	margin-inline: auto;
	margin-bottom: var(--space-md);
}

.newsletter-section__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	max-width: 420px;
	margin-inline: auto;
}

.newsletter-section .form-hint {
	text-align: center;
}

@media (min-width: 640px) {
	.newsletter-section__form {
		flex-direction: row;
	}

	.newsletter-section__form input[type="email"] {
		flex: 1;
		min-width: 0;
	}
}

@media (min-width: 1024px) {
	.newsletter-section__heading {
		font-size: var(--fs-xl);
	}
}
