/* wp-content/themes/mimgold/assets/css/home.css
   Home page sections only. Tokens come from base.css. */

/* Home page only: desktop section gap 70px instead of 50px (client request). */
@media (min-width: 1024px) {
	:root { --section-space: 70px; }
}

/* ============================== Hero ============================== */
.hero { background: var(--sand); }
.hero__swiper { position: relative; overflow: hidden; }
.hero__slide {
	position: relative;
	height: min(76svh, 640px);
	min-height: 460px;
	overflow: hidden;
}
.hero__media { display: grid; height: 100%; }
.hero__pane { position: relative; overflow: hidden; height: 100%; }
.hero__pane--2 { display: none; }
.hero__img, .hero__pane .ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.08);
	transition: transform 6s var(--ease);
}
/* Placeholder tones dark enough for the white hero copy (replaced by real photos). */
.hero__pane .ph { background: linear-gradient(160deg, #b8a691, #8d7b67 80%); color: rgba(255, 255, 255, .35); }
.hero__pane--2 .ph { background: linear-gradient(200deg, #a8957f, #7c6b59 80%); }
.hero__pane .ph svg { display: none; }
.swiper-slide-active .hero__img,
.swiper-slide-active .hero__pane .ph { transform: none; }

.hero__copy {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px var(--container-pad) 88px;
	text-align: center;
	color: #fff;
}
.hero__copy::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(60% 55% at 50% 50%, rgba(29, 37, 32, .32), rgba(29, 37, 32, 0) 72%);
}
.hero__copy .eyebrow { color: #fff; margin: 0; }
.hero__title {
	max-width: 18ch;
	text-wrap: balance;
	font-size: 26px; /* smaller + bold (client request) */
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
}
@media (min-width: 768px) { .hero__title { font-size: 34px; } }
@media (min-width: 1024px) { .hero__title { font-size: 42px; } }
.hero__text { max-width: 44ch; font-size: var(--fs-body); opacity: .92; }
.hero__copy > * {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.swiper-slide-active .hero__copy > * { opacity: 1; transform: none; }
.swiper-slide-active .hero__copy > :nth-child(2) { transition-delay: .12s; }
.swiper-slide-active .hero__copy > :nth-child(3) { transition-delay: .22s; }
.swiper-slide-active .hero__copy > :nth-child(4) { transition-delay: .32s; }
.hero__copy .btn { margin-block-start: 10px; }

.hero__nav {
	position: absolute;
	inset-inline: 0;
	bottom: 22px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	color: #fff;
}
.hero__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: background-color .3s var(--ease);
}
.hero__arrow:hover { background: rgba(255, 255, 255, .16); }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button {
	position: relative;
	width: 34px;
	height: 20px;
}
.hero__dots button::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1px;
	background: rgba(255, 255, 255, .45);
}
.hero__dots button::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1px;
	background: #fff;
	transform: scaleX(0);
	transform-origin: right;
}
.hero__dots .is-active::after { animation: mimg-progress var(--hero-delay, 6s) linear forwards; }
@keyframes mimg-progress { to { transform: scaleX(1); } }

/* Dark copy for light photos */
.hero__slide--dark .hero__copy,
.hero__slide--dark .hero__title,
.hero__slide--dark .hero__copy .eyebrow { color: var(--ink); }
.hero__slide--dark .hero__copy::before { background: radial-gradient(60% 55% at 50% 50%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 72%); }
.hero__slide--dark .hero__copy .btn--light { background: var(--ink); color: #fff; }
.hero__slide--dark .hero__copy .btn--light:hover { background: var(--green); }

/* Side-aligned copy (desktop): text block near one edge, scrim fades from that edge. */
@media (min-width: 1024px) {
	.hero__slide--start .hero__copy,
	.hero__slide--end .hero__copy {
		align-items: flex-start;
		text-align: start;
		padding-inline: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
	}
	.hero__slide--end .hero__copy { align-items: flex-end; text-align: end; }
	.hero__slide--start .hero__title,
	.hero__slide--end .hero__title { max-width: 16ch; }
	.hero__slide--start .hero__text,
	.hero__slide--end .hero__text { max-width: 32ch; }
	.hero__slide--start .hero__copy::before { background: linear-gradient(to left, rgba(29, 37, 32, .45), rgba(29, 37, 32, 0) 55%); }
	.hero__slide--end .hero__copy::before { background: linear-gradient(to right, rgba(29, 37, 32, .45), rgba(29, 37, 32, 0) 55%); }
	.hero__slide--dark.hero__slide--start .hero__copy::before { background: linear-gradient(to left, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 50%); }
	.hero__slide--dark.hero__slide--end .hero__copy::before { background: linear-gradient(to right, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 50%); }
}

@media (min-width: 768px) {
	.hero__slide { height: min(82vh, 760px); }
	.hero__slide--two .hero__media { grid-template-columns: 1fr 1fr; }
	.hero__slide--two .hero__pane--2 { display: block; }
	.hero__slide--two .hero__pane + .hero__pane { border-inline-start: 1px solid rgba(255, 255, 255, .25); }
}

/* Stories styles live in base.css (shared with the magazine). */
/* ============================== Categories (arches) ============================== */
.cats__grid { display: grid; gap: 32px; }
.cats__intro { position: relative; display: grid; justify-items: start; gap: 6px; }
.cats__mark {
	position: absolute;
	inset-inline-end: 0;
	top: -30px;
	font-size: 130px;
	line-height: 1;
	color: var(--canvas);
	z-index: -1;
	pointer-events: none;
}
.cats__title { font-size: var(--fs-h2); }
.cats__text { color: var(--muted); max-width: 36ch; margin-block-end: 6px; }

.cats__list {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	margin-inline: calc(var(--container-pad) * -1);
	padding-inline: var(--container-pad);
}
.cats__list::-webkit-scrollbar { display: none; }
.cats__item { flex: 0 0 62%; scroll-snap-align: start; }

.arch { display: grid; gap: 14px; justify-items: center; }
.arch__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 999px 999px 0 0;
	background: var(--canvas);
}
.arch__img, .arch__frame .ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}
.arch__line {
	position: absolute;
	inset: 12px 12px 0;
	border: 1px solid rgba(255, 255, 255, .75);
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
	transition: inset .9s var(--ease);
	pointer-events: none;
}
.arch:hover .arch__img, .arch:hover .arch__frame .ph { transform: scale(1.06); }
.arch:hover .arch__line { inset: 22px 22px 0; }
.arch__title { font-size: var(--fs-h3); transition: color .3s; }
.arch:hover .arch__title { color: var(--gold); }

@media (min-width: 768px) {
	.cats__item { flex-basis: 38%; }
}
@media (min-width: 1024px) {
	.cats__grid { grid-template-columns: minmax(240px, 1fr) 3.4fr; gap: 48px; align-items: start; }
	.cats__intro { padding-block-start: 50px; } /* scrolls with the page (no sticky, client request) */
	.cats__mark { font-size: 200px; top: -60px; inset-inline-end: auto; inset-inline-start: -10px; }
	.cats__list {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
		overflow: visible;
		margin: 0;
		padding: 0;
	}
	.cats__item:nth-child(even) { margin-block-start: 72px; }
}

/* ============================== Product slider ============================== */
.pslider { overflow: hidden; }
.pslider .swiper-slide { height: auto; }

/* ============================== Trust ============================== */
/* Warm plate + hairline gold curves in two corners + a single stem above the heading. */
.trust { position: relative; isolation: isolate; overflow: hidden; background: var(--canvas); }
.trust.section { padding-block-start: 20px; } /* little air above the flower */
.trust__head { display: grid; justify-items: center; gap: 6px; margin-block-end: 26px; }
.trust__stem { width: 64px; height: auto; }
.trust__heading {
	text-align: center;
	font-size: var(--fs-h2);
	color: var(--ink);
}
.trust__list { display: grid; grid-template-columns: 1fr 1fr; }
.trust__item {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 8px;
	padding: 22px 12px;
	text-align: center;
}
.trust__item:nth-child(even) { border-inline-start: 1px solid var(--line); }
.trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
/* Icon inside a hairline arch (echoes the arch category tiles). */
.trust__icon {
	display: grid;
	place-items: center;
	width: 62px;
	height: 74px;
	margin-block-end: 6px;
	border: 1px solid rgba(173, 138, 85, .55);
	border-radius: 999px 999px 4px 4px;
	color: var(--gold);
	transition: background-color .5s var(--ease), transform .5s var(--ease);
}
.trust__item:hover .trust__icon { background: #fff; transform: translateY(-3px); }
.trust__title { font-size: var(--fs-h3); font-weight: 700; }
.trust__text { font-size: var(--fs-small); color: var(--muted); max-width: 26ch; }
@media (min-width: 1024px) {
	.trust__list { grid-template-columns: repeat(4, 1fr); }
	.trust__item { padding: 10px 28px; }
	.trust__item:nth-child(n+3) { border-top: 0; }
	.trust__item + .trust__item { border-inline-start: 1px solid var(--line); }
	.trust__stem { width: 78px; }
}

/* ============================== Feature collection slider ============================== */
.feat.section { padding-block-start: 0; } /* full-width band, directly under the section above */
.feat__band { position: relative; overflow: hidden; background: var(--sand); }
/* Full-bleed band; the slide content keeps the container width. */
.feat__grid { max-width: calc(var(--container-max) - 2 * var(--container-pad)); margin-inline: auto; }
.feat__swiper { position: relative; }
.feat__slide {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 28px 20px 32px;
	background: var(--sand);
}
.feat__bg { position: absolute; inset: 0; z-index: -1; }
.feat__bg-img { width: 100%; height: 100%; object-fit: cover; }
.feat__grid { display: grid; gap: 22px; }
.feat__small { display: none; }
.feat__main { aspect-ratio: 4 / 5; overflow: hidden; }
.feat__small .feat__img, .feat__small .ph,
.feat__main .feat__img, .feat__main .ph { width: 100%; height: 100%; object-fit: cover; }
.feat__copy { display: grid; justify-items: start; gap: 10px; }
.feat__title { font-size: var(--fs-h2); line-height: 1.4; }
.feat__text { color: var(--ink-2); max-width: 36ch; margin-block-end: 10px; }
.feat__slide--light .feat__copy,
.feat__slide--light .feat__title,
.feat__slide--light .feat__text,
.feat__slide--light .eyebrow { color: #fff; }
.feat__slide--light .feat__title,
.feat__slide--light .feat__text,
.feat__slide--light .eyebrow { text-shadow: 0 1px 14px rgba(29, 37, 32, .28); }

/* Entry motion of the active slide */
.feat__slide .feat__main,
.feat__slide .feat__small,
.feat__slide .feat__copy > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.feat__slide.swiper-slide-active .feat__main,
.feat__slide.swiper-slide-active .feat__small,
.feat__slide.swiper-slide-active .feat__copy > * { opacity: 1; transform: none; }
.feat__slide.swiper-slide-active .feat__small { transition-delay: .15s; }
.feat__slide.swiper-slide-active .feat__copy > :nth-child(2) { transition-delay: .25s; }
.feat__slide.swiper-slide-active .feat__copy > :nth-child(3) { transition-delay: .32s; }
.feat__slide.swiper-slide-active .feat__copy > :nth-child(4) { transition-delay: .4s; }

.feat__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 64px;
	margin-top: -32px;
	color: var(--ink);
	opacity: .7;
	transition: opacity .3s, transform .4s var(--ease);
}
.feat__arrow:hover { opacity: 1; }
.feat__arrow--prev { inset-inline-start: max(4px, calc(var(--container-pad) - 44px)); }
.feat__arrow--next { inset-inline-end: max(4px, calc(var(--container-pad) - 44px)); }
.feat__arrow--prev:hover { transform: translateX(3px); }
.feat__arrow--next:hover { transform: translateX(-3px); }
.feat__arrow .ico { stroke-width: 1; }
@media (max-width: 767px) {
	.feat__arrow { top: 34%; width: 40px; }
	.feat__arrow .ico { width: 30px; height: 30px; }
}

@media (min-width: 768px) {
	.feat__slide { padding: 40px var(--container-pad); }
	.feat__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
}
@media (min-width: 1024px) {
	.feat__slide { padding: 50px var(--container-pad) 0; }
	.feat__main { margin-block-end: -1px; }
	.feat__grid { grid-template-columns: 1fr 1.2fr 1fr; gap: 0; align-items: end; }
	.feat__small {
		display: block;
		align-self: center;
		justify-self: end;
		width: 82%;
		aspect-ratio: 4 / 5;
		padding: 8px;
		background: #fff;
		position: relative;
		z-index: 1;
		margin-inline-end: -40px;
		box-shadow: var(--shadow-soft);
	}
	.feat__main { aspect-ratio: 4 / 5; }
	.feat__copy { align-self: center; padding-inline-start: 48px; }
	.feat__title { font-size: 26px; }
}
/* ============================== Collections (tabs) ============================== */
.tabs {
	display: flex;
	justify-content: center;
	gap: 6px 26px;
	flex-wrap: wrap;
	margin-block: -8px 32px;
}
.tabs__btn {
	position: relative;
	min-height: 44px;
	font-size: var(--fs-small);
	color: var(--muted);
	transition: color .3s;
}
.tabs__btn::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 6px;
	height: 1px;
	background: var(--ink);
	transform: scaleX(0);
	transition: transform .5s var(--ease);
}
.tabs__btn[aria-selected="true"] { color: var(--ink); }
.tabs__btn[aria-selected="true"]::after { transform: scaleX(1); }
.coll__panel { animation: mimg-fade .6s var(--ease); }

.pgrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px 14px;
}
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 36px var(--gap); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.coll__more { display: flex; justify-content: center; margin-block-start: 30px; }

/* ============================== Budget ============================== */
/* Same band as "Why Mim Gold" (.trust classes); gold bars instead of the flower, number inside the arch. */
.budget__gold { width: 92px; height: auto; margin-block-end: 6px; }
.budget__img { width: 84px; height: 84px; object-fit: contain; margin-block-end: 6px; }
.budget__text { max-width: 62ch; text-align: center; font-size: var(--fs-small); color: var(--muted); }
.budget__item { position: relative; }
.budget__index { font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.budget .trust__title a::after { content: ""; position: absolute; inset: 0; } /* whole column is clickable */
.budget__go { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 6px; padding-block-end: 2px; border-bottom: 1px solid var(--line-strong); font-size: var(--fs-tiny); color: var(--ink-2); transition: border-color .4s, color .4s; }
.budget__go .ico { transition: transform .5s var(--ease); }
.budget__item:hover .budget__go { color: var(--ink); border-color: var(--ink); }
.budget__item:hover .budget__go .ico { transform: translateX(-4px); }

/* Gold bars ornament: warm gold faces, a soft shine and a twinkling sparkle. */
.orn--gold .bar-front { fill: #d6aa4f; stroke: #9c7428; stroke-width: .8; }
.orn--gold .bar-top { fill: #f2d68c; stroke: #9c7428; stroke-width: .8; }
.orn--gold .bar-shine { stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; stroke-linecap: round; }
.orn--gold .sparkle { fill: #e9c46a; transform-box: fill-box; transform-origin: center; animation: mimg-twinkle 2.4s ease-in-out infinite; }
@keyframes mimg-twinkle {
	0%, 100% { opacity: .3; transform: scale(.6) rotate(0deg); }
	50% { opacity: 1; transform: scale(1) rotate(45deg); }
}
.js .reveal .orn--gold :is(.bar-front, .bar-top, .bar-shine) { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal .orn--gold :is(.bar-front, .bar-top):nth-of-type(n+5) { transition-delay: .25s; } /* top bar lands last */
.js .reveal.is-in .orn--gold :is(.bar-front, .bar-top, .bar-shine) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.orn--gold .sparkle { animation: none; opacity: 1; }
	.js .reveal .orn--gold :is(.bar-front, .bar-top, .bar-shine) { opacity: 1; transform: none; transition: none; }
}
@media (min-width: 1024px) {
	.budget__gold { width: 108px; }
}

/* ============================== Promos ============================== */
.promos__grid { display: grid; gap: 16px; }
.promo {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: var(--canvas);
}
.promo__img, .promo .ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}
.promo:nth-child(even) .ph { background: linear-gradient(200deg, var(--taupe), var(--canvas) 80%); }
.promo:hover .promo__img, .promo:hover .ph { transform: scale(1.05); }
.promo__copy {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 6px;
	padding: 24px;
}
.promo--light .promo__copy { color: #fff; background: linear-gradient(0deg, rgba(29, 37, 32, .45), rgba(29, 37, 32, 0) 60%); }
.promo--dark .promo__copy { color: var(--ink); }
.promo__eyebrow { font-size: var(--fs-tiny); opacity: .85; }
.promo__title { font-size: 24px; line-height: 1.4; }
.promo__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-block-start: 8px;
	padding-block: 4px;
	font-size: var(--fs-small);
	border-bottom: 1px solid currentColor;
}
.promo__btn .ico { transition: transform .5s var(--ease); }
.promo:hover .promo__btn .ico { transform: translateX(-5px); }
@media (min-width: 768px) {
	.promos__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
	.promo__copy { padding: 30px; }
	.promo__title { font-size: 30px; }
}

/* ============================== Brands ============================== */
.brands { border-block: 1px solid var(--line); }
.brands__title { text-align: center; font-size: var(--fs-small); color: var(--gold); margin-block-end: 22px; }
.brands__swiper .swiper-wrapper { transition-timing-function: linear !important; }
.brands__swiper .swiper-slide { width: auto; }
.brands__item {
	display: grid;
	place-items: center;
	height: 72px;
	padding-inline: 18px;
}
.brands__logo { max-height: 52px; width: auto; filter: grayscale(1); opacity: .6; transition: opacity .4s, filter .4s; }
.brands__item:hover .brands__logo { filter: none; opacity: 1; }
.brands__name { font-size: 22px; color: var(--muted); white-space: nowrap; transition: color .3s; }
.brands__item:hover .brands__name { color: var(--ink); }
@media (min-width: 1024px) { .brands__item { padding-inline: 34px; } .brands__name { font-size: 26px; } }

/* ============================== Magazine ============================== */
/* Grid styles (.mag__grid, .mag-feature, .mag__quad, .mag-tile) live in base.css (shared with the magazine page). */
/* SEO box styles live in base.css (shared with shop archives). */

/* ============================== FAQ (single column over background image) ============================== */
.faq {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--section-space);
	background: var(--canvas);
}
.faq__bg { position: absolute; inset: 0; z-index: -1; }
.faq__bg-img { width: 100%; height: 100%; object-fit: cover; }
.faq__panel {
	max-width: 860px;
	margin-inline: auto;
	padding: 32px 20px 26px;
	background: rgba(255, 255, 255, .9);
	border: 1px solid rgba(255, 255, 255, .7);
	box-shadow: var(--shadow-soft);
}
.faq:not(.faq--bg) .faq__panel { background: #fff; }
.faq__title { text-align: center; margin-block-end: 22px; }
.faq__help { text-align: center; color: var(--muted); font-size: var(--fs-small); margin-block-start: 22px; }
.faq__help a { color: var(--ink); font-weight: 700; }
@media (min-width: 768px) {
	.faq__panel { padding: 50px; }
	.faq__title { margin-block-end: 30px; }
}
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding-block: 14px;
	cursor: pointer;
	list-style: none;
	font-size: var(--fs-body);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__sign { position: relative; flex: none; width: 14px; height: 14px; }
.faq__sign::before, .faq__sign::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1.5px;
	background: currentColor;
	transition: transform .4s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0); }
.faq__a { padding-block-end: 20px; color: var(--ink-2); font-size: var(--fs-small); max-width: 70ch; }
.faq__item[open] .faq__a { animation: mimg-rise-in .5s var(--ease); }
