/* ==========================================================
   Homepage sections
   ========================================================== */

/* ---------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 65vh;
	display: flex;
	align-items: center;
	background:
		radial-gradient(ellipse 65% 55% at 12% 88%, rgba(201, 169, 110, 0.18) 0%, transparent 100%),
		radial-gradient(ellipse 55% 65% at 88% 8%,  rgba(224, 220, 214, 0.55) 0%, transparent 100%),
		radial-gradient(ellipse 50% 45% at 68% 78%, rgba(245, 240, 232, 0.65) 0%, transparent 100%),
		radial-gradient(ellipse 60% 40% at 35% 5%,  rgba(255, 255, 255, 0.95) 0%, transparent 100%),
		linear-gradient(150deg, #fafaf8 0%, #f5f0e8 60%, #ede8de 100%);
	overflow: hidden;
}

/* Logo watermark — behind everything */
.hero::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	aspect-ratio: 564 / 101;
	background-image: url('../img/miralfashion-logo.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.10;
	pointer-events: none;
	z-index: 0;
}

.hero__noise {
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	pointer-events: none;
}

.hero__blob {
	display: none; /* mesh gradient replaces the blob */
}

.hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-block: var(--sp-4xl);
	position: relative;
	z-index: 1;
	width: 100%;
}

.hero__content {
	max-width: 680px;
	margin-inline: auto;
}

.hero__label {
	display: inline-block;
	font-family: var(--f-accent);
	font-style: italic;
	font-size: var(--fs-lg);
	color: var(--c-text-muted);
	letter-spacing: 0.1em;
	margin-bottom: var(--sp-md);
}

.hero__title {
	font-family: var(--f-display);
	font-size: var(--fs-hero);
	font-weight: 400;
	line-height: 1.1;
	margin-bottom: var(--sp-lg);
}

.hero__title em {
	font-style: italic;
	color: var(--c-accent);
}

.hero__text {
	font-size: var(--fs-lg);
	color: var(--c-text-2);
	max-width: 560px;
	margin-inline: auto;
	margin-bottom: var(--sp-2xl);
}

.hero__actions {
	display: flex;
	gap: var(--sp-md);
	flex-wrap: wrap;
	justify-content: center;
}

/* ---- Two-column variant: content left, square video right (hero video set) ---- */
.hero--with-media .hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) min(42vw, 460px);
	align-items: center;
	gap: clamp(var(--sp-2xl), 5vw, var(--sp-4xl));
	text-align: left;
}

.hero--with-media .hero__content {
	max-width: 600px;
	margin-inline: 0;
}

.hero--with-media .hero__label,
.hero--with-media .hero__text {
	margin-inline: 0;
}

.hero--with-media .hero__actions {
	justify-content: flex-start;
}

/* Square (1:1) video frame */
.hero__media {
	position: relative;
	width: 100%;
	margin: 0;
}

.hero__media-frame {
	position: relative;
	z-index: 1;
	aspect-ratio: 1 / 1;
	border-radius: var(--r-xl);
	overflow: hidden;
	box-shadow: var(--sh-lg);
	background: var(--c-marble-light);
}

.hero__media-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Decorative thin-stroke ring, offset behind the frame (house style) */
.hero__media::after {
	content: '';
	position: absolute;
	z-index: 0;
	inset: 0;
	transform: translate(16px, 16px);
	border: 1px solid var(--c-gold);
	border-radius: var(--r-xl);
	opacity: 0.45;
	pointer-events: none;
}

@media (max-width: 768px) {
	.hero {
		min-height: 55vh;
	}

	.hero__inner {
		padding-block: var(--sp-3xl);
	}

	.hero::before {
		width: 95%;
	}

	/* Hero video stacks below the centered content on mobile */
	.hero--with-media .hero__inner {
		grid-template-columns: 1fr;
		text-align: center;
		gap: var(--sp-2xl);
	}

	.hero--with-media .hero__content,
	.hero--with-media .hero__label,
	.hero--with-media .hero__text {
		margin-inline: auto;
	}

	.hero--with-media .hero__actions {
		justify-content: center;
	}

	.hero--with-media .hero__media {
		width: min(360px, 100%);
		margin-inline: auto;
	}

	.hero--with-media .hero__media::after {
		display: none;
	}
}

/* ---------------------------------------------------------------
   Featured Categories
   ------------------------------------------------------------- */
.featured-cats {
	background: var(--c-white);
}

.featured-cats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 170px));
	gap: var(--sp-md);
	justify-content: center;
}

.cat-card {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: var(--r-lg);
	overflow: hidden;
}

.cat-card__image-wrap {
	width: 100%;
	height: 100%;
}

.cat-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease-out);
}

.cat-card:hover .cat-card__image-wrap img {
	transform: scale(1.06);
}

.cat-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--sp-md);
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
	transition: background var(--dur-normal);
}

.cat-card:hover .cat-card__overlay {
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
}

.cat-card__name {
	font-family: var(--f-display);
	font-size: var(--fs-lg);
	color: var(--c-white);
	margin-bottom: var(--sp-xs);
}

.cat-card__count {
	font-family: var(--f-accent);
	font-style: italic;
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
	.featured-cats__grid {
		grid-template-columns: repeat(3, minmax(150px, 170px));
	}
}

@media (max-width: 480px) {
	.featured-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------
   Featured Products
   ------------------------------------------------------------- */
.featured-products {
	background:
		linear-gradient(180deg, var(--c-ivory) 0%, var(--c-marble-light) 100%);
}

.featured-products__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--grid-gap);
}

.featured-products__footer {
	margin-top: var(--sp-3xl);
}

@media (max-width: 1024px) {
	.featured-products__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.featured-products__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.featured-products__grid {
		display: flex;
		gap: var(--sp-md);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: var(--sp-md);
		-webkit-overflow-scrolling: touch;
	}

	.featured-products__grid .product-card {
		flex: 0 0 75%;
		scroll-snap-align: start;
	}
}

/* ---------------------------------------------------------------
   Brand Story
   ------------------------------------------------------------- */
.brand-story {
	background:
		linear-gradient(135deg, var(--c-white) 0%, var(--c-ivory-dark) 100%);
}

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

.brand-story__image-wrap {
	position: relative;
}

.brand-story__shape {
	position: absolute;
	top: -20px;
	left: -20px;
	width: 65%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--c-ivory-dark);
	z-index: 0;
}

.brand-story__image {
	position: relative;
	z-index: 1;
	border-radius: var(--r-lg);
	overflow: hidden;
}

.brand-story__img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
}

.brand-story__placeholder {
	aspect-ratio: 3 / 4;
	background: linear-gradient(135deg, var(--c-ivory), var(--c-marble-light));
	border-radius: var(--r-lg);
}

.brand-story__title {
	font-family: var(--f-display);
	font-size: var(--fs-3xl);
	margin-bottom: var(--sp-xl);
}

.brand-story__text {
	font-size: var(--fs-lg);
	color: var(--c-text-2);
	margin-bottom: var(--sp-lg);
}

.brand-story__content .btn {
	margin-top: var(--sp-md);
}

@media (max-width: 768px) {
	.brand-story__grid {
		grid-template-columns: 1fr;
		gap: var(--sp-2xl);
	}

	.brand-story__img {
		aspect-ratio: 1 / 1;
	}
}

/* ---------------------------------------------------------------
   Newsletter
   ------------------------------------------------------------- */
.newsletter {
	background: var(--c-gold-light);
}

.newsletter__inner {
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
}

.newsletter__title {
	font-family: var(--f-display);
	font-size: var(--fs-3xl);
	margin-bottom: var(--sp-md);
}

.newsletter__text {
	font-size: var(--fs-lg);
	color: var(--c-text-2);
	margin-bottom: var(--sp-2xl);
}

.newsletter__input-group {
	display: flex;
	gap: var(--sp-sm);
	max-width: 480px;
	margin-inline: auto;
}

.newsletter__input {
	flex: 1;
}

.newsletter__fine-print {
	font-size: var(--fs-xs);
	color: var(--c-text-muted);
	margin-top: var(--sp-md);
}

@media (max-width: 480px) {
	.newsletter__input-group {
		flex-direction: column;
	}
}
