/* ==========================================================================
   DAL — main stylesheet
   Tokens from the DAL Brand Book. Logical properties throughout so the same
   rules work in Arabic (RTL) and English (LTR). The logo is never mirrored.
   ========================================================================== */

:root {
	--dal-blue: #1E519E;
	--dal-navy: #16386B;
	--ink: #14181D;
	--white: #FFFFFF;
	--paper: #F7F9FB;
	--cloud: #EEF2F7;
	--line: #CBD3DE;
	--slate: #4A5568;
	--blue-50: #EAF1F9;
	--blue-100: #D3E1F1;
	--bronze: #A9733E;
	--success: #1F9D57;
	--warning: #C8811C;
	--error: #C7382E;

	--radius: 8px;
	--radius-btn: 6px;
	--container: 1200px;
	--gutter: 20px;
	--header-h: 72px;

	--font-display: "Archivo", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-label: "IBM Plex Mono", ui-monospace, monospace;

	--fs-h1: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
	--fs-h2: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);
	--fs-h3: 1.5rem;
	--fs-h4: 1.25rem;
	--fs-body: 1rem;
	--fs-small: 0.875rem;
	--fs-label: 0.75rem;
	--lh-body: 1.625;

	--shadow-sm: 0 1px 2px rgba(20, 24, 29, 0.06);
	--shadow-md: 0 8px 24px rgba(22, 56, 107, 0.10);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Arabic: Plex Sans Arabic everywhere, slightly larger body, no letter-spacing. */
[dir="rtl"] {
	--font-display: "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-label: "IBM Plex Sans Arabic", system-ui, sans-serif;
	--fs-body: 1.0625rem;
	--lh-body: 1.8;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--dal-blue); text-underline-offset: 3px; }
a:hover { color: var(--dal-navy); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0 0 16px; }
h1 { font-size: var(--fs-h1); line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.25; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.33; font-weight: 600; }
h4 { font-size: var(--fs-h4); line-height: 1.4; font-weight: 600; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 16px; }
ul, ol { padding-inline-start: 1.25em; }
:focus-visible { outline: 2px solid var(--dal-blue); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--blue-100); color: var(--ink); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; inset-inline-start: 16px; inset-block-start: -100px; z-index: 1000;
	padding: 12px 16px; background: var(--dal-navy); color: var(--white); border-radius: var(--radius-btn);
	font-weight: 500; text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; color: var(--white); }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Directional icons flip in RTL. The logo never does. */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
.icon--back { transform: scaleX(-1); }
[dir="rtl"] .icon--back { transform: none; }
.brand, .brand * { transform: none !important; }

/* ---------- Type helpers ---------- */
.eyebrow, .label {
	font-family: var(--font-label);
	font-size: var(--fs-label);
	line-height: 1.33;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--dal-blue);
	margin: 0 0 12px;
}
.label { color: var(--slate); margin-bottom: 4px; display: block; }
[dir="rtl"] .eyebrow, [dir="rtl"] .label { letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
.lead { font-size: 1.125rem; color: var(--slate); }
.section-title { margin-bottom: 8px; }
.section-intro { color: var(--slate); max-width: 640px; margin: 0; }
.link-arrow {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 500; text-decoration: none; color: var(--dal-blue);
}
.link-arrow:hover { color: var(--dal-navy); text-decoration: underline; }
.link-arrow .icon { transition: translate .2s var(--ease); }
.link-arrow:hover .icon { translate: 3px 0; }
[dir="rtl"] .link-arrow:hover .icon { translate: -3px 0; }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--dal-blue); --btn-fg: var(--white); --btn-bd: var(--dal-blue);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px;
	background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
	border-radius: var(--radius-btn);
	font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { color: var(--btn-fg); }
.btn--primary:hover { --btn-bg: var(--dal-navy); --btn-bd: var(--dal-navy); }
.btn--secondary { --btn-bg: var(--white); --btn-fg: var(--dal-blue); }
.btn--secondary:hover { --btn-bg: var(--blue-50); --btn-fg: var(--dal-navy); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--dal-navy); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--blue-50); --btn-bd: var(--blue-50); }
.btn--whatsapp { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--whatsapp .icon { color: #1F9D57; }
.btn--whatsapp:hover { --btn-bg: var(--cloud); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-block-end: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; color: var(--ink); }
.brand__logo { height: 40px; width: auto; min-width: 0; }
.brand__text { font-family: "Archivo", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: 1.75rem; letter-spacing: 0.02em; line-height: 1; color: var(--ink); }
.brand--reversed .brand__text { color: var(--white); }
.brand--reversed .brand__logo { height: 44px; }

.nav-primary { margin-inline-start: auto; }
.nav-primary__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-primary__list a {
	display: block; padding: 8px 12px; border-radius: var(--radius-btn);
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; white-space: nowrap;
}
.nav-primary__list a:hover { color: var(--dal-blue); background: var(--blue-50); }
.nav-primary__list a.is-active { color: var(--dal-blue); box-shadow: inset 0 -2px 0 var(--dal-blue); border-radius: 0; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: var(--radius-btn);
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.875rem;
}
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1.0625rem; }
.lang-switch[lang="en"] { font-family: "IBM Plex Sans", "Archivo", sans-serif; letter-spacing: .5px; }
.lang-switch:hover { border-color: var(--dal-blue); color: var(--dal-blue); }
.lang-switch--block { width: 100%; height: 48px; }

.menu-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-btn);
	background: transparent; color: var(--ink); cursor: pointer;
}
.menu-toggle:hover { background: var(--cloud); }

@media (max-width: 1240px) {
	.nav-primary, .site-header__cta { display: none; }
	.site-header__actions { margin-inline-start: auto; }
	.menu-toggle { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
	position: fixed; inset: 0; z-index: 100;
	display: flex; flex-direction: column;
	padding: 0 var(--gutter) 24px; background: var(--white);
	overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); border-block-end: 1px solid var(--line); }
.mobile-menu__list { list-style: none; margin: 8px 0 24px; padding: 0; }
.mobile-menu__list a {
	display: block; padding: 16px 4px; border-block-end: 1px solid var(--cloud);
	color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
}
.mobile-menu__list a.is-active { color: var(--dal-blue); }
.mobile-menu__actions { display: grid; gap: 12px; margin-block-start: auto; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 4rem + 2vw, 96px); }
.section--tight { padding-block: clamp(32px, 2rem + 1.5vw, 64px); }
.section--paper { background: var(--paper); }
.section--blue { background: var(--blue-50); }
.section-head { margin-block-end: 32px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-head--center { text-align: center; }
.section-head--center .section-intro { margin-inline: auto; }

.page-header { padding-block: clamp(40px, 2.5rem + 2vw, 72px) clamp(24px, 1.5rem + 1vw, 40px); background: var(--paper); border-block-end: 1px solid var(--cloud); }
.page-title { margin-bottom: 12px; max-width: 860px; }
.page-intro { font-size: 1.125rem; color: var(--slate); max-width: 720px; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 2rem + 3vw, 88px); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__title { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem); line-height: 1.12; margin-bottom: 20px; }
[dir="rtl"] .hero__title { line-height: 1.35; }
.hero__text { font-size: 1.125rem; color: var(--slate); max-width: 560px; margin-bottom: 32px; }
.hero__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cloud); }
.hero .btn-row { margin-bottom: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 40px 0 0; padding-block-start: 24px; border-block-start: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; }
.stat__value { margin: 0; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--dal-navy); }
.stat__label { color: var(--slate); font-size: var(--fs-small); }
[dir="rtl"] .stat__value { text-align: end; }
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
}

/* ---------- Media ratios & placeholder ---------- */
.ratio-4x3, .ratio-16x9 { position: relative; overflow: hidden; background: var(--cloud); }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 > img, .ratio-16x9 > img, .ratio-4x3 > .placeholder, .ratio-16x9 > .placeholder { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
	display: flex; align-items: center; justify-content: center;
	background:
		linear-gradient(135deg, transparent 0 48%, rgba(30, 81, 158, .06) 48% 52%, transparent 52%) 0 0 / 28px 28px,
		var(--cloud);
	color: var(--blue-100);
}
.placeholder span { font-family: "Archivo", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: clamp(2rem, 6vw, 3.5rem); color: var(--line); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease);
}
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__media img { transition: transform .5s var(--ease); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__body .label { color: var(--dal-blue); }
.card__title { font-size: 1.1875rem; line-height: 1.4; font-weight: 600; margin: 0; }
.card__text { color: var(--slate); font-size: 0.9375rem; margin: 4px 0 0; }
.card__meta { color: var(--slate); font-size: var(--fs-small); margin: 4px 0 0; }
.card--project:hover, .card--project:focus-within { border-color: var(--blue-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--project:hover .card__media img { transform: scale(1.04); }
.card--project:hover .card__title { color: var(--dal-blue); }
.card__link:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.card--product .card__body { gap: 8px; }
.card--product .link-arrow { margin-top: auto; padding-top: 8px; }

.card--service { padding: 24px; gap: 8px; border-color: var(--cloud); background: var(--white); }
.card--service:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.section--paper .card--service { border-color: var(--line); }
.item-icon {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 52px; height: 52px; margin-block-end: 8px;
	border-radius: var(--radius); background: var(--blue-50); color: var(--dal-blue);
}
.item-icon__img { width: 32px; height: 32px; object-fit: contain; }

/* ---------- Chips & tags ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.chips--wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 24px; }
.chip {
	display: flex; align-items: center; gap: 10px;
	padding: 14px 16px; border-radius: var(--radius);
	background: var(--white); border: 1px solid var(--line);
	font-weight: 500;
}
.chip .icon { color: var(--dal-blue); flex-shrink: 0; }
@media (max-width: 480px) { .chips { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.tag {
	padding: 4px 10px; border-radius: 4px; background: var(--blue-100); color: var(--dal-navy);
	font-family: var(--font-label); font-size: var(--fs-label); font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
}
[dir="rtl"] .tag { letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }

/* ---------- Industries ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.industry { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.industry .item-icon { margin: 0; width: 48px; height: 48px; }
.industry__title { font-size: 1.0625rem; font-weight: 600; margin: 0 0 4px; line-height: 1.4; }
.industry__text { color: var(--slate); font-size: var(--fs-small); margin: 0; line-height: 1.55; }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.client {
	display: flex; align-items: center; justify-content: center;
	min-height: 104px; padding: 20px;
	background: var(--white); border: 1px solid var(--cloud); border-radius: var(--radius);
}
.section--paper .client { border-color: var(--line); }
.client a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.client__logo { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.client:hover .client__logo { filter: none; opacity: 1; }
.client__name { font-family: var(--font-display); font-weight: 600; color: var(--slate); text-align: center; line-height: 1.3; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dal-navy); color: var(--white); padding-block: clamp(48px, 3rem + 2vw, 80px); position: relative; overflow: hidden; }
.cta-band::after {
	content: ""; position: absolute; inset-block: 0; inset-inline-end: -10%; width: 45%;
	background: linear-gradient(90deg, transparent, rgba(30, 81, 158, .55));
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
	pointer-events: none;
}
[dir="rtl"] .cta-band::after { background: linear-gradient(270deg, transparent, rgba(30, 81, 158, .55)); clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%); }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band__title { color: var(--white); margin-bottom: 8px; }
.cta-band__text { color: #D3E1F1; margin: 0; max-width: 600px; font-size: 1.0625rem; }

/* ---------- Portfolio filter ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 32px; }
.filter__chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--white);
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
	transition: background-color .15s, border-color .15s, color .15s;
}
.filter__chip:hover { border-color: var(--dal-blue); color: var(--dal-blue); }
.filter__chip.is-active { background: var(--dal-blue); border-color: var(--dal-blue); color: var(--white); }
.card[hidden] { display: none; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--slate); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Project detail ---------- */
.project-hero { padding-block: clamp(24px, 1.5rem + 1vw, 40px) 0; background: linear-gradient(180deg, var(--paper) 0 70%, var(--white) 70%); }
.project-hero .page-intro { margin-bottom: 32px; }
.project-hero__media { border-radius: var(--radius); box-shadow: var(--shadow-md); margin-top: 24px; }
.breadcrumb { margin-bottom: 24px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--slate); text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.breadcrumb a:hover { color: var(--dal-blue); }
.project__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .project__layout { grid-template-columns: 1fr; } }
.project__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
@media (max-width: 960px) { .project__aside { position: static; } }
.details { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.details--cta { background: var(--blue-50); border-color: var(--blue-100); }
.details__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin: 0 0 16px; }
.details dl { margin: 0; display: grid; gap: 16px; }
.details dt { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: 1px; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }
[dir="rtl"] .details dt { letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
.details dd { margin: 0; font-weight: 500; }
.details__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.details__list li { display: flex; align-items: center; gap: 8px; }
.details__list .icon { color: var(--dal-blue); flex-shrink: 0; }

.project__gallery { margin-top: 48px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cloud); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 22, 38, .94); color: var(--white); }
.lightbox::backdrop { background: rgba(13, 22, 38, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 72px; }
.lightbox__figure img { max-width: min(1400px, calc(100vw - 144px)); max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox__count { font-size: var(--fs-small); color: #D3E1F1; }
.lightbox__btn {
	position: absolute; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__btn--close { inset-block-start: 16px; inset-inline-end: 16px; }
.lightbox__btn--prev { inset-inline-start: 16px; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { inset-inline-end: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
	.lightbox__figure { padding: 64px 8px 96px; }
	.lightbox__figure img { max-width: calc(100vw - 16px); }
	.lightbox__btn--prev, .lightbox__btn--next { top: auto; inset-block-end: 24px; translate: none; }
}

/* ---------- Prose (editor content) ---------- */
.prose { max-width: 72ch; }
.prose--page { margin-inline: auto; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-h4); margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }
.prose a { color: var(--dal-navy); }

/* ---------- About ---------- */
.about { display: grid; gap: 0; max-width: 900px; }
.about__block { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding-block: 32px; border-block-end: 1px solid var(--cloud); }
.about__block:last-child { border-block-end: 0; }
.about__num { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.75rem; color: var(--blue-100); line-height: 1.2; margin: 0; }
@media (max-width: 560px) { .about__block { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Contact & form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact__form { padding: clamp(20px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact__info { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--dal-blue); flex-shrink: 0; margin-top: 3px; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--dal-blue); text-decoration: underline; }
.contact-list .label { margin: 0; }
[dir="rtl"] .contact-list a[dir="ltr"] { text-align: end; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.req { color: var(--error); }
.opt { color: var(--slate); font-weight: 400; font-size: var(--fs-small); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--white); color: var(--ink);
	font: inherit; font-size: 1rem; line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: left 12px center; }
[dir="rtl"] .field input[dir="ltr"] { text-align: end; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dal-blue); box-shadow: 0 0 0 3px rgba(30, 81, 158, .2); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-small); margin: 0; }
.form-alert { padding: 16px 20px; margin-block-end: 24px; border: 1px solid var(--error); border-inline-start-width: 4px; border-radius: var(--radius); background: #FCF1F0; color: var(--ink); }
.form-alert ul { margin: 0; }
.form-alert p { margin-bottom: 4px; }
.form-success { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid var(--success); border-inline-start-width: 4px; border-radius: var(--radius); background: #EEF8F2; color: var(--ink); }
.form-success svg { color: var(--success); flex-shrink: 0; }
.form-success p { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.form-privacy { color: var(--slate); font-size: var(--fs-small); margin: 20px 0; }
.cf-turnstile { margin-top: 20px; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dal-navy); color: #D3E1F1; padding-block-start: 64px; }
.site-footer a:not(.btn) { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-block-end: 48px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__blurb { margin: 16px 0 20px; max-width: 380px; font-size: 0.9375rem; }
.site-footer__heading { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-100); margin-bottom: 16px; }
[dir="rtl"] .site-footer__heading { letter-spacing: 0; font-size: 0.875rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.contact-list--footer { gap: 12px; margin-bottom: 20px; }
.contact-list--footer .icon { color: var(--blue-100); }
.contact-list--footer a { color: var(--white); font-weight: 400; }
.contact-list--footer a:hover { color: var(--white); }
.site-footer__bottom { border-block-start: 1px solid rgba(211, 225, 241, .18); font-size: var(--fs-small); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; }
.site-footer__bottom p { margin: 0; }
.site-footer :focus-visible { outline-color: var(--white); }

.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; border: 1px solid var(--line); color: var(--dal-navy);
}
.social a:hover { background: var(--dal-blue); border-color: var(--dal-blue); color: var(--white); }
.social--footer a { border-color: rgba(211, 225, 241, .35); color: var(--white); }
.social--footer a:hover { background: var(--white); color: var(--dal-navy); border-color: var(--white); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
	position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 40;
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: #1F9D57; color: var(--white); box-shadow: 0 6px 20px rgba(20, 24, 29, .25);
	transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { color: var(--white); background: #178048; transform: scale(1.06); }
.page-template-templatescontact-php .wa-float { display: none; }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; inset-block-end: 16px; inset-inline-end: 16px; } }

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

/* ---------- Print ---------- */
@media print {
	.site-header, .mobile-menu, .wa-float, .cta-band, .filter { display: none !important; }
	.site-footer { background: none; color: var(--ink); }
}

/* ---------- Design your uniform ---------- */
.designer__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .designer__layout { grid-template-columns: 1fr; } .designer__preview { order: -1; } }
.designer__controls { display: grid; gap: 16px; }
.designer__preview { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 960px) { .designer__preview { position: static; } }

.d-step { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); min-width: 0; }
.d-step__title { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.d-step__num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dal-blue); color: var(--white); font-size: 0.875rem; font-family: "Archivo", sans-serif; }
.d-hint { color: var(--slate); font-size: var(--fs-small); margin: 8px 0 0; }
.d-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; margin-top: 10px; }
.d-check input { width: 18px; height: 18px; accent-color: var(--dal-blue); margin: 0; }

.d-logo { display: flex; gap: 16px; align-items: flex-start; }
.d-logo__thumb { flex-shrink: 0; width: 88px; height: 88px; border-radius: var(--radius); border: 1px solid var(--line); background:
	conic-gradient(#EEF2F7 25%, #fff 0 50%, #EEF2F7 0 75%, #fff 0) 0 0 / 16px 16px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.d-logo__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.d-logo__btn { cursor: pointer; }
.d-logo__btn:focus-within { outline: 2px solid var(--dal-blue); outline-offset: 2px; }

.d-options--items { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.d-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-align: center; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.d-option:hover { border-color: var(--dal-blue); }
.d-option.is-selected { border-color: var(--dal-blue); box-shadow: 0 0 0 2px var(--dal-blue) inset; background: var(--blue-50); }
.d-option:focus-within { outline: 2px solid var(--dal-blue); outline-offset: 2px; }
.d-option__art svg { width: 64px; height: 76px; }
.d-option__label { font-size: 0.875rem; font-weight: 500; line-height: 1.3; }

.d-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.d-swatch { cursor: pointer; border-radius: 50%; padding: 3px; border: 2px solid transparent; }
.d-swatch__chip { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(20,24,29,.2); }
.d-swatch.is-selected { border-color: var(--dal-blue); }
.d-swatch:focus-within { outline: 2px solid var(--dal-blue); outline-offset: 2px; }

.d-placements { display: grid; gap: 10px; margin-top: 12px; }
.d-place { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.d-place.is-on { border-color: var(--blue-100); background: var(--blue-50); }
.d-place__name { margin: 0; }
.d-place__side { font-family: var(--font-label); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 1px; color: var(--slate); font-weight: 500; }
[dir="rtl"] .d-place__side { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }
.d-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.d-place:not(.is-on) .d-sizes { display: none; }
.d-size { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--white); cursor: pointer; font-size: 0.875rem; font-weight: 500; line-height: 1.3; }
.d-size small { color: var(--slate); font-weight: 400; font-size: 0.75rem; }
.d-size.is-selected { border-color: var(--dal-blue); background: var(--dal-blue); color: var(--white); }
.d-size.is-selected small { color: var(--blue-100); }
.d-size:focus-within { outline: 2px solid var(--dal-blue); outline-offset: 2px; }

.d-preview { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--white), var(--paper)); }
.d-preview:has([data-back-view][hidden]) { grid-template-columns: 1fr; }
.d-view { margin: 0; text-align: center; }
.d-view[hidden] { display: none; }
.d-view__canvas svg { width: 100%; height: auto; max-height: 520px; }
.d-view figcaption { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: 1px; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
[dir="rtl"] .d-view figcaption { letter-spacing: 0; font-size: 0.875rem; }
.d-preview__empty { position: absolute; inset-inline: 16px; bottom: 44px; margin: 0; padding: 10px 14px; border-radius: var(--radius); background: rgba(22, 56, 107, .9); color: var(--white); font-size: var(--fs-small); text-align: center; }
.d-preview__empty.is-alert { background: var(--error); }
.d-preview__empty[hidden] { display: none; }
.d-summary { margin: 12px 0 0; font-weight: 500; }
.designer__send { max-width: 900px; }

/* Product card: second link */
.card__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 8px; }
.card--product .card__links .link-arrow { margin-top: 0; padding-top: 0; }

/* Home: designer promo */
.promo { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-100); }
.promo__title { margin-bottom: 6px; }
.promo__text { margin: 0; color: var(--slate); }
@media (max-width: 720px) { .promo { grid-template-columns: 1fr; } }

/* Industry photo cards & about photo */
.industry--photo { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.industry--photo .ratio-4x3 img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.industry--photo:hover .ratio-4x3 img { transform: scale(1.04); }
.industry__body { padding: 16px 18px 18px; }
.about-photo { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.chips--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 24px; }
.chips--inline .chip { padding: 10px 12px; font-size: 0.9375rem; }

/* Home photo strip (mosaic) */
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 16vw, 220px); }
.mosaic__item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--cloud); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic--5 .mosaic__item:first-child, .mosaic--3 .mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic--1 { grid-template-columns: 1fr; grid-auto-rows: clamp(220px, 30vw, 420px); }
.mosaic--2 { grid-template-columns: 1fr 1fr; }
.mosaic--3 { grid-template-columns: 2fr 1fr; }
.mosaic--3 .mosaic__item:first-child { grid-column: auto; }
.mosaic--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
	.mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
	.mosaic--5 .mosaic__item:first-child, .mosaic--3 .mosaic__item:first-child { grid-column: span 2; grid-row: span 1; }
	.mosaic--1 { grid-template-columns: 1fr; }
}

/* Home slideshow */
.hero__media { position: relative; }
.hero__media > .hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease), transform 6s linear; transform: scale(1.02); }
.hero__media > .hero__slide.is-active { opacity: 1; transform: scale(1.03); }
.hero__media:not([data-slides]) > .hero__slide { opacity: 1; transform: none; }
.hero__dots { position: absolute; inset-inline: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 8px; }
.hero__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(20, 24, 29, .25); cursor: pointer; transition: width .25s, background-color .25s; }
.hero__dot.is-active { width: 26px; border-radius: 6px; background: var(--white); }
.hero__pause { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-inline-start: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 24, 29, .45); color: var(--white); font-size: 10px; cursor: pointer; }
.hero__pause:hover { background: rgba(20, 24, 29, .7); }
@media (prefers-reduced-motion: reduce) { .hero__media > .hero__slide { transition: none; transform: none !important; } }

/* Photo grid (Our Work) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--cloud); }
.photo-grid a[data-lightbox] { cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.photo-grid a:hover img, .photo-grid a:focus-visible img { transform: scale(1.04); }
@media (max-width: 480px) { .photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* Service cards with a photo */
.card--service-photo { padding: 0; gap: 0; }
.card--service-photo .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--service-photo .card__body { padding: 18px 20px 20px; }

/* Tall slideshow frame (portrait photos); landscape photos are centre-cropped. */
.hero__media--tall { aspect-ratio: 4 / 5; max-height: 640px; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cloud); justify-self: center; }
.hero__inner { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media--tall { aspect-ratio: 1 / 1; max-height: none; }
}
/* About photo: portrait warehouse shot. */
.about-photo { aspect-ratio: 4 / 5; max-height: 560px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); justify-self: center; width: 100%; }
@media (max-width: 900px) { .about-photo { aspect-ratio: 4 / 3; } }
/* Photo section with 3 photos: one tall, two stacked. */
.mosaic--3 { grid-template-columns: 1.2fr 1fr; grid-auto-rows: clamp(200px, 22vw, 300px); }
.mosaic--3 .mosaic__item:first-child { grid-row: span 2; }
@media (max-width: 760px) { .mosaic--3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .mosaic--3 .mosaic__item:first-child { grid-column: span 2; grid-row: span 1; } }
/* Our Work: larger photos, whole photo visible. */
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.photo-grid a { aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
@media (max-width: 480px) { .photo-grid { grid-template-columns: 1fr; } }

/* Whole photo, never cropped — blurred copy of itself fills the frame. No zoom effect. */
.fit { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--cloud); }
.fit > img.fit__bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(22px) saturate(1.1) brightness(.97); transform: none; }
.fit > img.fit__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transform: none; }
.hero__media > .hero__slide, .hero__media > .hero__slide.is-active { transform: none; }
.hero__media > .hero__slide { transition: opacity .9s var(--ease); }
.mosaic__item:hover img, .about-photo img { transform: none; }
