/* =========================================================
   Diako Hardware — main stylesheet (RTL)
   Palette taken from the DIAKO logo: charcoal field + mint→jade bars.
   ========================================================= */

@font-face {
	font-family: "Vazirmatn RD";
	src: url("../fonts/Vazirmatn-RD-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #1c1d1c;          /* page */
	--ink-2: #212321;        /* alternate band */
	--panel: #282a28;        /* raised surface */
	--line: #383c39;         /* rules */
	--line-soft: #2e312f;
	--text: #f2f3ee;         /* logo white */
	--muted: #a6aca5;
	--mint: #a3e88c;         /* logo top */
	--jade: #1fd69e;         /* logo bottom */
	--on-accent: #0f2219;
	--grad: linear-gradient(180deg, var(--mint), var(--jade));
	--grad-x: linear-gradient(270deg, var(--mint), var(--jade));

	--font: "Vazirmatn RD", "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
	--wrap: 1200px;
	--gutter: clamp(1.1rem, 4vw, 2.5rem);
	--radius: 10px;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	background: var(--ink);
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 800; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible {
	outline: 2px solid var(--mint);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	top: -100px;
	z-index: 100;
	background: var(--mint);
	color: var(--on-accent);
	padding: .6rem 1rem;
	border-radius: 8px;
	font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- LEDs (shared) ---------- */
.led {
	display: inline-block;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--jade);
	box-shadow: 0 0 0 3px rgba(31, 214, 158, .14), 0 0 10px rgba(31, 214, 158, .6);
	flex: none;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 48px;
	padding: .55rem 1.5rem;
	border-radius: 999px;          /* pill — same as the logo bars */
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary {
	background: var(--grad-x);
	color: var(--on-accent);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost {
	border-color: var(--line);
	color: var(--text);
}
.btn--ghost:hover { border-color: var(--mint); }
.btn--call {
	white-space: nowrap;
	min-height: 42px;
	padding: .35rem 1.1rem;
	border-color: var(--line);
	font-size: .95rem;
}
.btn--call:hover { border-color: var(--jade); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(28, 29, 28, .92);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line-soft);
	padding-top: env(safe-area-inset-top, 0px);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header-h);
}
.brand {
	display: flex;
	align-items: center;
	gap: .8rem;
	text-decoration: none;
	margin-inline-end: auto;
}
.brand__mark { width: auto; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.brand__name { font-weight: 800; font-size: 1.2rem; }
.brand__sub { font-size: .78rem; color: var(--muted); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: .25rem; }
.nav__list a {
	display: block;
	white-space: nowrap;
	padding: .45rem .8rem;
	text-decoration: none;
	font-weight: 600;
	font-size: .98rem;
	color: var(--muted);
	border-radius: 8px;
	position: relative;
}
.nav__list a:hover { color: var(--text); }
.nav__list .current-menu-item > a,
.nav__list a[aria-current="page"] { color: var(--text); }
.nav__list .current-menu-item > a::after,
.nav__list a[aria-current="page"]::after {
	content: "";
	position: absolute;
	inset-inline: .8rem;
	bottom: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--grad-x);
}

.nav-toggle {
	display: none;
	width: 46px; height: 46px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px; height: 2px;
	border-radius: 2px;
	background: currentColor;
	position: relative;
	transition: transform .2s, opacity .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem var(--gutter) 1.5rem;
		background: var(--ink);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.nav__list { flex-direction: column; }
	.nav__list a { padding: .75rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
	.nav__list .current-menu-item > a::after,
	.nav__list a[aria-current="page"]::after { inset-inline-start: 0; inset-inline-end: auto; width: 3px; height: auto; top: .9rem; bottom: .9rem; }
	.nav__list .current-menu-item > a,
	.nav__list a[aria-current="page"] { padding-inline-start: 1rem; }
	.site-nav__call { align-self: flex-start; }
}

/* =========================================================
   Sections (shared)
   ========================================================= */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__title { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 800; }
.section__lead { margin-top: .6rem; color: var(--muted); max-width: 40rem; }

/* =========================================================
   Home — hero with rack
   ========================================================= */
.hero {
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
	border-bottom: 1px solid var(--line-soft);
	overflow: hidden;
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.hero__title {
	font-size: clamp(2rem, 4.4vw, 3.45rem);
	font-weight: 850;
	line-height: 1.32;
	max-width: 15ch;
}
.hero__lead {
	margin-top: 1.4rem;
	font-size: clamp(1.02rem, 1.4vw, 1.15rem);
	color: #c9cdc7;
	max-width: 36rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__phone { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }
.hero__phone a { color: var(--text); font-weight: 700; text-decoration: none; }
.hero__phone a:hover { color: var(--mint); }

/* ----- the rack ----- */
.rack {
	justify-self: center;
	width: 100%;
	max-width: 560px;
	--u: 40px;
}
.rack__frame {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 18px 26px 22px;
	background: #141514;
	border-radius: 8px;
	border: 1px solid #2c2f2d;
	box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.03);
}
/* rails with mounting holes */
.rack__frame::before,
.rack__frame::after {
	content: "";
	position: absolute;
	top: 12px; bottom: 12px;
	width: 12px;
	background:
		radial-gradient(circle at 50% 50%, #0b0c0b 2.2px, transparent 2.6px) 0 0 / 12px 12px repeat-y,
		linear-gradient(90deg, #2a2d2b, #333734 50%, #2a2d2b);
	border-radius: 2px;
}
.rack__frame::before { left: 8px; }
.rack__frame::after { right: 8px; }

.u {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) 10px;
	height: var(--u);
}
.u--h2 { height: calc(var(--u) * 2 + 3px); }
.u__ear {
	background: #3a3e3b;
	border-radius: 2px;
	position: relative;
}
.u__ear::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 5px; height: 5px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #1d1f1d;
}
.u__face {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 0 9px;
	background: linear-gradient(180deg, #313431, #272927);
	border-top: 1px solid #3d413e;
	border-radius: 2px;
	min-width: 0;
}
.u__label {
	flex: none;
	width: 108px;
	font-size: 9.5px;
	line-height: 1.25;
	color: #8e958d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 500;
}
.u__label b { display: block; color: #d8dcd5; font-weight: 700; font-size: 10px; }
.u__status { display: flex; flex-direction: column; gap: 5px; flex: none; }
.u__vent {
	width: 100%;
	height: 60%;
	background: repeating-linear-gradient(90deg, #1b1c1b 0 3px, transparent 3px 7px);
	border-radius: 2px;
	opacity: .8;
}

.bays { flex: 1; min-width: 0; height: 78%; display: grid; gap: 2px; }
.bay {
	position: relative;
	background: #1a1b1a;
	border-radius: 1.5px;
	box-shadow: inset 0 0 0 1px #121312;
	min-width: 0;
}
.bays--port { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; height: 72%; }
.bays--port .bay .bl { position: absolute; top: 1px; left: 1px; width: 3px; height: 2px; border-radius: 1px; }
.bays--sff { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 84%; }
.bays--sff .bay .bl { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); }
.bays--lff { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); height: 86%; }
.bays--lff .bay .bl { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }

/* LED power-on cascade: the one orchestrated moment on the page */
.bl {
	display: block;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: #2a332d;
	animation: led-on .22s ease-out forwards;
	animation-delay: calc(var(--i, 0) * 9ms + .35s);
}
.bl--pwr { width: 5px; height: 5px; }
.bl--act {
	animation: led-on .22s ease-out forwards, led-act 2.4s steps(1, end) infinite;
	animation-delay: calc(var(--i, 0) * 9ms + .35s), calc(1.9s + var(--i, 0) * 23ms);
}
@keyframes led-on {
	to { background: #7df0b8; box-shadow: 0 0 5px rgba(31, 214, 158, .85); }
}
@keyframes led-act {
	0%, 100% { opacity: 1; }
	8% { opacity: .15; }
	14% { opacity: 1; }
	22% { opacity: .2; }
	28% { opacity: 1; }
}

@media (max-width: 920px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__title { max-width: 18ch; }
	.rack { max-width: 460px; justify-self: stretch; margin-inline: auto; }
}
@media (max-width: 520px) {
	.rack { --u: 30px; }
	.rack__frame { padding: 14px 20px 16px; }
	.rack__frame::before { left: 5px; }
	.rack__frame::after { right: 5px; }
	.u__label { width: 72px; font-size: 8px; }
	.u__label b { font-size: 8.5px; }
	.u__face { gap: 6px; padding: 0 6px; }
}

/* =========================================================
   Home — brand rows
   ========================================================= */
.brand-rows { border-top: 1px solid var(--line); }
.brand-row { border-bottom: 1px solid var(--line); }
.brand-row__link {
	display: grid;
	grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: clamp(1.4rem, 3vw, 2.1rem) clamp(.5rem, 1.5vw, 1.25rem);
	text-decoration: none;
	transition: background-color .15s;
}
.brand-row__link:hover { background: var(--ink-2); }
.brand-row__name {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	font-weight: 850;
	line-height: 1;
	letter-spacing: -.02em;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-align: start;
	padding-block: .1em;
}
.brand-row__body { display: flex; flex-direction: column; gap: .25rem; }
.brand-row__kind { font-weight: 800; font-size: 1.15rem; }
.brand-row__desc { color: var(--muted); max-width: 38rem; }
.brand-row__cta {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 700;
	font-size: .95rem;
	padding: .45rem 1.1rem;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	white-space: nowrap;
}
.brand-row__link:hover .brand-row__cta { border-color: var(--mint); color: var(--mint); }

@media (max-width: 760px) {
	.brand-row__link { grid-template-columns: 1fr; gap: .6rem; }
	.brand-row__cta { justify-self: start; margin-top: .5rem; }
}

/* =========================================================
   Home — supply grid
   ========================================================= */
.supply { background: var(--ink-2); }
.supply__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}
.supply__item { border-top: 3px solid var(--line); padding-top: 1.2rem; }
.supply__item:first-child { border-image: var(--grad-x) 1; }
.supply__item h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.supply__item p { color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .supply__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .supply__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Home — order steps (a real sequence, so it is numbered)
   ========================================================= */
.steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
	counter-reset: step;
	position: relative;
}
.steps__item { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps__item::before {
	content: counter(step, persian);
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 3rem; height: 3rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1.5px solid var(--jade);
	color: var(--mint);
	font-weight: 800;
	font-size: 1.25rem;
	background: var(--ink);
	z-index: 1;
}
.steps__item::after {
	content: "";
	position: absolute;
	top: 1.5rem;
	inset-inline-start: 3rem;
	inset-inline-end: calc(-1 * clamp(1.25rem, 3vw, 2rem));
	height: 1px;
	background: var(--line);
}
.steps__item:last-child::after { display: none; }
.steps__item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps__item p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
	.steps__list { grid-template-columns: 1fr; gap: 0; }
	.steps__item { padding-top: 0; padding-inline-start: 4.2rem; padding-bottom: 1.8rem; min-height: 4.5rem; }
	.steps__item::after { top: 3rem; bottom: 0; inset-inline-start: 1.5rem; inset-inline-end: auto; width: 1px; height: auto; }
}

/* =========================================================
   Contact band
   ========================================================= */
.contact-band {
	position: relative;
	background: var(--panel);
	padding-block: clamp(3rem, 7vw, 5rem);
}
.contact-band::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 3px;
	background: var(--grad-x);
}
.contact-band__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 3rem;
	align-items: end;
}
.contact-band__title { font-size: clamp(1.45rem, 2.6vw, 2rem); max-width: 20ch; }
.contact-band__lead { margin-top: .6rem; color: var(--muted); }
.contact-band__phone {
	display: inline-block;
	font-size: clamp(2.2rem, 5.4vw, 3.8rem);
	font-weight: 850;
	line-height: 1.1;
	letter-spacing: .01em;
	text-decoration: none;
	color: var(--text);
	border-bottom: 3px solid var(--jade);
	padding-bottom: .2rem;
}
.contact-band__phone:hover { color: var(--mint); }
.contact-band__addr { margin-top: 1rem; color: var(--muted); font-size: .98rem; max-width: 34rem; }
@media (max-width: 820px) { .contact-band__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Brand pages
   ========================================================= */
.brand-hero {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.brand-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 2rem;
	align-items: center;
}
.brand-hero__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.brand-hero__lead { margin-top: 1rem; color: #c9cdc7; font-size: 1.1rem; max-width: 36rem; }
.brand-hero__word {
	font-size: clamp(3.2rem, 7vw, 5.6rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--jade);
	text-align: start;
	white-space: nowrap;
	user-select: none;
	margin-bottom: .9rem;
}

.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.jump a {
	padding: .35rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
	font-size: .92rem;
	font-weight: 600;
	color: var(--muted);
}
.jump a:hover { color: var(--text); border-color: var(--jade); }

@media (max-width: 820px) {
	.brand-hero__grid { grid-template-columns: 1fr; }
	.brand-hero__word { font-size: clamp(2.8rem, 14vw, 4.2rem); }
}

.shelf { padding-block: clamp(2.5rem, 5vw, 3.8rem); border-bottom: 1px solid var(--line-soft); }
.shelf:nth-of-type(even) { background: var(--ink-2); }
.shelf__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.5rem clamp(2rem, 6vw, 5rem);
	align-items: start;
}
.shelf__title { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.shelf__sub { color: var(--mint); font-weight: 600; margin-top: .15rem; }
.shelf__desc { margin-top: .8rem; color: var(--muted); max-width: 32rem; }

.units { border-top: 1px solid var(--line); }
.units__item {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: .8rem .25rem;
	border-bottom: 1px solid var(--line);
	font-weight: 650;
	font-size: 1.08rem;
}
.units__name { unicode-bidi: isolate; }
@media (max-width: 760px) { .shelf__grid { grid-template-columns: 1fr; } }

.parts__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 5vw, 4rem);
	border-top: 1px solid var(--line);
}
.parts__item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.parts__item dt { font-weight: 800; font-size: 1.1rem; }
.parts__item dd { color: var(--muted); margin-top: .2rem; }
.parts__note { margin-top: 1.8rem; color: var(--muted); font-size: .98rem; }
@media (max-width: 700px) { .parts__list { grid-template-columns: 1fr; } }

/* =========================================================
   About page
   ========================================================= */
.about-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.about-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 2rem 4rem;
	align-items: center;
}
.about-hero__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.about-hero__lead { margin-top: 1rem; font-size: 1.15rem; color: #c9cdc7; max-width: 34rem; }
.about-hero__logo { width: 100%; max-width: 340px; justify-self: center; }
@media (max-width: 820px) {
	.about-hero__grid { grid-template-columns: 1fr; }
	.about-hero__logo { max-width: 220px; justify-self: start; order: -1; }
}

.about-body__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 2.5rem clamp(2rem, 6vw, 5rem);
	align-items: start;
}
.about-list li { position: relative; padding-inline-start: 1.4rem; margin-bottom: .9rem; }
.about-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .75em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--jade);
}
.spec {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.4rem, 3vw, 2rem);
}
.spec__title { font-size: 1.2rem; margin-bottom: 1rem; }
.spec__list > div {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
	padding: .75rem 0;
	border-top: 1px solid var(--line);
	font-size: .98rem;
}
.spec__list dt { color: var(--muted); }
.spec__list dd { font-weight: 600; }
.spec__list a { text-decoration: none; }
.spec__list a:hover { color: var(--mint); }
@media (max-width: 860px) { .about-body__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Generic page / prose / 404
   ========================================================= */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-head__lead { margin-top: .8rem; color: var(--muted); }
.page-head__code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--jade); text-align: start; }
.page-head--404 .btn { margin-top: 1.8rem; }
.prose-wrap { padding-block: clamp(2rem, 5vw, 4rem); }

.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose p, .prose li { color: #d3d7d0; }
.prose a { color: var(--mint); }
.prose ul:not(.about-list) { list-style: disc; padding-inline-start: 1.3rem; }
.prose ol { list-style: persian; padding-inline-start: 1.5rem; }
.prose img { border-radius: var(--radius); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	border-top: 1px solid var(--line);
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	font-size: .95rem;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.2fr);
	gap: 2rem 3rem;
}
.site-footer__brand img { width: 96px; margin-bottom: .9rem; }
.site-footer__name { font-weight: 800; font-size: 1.1rem; }
.site-footer__tag { color: var(--muted); margin-top: .3rem; max-width: 22rem; }
.site-footer__title { font-size: 1rem; margin-bottom: .8rem; color: var(--text); }
.footer-list li { margin-bottom: .45rem; color: var(--muted); }
.footer-list a { text-decoration: none; color: var(--muted); }
.footer-list a:hover { color: var(--mint); }
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 2rem;
	margin-top: 2.5rem;
	padding-block: 1.3rem 1.6rem;
	border-top: 1px solid var(--line-soft);
	color: #7f867e;
	font-size: .85rem;
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Language switcher
   ========================================================= */
.site-nav__tools { display: flex; align-items: center; gap: .9rem; }
.lang-switch {
	display: flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
}
.lang-switch a {
	display: block;
	padding: .2rem .7rem;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	color: var(--muted);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-current { background: var(--panel); color: var(--mint); }
.lang-switch--footer { display: inline-flex; margin-top: .2rem; }
.site-footer__title--lang { margin-top: 1.6rem; }

@media (max-width: 1240px) and (min-width: 1081px) {
	.site-nav { gap: 1rem; }
	.nav__list a { padding-inline: .55rem; }
	.lang-switch a { padding-inline: .5rem; }
}
@media (max-width: 1080px) {
	.site-nav__tools { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* =========================================================
   Product photos — white-background shots on a light panel
   ========================================================= */
.photo { margin: 0; }
.photo__panel {
	background: #eceee9;
	border-radius: var(--radius);
	padding: clamp(.75rem, 2vw, 1.25rem);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.photo__panel img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	mix-blend-mode: multiply;   /* the white photo background melts into the panel */
}
.photo__cap { margin-top: .7rem; font-weight: 700; font-size: 1rem; }

.photo--hero .photo__panel { aspect-ratio: 2 / 1; padding: clamp(1rem, 3vw, 2rem); }
.photo--shelf { margin-top: 1.6rem; max-width: 34rem; }
.photo--shelf .photo__panel { aspect-ratio: 3 / 1.25; }

.gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gallery--n1 { grid-template-columns: minmax(0, 22rem); }
.gallery--n2 { grid-template-columns: repeat(2, minmax(0, 22rem)); }
.gallery--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo--part .photo__panel { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .gallery, .gallery--n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .gallery, .gallery--n2, .gallery--n3 { grid-template-columns: 1fr; } }

/* =========================================================
   Per-language typography
   ========================================================= */
html[lang="en"] body { line-height: 1.65; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.2; letter-spacing: -.01em; }
html[lang="en"] .hero__title { font-size: clamp(1.9rem, 3.7vw, 3rem); max-width: 20ch; line-height: 1.12; letter-spacing: -.02em; }
html[lang="en"] .contact-band__title { max-width: 22ch; }
html[lang="en"] .steps__item::before { content: counter(step); }
html[lang="en"] .prose ol { list-style: decimal; }
html[lang="en"] .hero__lead,
html[lang="en"] .brand-hero__lead { line-height: 1.6; }

html[lang="ar"] .steps__item::before { content: counter(step, arabic-indic); }
html[lang="ar"] .prose ol { list-style: arabic-indic; }
html[lang="ar"] .hero__title { max-width: 17ch; }

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bl, .bl--act { animation: none; background: #7df0b8; box-shadow: 0 0 5px rgba(31, 214, 158, .85); }
	* { transition-duration: 0s !important; }
}

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { color: var(--muted); font-size: .9rem; }
