/* ==========================================================================
   TOP WOOD — main stylesheet
   Layout concept: bright architectural gallery — white/stone surfaces, charcoal
   type, wood colour supplied only by photography; one restrained grid.
   Direction-agnostic (logical properties) so the same rules serve EN (LTR)
   and AR (RTL).
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License — see assets/fonts/OFL-*.txt). */
@font-face { font-family: "Jost"; src: url("../fonts/jost-var-latin.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
	/* colour */
	--bg: #fbfaf8;
	--surface: #ffffff;
	--stone: #f3f1ed;
	--ink: #151412;
	--ink-2: #2b2925;
	--muted: #6c675f;
	--faint: #6f6a61;
	--line: #e7e3dc;
	--line-2: #d8d3ca;
	--night: #1b1916;
	--accent: #d31330; /* brand red from the logo — buttons and links */
	--accent-dark: #ad0f27;
	--on-accent: #ffffff;
	--on-night: #f6f3ee;
	--ok: #2f6b3a;
	--err: #a2392a;
	--flag-bg: #fff4d6;
	--flag-fg: #6f5200;

	/* type */
	--f-latin: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
	--f-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--f-body: var(--f-latin);
	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-md: 1rem;
	--fs-lg: 1.125rem;
	--fs-h3: 1.375rem;
	--fs-h2: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
	--fs-h1: clamp(2.6rem, 1.5rem + 3.4vw, 4.4rem);
	--lh-tight: 1.08;
	--track-eyebrow: 0.2em;

	/* layout */
	--wrap: 1280px;
	--gutter: clamp(20px, 4vw, 64px);
	--section: clamp(4rem, 3rem + 5vw, 7.5rem);
	--header-h: 76px;
	--radius: 4px;
	--pill: 999px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);

	color-scheme: light;
}

[lang="ar"] {
	--f-body: var(--f-ar);
	--lh-tight: 1.3;
	--track-eyebrow: 0;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font-family: var(--f-body);
	font-size: var(--fs-md);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
[lang="ar"] { font-family: var(--f-body); }
[lang="en"] { font-family: var(--f-latin); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:where(h1, h2, h3, p, ul, figure) { margin: 0; }
:where(ul[role="list"], .tw-nav__list, .tw-drawer__list, .tw-footer__list, .tw-footer__links, .tw-legal) { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.tw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tw-skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.tw-skip:focus { top: 12px; }

.tw-wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------------------------------------------------------------- type */
.tw-eyebrow {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: var(--track-eyebrow);
	text-transform: uppercase;
	color: var(--ink-2);
}
[lang="ar"] .tw-eyebrow { font-size: var(--fs-sm); text-transform: none; }

.tw-h2 {
	font-size: var(--fs-h2);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
	text-wrap: balance;
}
[lang="ar"] .tw-h2 { letter-spacing: 0; line-height: 1.4; font-weight: 500; }
.tw-h3 { font-size: var(--fs-h3); font-weight: 400; color: var(--ink); line-height: 1.25; }
[lang="ar"] .tw-h3 { font-weight: 500; }
.tw-lede { color: var(--muted); font-size: var(--fs-md); max-width: 36rem; margin-top: .75rem; }
.tw-note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--faint); }

/* ------------------------------------------------------------- buttons */
.tw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 46px;
	padding: .75rem 1.5rem;
	border-radius: var(--pill);
	border: 1px solid transparent;
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.tw-btn .tw-icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.tw-btn:hover .tw-icon--dir { transform: translateX(3px); }
[dir="rtl"] .tw-btn:hover .tw-icon--dir { transform: scaleX(-1) translateX(3px); }
.tw-btn--sm { min-height: 38px; padding: .5rem 1.15rem; font-size: 0.8125rem; }
.tw-btn--block { width: 100%; }
.tw-btn--dark { background: var(--accent); color: var(--on-accent); }
.tw-btn--dark:hover { background: var(--accent-dark); }
.tw-btn--line { border-color: var(--accent); color: var(--accent); background: transparent; }
.tw-btn--line:hover { background: var(--accent); color: var(--on-accent); }
.tw-btn--light { background: var(--accent); color: var(--on-accent); }
.tw-btn--light:hover { background: var(--accent-dark); }
.tw-btn--ghost { border-color: var(--accent); color: var(--on-night); background: transparent; }
.tw-btn--ghost:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.tw-icon { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .tw-icon--dir { transform: scaleX(-1); }

.tw-link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--accent);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.tw-link:hover { color: var(--accent-dark); }
.tw-link .tw-icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.tw-link:hover .tw-icon--dir, .tw-card:hover .tw-link .tw-icon--dir { transform: translateX(4px); }
[dir="rtl"] .tw-link:hover .tw-icon--dir, [dir="rtl"] .tw-card:hover .tw-link .tw-icon--dir { transform: scaleX(-1) translateX(4px); }

.tw-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--pill);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color .2s;
}
.tw-iconbtn:hover { background: rgba(21, 20, 18, .06); }

.tw-missing {
	display: inline-flex;
	align-items: center;
	padding: .15rem .5rem;
	border: 1px dashed currentColor;
	border-radius: 3px;
	background: var(--flag-bg);
	color: var(--flag-fg);
	font-size: var(--fs-xs);
	font-weight: 500;
	line-height: 1.5;
}

/* ---------------------------------------------------------------- header */
.tw-header {
	position: sticky;
	top: var(--admin-bar);
	z-index: 50;
	background: rgba(251, 250, 248, .92);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: background-color .3s, border-color .3s;
}
.tw-header--overlay {
	position: fixed;
	inset-inline: 0;
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.tw-header--overlay.is-scrolled {
	background: rgba(251, 250, 248, .94);
	border-bottom-color: var(--line);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.tw-header__bar {
	display: flex;
	align-items: center;
	gap: 2rem;
	height: var(--header-h);
}
.tw-logo { display: inline-flex; align-items: center; color: var(--ink); flex: none; }
.tw-logo__img { height: 54px; width: auto; max-width: 200px; object-fit: contain; }
.tw-phones { display: inline-flex; flex-direction: column; gap: .2rem; }
.tw-phones a { white-space: nowrap; }
.tw-logo--lg .tw-logo__img { height: 72px; }
.tw-drawer__top .tw-logo__img { height: 40px; width: auto; }
.tw-wordmark { display: inline-flex; align-items: center; gap: .7rem; }
.tw-wordmark__mark { width: 26px; height: 26px; }
.tw-wordmark__text { font-family: var(--f-latin); font-size: 1.05rem; font-weight: 400; letter-spacing: .28em; white-space: nowrap; }
.tw-logo--lg .tw-wordmark__mark { width: 34px; height: 34px; }
.tw-logo--lg .tw-wordmark__text { font-size: 1.35rem; }

.tw-nav { margin-inline: auto; }
.tw-nav__list { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.tw-nav__list a {
	position: relative;
	display: block;
	padding-block: .5rem;
	font-size: 0.8125rem;
	color: var(--ink-2);
	transition: color .2s;
}
[lang="ar"] .tw-nav__list a { font-size: var(--fs-sm); }
.tw-nav__list a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: .2rem;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .3s var(--ease);
}
.tw-nav__list a:hover::after,
.tw-nav__list a[aria-current="page"]::after,
.tw-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.tw-nav__list a:hover,
.tw-nav__list a[aria-current="page"] { color: var(--accent); }

.tw-header__actions { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
.tw-nav + .tw-header__actions { margin-inline-start: 0; }
.tw-lang { display: flex; align-items: center; gap: .35rem; font-family: var(--f-latin); font-size: 0.75rem; color: var(--faint); margin-inline-end: .4rem; }
.tw-lang a { padding: .4rem .15rem; color: var(--faint); transition: color .2s; }
.tw-lang a:hover { color: var(--accent); }
.tw-lang a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.tw-menu-toggle { display: none; }

/* drawer + search (native <dialog>) */
dialog { color: inherit; }
.tw-drawer {
	margin: 0;
	margin-inline-start: auto;
	inset-inline-end: 0;
	height: 100dvh;
	max-height: 100dvh;
	width: min(400px, 100vw);
	max-width: 100vw;
	padding: max(.85rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) max(1.25rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
	overflow-y: auto;
	border: 0;
	background: var(--surface);
	display: none;
	flex-direction: column;
	gap: 2rem;
}
.tw-drawer[open] { display: flex; animation: tw-slide .35s var(--ease); }
@keyframes tw-slide { from { transform: translateX(24px); opacity: 0; } }
[dir="rtl"] .tw-drawer[open] { animation-name: tw-slide-rtl; }
@keyframes tw-slide-rtl { from { transform: translateX(-24px); opacity: 0; } }
.tw-drawer::backdrop, .tw-search::backdrop, .tw-modal::backdrop { background: rgba(21, 20, 18, .42); backdrop-filter: blur(2px); }
.tw-drawer__top { display: flex; align-items: center; justify-content: space-between; color: var(--ink); }
.tw-drawer__list { display: grid; }
.tw-drawer__list a { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; color: var(--ink); transition: color .2s; }
.tw-drawer__list a:hover, .tw-drawer__list a[aria-current="page"], .tw-drawer__list .current-menu-item > a { color: var(--accent); }
.tw-drawer__list a[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tw-drawer__foot { margin-top: auto; display: grid; gap: .75rem; padding-top: 1.5rem; }
.tw-drawer__contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .5rem; }
.tw-drawer__contact .tw-btn .tw-icon { width: 17px; height: 17px; }
.tw-drawer__langs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--stone); }
.tw-drawer__langs a { display: grid; place-items: center; min-height: 38px; border-radius: var(--pill); font-size: var(--fs-sm); color: var(--muted); }
.tw-drawer__langs a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(21, 20, 18, .12); }
.tw-drawer__lang, .tw-footer__lang { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--muted); }
.tw-drawer__lang .tw-icon, .tw-footer__lang .tw-icon { width: 18px; height: 18px; }

.tw-search {
	margin: 0;
	inset-inline: 0;
	top: 0;
	width: 100%;
	max-width: 100%;
	padding: 0;
	border: 0;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.tw-search[open] { animation: tw-drop .3s var(--ease); }
@keyframes tw-drop { from { transform: translateY(-12px); opacity: 0; } }
.tw-search__form {
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 1rem var(--gutter);
	display: flex;
	align-items: center;
	gap: .8rem;
}
.tw-search__form > .tw-icon { color: var(--muted); }
.tw-search__form input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.25rem; padding: .75rem 0; color: var(--ink); }
.tw-search__form input[type="search"]:focus { outline: none; }

/* ------------------------------------------------------------------ hero */
.tw-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(640px, 54vw, 880px);
	display: flex;
	background: #ecebe7;
	overflow: hidden;
}
.tw-hero__media { position: absolute; inset: 0; z-index: -1; }
.tw-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 62%; }
[dir="rtl"] .tw-hero__media img { transform: scaleX(-1); }
.tw-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(246, 245, 242, .9) 0%, rgba(246, 245, 242, .62) 30%, rgba(246, 245, 242, 0) 55%);
}
[dir="rtl"] .tw-hero__media::after { background: linear-gradient(270deg, rgba(246, 245, 242, .9) 0%, rgba(246, 245, 242, .62) 30%, rgba(246, 245, 242, 0) 55%); }

.tw-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 3rem;
	padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 7.5rem)) clamp(2rem, 4vw, 3.25rem);
}
.tw-hero__copy { max-width: 44rem; }
.tw-hero__title {
	margin-top: 1.4rem;
	font-size: var(--fs-h1);
	font-weight: 400;
	line-height: var(--lh-tight);
	letter-spacing: -0.015em;
	color: var(--ink);
}
[lang="ar"] .tw-hero__title { letter-spacing: 0; font-weight: 500; font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); }
.tw-hero__text { margin-top: 1.5rem; max-width: 27rem; color: var(--muted); font-size: 0.9375rem; }
.tw-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

.tw-play { display: inline-flex; align-items: center; gap: .8rem; font-size: 0.8125rem; color: var(--ink-2); }
.tw-play__ring {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--ink-2);
	transition: background-color .25s, color .25s;
}
.tw-play__ring .tw-icon { width: 18px; height: 18px; }
.tw-play:hover { color: var(--accent); }
.tw-play:hover .tw-play__ring { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.tw-facts { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2rem, 4vw, 3.75rem); }
.tw-facts li { display: flex; align-items: flex-start; gap: .8rem; font-size: 0.75rem; line-height: 1.35; color: var(--muted); }
[lang="ar"] .tw-facts li { font-size: 0.8125rem; }
.tw-facts .tw-icon { width: 24px; height: 24px; color: var(--ink-2); margin-top: 1px; }
.tw-facts strong { display: block; font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.2; }

.tw-hero__scroll {
	position: absolute;
	inset-inline-end: max(var(--gutter), calc((100% - var(--wrap)) / 2 - 1.5rem));
	bottom: clamp(2rem, 4vw, 3.25rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .9rem;
	font-size: 0.6875rem;
	letter-spacing: .14em;
	color: var(--ink-2);
}
.tw-hero__scroll span { writing-mode: vertical-rl; }
.tw-hero__scroll::before { content: ""; order: -1; width: 1px; height: 56px; background: var(--ink-2); opacity: .5; }
.tw-hero__scroll::after { content: ""; width: 7px; height: 11px; border: 1px solid var(--ink-2); border-radius: 4px; }

/* ------------------------------------------------------------- sections */
.tw-section { padding-block: var(--section); }
.tw-section--tight { padding-block: calc(var(--section) * .75); }
.tw-section--stone { background: var(--stone); }
.tw-section--page { padding-block: calc(var(--section) * .6) var(--section); }

.tw-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.tw-head > div { min-width: 0; }

/* toolbar: chips + search */
.tw-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 1.75rem;
}
.tw-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tw-chip {
	min-height: 36px;
	padding: .4rem 1.05rem;
	border-radius: var(--pill);
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 0.75rem;
	color: var(--ink-2);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
[lang="ar"] .tw-chip { font-size: 0.8125rem; }
.tw-chip:hover { border-color: var(--accent); color: var(--accent); }
.tw-chip[aria-pressed="true"], .tw-chip[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.tw-field-search {
	position: relative;
	display: flex;
	align-items: center;
	width: min(100%, 260px);
}
.tw-field-search .tw-icon { position: absolute; inset-inline-start: .85rem; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.tw-field-search input {
	width: 100%;
	min-height: 40px;
	padding: .5rem .9rem;
	padding-inline-start: 2.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	font: inherit;
	font-size: 0.8125rem;
	color: var(--ink);
}
.tw-field-search input::placeholder { color: var(--faint); }
.tw-field-search input:focus { outline: none; border-color: var(--ink-2); }

/* grids */
.tw-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.tw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* product card */
.tw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .3s, box-shadow .3s var(--ease);
}
.tw-card:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -28px rgba(21, 20, 18, .35); }
.tw-card__media { display: block; aspect-ratio: 20 / 17; background: #f1efeb; overflow: hidden; }
.tw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tw-card:hover .tw-card__media img { transform: scale(1.035); }
/* Second product photo fades in on hover (pointer devices only). */
.tw-card__media { position: relative; }
.tw-card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease), transform .8s var(--ease) !important; }
@media (hover: hover) {
	.tw-card:hover .tw-card__alt, .tw-card:focus-within .tw-card__alt { opacity: 1; }
}
.tw-card__noimg { display: grid; place-items: center; height: 100%; color: var(--faint); }
.tw-card__body { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.tw-card__cat { font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
[lang="ar"] .tw-card__cat { letter-spacing: 0; font-size: var(--fs-xs); }
.tw-card__title { font-size: 0.9375rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.tw-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.tw-card__text { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }
.tw-card .tw-link { margin-top: auto; padding-top: .7rem; }
.tw-card[hidden] { display: none; }

.tw-empty { padding: 2.5rem 0; text-align: center; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; }
.tw-empty[hidden], .tw-more[hidden] { display: none; }
.tw-more { margin-top: 1.75rem; text-align: center; }

/* about split */
.tw-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2.5rem, 7vw, 7rem);
}
.tw-split__media { aspect-ratio: 9 / 10; overflow: hidden; border-radius: 2px; background: #e7e4de; }
.tw-split__media img { width: 100%; height: 100%; object-fit: cover; }
.tw-split__copy .tw-h2 { margin-top: 1.1rem; max-width: 30rem; }
.tw-values { display: grid; gap: 1.25rem; margin-block: 2.25rem 2.5rem; }
.tw-values li { display: flex; align-items: center; gap: 1rem; font-size: 0.8125rem; color: var(--muted); }
.tw-values strong { display: block; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.tw-values__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); background: var(--surface); }
.tw-values__icon .tw-icon { width: 20px; height: 20px; }

/* applications — icon-led until real project photography exists */
.tw-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.tw-app { display: grid; align-content: start; gap: .5rem; padding: 2rem clamp(1rem, 2.5vw, 2rem) 2.25rem; }
.tw-app + .tw-app { border-inline-start: 1px solid var(--line); }
.tw-app:first-child { padding-inline-start: 0; }
.tw-app:last-child { padding-inline-end: 0; }
.tw-app__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: .75rem; border-radius: 50%; background: var(--stone); color: var(--ink-2); }
.tw-app__icon .tw-icon { width: 24px; height: 24px; }
.tw-app__title { font-size: var(--fs-md); font-weight: 500; color: var(--ink); }
.tw-app__text { font-size: 0.8125rem; color: var(--muted); max-width: 22rem; }

/* resources */
.tw-res { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.tw-res__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.tw-doc { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tw-doc__cover { width: 100%; aspect-ratio: 16 / 11; margin-bottom: .6rem; overflow: hidden; display: grid; place-items: center; background: var(--stone); color: var(--faint); border-radius: 2px; }
.tw-doc__cover img { width: 100%; height: 100%; object-fit: cover; }
.tw-doc__title { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.tw-doc__meta { font-size: var(--fs-xs); color: var(--faint); margin-bottom: .6rem; }
.tw-doc .tw-btn { margin-top: auto; }
.tw-doc .tw-btn .tw-icon { width: 16px; height: 16px; }

.tw-res__banner {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	min-height: 168px;
	padding: 2rem clamp(1.5rem, 4vw, 3rem);
	background: var(--night);
	color: var(--on-night);
	border-radius: var(--radius);
	overflow: hidden;
}
.tw-res__banner::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: 55%;
	z-index: -1;
	background: var(--tw-banner-img, none) center / cover;
	-webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
	mask-image: linear-gradient(to left, #000 35%, transparent);
	opacity: .85;
}
[dir="rtl"] .tw-res__banner::before { -webkit-mask-image: linear-gradient(to right, #000 35%, transparent); mask-image: linear-gradient(to right, #000 35%, transparent); }
.tw-res__banner-title { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 300; line-height: 1.35; max-width: 22rem; }
[lang="ar"] .tw-res__banner-title { font-weight: 400; }

/* closing CTA */
.tw-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-night); }
.tw-cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tw-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 18, 15, .86), rgba(20, 18, 15, .55)); }
[dir="rtl"] .tw-cta::before { background: linear-gradient(270deg, rgba(20, 18, 15, .86), rgba(20, 18, 15, .55)); }
.tw-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3.5rem, 7vw, 6rem); }
.tw-cta .tw-h2 { color: var(--on-night); font-weight: 300; }
[lang="ar"] .tw-cta .tw-h2 { font-weight: 400; }
.tw-cta p { margin-top: .75rem; color: rgba(246, 243, 238, .72); max-width: 30rem; }
.tw-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------------------------------------------------------------- footer */
/* v1.6: brand + inline navigation · contact row + socials · legal bar. */
.tw-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.tw-footer a { color: inherit; }
.tw-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.25rem 1.75rem; }
.tw-footer__brand { display: flex; align-items: center; gap: 1.25rem; flex: 1 1 22rem; min-width: 0; }
.tw-footer__logo { display: inline-flex; flex: none; }
.tw-footer__logo .tw-logo__img, .tw-footer__logo img { height: 44px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.tw-footer__about { margin: 0; max-width: 30rem; font-size: var(--fs-xs); line-height: 1.6; color: var(--faint); }
.tw-footer__nav { flex: 0 1 auto; }
.tw-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 2rem; }
.tw-footer__links a, .tw-footer__contact a, .tw-footer__legal a { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; color: var(--ink-2); transition: color .25s var(--ease); }
.tw-footer__links a { font-size: var(--fs-md); color: var(--ink); }
.tw-footer__links a::after, .tw-footer__contact a span::after, .tw-footer__legal a::after { content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: var(--tw-start, left); transition: transform .3s var(--ease); }
[dir="rtl"] .tw-footer { --tw-start: right; }
.tw-footer__contact a span { position: relative; }
.tw-footer__contact a span::after { inset-inline: 0; bottom: -3px; }
.tw-footer__contact a:hover, .tw-footer__links a:hover, .tw-footer__legal a:hover, .tw-footer__links .current-menu-item > a, .tw-footer__links a[aria-current] { color: var(--accent); }
.tw-footer__links a:hover::after, .tw-footer__links a:focus-visible::after, .tw-footer__links a[aria-current]::after, .tw-footer__contact a:hover span::after, .tw-footer__legal a:hover::after { transform: scaleX(1); }
.tw-footer__mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.tw-footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem; }
.tw-footer__contact .tw-icon, .tw-footer__plain .tw-icon { width: 17px; height: 17px; color: var(--muted); flex: none; }
.tw-footer__plain { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; }
.tw-social { display: flex; gap: .25rem; }
.tw-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease); }
.tw-social a:hover { color: var(--accent); background: var(--stone); transform: translateY(-2px); }
.tw-social .tw-icon { width: 17px; height: 17px; }
.tw-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; padding-block: .9rem max(.9rem, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--faint); }
.tw-footer__copy { margin: 0; }
.tw-footer__cert { margin: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border: 1px solid var(--line-2); border-radius: var(--pill); color: var(--ink-2); }
.tw-footer__cert .tw-icon { width: 15px; height: 15px; color: var(--muted); }
.tw-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; margin-inline-start: auto; }
.tw-footer__legal a { min-height: 32px; color: var(--muted); }
.tw-footer__legal a::after { bottom: 6px; }
.tw-footer__legal .tw-icon { width: 15px; height: 15px; }
.tw-legal { display: flex; gap: 1.5rem; }
.tw-legal a:hover { color: var(--accent); }

/* -------------------------------------------------------------- quote modal */
.tw-modal {
	width: min(640px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: var(--surface);
	box-shadow: 0 30px 80px -30px rgba(21, 20, 18, .45);
	overflow: auto;
}
.tw-modal[open] { animation: tw-pop .3s var(--ease); }
@keyframes tw-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.tw-quote { padding: clamp(1.5rem, 4vw, 2.25rem); }
.tw-quote__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.tw-quote__head .tw-iconbtn { margin-top: -6px; margin-inline-end: -8px; }
.tw-quote__sub { margin-top: .35rem; font-size: var(--fs-sm); color: var(--muted); }
.tw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.tw-f { display: grid; gap: .35rem; min-width: 0; }
.tw-f--full { grid-column: 1 / -1; }
.tw-qopt { margin: 0; padding: 0; border: 0; }
.tw-qopt legend { padding: 0; margin-bottom: .5rem; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.tw-qopt__hint { font-weight: 400; color: var(--faint); }
.tw-qopt__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .75rem; }
.tw-qopt__grid label { font-weight: 400; color: var(--muted); }
.tw-f label { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.tw-f input, .tw-f textarea {
	width: 100%;
	min-height: 44px;
	padding: .65rem .85rem;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--surface);
	font: inherit;
	font-size: 0.9375rem;
	color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .tw-f input[dir="ltr"] { text-align: right; }
.tw-f textarea { resize: vertical; min-height: 104px; }
.tw-f input:focus, .tw-f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 20, 18, .08); }
.tw-f.is-invalid input, .tw-f.is-invalid textarea { border-color: var(--err); }
.tw-f__err { font-size: var(--fs-xs); color: var(--err); min-height: 0; }
.tw-f__err:empty { display: none; }
.tw-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tw-quote__status { margin-top: 1rem; font-size: var(--fs-sm); }
.tw-quote__status:empty { display: none; }
.tw-quote__status[data-state="sent"] { color: var(--ok); }
.tw-quote__status[data-state="error"] { color: var(--err); }
.tw-quote__status[data-state="preview"] { color: var(--flag-fg); background: var(--flag-bg); padding: .6rem .8rem; border-radius: var(--radius); }
.tw-quote__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.tw-quote__hint { font-size: var(--fs-xs); color: var(--faint); }

/* generic page content (fallback template) */
.tw-prose { max-width: 46rem; }
.tw-prose > * + * { margin-top: 1rem; }


/* ======================================================= inner pages */
.tw-pagehead { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.75rem, 3vw, 2.75rem); }
.tw-pagehead__title { margin-top: .9rem; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
[lang="ar"] .tw-pagehead__title { letter-spacing: 0; line-height: 1.35; font-weight: 500; }
.tw-pagehead .tw-lede { max-width: 40rem; }
.tw-crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); color: var(--faint); }
.tw-crumbs li + li::before { content: "/"; margin-inline-end: .35rem; color: var(--line-2); }
.tw-crumbs a:hover { color: var(--accent); }
.tw-crumbs [aria-current] { color: var(--ink-2); }
.tw-crumbs--product { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.tw-section--flush { padding-block: 0 var(--section); }
.tw-intro { margin-bottom: 2rem; }

a.tw-chip { display: inline-flex; align-items: center; }
.tw-chip[aria-current="page"], .tw-chip[aria-current="page"]:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tw-count { margin: -0.5rem 0 1.25rem; font-size: var(--fs-xs); color: var(--faint); }
.tw-empty--box { flex-direction: column; gap: 1rem; padding: 3rem 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }

.tw-prose { color: var(--ink-2); line-height: 1.75; }
.tw-prose > * + * { margin-top: 1rem; }
.tw-prose--muted { color: var(--muted); }
.tw-prose h2, .tw-prose h3 { color: var(--ink); font-weight: 500; line-height: 1.3; margin-top: 2rem; }
.tw-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tw-prose ul, .tw-prose ol { padding-inline-start: 1.25rem; }

/* WordPress content classes (page editor output) */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .gallery-caption, .wp-caption-text, figcaption { font-size: var(--fs-xs); color: var(--muted); }
.wp-caption { max-width: 100%; }
.tw-prose img { border-radius: var(--radius); }
.sticky, .bypostauthor { position: relative; }

/* pagination (the_posts_pagination) */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding-inline: .8rem; border: 1px solid var(--line); border-radius: var(--pill); font-size: var(--fs-sm); background: var(--surface); }
.pagination .page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* product detail */
.tw-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
	padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(3rem, 5vw, 4.5rem);
}
.tw-gallery { display: grid; gap: .75rem; }
.tw-gallery__main { position: relative; aspect-ratio: 20 / 17; background: #f1efeb; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tw-gallery__zoom { position: absolute; inset-inline-end: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(255, 255, 255, .94); color: var(--ink); font-size: var(--fs-xs); cursor: pointer; transition: border-color .2s; }
.tw-gallery__zoom:hover { border-color: var(--ink); }
.tw-gallery__zoom .tw-icon { width: 18px; height: 18px; }
.tw-gallery__count { position: absolute; inset-inline-start: 1rem; bottom: 1rem; padding: .3rem .75rem; border-radius: var(--pill); background: rgba(21, 20, 18, .72); color: var(--on-night); font-family: var(--f-latin); font-size: var(--fs-xs); }
.tw-zoom { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: clamp(1rem, 4vw, 3rem); border: 0; background: rgba(21, 20, 18, .94); }
.tw-zoom[open] { display: grid; place-items: center; }
.tw-zoom::backdrop { background: transparent; }
.tw-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.tw-zoom__close { position: absolute; top: max(1rem, env(safe-area-inset-top, 0px)); inset-inline-end: 1rem; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(246, 243, 238, .4); border-radius: 50%; background: transparent; color: var(--on-night); cursor: pointer; }
.tw-zoom__close .tw-icon { width: 20px; height: 20px; }
.tw-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.tw-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.tw-gallery__thumbs button { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #f1efeb; overflow: hidden; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.tw-gallery__thumbs button:hover { opacity: 1; }
.tw-gallery__thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
.tw-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tw-product__info { position: sticky; top: calc(var(--header-h) + var(--admin-bar) + 1.5rem); padding-top: .5rem; }
.tw-product__title { margin-top: .9rem; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
[lang="ar"] .tw-product__title { letter-spacing: 0; line-height: 1.35; font-weight: 500; }
.tw-product__lede { margin-top: 1rem; color: var(--muted); max-width: 30rem; }
.tw-feats { display: grid; gap: .9rem; margin-top: 1.75rem; }
.tw-feats li { display: flex; align-items: center; gap: .85rem; font-size: var(--fs-sm); color: var(--ink-2); }
.tw-feats .tw-icon { width: 20px; height: 20px; color: var(--muted); }
.tw-thick { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tw-thick__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: .75rem; }
.tw-thick__label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.tw-thick__hint { font-size: var(--fs-xs); color: var(--faint); }
.tw-thick__chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.tw-thick__chip { min-height: 44px; min-width: 4.5rem; padding: 0 1.1rem; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-sm); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.tw-thick__chip:hover { border-color: var(--ink); }
.tw-thick__chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tw-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.tw-helpcard { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; padding: 1.1rem 1.25rem; background: var(--stone); border-radius: var(--radius); }
.tw-helpcard__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.tw-helpcard__icon .tw-icon { width: 18px; height: 18px; }
.tw-helpcard__title { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.tw-helpcard__text { font-size: var(--fs-sm); color: var(--muted); }
.tw-link--muted { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.tw-link--muted .tw-icon { width: 17px; height: 17px; }
.tw-product__note { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--faint); max-width: 28rem; }

.tw-product__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.tw-panel { padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.tw-panel--wide, .tw-panel:only-child { grid-column: 1 / -1; }
.tw-panel__title { font-size: var(--fs-md); font-weight: 500; color: var(--ink); margin-bottom: 1.1rem; }
.tw-panel__empty { color: var(--muted); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.tw-specs { margin: 0; }
.tw-specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; padding-block: .8rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.tw-specs > div:last-child { border-bottom: 1px solid var(--line); }
.tw-specs dt { color: var(--muted); }
.tw-specs dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
[dir="rtl"] .tw-specs dd[dir="ltr"] { text-align: right; }
.tw-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; }
.tw-uses li { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-sm); color: var(--ink-2); }
.tw-uses .tw-icon { width: 20px; height: 20px; color: var(--muted); }

.tw-stickyquote { display: none; }
.tw-btn--wa .tw-icon { width: 18px; height: 18px; }
.tw-stickyquote__acts { display: flex; align-items: center; gap: .5rem; flex: none; }
.tw-stickyquote__wa { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--pill); color: var(--ink); }
.tw-stickyquote__wa .tw-icon { width: 20px; height: 20px; }

/* about */
.tw-split--about { align-items: start; }
.tw-split--about .tw-split__copy { padding-top: .5rem; }
.tw-split--about .tw-prose { margin-top: 1rem; }
.tw-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem clamp(3rem, 10vw, 9rem); margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); text-align: center; }
.tw-stats li { display: grid; gap: .25rem; }
.tw-stats strong { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 300; color: var(--ink); line-height: 1; }
.tw-stats span { font-size: var(--fs-xs); color: var(--muted); }
.tw-stats__todo { align-self: center; }
.tw-catlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.tw-catlist a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem .25rem; border-bottom: 1px solid var(--line-2); font-size: var(--fs-lg); color: var(--ink); transition: padding .3s var(--ease); }
.tw-catlist li:not(:nth-child(3n+1)) a { padding-inline-start: 1.5rem; }
.tw-catlist a:hover .tw-icon--dir { transform: translateX(4px); }
[dir="rtl"] .tw-catlist a:hover .tw-icon--dir { transform: scaleX(-1) translateX(4px); }
.tw-catlist .tw-icon { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); }

/* catalogs page */
.tw-res__list--page { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.tw-doc[hidden] { display: none; }

/* contact */
.tw-contactgrid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tw-cinfo { display: grid; gap: 1.5rem; }
.tw-contactinfo .tw-prose { margin-bottom: 2rem; }
.tw-cinfo li { display: flex; align-items: flex-start; gap: 1rem; font-size: var(--fs-sm); color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.tw-cinfo strong { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--faint); margin-bottom: .2rem; }
.tw-cinfo a { color: var(--accent); }
.tw-contactform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tw-quote--inline .tw-quote__head { margin-bottom: 1.25rem; }
.tw-mapcard { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); padding: 1.25rem 1.5rem; background: var(--stone); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--muted); }
.tw-mapcard strong { display: block; color: var(--ink); font-weight: 500; }
.tw-mapcard > .tw-icon { margin-inline-start: auto; }

@media (max-width: 860px) {
	.tw-product__top { grid-template-columns: minmax(0, 1fr); }
	.tw-product__info { position: static; }
	.tw-product__details { grid-template-columns: minmax(0, 1fr); }
	.tw-contactgrid { grid-template-columns: minmax(0, 1fr); }
	.tw-catlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tw-catlist li:not(:nth-child(3n+1)) a { padding-inline-start: .25rem; }
	.tw-catlist li:nth-child(even) a { padding-inline-start: 1.25rem; }
	.tw-stickyquote {
		position: fixed;
		z-index: 40;
		inset-inline: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: .7rem max(var(--gutter), env(safe-area-inset-right, 0px)) max(.7rem, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
		background: rgba(255, 255, 255, .96);
		border-top: 1px solid var(--line);
		backdrop-filter: blur(8px);
		transform: translateY(110%);
		transition: transform .3s var(--ease);
	}
	.tw-stickyquote.is-on { transform: none; }
	.tw-stickyquote span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
}
@media (max-width: 640px) {
	.tw-uses { grid-template-columns: minmax(0, 1fr); }
	.tw-catlist { grid-template-columns: minmax(0, 1fr); }
	.tw-catlist li a, .tw-catlist li:nth-child(even) a { padding-inline-start: .25rem; }
	.tw-specs > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
	.tw-gallery__thumbs { gap: .5rem; }
	.tw-gallery__zoom { width: 44px; padding: 0; justify-content: center; inset-inline-end: .75rem; bottom: .75rem; }
	.tw-gallery__zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.tw-gallery__count { inset-inline-start: .75rem; bottom: .75rem; }
	.tw-product__actions { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .75rem; }
	.tw-product__actions .tw-btn { justify-content: center; }
	.tw-product__actions .tw-link { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
	.tw-nav { display: none; }
	/* Smaller screens: logo on one side, language + search + quote + menu grouped on the other. */
	.tw-header__actions, .tw-nav + .tw-header__actions { margin-inline-start: auto; gap: .25rem; }
	.tw-header__bar { gap: 1rem; }
	.tw-lang { margin-inline-end: .25rem; }
	.tw-header__cta { margin-inline: .25rem; }
	.tw-menu-toggle { display: inline-grid; }
	.tw-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tw-hero__scroll { display: none; }
}

@media (max-width: 860px) {
	:root { --header-h: 64px; }
	.tw-logo__img { height: 40px; }
	.tw-grid--3, .tw-res__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tw-split { grid-template-columns: minmax(0, 1fr); }
	.tw-split__media { aspect-ratio: 4 / 3; }
	.tw-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tw-app, .tw-app:first-child, .tw-app:last-child { padding: 1.5rem 1.25rem 1.75rem; }
	.tw-app:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
	.tw-app:nth-child(n+3) { border-top: 1px solid var(--line); }

	/* hero: copy first, image below, facts as a 3-up row (as in the mobile reference) */
	.tw-hero { flex-direction: column; min-height: 0; background: var(--bg); }
	.tw-hero__copy { order: 1; }
	.tw-facts { order: 3; }
	.tw-hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 5 / 4; order: 2; }
	.tw-hero__media img { object-position: 74% 70%; }
	.tw-hero__media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(251, 250, 248, 0) 22%); }
	[dir="rtl"] .tw-hero__media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(251, 250, 248, 0) 22%); }
	.tw-hero__inner { display: contents; }
	.tw-hero__copy { padding: calc(var(--header-h) + 2.5rem) max(var(--gutter), env(safe-area-inset-right, 0px)) 1.5rem max(var(--gutter), env(safe-area-inset-left, 0px)); }
	.tw-hero__title br { display: none; }
	.tw-facts {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0;
		padding-block: 1.4rem;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
	}
	.tw-facts li { flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding-inline: .5rem; font-size: 0.6875rem; }
	.tw-facts li + li { border-inline-start: 1px solid var(--line); }
	.tw-facts .tw-icon { width: 22px; height: 22px; }
	.tw-facts strong { font-size: 0.875rem; }

	.tw-rail {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(240px, 72%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: .75rem;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
		scrollbar-width: thin;
	}
	.tw-rail > * { scroll-snap-align: start; }
}

@media (max-width: 640px) {
	.tw-header__cta { display: none; }
	.tw-header__bar { gap: .5rem; }
	.tw-iconbtn { width: 42px; height: 42px; }
	.tw-head { align-items: flex-start; flex-direction: column; }
	.tw-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	.tw-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; scrollbar-width: none; }
	.tw-chips::-webkit-scrollbar { display: none; }
	.tw-chip { flex: none; }
	.tw-field-search { width: 100%; }
	.tw-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
	.tw-card__body { padding: .85rem .9rem 1rem; }
	.tw-card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.tw-res__list { grid-template-columns: minmax(0, 1fr); }
	.tw-doc { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 1rem; row-gap: .15rem; align-items: start; }
	.tw-doc__cover { grid-row: 1 / 4; aspect-ratio: 4 / 5; margin: 0; }
	.tw-doc__meta { margin-bottom: .4rem; }
	.tw-doc .tw-btn { justify-self: start; }
	.tw-form-grid { grid-template-columns: minmax(0, 1fr); }
	.tw-footer__top { flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; padding-block: 2rem 1.25rem; }
	.tw-footer__brand { flex-direction: column; flex: none; gap: .75rem; }
	.tw-footer__links { justify-content: center; gap: 0 1.25rem; }
	.tw-footer__mid { flex-direction: column; justify-content: center; }
	.tw-footer__contact { justify-content: center; gap: 0 1.25rem; }
	.tw-footer__bottom { justify-content: center; text-align: center; }
	.tw-footer__legal { margin-inline-start: 0; justify-content: center; }
	.tw-cta__actions { width: 100%; }
	.tw-cta__actions .tw-btn { flex: 1; }
}

@media (max-width: 480px) {
	.tw-drawer { width: 100vw; }
}

@media (max-width: 380px) {
	.tw-logo__img { height: 34px; }
	.tw-lang { display: none; } /* language switch stays in the menu */
	.tw-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.tw-wordmark__text { letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------- blog (v1.7) */
.tw-article { max-width: 52rem; }
.tw-article__meta { font-size: var(--fs-sm); color: var(--faint); margin-bottom: 1.25rem; }
.tw-article__media { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; background: #f1efeb; }
.tw-article__media img { width: 100%; height: auto; display: block; }
.tw-article__body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.tw-article__back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Content written before this theme (classic editor, Elementor, pasted from Facebook) never widens the page. */
.tw-prose img, .tw-prose video, .tw-prose iframe, .tw-prose embed { max-width: 100%; height: auto; }
.tw-prose table { display: block; max-width: 100%; overflow-x: auto; }
.tw-prose pre { overflow-x: auto; }
.tw-prose [style*="width"] { max-width: 100%; }
.tw-prose img[src*="emoji"] { display: inline; width: 1.1em; height: 1.1em; vertical-align: -.15em; }


/* ---- v1.8 · product archive + page: image loading, designed fallback, busy state ---- */
.js .tw-card__media:not(.is-loaded) { background: linear-gradient(100deg, #f1efeb 30%, #f8f6f2 50%, #f1efeb 70%) 0 0 / 200% 100%; animation: tw-shimmer 1.4s linear infinite; }
@keyframes tw-shimmer { to { background-position: -200% 0; } }
.tw-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; width: 100%; height: 100%; min-height: 8rem; color: var(--faint); background: repeating-linear-gradient(135deg, #f3f1ed 0 14px, #efece7 14px 15px); text-align: center; }
.tw-noimg svg { width: 1.9rem; height: 1.9rem; opacity: .75; }
.tw-noimg__txt { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
[lang="ar"] .tw-noimg__txt { letter-spacing: 0; text-transform: none; }
.tw-gallery__main .tw-noimg { aspect-ratio: 900 / 760; }
[data-catalog][aria-busy], [data-catalog].is-loading [data-grid] { transition: opacity .25s var(--ease); }
[data-catalog].is-loading [data-grid] { opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .js .tw-card__media:not(.is-loaded) { animation: none; } }

.tw-f--check label { display: flex; align-items: center; gap: .6rem; font-weight: 400; cursor: pointer; }
.tw-f--check input { width: 1.1rem; height: 1.1rem; accent-color: var(--red, #d31330); flex: none; }

/* Phase 5: comfortable touch targets for text links on touch devices (WCAG 2.5.8). */
@media (pointer: coarse) { .tw-link { min-height: 44px; } }
@media (pointer: coarse) {
	main a[href^="tel:"], main a[href^="mailto:"], main a[href*="wa.me"] { display: inline-flex; align-items: center; min-height: 44px; }
}

.tw-ltop { margin-top: clamp(3rem, 6vw, 5rem); scroll-margin-top: 90px; }

/* ---------- Material pages (code-801…834) ---------- */
.tw-mat { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "hero specs" "apps apps" "about about"; padding-bottom: clamp(2rem, 4vw, 3rem); }
.tw-mat__hero { grid-area: hero; position: relative; margin: 0; align-self: start; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f1efeb; }
.tw-mat__hero button, .tw-mat__grid button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tw-mat__hero img, .tw-mat__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.tw-mat__hero button:hover img, .tw-mat__grid button:hover img { transform: scale(1.03); }
.tw-mat__zoom { position: absolute; inset-inline-start: .9rem; bottom: .9rem; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(255, 255, 255, .94); color: var(--ink); pointer-events: none; transition: border-color .2s; }
.tw-mat__hero button:hover .tw-mat__zoom, .tw-mat__grid button:hover .tw-mat__zoom { border-color: var(--ink); }
.tw-mat__zoom .tw-icon { width: 18px; height: 18px; }
.tw-mat__h { font-size: var(--fs-h3); font-weight: 500; color: var(--ink); margin: 0 0 1rem; }
.tw-mat__h span { font-family: var(--f-latin); font-size: .75em; color: var(--accent); margin-inline-start: .35rem; }
.tw-mat__specs { grid-area: specs; min-width: 0; }
.tw-mat__table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tw-mat__table thead th { background: var(--stone); text-align: start; padding: .8rem .9rem; border-bottom: 2px solid var(--ink); font-weight: 500; }
.tw-mat__table tbody th { text-align: start; width: 38%; padding: .85rem .9rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); vertical-align: top; }
.tw-mat__table td { padding: .85rem .9rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.tw-mat__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; }
.tw-mat__chips span { display: inline-flex; justify-content: center; min-width: 4.6em; padding: .25rem .6rem; border: 1px solid var(--accent); border-radius: 2px; background: #fff; color: var(--ink); line-height: 1.3; unicode-bidi: isolate; }
.tw-mat__chips em { font-style: normal; color: var(--muted); margin-inline-start: .25rem; }
.tw-mat__chips:has(span:nth-child(n+4)) span { min-width: 2.8em; }
.tw-mat__actions { margin-top: 1.5rem; }
.tw-mat__apps { grid-area: apps; }
.tw-mat__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tw-mat__grid li { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #f1efeb; }
.tw-mat__grid .tw-mat__zoom { width: 38px; height: 38px; inset-inline-start: auto; inset-inline-end: .6rem; bottom: .6rem; }
.tw-mat__about { grid-area: about; }
.tw-cz { width: min(96vw, 1500px); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.tw-cz::backdrop { background: rgba(10, 9, 8, .88); }
.tw-cz img { display: block; width: 100%; max-height: 86vh; object-fit: contain; margin-inline: auto; }
.tw-cz__count { margin: .75rem 0 0; text-align: center; color: #fff; font-family: var(--f-latin); font-size: var(--fs-sm); }
.tw-cz__btn { position: absolute; top: 45%; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--pill); background: rgba(21, 20, 18, .7); color: #fff; cursor: pointer; }
.tw-cz__btn:hover { border-color: #fff; }
.tw-cz__close { top: .5rem; inset-inline-end: .5rem; }
.tw-cz__prev { inset-inline-start: .5rem; } .tw-cz__next { inset-inline-end: .5rem; }
.tw-cz__prev .tw-icon { transform: rotate(180deg); }
[dir="rtl"] .tw-cz__prev .tw-icon { transform: none; } [dir="rtl"] .tw-cz__next .tw-icon { transform: rotate(180deg); }
@media (max-width: 900px) {
	.tw-mat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "specs" "apps" "about"; }
	.tw-mat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tw-mat__grid li:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
	.tw-mat__table tbody th { width: 42%; }
}
@media (prefers-reduced-motion: reduce) { .tw-mat__hero img, .tw-mat__grid img { transition: none; } }
.tw-mat__titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.tw-mat__titlebar .tw-pagehead__title { margin: 0; }
.tw-mat__logo { flex: none; height: clamp(52px, 4vw + 36px, 76px); width: auto; display: block; }
.tw-cz__stage { position: relative; width: 100%; height: min(82vh, 900px); overflow: hidden; touch-action: none; cursor: zoom-in; border-radius: var(--radius); }
.tw-cz__stage.is-zoomed { cursor: grab; }
.tw-cz__stage.is-zoomed:active { cursor: grabbing; }
.tw-cz .tw-cz__stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform; transform-origin: 50% 50%; }
.tw-cz__tools { position: absolute; inset-inline: 0; bottom: .25rem; margin-inline: auto; width: max-content; display: flex; gap: .4rem; direction: ltr; }
.tw-cz__tool { min-width: 44px; height: 44px; padding-inline: .75rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--pill); background: rgba(21, 20, 18, .7); color: #fff; font: 500 1.25rem/1 var(--f-latin); cursor: pointer; }
.tw-cz__tool:hover { border-color: #fff; }
.tw-cz__reset { font-size: var(--fs-xs); letter-spacing: .04em; }
.tw-cz__count { margin: .5rem 0 3.25rem; }
.tw-cz__btn { top: 45%; }
.tw-cz .tw-cz__close { top: .75rem; z-index: 3; }
@media (max-width: 900px) { .tw-cz { width: 100vw; max-height: 100dvh; } .tw-cz__stage { height: 74dvh; border-radius: 0; } }

.tw-mat__builder { margin-block: 0 clamp(1.5rem, 3vw, 2.5rem); }
.tw-mat__builder:empty { display: none; }
