/**
 * Homepage sections
 * @package Elmaslar
 */

/* -------------------------------------------------------------------------
   Hero section
   ------------------------------------------------------------------------- */

.hero-section {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	background:
		linear-gradient(135deg, rgba(245, 240, 232, 0.95) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(245, 240, 232, 0.85) 100%);
	overflow: hidden;
}

.hero-section__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
	width: 100%;
	padding-block: 4rem;
}

.hero-section__content {
	max-width: 34rem;
	animation: elmaslarSlideUp 0.8s var(--elmaslar-ease) both;
}

.hero-section__label {
	margin: 0 0 1rem;
	color: var(--elmaslar-color-gold);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	animation: elmaslarFadeIn 0.8s var(--elmaslar-ease) 0.1s both;
}

.hero-section__title {
	margin: 0 0 1.25rem;
	font-family: var(--elmaslar-font-display);
	font-size: clamp(2.25rem, 4.5vw, 4rem);
	font-weight: 600;
	line-height: 1.12;
	color: var(--elmaslar-color-charcoal);
	animation: elmaslarSlideUp 0.8s var(--elmaslar-ease) 0.2s both;
}

.hero-section__subtitle {
	margin: 0 0 2rem;
	max-width: 32rem;
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--elmaslar-color-muted);
	animation: elmaslarSlideUp 0.8s var(--elmaslar-ease) 0.3s both;
}

.hero-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2.5rem;
	animation: elmaslarSlideUp 0.8s var(--elmaslar-ease) 0.4s both;
}

.hero-section__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	animation: elmaslarFadeIn 0.8s var(--elmaslar-ease) 0.55s both;
}

.hero-section__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--elmaslar-color-charcoal);
}

.hero-section__trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: rgba(201, 162, 39, 0.18);
	color: var(--elmaslar-color-deep-red);
	font-size: 0.6875rem;
	font-weight: 700;
}

.hero-section__media {
	animation: elmaslarFadeIn 1s var(--elmaslar-ease) 0.25s both;
}

.hero-section__image {
	position: relative;
	width: 100%;
	min-height: 520px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(26, 26, 26, 0.12);
}

.hero-section__image--placeholder {
	background:
		radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.25) 0%, transparent 45%),
		radial-gradient(circle at 80% 70%, rgba(139, 26, 26, 0.18) 0%, transparent 40%),
		linear-gradient(145deg, #efe7da 0%, #f8f4ed 45%, #e8ddd0 100%);
}

.hero-section__image--placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
		linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
	background-size: 24px 24px;
	background-position: 0 0, 12px 12px;
	opacity: 0.35;
}

.hero-section__image-inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 2rem;
	text-align: center;
}

.hero-section__image-text {
	margin: 0;
	max-width: 16rem;
	color: var(--elmaslar-color-muted);
	font-size: 0.9375rem;
}

.hero-section__image.has-image {
	background: none;
}

.hero-section__image.has-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hero image replacement hook */
.hero-section__image.has-image .hero-section__image-inner {
	display: none;
}

.hero-section__image--picture {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--elmaslar-radius-xl, 16px);
	min-height: clamp(280px, 40vw, 480px);
}

.hero-section__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(44, 36, 25, 0.08) 0%, rgba(44, 36, 25, 0.22) 100%);
	pointer-events: none;
}

.hero-section__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(280px, 40vw, 480px);
	object-fit: cover;
	object-position: center;
}

.hero-gallery {
	position: relative;
}

.hero-gallery__viewport {
	position: relative;
	min-height: clamp(280px, 40vw, 520px);
	border-radius: 12px;
	overflow: hidden;
}

.hero-gallery__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity .65s var(--elmaslar-ease);
	pointer-events: none;
}

.hero-gallery__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.hero-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(280px, 40vw, 520px);
	object-fit: cover;
	object-position: center;
}

.hero-gallery__controls {
	position: absolute;
	inset-inline: 0;
	bottom: 1rem;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	padding-inline: 1rem;
}

.hero-gallery__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--elmaslar-color-charcoal);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(26, 26, 26, 0.12);
}

.hero-gallery__btn:hover,
.hero-gallery__btn:focus-visible {
	background: #fff;
	color: var(--elmaslar-color-deep-red);
}

.hero-gallery__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .375rem;
}

.hero-gallery__dot {
	width: .625rem;
	height: .625rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: transform .2s var(--elmaslar-ease), background-color .2s var(--elmaslar-ease);
}

.hero-gallery__dot.is-active {
	background: #fff;
	transform: scale(1.15);
}

/* -------------------------------------------------------------------------
   Homepage shared section styles
   ------------------------------------------------------------------------- */

.home-section {
	padding-block: 4rem;
}

.home-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.home-section__title {
	margin: 0;
	font-family: var(--elmaslar-font-display);
	font-size: clamp(1.75rem, 3vw, 2.375rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--elmaslar-color-charcoal);
}

.home-section__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--elmaslar-color-deep-red);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: gap 0.25s var(--elmaslar-ease);
}

.home-section__link:hover,
.home-section__link:focus-visible {
	gap: 0.75rem;
	text-decoration: none;
	color: var(--elmaslar-color-deep-red);
}

.home-section__note {
	margin: -1.5rem 0 2rem;
	padding: 0.875rem 1rem;
	border-inline-start: 3px solid var(--elmaslar-color-gold);
	background: rgba(201, 162, 39, 0.08);
	color: var(--elmaslar-color-muted);
	font-size: 0.875rem;
}

.home-categories {
	background: var(--elmaslar-color-white);
}

.home-categories__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(72%, 1fr);
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
}

.home-categories__grid::-webkit-scrollbar {
	display: none;
}

.home-best-sellers {
	background: var(--elmaslar-color-white);
}

.home-best-sellers__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.home-featured {
	background: var(--elmaslar-color-beige);
}

.home-featured__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.home-featured__secondary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

/* -------------------------------------------------------------------------
   Why Choose Elmaslar
   ------------------------------------------------------------------------- */

.home-section__header--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.home-section__demo-label {
	display: inline-block;
	margin: 0.5rem 0 0;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	background: rgba(201, 162, 39, 0.15);
	color: var(--elmaslar-color-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.home-why {
	background: var(--elmaslar-color-white);
}

.home-why__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border: 1px solid var(--elmaslar-color-border);
	border-radius: 12px;
	overflow: hidden;
}

.why-item {
	padding: 2rem 1.5rem;
	text-align: center;
	border-inline-end: 1px solid var(--elmaslar-color-border);
	border-bottom: 1px solid var(--elmaslar-color-border);
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.6s var(--elmaslar-ease),
		transform 0.6s var(--elmaslar-ease);
}

.why-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.why-item:nth-child(2n) {
	border-inline-end: none;
}

.why-item:nth-last-child(-n+2) {
	border-bottom: none;
}

.why-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: rgba(201, 162, 39, 0.1);
	color: var(--elmaslar-color-gold);
}

.why-item__title {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 600;
}

.why-item__text {
	margin: 0;
	color: var(--elmaslar-color-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.home-promo {
	padding-block: 0;
	background: var(--elmaslar-color-deep-red);
	color: var(--elmaslar-color-white);
}

.home-promo__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	padding-block: 3.5rem;
}

.home-promo__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--elmaslar-color-gold);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.home-promo__title {
	margin: 0 0 1rem;
	font-family: var(--elmaslar-font-display);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
}

.home-promo__text {
	margin: 0 0 1.75rem;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.home-promo__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.home-promo__figure {
	position: relative;
	min-height: 280px;
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
}

.home-promo__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	object-position: center;
}

.home-promo__placeholder {
	position: relative;
	min-height: 280px;
	border-radius: 12px;
	overflow: hidden;
	background:
		radial-gradient(circle at 25% 25%, rgba(201, 162, 39, 0.35) 0%, transparent 45%),
		radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.12) 100%);
	border: 1px solid rgba(201, 162, 39, 0.35);
}

[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s var(--elmaslar-ease),
		transform 0.7s var(--elmaslar-ease);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

.home-reviews {
	background: var(--elmaslar-color-beige);
}

.reviews-carousel__viewport {
	overflow: hidden;
	outline: none;
}

.reviews-carousel__track {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.25rem;
}

.review-card {
	padding: 2rem 1.5rem;
	border-radius: 12px;
	background: var(--elmaslar-color-white);
	box-shadow: 0 8px 32px rgba(26, 26, 26, 0.06);
}

.review-card__stars {
	display: flex;
	gap: 0.125rem;
	margin-bottom: 1rem;
	color: var(--elmaslar-color-gold);
	font-size: 1rem;
	line-height: 1;
}

.review-card__quote {
	margin: 0 0 1.25rem;
}

.review-card__quote p {
	margin: 0;
	font-family: var(--elmaslar-font-display);
	font-size: 1.0625rem;
	font-style: italic;
	line-height: 1.7;
	color: var(--elmaslar-color-charcoal);
}

.review-card__author {
	display: block;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	color: var(--elmaslar-color-muted);
}

.reviews-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.reviews-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--elmaslar-color-border);
	border-radius: 50%;
	background: var(--elmaslar-color-white);
	color: var(--elmaslar-color-charcoal);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.reviews-carousel__btn:hover,
.reviews-carousel__btn:focus-visible {
	border-color: var(--elmaslar-color-gold);
	color: var(--elmaslar-color-deep-red);
}

.reviews-carousel__dots {
	display: flex;
	gap: 0.5rem;
}

.reviews-carousel__dot {
	width: 0.625rem;
	height: 0.625rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(26, 26, 26, 0.2);
	cursor: pointer;
}

.reviews-carousel__dot.is-active {
	background: var(--elmaslar-color-deep-red);
}

.reviews-carousel.is-static .reviews-carousel__controls {
	display: none;
}

.home-instagram {
	background: var(--elmaslar-color-white);
}

.home-instagram__handle {
	margin: 0.5rem 0 0;
}

.home-instagram__handle a {
	color: var(--elmaslar-color-deep-red);
	font-weight: 600;
	text-decoration: none;
}

.home-instagram__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.instagram-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.instagram-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
}

.instagram-card__img,
.instagram-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.instagram-card__placeholder {
	background: linear-gradient(145deg, #efe7da 0%, #f8f4ed 100%);
}

.instagram-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem;
	background: rgba(139, 26, 26, 0.72);
	color: var(--elmaslar-color-white);
	opacity: 0;
	transition: opacity 0.35s var(--elmaslar-ease);
}

.instagram-card__link:hover .instagram-card__overlay,
.instagram-card__link:focus-visible .instagram-card__overlay {
	opacity: 1;
}

.instagram-card__caption {
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: center;
}

.home-instagram__cta {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.home-newsletter {
	background: var(--elmaslar-color-deep-red);
	color: var(--elmaslar-color-white);
}

.home-newsletter__inner {
	display: grid;
	gap: 2rem;
	padding-block: 4rem;
}

.home-newsletter__title {
	margin: 0 0 0.75rem;
	font-family: var(--elmaslar-font-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 600;
}

.home-newsletter__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.0625rem;
}

.home-newsletter__form {
	display: grid;
	gap: 0.75rem;
	max-width: 32rem;
}

.home-newsletter__field {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 2px solid transparent;
	border-radius: 4px;
	font: inherit;
}

.home-newsletter__field.is-invalid {
	border-color: #ffb4b4;
}

.home-newsletter__submit {
	width: 100%;
}

.home-newsletter__privacy {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.75);
}

.home-newsletter__message {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 0.9375rem;
}

.home-newsletter__message[hidden] {
	display: none;
}
