/**
 * IMPERVORA -- Stuller customization experience pages.
 *
 * Page-scoped: every rule sits under .impervora-sx so nothing here can reach
 * another template. Colours are the existing IMPERVORA palette only --
 * #C6A667 systemic UI gold, #0E0E0E ink, #F7F3EC warm ground, #D8D5D0 rules.
 * The brand name is NEVER coloured here: impervora_lux_global_brand_gold()
 * already gilds IMPERVORA inside headings via the_content. Do not restate it.
 *
 * Fonts are inherited (Cormorant Garamond display, Jost sans) -- no @font-face.
 */

.impervora-sx .sx {
	--sx-gold: #c6a667;
	--sx-gold-deep: #b08f4e;
	--sx-ink: #0e0e0e;
	--sx-body: #3a3a3a;
	--sx-soft: #7a7772;
	--sx-ground: #f7f3ec;
	--sx-rule: #d8d5d0;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px 64px;
	color: var(--sx-body);
}

/* ---------------------------------------------------------------- hero -- */
.impervora-sx .sx-hero {
	padding: 44px 0 30px;
	border-bottom: 1px solid var(--sx-rule);
	margin-bottom: 30px;
}

.impervora-sx .sx-hero__eyebrow {
	font-family: 'Jost', sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sx-gold);
	margin: 0 0 14px;
}

.impervora-sx .sx-hero__title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: clamp(2.1rem, 5.4vw, 3.4rem);
	line-height: 1.08;
	color: var(--sx-ink);
	margin: 0 0 16px;
	text-wrap: balance;
}

.impervora-sx .sx-hero__lede {
	font-size: 1.05rem;
	line-height: 1.65;
	max-width: 62ch;
	margin: 0 0 26px;
}

.impervora-sx .sx-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* -------------------------------------------------------------- buttons -- */
.impervora-sx .sx-btn {
	display: inline-block;
	font-family: 'Jost', sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 15px 30px;
	text-decoration: none;
	border: 1px solid var(--sx-gold);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	min-height: 48px;
	line-height: 1.5;
}

.impervora-sx .sx-btn--primary {
	background: var(--sx-gold);
	color: #fff;
}

.impervora-sx .sx-btn--primary:hover,
.impervora-sx .sx-btn--primary:focus-visible {
	background: var(--sx-gold-deep);
	border-color: var(--sx-gold-deep);
	color: #fff;
}

.impervora-sx .sx-btn--ghost {
	background: transparent;
	color: var(--sx-ink);
}

.impervora-sx .sx-btn--ghost:hover,
.impervora-sx .sx-btn--ghost:focus-visible {
	background: var(--sx-ground);
	border-color: var(--sx-gold-deep);
	color: var(--sx-ink);
}

.impervora-sx .sx-btn:focus-visible {
	outline: 2px solid var(--sx-gold-deep);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- trust -- */
.impervora-sx .sx-trust {
	list-style: none;
	margin: 0 0 34px;
	/* Astra resets list padding with `revert`, so state it explicitly. */
	padding: 18px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 30px;
	border-top: 1px solid var(--sx-rule);
	border-bottom: 1px solid var(--sx-rule);
}

.impervora-sx .sx-trust__item {
	font-family: 'Jost', sans-serif;
	font-size: 0.74rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sx-soft);
	margin: 0;
	padding: 0;
}

.impervora-sx .sx-trust__item::before {
	content: "\2014";
	color: var(--sx-gold);
	margin-right: 8px;
}

/* -------------------------------------------------------------- headings -- */
.impervora-sx .sx-h2 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--sx-ink);
	margin: 0 0 14px;
}

.impervora-sx .sx-h3 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 1.3rem;
	color: var(--sx-ink);
	margin: 0 0 8px;
}

/* ------------------------------------------------------------- hub cards -- */
.impervora-sx .sx-cards {
	display: grid;
	gap: 18px;
	margin: 0 0 44px;
}

@media (min-width: 700px) {
	.impervora-sx .sx-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.impervora-sx .sx-card {
	display: block;
	position: relative;
	padding: 28px 30px 30px;
	border: 1px solid var(--sx-rule);
	background: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.impervora-sx .sx-card:hover,
.impervora-sx .sx-card:focus-visible {
	border-color: var(--sx-gold);
	transform: translateY(-2px);
}

.impervora-sx .sx-card__meta {
	display: block;
	font-family: 'Jost', sans-serif;
	font-size: 0.66rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sx-gold);
	margin-bottom: 10px;
}

.impervora-sx .sx-card__title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--sx-ink);
	margin: 0 0 8px;
}

.impervora-sx .sx-card__desc {
	margin: 0;
	font-size: 0.95rem;
	color: var(--sx-body);
}

.impervora-sx .sx-card__go {
	display: inline-block;
	margin-top: 14px;
	color: var(--sx-gold);
	font-size: 1.1rem;
}

/* --------------------------------------------------------------- builder -- */
.impervora-sx .sx-builder {
	margin: 0 0 40px;
	scroll-margin-top: 90px;
}

.impervora-sx .sx-builder__intro {
	max-width: 66ch;
	margin: 0 0 20px;
}

/*
 * The frame itself is styled by impervora-jewelry-showcase.css. NEVER set a
 * height here: Stuller's parent resizer writes the real height inline and a
 * CSS height fights it.
 */
.impervora-sx .impervora-showcase {
	margin: 0;
}

/* --------------------------------------------------------------- support -- */
.impervora-sx .sx-support {
	display: grid;
	gap: 18px;
	margin: 0 0 28px;
}

@media (min-width: 700px) {
	.impervora-sx .sx-support {
		grid-template-columns: repeat(2, 1fr);
	}
}

.impervora-sx .sx-support__col {
	background: var(--sx-ground);
	padding: 26px 28px;
}

.impervora-sx .sx-support__col p {
	margin: 0 0 16px;
	font-size: 0.95rem;
}

/* ------------------------------------------------------------------ note -- */
.impervora-sx .sx-note {
	font-size: 0.86rem;
	color: var(--sx-soft);
	border-left: 2px solid var(--sx-gold);
	padding: 4px 0 4px 16px;
	margin: 0 0 44px;
	max-width: 72ch;
}

/* ------------------------------------------------------------- education -- */
.impervora-sx .sx-edu {
	margin: 0 0 40px;
}

.impervora-sx .sx-edu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

@media (min-width: 700px) {
	.impervora-sx .sx-edu__list {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 34px;
	}
}

.impervora-sx .sx-edu__list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--sx-rule);
}

.impervora-sx .sx-edu__list a {
	display: block;
	padding: 14px 0;
	color: var(--sx-ink);
	text-decoration: none;
	font-size: 0.98rem;
}

.impervora-sx .sx-edu__list a:hover,
.impervora-sx .sx-edu__list a:focus-visible {
	color: var(--sx-gold-deep);
}

/* ----------------------------------------------------------------- prose -- */
.impervora-sx .sx-prose {
	max-width: 72ch;
	margin: 0 0 44px;
}

.impervora-sx .sx-prose h2 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--sx-ink);
	margin: 0 0 14px;
}

.impervora-sx .sx-prose p {
	margin: 0 0 1.1em;
	line-height: 1.72;
}

/* ------------------------------------------------------------------- faq -- */
.impervora-sx .sx-faq {
	margin: 0 0 20px;
	max-width: 78ch;
}

.impervora-sx .sx-faq__list {
	margin: 0;
	padding: 0;
}

.impervora-sx .sx-faq__q {
	font-family: 'Jost', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	color: var(--sx-ink);
	margin: 22px 0 6px;
	padding-top: 18px;
	border-top: 1px solid var(--sx-rule);
}

.impervora-sx .sx-faq__list > .sx-faq__q:first-child {
	margin-top: 0;
}

.impervora-sx .sx-faq__a {
	margin: 0;
	font-size: 0.96rem;
	line-height: 1.7;
}

/* ---------------------------------------------------------------- motion -- */
@media (prefers-reduced-motion: reduce) {
	.impervora-sx .sx-card,
	.impervora-sx .sx-btn {
		transition: none;
	}

	.impervora-sx .sx-card:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------------- mobile -- */
@media (max-width: 600px) {
	.impervora-sx .sx {
		padding-bottom: 48px;
	}

	.impervora-sx .sx-hero {
		padding: 30px 0 24px;
	}

	.impervora-sx .sx-hero__ctas .sx-btn {
		flex: 1 1 100%;
		text-align: center;
	}

	.impervora-sx .sx-support__col,
	.impervora-sx .sx-card {
		padding: 22px 20px;
	}
}

/*
 * A FLOOR, NOT A HEIGHT -- read the whole comment before changing this.
 *
 * Stuller's builders only initialise once the frame enters the viewport. On
 * these pages the frame sits below a hero, trust strip and intro, so until the
 * shopper scrolls to it the resizer reports a collapsed height (measured at
 * 373px on the band builder at 390px wide). That reads as a broken embed and
 * makes the later expansion a large layout shift.
 *
 * min-height only sets a lower bound: when the resizer reports the real height
 * (4259px on the same page once scrolled to) that value is larger and wins, so
 * this does NOT fight the script the way a fixed `height` would. Never convert
 * this to `height`.
 */
.impervora-sx .sx-builder__floor .impervora-showcase__frame,
.impervora-sx .impervora-showcase__frame {
	min-height: 60vh;
}

@media (min-width: 992px) {
	.impervora-sx .impervora-showcase__frame {
		min-height: 70vh;
	}
}

/* --------------------------------------------------------- front page -- */
/*
 * The homepage feature band. Scoped with .sx-home so it cannot reach the
 * experience pages, and it reuses .sx-card wholesale rather than restating
 * card styling. The section carries .impervora-sx itself because the body
 * class is only added on the experience pages.
 */
.sx-home {
	--sx-gold: #c6a667;
	--sx-gold-deep: #b08f4e;
	--sx-ink: #0e0e0e;
	--sx-body: #3a3a3a;
	--sx-rule: #d8d5d0;
	--sx-ground: #f7f3ec;
	background: var(--sx-ground);
	padding: 56px 20px 60px;
	margin: 0;
}

.sx-home .sx-home__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.sx-home .sx-home__eyebrow {
	font-family: 'Jost', sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sx-gold);
	margin: 0 0 10px;
}

.sx-home .sx-home__title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.12;
	color: var(--sx-ink);
	margin: 0 0 28px;
}

.sx-home .sx-cards--three {
	display: grid;
	gap: 18px;
	margin: 0 0 26px;
}

@media (min-width: 860px) {
	.sx-home .sx-cards--three {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sx-home .sx-card {
	display: block;
	position: relative;
	padding: 26px 26px 28px;
	border: 1px solid var(--sx-rule);
	background: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.sx-home .sx-card:hover,
.sx-home .sx-card:focus-visible {
	border-color: var(--sx-gold);
	transform: translateY(-2px);
}

.sx-home .sx-card__meta {
	display: block;
	font-family: 'Jost', sans-serif;
	font-size: 0.64rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sx-gold);
	margin-bottom: 10px;
}

.sx-home .sx-card__title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 1.4rem;
	line-height: 1.2;
	color: var(--sx-ink);
	margin: 0 0 8px;
}

.sx-home .sx-card__desc {
	margin: 0;
	font-size: 0.94rem;
	color: var(--sx-body);
}

.sx-home .sx-card__go {
	display: inline-block;
	margin-top: 14px;
	color: var(--sx-gold);
	font-size: 1.1rem;
}

.sx-home .sx-home__link {
	display: inline-block;
	font-family: 'Jost', sans-serif;
	font-size: 0.76rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sx-ink);
	border-bottom: 1px solid var(--sx-gold);
	padding-bottom: 3px;
	text-decoration: none;
}

.sx-home .sx-home__link:hover,
.sx-home .sx-home__link:focus-visible {
	color: var(--sx-gold-deep);
	border-bottom-color: var(--sx-gold-deep);
}

@media (prefers-reduced-motion: reduce) {
	.sx-home .sx-card {
		transition: none;
	}

	.sx-home .sx-card:hover {
		transform: none;
	}
}

@media (max-width: 600px) {
	.sx-home {
		padding: 40px 20px 44px;
	}

	.sx-home .sx-card {
		padding: 22px 20px;
	}
}
