/*
 * EVOLUX PORTFOLIO — EMBER ROASTERY (demo "cafea de specialitate / roastery")
 * Temă vizuală: "warm sensory" — crem/maro cald, aburi animați, carusel
 * orizontal cu scroll-snap, subliniere manuscrisă. Al șaselea și ultimul
 * stil distinct din portofoliu. Brand fictiv "EMBER ROASTERY".
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,600;0,700;1,600&family=Karla:wght@400;500;700&display=swap');

:root {
	--em-cream: #FAF3E8;
	--em-cream-deep: #F0E4D0;
	--em-espresso: #3E2723;
	--em-brown: #6F4E37;
	--em-tan: #E8DCC8;
	--em-terracotta: #C1662F;
	--em-terracotta-light: #E08847;
	--em-font-heading: 'Fraunces', serif;
	--em-font-body: 'Karla', sans-serif;
}

.ember * {
	box-sizing: border-box;
}

.ember {
	background-color: var(--em-cream);
	color: var(--em-espresso);
	font-family: var(--em-font-body);
	line-height: 1.65;
	overflow-x: hidden;
}

.ember img {
	max-width: 100%;
	display: block;
}

.ember h1,
.ember h2,
.ember h3 {
	font-family: var(--em-font-heading);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	color: var(--em-espresso);
}

.ember p {
	margin: 0;
}

.ember .container {
	width: 100%;
	max-width: 1160px;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.ember section {
	padding-block: clamp(3.5rem, 8vw, 7rem);
	position: relative;
}

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

/* Subliniere "de mana" sub cuvinte cheie */
.em-underline {
	position: relative;
	display: inline-block;
}

.em-underline::after {
	content: '';
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: -0.15em;
	height: 0.5em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q 25 2 50 12 T 100 12 T 150 12 T 200 12' fill='none' stroke='%23C1662F' stroke-width='4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 100% 100%;
	z-index: -1;
}

/* =========================================================
 * BUTON FLOATING
 * ========================================================= */
.em-back {
	position: fixed;
	top: 1.5rem;
	left: 1.5rem;
	z-index: 100;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	background: rgba(250, 243, 232, 0.85);
	border: 1px solid var(--em-terracotta);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 999px;
	color: var(--em-espresso);
	font-family: var(--em-font-body);
	font-weight: 500;
	font-size: 0.8125rem;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}

.em-back:hover,
.em-back:focus-visible {
	background: var(--em-terracotta);
	color: var(--em-cream);
}

.em-back svg {
	width: 15px;
	height: 15px;
}

.em-brandmark {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 100;
	font-family: var(--em-font-heading);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.06em;
	color: var(--em-cream);
	background: var(--em-espresso);
	padding: 0.5rem 1rem;
	border-radius: 999px;
}

/* =========================================================
 * REVEAL
 * ========================================================= */
.ember [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* =========================================================
 * HERO — video + aburi animati
 * ========================================================= */
.em-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--em-espresso);
}

.em-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	opacity: 0.55;
}

.em-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(40, 24, 20, 0.8) 0%, rgba(40, 24, 20, 0.76) 45%, rgba(40, 24, 20, 0.96) 100%);
}

.em-steam {
	position: absolute;
	z-index: 1;
	bottom: 40%;
	width: 3px;
	border-radius: 4px;
	background: rgba(250, 243, 232, 0.5);
	filter: blur(3px);
	animation: emSteamRise 5s ease-in infinite;
	pointer-events: none;
}

.em-steam--1 { left: 42%; height: 90px; animation-delay: 0s; }
.em-steam--2 { left: 50%; height: 70px; animation-delay: 1.2s; }
.em-steam--3 { left: 58%; height: 100px; animation-delay: 2.4s; }

@keyframes emSteamRise {
	0% { transform: translateY(0) scaleY(1) translateX(0); opacity: 0; }
	20% { opacity: 0.6; }
	100% { transform: translateY(-140px) scaleY(1.6) translateX(12px); opacity: 0; }
}

.em-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 42rem;
	padding-inline: 1.5rem;
	color: var(--em-cream);
}

.em-hero__eyebrow {
	display: inline-block;
	font-family: var(--em-font-body);
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--em-terracotta-light);
	margin-bottom: 1.25rem;
}

.em-hero__title {
	font-size: clamp(2.5rem, 6vw + 1rem, 4.75rem);
	color: #FFFFFF !important;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.75), 0 4px 28px rgba(0, 0, 0, 0.6);
}

.em-hero__subtitle {
	text-align: center;
	font-family: var(--em-font-body);
	font-weight: 400;
	font-size: clamp(1rem, 1.1vw + 0.6rem, 1.1875rem);
	color: rgba(250, 243, 232, 0.9);
	max-width: 26rem;
	margin: 1.5rem auto 2rem !important;
}

.em-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 1rem 2.25rem;
	background: var(--em-terracotta);
	color: var(--em-cream);
	font-family: var(--em-font-heading);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	margin-top: 2.25rem;
	box-shadow: 0 10px 30px rgba(193, 102, 47, 0.35);
	transition: transform 0.25s ease, background 0.25s ease;
}

.em-btn:hover,
.em-btn:focus-visible {
	background: var(--em-terracotta-light);
	transform: translateY(-3px);
}

/* =========================================================
 * STATS
 * ========================================================= */
.em-stats {
	background: var(--em-cream-deep);
}

.em-stats__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	text-align: center;
}

.em-stat__value {
	display: block;
	font-family: var(--em-font-heading);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
	color: var(--em-terracotta);
}

.em-stat__label {
	font-size: 0.875rem;
	color: var(--em-brown);
	margin-top: 0.5rem;
}

/* =========================================================
 * CARUSEL ORIZONTAL — scroll-snap
 * ========================================================= */
.em-menu__header {
	text-align: center;
	max-width: 34rem;
	margin: 0 auto 3rem;
}

.em-menu__eyebrow {
	color: var(--em-terracotta);
	font-size: 0.8125rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 500;
}

.em-menu__header h2 {
	font-size: clamp(2rem, 3.5vw + 1rem, 2.75rem);
	margin-block: 0.5rem 0.75rem;
}

.em-menu__header p {
	color: var(--em-brown);
	font-size: 0.9375rem;
}

.em-carousel {
	display: flex;
	justify-content: safe center;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
	margin: 0 -1.5rem;
	padding-inline: 1.5rem;
	scrollbar-width: thin;
	scrollbar-color: var(--em-terracotta) transparent;
}

.em-carousel::-webkit-scrollbar {
	height: 6px;
}

.em-carousel::-webkit-scrollbar-thumb {
	background: var(--em-terracotta);
	border-radius: 999px;
}

.em-card {
	flex: 0 0 auto;
	width: min(78vw, 300px);
	scroll-snap-align: start;
	background: var(--em-cream);
	border: 1px solid rgba(111, 78, 55, 0.2);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.em-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(62, 39, 35, 0.15);
}

.em-card__image {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--em-tan);
}

.em-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.em-card__body {
	padding: 1.25rem;
}

.em-card h3 {
	font-size: 1.125rem;
	margin-bottom: 0.375rem;
}

.em-card p {
	color: var(--em-brown);
	font-size: 0.875rem;
}

.em-card__price {
	font-family: var(--em-font-heading);
	color: var(--em-terracotta);
	font-size: 1.0625rem;
	font-weight: 600;
	margin-top: 0.5rem;
}

/* =========================================================
 * PRODUS FEATURED — piesa unica "spotlight", cu imagine reala
 * (nu carusel de 3 carduri cu placeholder-e identice pentru poze lipsa)
 * ========================================================= */
.em-product-spotlight {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	max-width: 58rem;
	margin-inline: auto;
	background: var(--em-cream);
	border: 1px solid rgba(111, 78, 55, 0.2);
	border-radius: 18px;
	overflow: hidden;
}

.em-product-spotlight__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--em-tan);
}

.em-product-spotlight__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.em-product-spotlight__body {
	padding: 0 1.75rem 1.75rem;
}

.em-product-spotlight__body h2 {
	font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
	margin-bottom: 0.625rem;
}

.em-product-spotlight__body p {
	color: var(--em-brown);
	line-height: 1.7;
	margin-bottom: 1rem;
}

.em-product-spotlight .em-card__price {
	font-size: 1.375rem;
	margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
	.em-product-spotlight {
		grid-template-columns: 1fr 1fr;
	}

	.em-product-spotlight__image {
		aspect-ratio: auto;
		height: 100%;
	}

	.em-product-spotlight__body {
		padding: 1.75rem 1.75rem 1.75rem 0;
	}
}

/* =========================================================
 * MANIFEST
 * ========================================================= */
.em-quote {
	text-align: center;
	background: var(--em-espresso);
	color: var(--em-cream);
}

.em-quote__mark {
	font-family: var(--em-font-heading);
	font-size: clamp(3.5rem, 8vw, 6rem);
	color: var(--em-terracotta-light);
	line-height: 1;
	opacity: 0.85;
}

.em-quote p {
	font-family: var(--em-font-heading);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(1.375rem, 2.6vw + 0.6rem, 2.125rem);
	max-width: 40rem;
	margin-inline: auto;
	line-height: 1.4;
	color: var(--em-cream);
}

.em-quote cite {
	display: block;
	margin-top: 1.5rem;
	font-style: normal;
	color: rgba(250, 243, 232, 0.6);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* =========================================================
 * CTA FINAL
 * ========================================================= */
.em-cta {
	text-align: center;
}

.em-cta h2 {
	font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
	margin-bottom: 1rem;
}

.em-cta p {
	color: var(--em-brown);
	max-width: 26rem;
	margin: 0 auto 1rem;
	font-size: 0.9375rem;
}

/* =========================================================
 * FOOTER
 * ========================================================= */
.em-footer {
	background: var(--em-espresso);
	color: rgba(250, 243, 232, 0.6);
	text-align: center;
	padding-block: 2.5rem;
	font-size: 0.8125rem;
}

.em-footer__brand {
	font-family: var(--em-font-heading);
	font-weight: 700;
	color: var(--em-cream);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.em-footer__note {
	margin-top: 0.75rem;
	color: rgba(250, 243, 232, 0.3);
	font-size: 0.75rem;
}

/* =========================================================
 * PLACEHOLDER
 * ========================================================= */
.em-ph {
	width: 100%;
	height: 100%;
	min-height: 220px;
	background:
		repeating-linear-gradient(135deg, rgba(193, 102, 47, 0.14) 0 14px, transparent 14px 28px),
		var(--em-tan);
	display: flex;
	align-items: center;
	justify-content: center;
}

.em-ph__label {
	background: rgba(62, 39, 35, 0.85);
	color: var(--em-cream);
	font-family: var(--em-font-body);
	font-size: 0.75rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	text-align: center;
}

/* =========================================================
 * RESPONSIVE
 * ========================================================= */
@media (min-width: 640px) {
	.em-stats__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.em-steam {
		animation: none;
		display: none;
	}

	.ember [data-reveal] {
		transition: none;
	}
}
