/* Arya Felez homepage motion UI — v0.1.5 */
body.home {
	font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
	background: #fff;
	color: #111418;
}

body.home .utilbar { display: none; }

body.home .header {
	position: fixed;
	top: 16px;
	inset-inline: 0;
	z-index: 50;
	width: min(1240px, calc(100% - 32px));
	margin-inline: auto;
	background: rgba(255,255,255,.92);
	border: 1px solid rgba(255,255,255,.78);
	border-radius: 18px;
	box-shadow: 0 16px 42px rgba(0,0,0,.12);
	backdrop-filter: blur(14px);
	transition: top .25s ease, border-radius .25s ease, box-shadow .25s ease;
}

body.home.admin-bar .header { top: 48px; }

body.home .header.afm-header--compact {
	top: 8px;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,.14);
}

body.home.admin-bar .header.afm-header--compact { top: 40px; }

body.home .header__inner { min-height: 68px; }
body.home .logo__text small { display: none; }
body.home .nav-desktop a { font-size: 13px; font-weight: 700; }
body.home .search { border-radius: 999px; }
body.home .header .btn { border-radius: 9px; }

.afm-home { overflow: clip; }
.afm-home h1,
.afm-home h2,
.afm-home h3,
.afm-home strong,
body.home .header {
	font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
}

.afm-hero {
	position: relative;
	min-height: 760px;
	display: grid;
	align-items: center;
	overflow: hidden;
	color: #fff;
	background: #0d0f11;
}

.afm-hero::before {
	content: "";
	position: absolute;
	inset: -8%;
	background-image: var(--afm-hero-image);
	background-size: cover;
	background-position: center center;
	transform: translate3d(0,var(--afm-hero-shift,0px),0) scale(var(--afm-hero-scale,1.05));
	filter: saturate(1.04) contrast(1.03);
	will-change: transform;
}

.afm-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(6,7,8,.12) 0%, rgba(6,7,8,.35) 42%, rgba(6,7,8,.86) 100%),
		linear-gradient(0deg, rgba(7,8,9,.60) 0%, rgba(7,8,9,.06) 55%);
}

.afm-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: 120px;
	padding-bottom: 80px;
}

.afm-hero__copy {
	max-width: 650px;
	margin-inline-start: auto;
	will-change: transform, opacity;
}

.afm-kicker,
.afm-eyebrow {
	margin: 0 0 12px;
	color: #d71920;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: -.01em;
}

.afm-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	color: #fff;
	background: rgba(0,0,0,.22);
	border: 1px solid rgba(255,255,255,.32);
	border-radius: 999px;
	backdrop-filter: blur(8px);
}

.afm-kicker span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e21d2a;
	box-shadow: 0 0 18px rgba(226,29,42,.85);
}

.afm-hero h1 {
	max-width: 780px;
	margin: 22px 0 18px;
	font-size: clamp(2.7rem,5.2vw,5.4rem);
	line-height: 1.15;
	font-weight: 900;
	letter-spacing: -.055em;
	color: #fff;
	text-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.afm-hero__lead {
	max-width: 620px;
	margin: 0;
	font-size: clamp(1rem,1.5vw,1.2rem);
	line-height: 2;
	color: #eef0f1;
}

.afm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.afm-home .btn {
	min-height: 48px;
	border-radius: 9px;
	font-weight: 800;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.afm-home .btn:hover { transform: translateY(-2px); }
.afm-btn-ghost {
	color: #fff;
	background: rgba(0,0,0,.22);
	border: 1px solid rgba(255,255,255,.45);
	backdrop-filter: blur(7px);
}
.afm-btn-ghost:hover { color: #fff; background: rgba(0,0,0,.42); }

.afm-scroll-hint {
	position: absolute;
	z-index: 3;
	right: 50%;
	bottom: 24px;
	transform: translateX(50%);
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,.85);
	text-decoration: none;
	font-size: 11px;
}
.afm-scroll-hint span {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255,255,255,.55);
	border-radius: 50%;
	animation: afm-bob 1.6s ease-in-out infinite;
}

@keyframes afm-bob {
	0%,100% { transform: translateY(0); }
	50% { transform: translateY(5px); }
}

.afm-section { padding: clamp(68px,8vw,104px) 0; }

.afm-section-head {
	display: grid;
	grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
	align-items: end;
	gap: 36px;
	margin-bottom: 34px;
}

.afm-section-head h2,
.afm-details h2,
.afm-dimensions h2,
.afm-inquiry h2 {
	margin: 0;
	font-size: clamp(2rem,3.6vw,3.35rem);
	line-height: 1.3;
	font-weight: 900;
	letter-spacing: -.04em;
}

.afm-section-head > p,
.afm-details__copy > p:last-child,
.afm-dimensions p,
.afm-inquiry__head > p:last-child {
	margin: 0;
	color: #687078;
	font-size: 15px;
	line-height: 2;
}

.afm-family-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 18px;
}

.afm-family-card {
	display: grid;
	grid-template-columns: minmax(0,1.15fr) minmax(220px,.85fr);
	min-height: 350px;
	overflow: hidden;
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(0,0,0,.04);
	transition: transform .35s ease, box-shadow .35s ease;
}

.afm-family-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 52px rgba(0,0,0,.09);
}

.afm-family-card__body {
	align-self: center;
	padding: 34px 32px;
}
.afm-family-card h3 {
	margin: 0 0 8px;
	font-size: 2rem;
	font-weight: 900;
}
.afm-family-card p:not(.afm-eyebrow) {
	margin: 0 0 18px;
	color: #6d7378;
	line-height: 1.9;
}
.afm-family-card a {
	color: #d71920;
	font-weight: 800;
	text-decoration: none;
}

/* Lightweight CSS product-profile illustration until final product photography is approved. */
.afm-profile-visual {
	position: relative;
	min-height: 350px;
	overflow: hidden;
	background: linear-gradient(145deg,#fff 0%,#f6f6f4 72%,#ececeb 100%);
}
.afm-profile-visual::before,
.afm-profile-visual::after,
.afm-profile-visual span,
.afm-profile-visual i {
	content: "";
	position: absolute;
	display: block;
	background: linear-gradient(135deg,#ff4c17 0%,#d92b0c 38%,#9c1607 100%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 22px 35px rgba(127,30,8,.16);
}
.afm-profile-visual::before {
	width: 72%;
	height: 70px;
	right: 10%;
	top: 36%;
	transform: rotate(-18deg) skewX(-7deg);
	border-radius: 4px 10px 4px 4px;
}
.afm-profile-visual::after {
	width: 60px;
	height: 145px;
	right: 18%;
	top: 39%;
	transform: rotate(-18deg);
	border-radius: 3px;
}
.afm-profile-visual span {
	width: 56%;
	height: 34px;
	right: 17%;
	top: 50%;
	transform: rotate(-18deg);
	background: #111;
	box-shadow: none;
}
.afm-profile-visual i {
	width: 46px;
	height: 118px;
	left: 19%;
	top: 29%;
	transform: rotate(-18deg);
	border-radius: 3px;
}
.afm-profile-visual--classic::before { width: 78%; top: 34%; }
.afm-profile-visual--classic i { height: 138px; left: 16%; }

.afm-featurebar {
	padding: 25px 0;
	color: #fff;
	background: #171b1f;
}
.afm-featurebar__grid {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
}
.afm-feature {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 8px 24px;
	border-inline-start: 1px solid #3b4146;
}
.afm-feature:first-child { border-inline-start: 0; }
.afm-feature > span {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: #ef2530;
	border: 2px solid #ef2530;
	border-radius: 12px;
	font-size: 20px;
}
.afm-feature strong { display: block; margin-bottom: 4px; font-size: 15px; }
.afm-feature small { display: block; color: #aeb4b8; font-size: 11px; }

.afm-details { background: #f5f5f3; }
.afm-details__grid {
	display: grid;
	grid-template-columns: minmax(260px,.72fr) minmax(0,1.6fr);
	gap: 36px;
	align-items: start;
}
.afm-details__copy { padding-top: 8px; }
.afm-details__copy h2 { margin-bottom: 16px; }
.afm-detail-cards {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 14px;
}
.afm-detail-card {
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e2df;
	border-radius: 15px;
	transition: transform .35s ease, box-shadow .35s ease;
}
.afm-detail-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.afm-detail-card img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform .5s ease;
}
.afm-detail-card:hover img { transform: scale(1.04); }
.afm-detail-card figcaption { padding: 16px 17px 18px; }
.afm-detail-card strong { display: block; margin-bottom: 5px; font-size: 15px; }
.afm-detail-card span { color: #72797e; font-size: 12px; }

.afm-factory {
	position: relative;
	min-height: 540px;
	display: grid;
	align-items: center;
	overflow: hidden;
	color: #fff;
	background: #0d0f11;
}
.afm-factory::before {
	content: "";
	position: absolute;
	inset: -8%;
	background-image: var(--afm-factory-image);
	background-size: cover;
	background-position: center 42%;
	transform: translate3d(0,var(--afm-factory-shift,0px),0) scale(1.08);
	filter: sepia(.18) saturate(.72) contrast(1.06);
	will-change: transform;
}
.afm-factory__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,rgba(7,8,9,.08),rgba(7,8,9,.22) 40%,rgba(7,8,9,.86) 100%);
}
.afm-factory__inner { position: relative; z-index: 2; width: 100%; }
.afm-factory__copy { max-width: 590px; margin-inline-start: auto; }
.afm-factory h2 { margin: 8px 0 14px; font-size: clamp(2.3rem,4.4vw,4rem); line-height: 1.2; font-weight: 900; }
.afm-factory p { color: #d9dde0; line-height: 2; }
.afm-eyebrow--light { color: #fff; opacity: .9; }

.afm-dimensions { background: #fff; }
.afm-dimensions__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}
.afm-dimensions h2 { margin-bottom: 14px; }
.afm-dimensions ul {
	display: grid;
	gap: 11px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}
.afm-dimensions li {
	position: relative;
	padding-inline-start: 22px;
	color: #3f454a;
}
.afm-dimensions li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .75em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d71920;
}
.afm-dimensions__visual {
	position: relative;
	min-height: 390px;
	border: 1px solid #e4e4e1;
	border-radius: 20px;
	background: radial-gradient(circle at 65% 35%,#fff,#f3f3f0 72%);
	overflow: hidden;
}
.afm-dimensions__visual > div {
	position: absolute;
	inset: 14% 23% 14% 23%;
	border: 25px solid #b62228;
	border-bottom-width: 15px;
	box-shadow: 0 22px 44px rgba(120,20,25,.12);
}
.afm-dimensions__visual > div span {
	position: absolute;
	inset: 14% 14%;
	border: 1px solid rgba(0,0,0,.10);
}
.afm-dimensions__visual b,
.afm-dimensions__visual i {
	position: absolute;
	display: grid;
	place-items: center;
	color: #d71920;
	font-size: 25px;
	font-style: normal;
}
.afm-dimensions__visual b { left: 27%; right: 27%; bottom: 6%; }
.afm-dimensions__visual i { top: 20%; bottom: 20%; left: 10%; }

.afm-faq { background: #f6f6f4; }
.afm-faq .faq { max-width: 900px; margin-inline: auto; }

.afm-inquiry {
	padding: clamp(72px,8vw,104px) 0;
	color: #fff;
	background:
		linear-gradient(130deg,rgba(188,16,24,.92),rgba(75,9,13,.72)),
		linear-gradient(90deg,#8d0c13,#c81720);
}
.afm-inquiry__head { max-width: 760px; margin-bottom: 30px; }
.afm-inquiry__head h2 { color: #fff; margin-bottom: 12px; }
.afm-inquiry__head > p:last-child { color: rgba(255,255,255,.78); }

[data-afm-reveal] {
	opacity: 1;
	transform: none;
}
[data-afm-reveal].afm-will-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1);
}
[data-afm-reveal].afm-will-reveal.afm-in {
	opacity: 1;
	transform: none;
}

@media (max-width: 1000px) {
	body.home .header { width: calc(100% - 20px); top: 10px; }
	body.home.admin-bar .header { top: 50px; }
	.afm-hero { min-height: 700px; }
	.afm-family-grid { grid-template-columns: 1fr; }
	.afm-details__grid,
	.afm-dimensions__grid { grid-template-columns: 1fr; }
	.afm-featurebar__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.afm-feature:nth-child(odd) { border-inline-start: 0; }
	.afm-feature { border-bottom: 1px solid #33393e; }
}

@media (max-width: 700px) {
	body.home .header {
		position: sticky;
		top: 0;
		width: 100%;
		border-radius: 0;
		margin: 0;
	}
	body.home.admin-bar .header,
	body.home.admin-bar .header.afm-header--compact { top: 46px; }
	body.home .header.afm-header--compact { top: 0; border-radius: 0; }
	.afm-hero { min-height: 680px; }
	.afm-hero::before { background-position: 35% center; }
	.afm-hero__shade {
		background: linear-gradient(0deg,rgba(5,6,7,.92) 0%,rgba(5,6,7,.52) 58%,rgba(5,6,7,.18) 100%);
	}
	.afm-hero__inner { display: flex; align-items: flex-end; padding-top: 180px; padding-bottom: 110px; }
	.afm-hero h1 { font-size: clamp(2.35rem,12vw,3.4rem); letter-spacing: -.04em; }
	.afm-section-head { grid-template-columns: 1fr; gap: 12px; }
	.afm-family-card { grid-template-columns: 1fr; }
	.afm-profile-visual { min-height: 280px; }
	.afm-featurebar__grid { grid-template-columns: 1fr; }
	.afm-feature { border-inline-start: 0; }
	.afm-detail-cards { grid-template-columns: 1fr; }
	.afm-detail-card img { height: 240px; }
	.afm-factory { min-height: 500px; }
	.afm-factory::before { background-position: 48% center; }
	.afm-factory__shade { background: linear-gradient(0deg,rgba(7,8,9,.92),rgba(7,8,9,.25)); }
	.afm-factory__inner { align-self: end; padding-bottom: 58px; }
	.afm-dimensions__visual { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.afm-scroll-hint span { animation: none; }
	[data-afm-reveal] { opacity: 1; transform: none; transition: none; }
	.afm-hero::before,
	.afm-factory::before,
	.afm-hero__copy { transform: none !important; opacity: 1 !important; }
}
