/*
 * Homepage-only styles.
 *
 * Enqueued only when is_front_page() is true (see functions.php), with
 * kyrex-storefront (style.css) as a dependency for the token variables and
 * @font-face rules this file relies on.
 *
 * Rebuilt against the client-approved Framer prototype (2026-08). The
 * earlier "no border-radius anywhere / no pill buttons anywhere" reading of
 * the brand kit was too conservative for this page: the prototype uses
 * restrained rounded corners on cards and chips, filled brass-gold CTA
 * buttons, and fully-rounded pill chips. The "no pill" rule is scoped to the
 * top nav only (styled in style.css) and is untouched here. Catalogue and
 * product page styles (assets/catalogue.css, assets/product.css) are out of
 * scope for this pass and keep their own flat, square-cornered language.
 *
 * Every color below comes from a token defined in style.css — no raw hex in
 * any rule in this file.
 *
 * Responsive rule: single column under 768px, multi-column at/above it.
 * Heading sizes use clamp() exclusively — no fixed px breakpoints for type.
 */

/* ── Shared layout primitives now live in style.css ──────────────────
   .kyrex-container, .kyrex-section, .kyrex-eyebrow, and .kyrex-heading's
   shared typography are defined once in style.css (loaded on every page,
   already a dependency of this file) — do not redefine them here. Only
   this page's spacing override survives locally: homepage headings need
   more breathing room before the grids below, plus a text-wrap width the
   product page's single "Inclusions" heading doesn't need. ───────────── */

.kyrex-heading {
	margin-bottom: 2.5rem;
	max-width: 36rem;
}

/* ── Shared focus ring ─────────────────────────────────────────────
   A two-tone ring (dark outline + light halo) so it reads at 3:1+ contrast
   against either the ivory page background or the dark hero/closing
   overlays. .kyrex-btn and .kyrex-footer__nav a are global components now
   (style.css); their focus-visible ring lives there. Only the
   homepage-only occasion chip keeps its own copy here. ─────────────── */

/* The occasion chip row moved to assets/header.css when header.php began
   rendering it site-wide (Task 5). Its styles had to move with it: homepage.css
   is enqueued on the front page only, so from Task 5 until the Task 7 browser
   pass the chips rendered as a bare bulleted list on every other page. Markup
   and the CSS that shapes it belong to the same scope. */

/* ── Buttons now live in style.css ────────────────────────────────────
   .kyrex-btn / --filled / --outline / --ghost are shared across the
   homepage, 404, and search templates, so the component itself is defined
   once in style.css (loaded on every page, already a dependency of this
   file) — do not redefine it here. ───────────────────────────────────── */

/*
 * FIX 1 — full-bleed hero. Hello Elementor's compiled theme.css ships:
 *   body:not([class*="elementor-page-"]) .site-main { max-width: 1140px; margin-inline: auto; }
 * (assets/css/theme.css, min-width: 1200px tier) which caps #content itself,
 * not just its children — so every section inside, including the hero,
 * was boxed to 1140px with ~150px side gutters instead of running edge to
 * edge. That selector is two classes deep (0,2,1); #content also carries
 * this template's own `.kyrex-homepage` class, and #content is an ID, so
 * `#content.kyrex-homepage` (1,1,0) outranks it regardless of stylesheet
 * order — no !important needed. Scoped to the homepage only: other
 * templates should keep the parent theme's boxed content width.
 */
#content.kyrex-homepage {
	max-width: none;
	margin-inline: 0;
	width: 100%;
}

/* ── 2. Hero — full-bleed placeholder image, directional overlay ─────── */

.kyrex-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 80vh;
	padding-block: clamp(4rem, 10vw, 7rem);
	overflow: hidden;
	color: var(--kyrex-ivory);
}

/*
 * NEEDS REAL IMAGE: .kyrex-hero__media — swap this gradient for
 * `background-image: url(...)` (plus `background-size: cover` /
 * `background-position: center`) once client photography is available.
 * The warm charcoal → wine → gold sweep plus the faint dot motif stand in
 * for a photograph so the layout, overlay, and text contrast can be
 * reviewed before real images exist.
 */
.kyrex-hero__media {
	position: absolute;
	inset: 0;
	background-color: var(--kyrex-charcoal);
	background-image:
		radial-gradient(circle at 18% 24%, rgba(250, 246, 239, 0.07) 0, transparent 45%),
		radial-gradient(circle at 82% 70%, rgba(250, 246, 239, 0.05) 0, transparent 40%),
		linear-gradient(100deg, var(--kyrex-charcoal) 0%, var(--kyrex-wine) 48%, var(--kyrex-gold) 100%);
}

/*
 * Directional overlay — darker at left (behind the text) fading toward the
 * right, rather than a flat tint. Held near-opaque through 72% so both the
 * ivory headline and the gold accent word clear 4.5:1 against the darkest
 * realistic point of the placeholder gradient beneath it.
 */
.kyrex-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(42, 38, 34, 0.92) 0%,
		rgba(42, 38, 34, 0.92) 42%,
		rgba(42, 38, 34, 0.55) 72%,
		rgba(42, 38, 34, 0.15) 100%
	);
}

/*
 * FIX 2 — headline line count. At 38rem (608px) the inner column forced the
 * headline to wrap 4 lines ("Every / Celebration, / Curated to / Perfection")
 * instead of the prototype's 2 ("Every Celebration, Curated to" /
 * "Perfection"). Measured directly against the rendered headline: the
 * "to" only joins the first line once the column clears ~980px, so 62rem
 * (992px, within the client's measured 900–1000px range) was chosen over a
 * narrower value that technically wraps to 2 lines but at the wrong word
 * ("...Curated" / "to Perfection" instead of "...Curated to" / "Perfection").
 * The subhead does NOT inherit this width — it keeps its own narrower
 * max-width: 34rem below — so only the headline gets the wider measure.
 * No media query needed: below 992px the viewport itself becomes the
 * binding constraint, so tablet/mobile wrap to 3–4 lines gracefully.
 */
.kyrex-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 62rem;
}

.kyrex-hero__headline {
	font-family: var(--kyrex-font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.08;
	font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4.5rem);
	margin: 0 0 1.5rem;
	color: var(--kyrex-ivory);
}

.kyrex-hero__headline em {
	font-style: italic;
	color: var(--kyrex-gold);
}

.kyrex-hero__subhead {
	font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
	line-height: 1.6;
	color: var(--kyrex-ivory);
	opacity: 0.88;
	max-width: 34rem;
	margin: 0 0 2.5rem;
}

.kyrex-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* ── 3. Plan by Occasion — three accent cards, rounded corners ───────── */

.kyrex-plan {
	background-color: var(--kyrex-ivory);
}

.kyrex-plan__heading {
	text-align: center;
	margin-inline: auto;
	max-width: 44rem;
}

.kyrex-plan__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.kyrex-plan__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.kyrex-plan-card {
	display: flex;
	flex-direction: column;
	background-color: var(--kyrex-surface);
	border: 1px solid var(--kyrex-border);
	border-top: 3px solid var(--kyrex-accent);
	border-radius: var(--kyrex-radius-lg);
	overflow: hidden;
}

/*
 * NEEDS REAL IMAGE: .kyrex-plan-card__media--anniversary,
 * .kyrex-plan-card__media--haldi-mehendi, .kyrex-plan-card__media--corporate — each
 * swaps its gradient for a `background-image` once photography exists for
 * that occasion. The tint mix uses each card's own accent variable so the
 * placeholder reads as "on brand" rather than generic.
 */
.kyrex-plan-card__media {
	aspect-ratio: 4 / 3;
	background-color: var(--kyrex-border);
	background-image:
		radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.18) 0, transparent 45%),
		linear-gradient(160deg, var(--kyrex-accent) 0%, var(--kyrex-ivory) 140%);
}

.kyrex-plan-card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.kyrex-plan-card__label {
	font-family: var(--kyrex-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--kyrex-accent);
	margin: 0;
}

.kyrex-plan-card__title {
	font-family: var(--kyrex-font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	font-size: 1.375rem;
	line-height: 1.25;
	margin: 0;
	color: var(--kyrex-charcoal);
}

.kyrex-plan-card__title-accent {
	color: var(--kyrex-accent);
}

.kyrex-plan-card__copy {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--kyrex-charcoal-muted);
	margin: 0;
}

/* ── 4. Three-step process ───────────────────────────────────────────── */

.kyrex-process {
	background-color: var(--kyrex-ivory);
}

.kyrex-process__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

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

.kyrex-process__number {
	display: block;
	font-family: var(--kyrex-font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	font-size: clamp(2rem, 1.7rem + 1vw, 2.75rem);
	color: var(--kyrex-gold-deep);
	margin-bottom: 0.75rem;
}

.kyrex-process__title {
	font-family: var(--kyrex-font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	color: var(--kyrex-charcoal);
}

.kyrex-process__copy {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--kyrex-charcoal-muted);
	margin: 0;
	max-width: 22rem;
	margin-inline: auto;
}

/* ── 2. Trust bar — audit baseline 12.11 ─────────────────────────────
   Sits directly under the hero. Replaces a statistics band whose four
   figures were all invented; these are promises the store actually keeps.

   Deliberately quiet: a surface tint and a hairline, no card shadows. It
   has to be readable in the first second without competing with the hero
   above it or the occasion cards below. */

.kyrex-trustbar {
	background-color: var(--kyrex-surface);
	border-block: 1px solid var(--kyrex-border);
	padding-block: 1.25rem;
}

.kyrex-trustbar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem 2rem;
}

@media (min-width: 600px) {
	.kyrex-trustbar__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.kyrex-trustbar__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.kyrex-trustbar__item {
	display: grid;
	grid-template-columns: 1.25rem 1fr;
	gap: 0.625rem;
	align-items: start;
}

.kyrex-trustbar__icon {
	color: var(--kyrex-gold-deep);
	margin-top: 0.0625rem;
}

.kyrex-trustbar__text {
	display: block;
	font-family: var(--kyrex-font-body);
	line-height: 1.45;
}

.kyrex-trustbar__label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--kyrex-charcoal);
}

.kyrex-trustbar__copy {
	display: block;
	font-size: 0.75rem;
	color: var(--kyrex-charcoal-muted);
}

/* The one link in the bar. Underlined by default: it exists so the
   72-hour promise can be checked rather than taken on trust, which only
   works if a visitor can see it is checkable. */
.kyrex-trustbar__link {
	color: var(--kyrex-gold-deep);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	white-space: nowrap;
}

.kyrex-trustbar__link:hover {
	color: var(--kyrex-charcoal);
}

.kyrex-trustbar__link:focus-visible {
	outline: 2px solid var(--kyrex-charcoal);
	outline-offset: 2px;
	border-radius: var(--kyrex-radius-sm);
}

/* ── 6. Testimonials — rounded cards, gold-soft hairline border ─────── */

.kyrex-testimonials {
	background-color: var(--kyrex-ivory);
}

.kyrex-testimonials__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.kyrex-testimonials__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/*
 * Every testimonial card stays visually identical — only the quote mark
 * takes the occasion accent, via the --kyrex-accent custom property set
 * inline per card. The card shell itself never varies.
 */
.kyrex-testimonial-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	background-color: var(--kyrex-surface);
	border: 1px solid var(--kyrex-gold-soft);
	border-radius: var(--kyrex-radius-lg);
	padding: 1.75rem 1.5rem;
}

.kyrex-testimonial-card__mark {
	font-family: var(--kyrex-font-display);
	font-style: italic;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--kyrex-accent);
}

.kyrex-testimonial-card__quote {
	font-family: var(--kyrex-font-display);
	font-style: italic;
	font-weight: 500;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--kyrex-charcoal);
	margin: 0;
}

/* Stars. Gold as a FILL is fine at 2.90:1 — these are decorative glyphs
   with a screen-reader text equivalent beside them, not body copy. */
.kyrex-testimonial-card__rating {
	margin: 0;
	font-size: 0.9375rem;
	letter-spacing: 0.1em;
	color: var(--kyrex-gold);
	line-height: 1;
}

.kyrex-testimonial-card__attribution {
	display: block;
	font-family: var(--kyrex-font-body);
	font-style: normal;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kyrex-charcoal-muted);
}

/* The product the review is about — the thing that makes a quote on a
   homepage checkable rather than decorative. */
.kyrex-testimonial-card__product {
	display: block;
	margin-top: 0.25rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--kyrex-gold-deep);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.kyrex-testimonial-card__product:hover {
	color: var(--kyrex-charcoal);
}

.kyrex-testimonial-card__product:focus-visible {
	outline: 2px solid var(--kyrex-charcoal);
	outline-offset: 2px;
	border-radius: var(--kyrex-radius-sm);
}

/* ── 7. Closing CTA — full-bleed placeholder image, charcoal overlay ─── */

.kyrex-closing {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
	overflow: hidden;
	color: var(--kyrex-ivory);
}

/*
 * NEEDS REAL IMAGE: .kyrex-closing__media — swap for `background-image`
 * once photography exists. Mirrors the hero's warm sweep so the two
 * full-bleed moments feel like one photographic language.
 */
.kyrex-closing__media {
	position: absolute;
	inset: 0;
	background-color: var(--kyrex-charcoal);
	background-image:
		radial-gradient(circle at 50% 30%, rgba(250, 246, 239, 0.06) 0, transparent 55%),
		linear-gradient(20deg, var(--kyrex-wine) 0%, var(--kyrex-charcoal) 55%, var(--kyrex-charcoal) 100%);
}

/* A near-flat, near-opaque overlay is appropriate here (unlike the hero,
   this section is centered text over the full image, not text sitting to
   one side) — still built from the same directional gradient language, just
   with a shallower fade so the photograph is legible at the edges. */
.kyrex-closing__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(42, 38, 34, 0.55) 0%,
		rgba(42, 38, 34, 0.88) 45%,
		rgba(42, 38, 34, 0.88) 100%
	);
}

.kyrex-closing__inner {
	position: relative;
	z-index: 1;
	max-width: 38rem;
	padding-block: clamp(3rem, 8vw, 5rem);
}

.kyrex-closing__heading {
	margin-inline: auto;
	margin-bottom: 1rem;
	color: var(--kyrex-ivory);
}

.kyrex-closing__subhead {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--kyrex-ivory);
	opacity: 0.88;
	margin: 0 0 2rem;
}

/* ── Footer now lives in style.css ────────────────────────────────────
   The branded footer (.kyrex-footer) used to render only on the homepage,
   so its CSS lived here. footer.php now renders it globally (every
   template calls get_footer()), so its component styles moved to
   style.css, which loads on every page — do not redefine it here. ──── */

/*
 * The theme is standalone now — there is no parent stylesheet adding
 * horizontal padding to .site-main, so no override is needed here. Every
 * homepage section still manages its own inline padding via
 * .kyrex-container.
 */


/* Linked occasion cards. The whole card is the hit target via a stretched
   pseudo-element on the title link, so the focus ring lands on the card
   rather than on three words inside it. position:relative on the card is
   what the stretch is measured against. */

.kyrex-plan-card--linked {
	position: relative;
	transition: border-color 150ms ease, transform 150ms ease;
}

.kyrex-plan-card__link {
	color: inherit;
	text-decoration: none;
}

.kyrex-plan-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
}

.kyrex-plan-card--linked:hover {
	border-color: var(--kyrex-accent);
}

.kyrex-plan-card--linked:has(.kyrex-plan-card__link:focus-visible) {
	outline: 2px solid var(--kyrex-charcoal);
	outline-offset: 2px;
}

/* The stretched link swallows the default focus ring, so the card takes it
   instead — and the link itself must not draw a second one. */
.kyrex-plan-card__link:focus-visible {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.kyrex-plan-card--linked {
		transition: none;
	}
}
