/*
Theme Name: Zakaria Alagha
Theme URI: https://example.com/
Author: Zakaria Alagha
Description: قالب وكالة زكريا الأغا للتسويق وتطوير الحلول الرقمية. عربي أولًا (RTL)، خطوط مستضافة محليًا، صفحة رئيسية قابلة للتحرير بالكامل من «تخصيص»، ونوع محتوى خاص بالأعمال.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zakaria-alagha
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #0D1B2A;
	--ink-2: #1C2E44;
	--ink-3: #2B405A;
	--coral: #FF6B3D;
	--coral-hover: #FF8660;
	--coral-text: #C2410C;
	--coral-soft: #FFB199;
	--paper: #FAF8F4;
	--mist: #F1F3F6;
	--steel: #5D6B7E;
	--steel-light: #9AA7B8;
	--line: #E3E6EB;
	--white: #FFFFFF;

	--font-display: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
	--font-text: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.25rem;
	--fs-lg: 1.5rem;
	--fs-xl: clamp(2rem, 1.4rem + 2.6vw, 3rem);
	--fs-2xl: clamp(2.25rem, 1.5rem + 3.6vw, 3.75rem);
	--fs-hero: clamp(3.25rem, 1.6rem + 8vw, 7.5rem);

	--container: 1200px;
	--gutter: clamp(20px, 5vw, 40px);
	--header-h: 80px;
	--radius-s: 6px;
	--radius: 10px;
	--radius-l: 16px;
	--section: clamp(72px, 9vw, 128px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::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(--white);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: var(--fs-base);
	line-height: 1.85;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video { max-width: 100%; height: auto; }

img { display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.25;
	color: inherit;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

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

::selection { background: var(--coral); color: var(--ink); }

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

.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;
	top: -100px;
	z-index: 1000;
	padding: 10px 18px;
	background: var(--coral);
	color: var(--ink);
	font-weight: 600;
	border-radius: var(--radius-s);
	text-decoration: none;
}

.skip-link:focus { top: 16px; }

[lang="en"] { letter-spacing: 0.02em; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0.85em 1.6em;
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-text);
	font-size: var(--fs-base);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn--small { padding: 0.55em 1.1em; font-size: var(--fs-sm); }

.btn--coral { background: var(--coral); color: var(--ink); }
.btn--coral:hover { background: var(--coral-hover); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-3); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); }

.text-link {
	color: var(--coral-text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
}

.text-link:hover { color: var(--ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--header-h);
}

.has-dark-hero .site-header {
	position: fixed;
	inset-inline: 0;
	background: transparent;
	border-bottom-color: transparent;
	color: var(--white);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.has-dark-hero .site-header.is-scrolled {
	background: rgba(255, 255, 255, .96);
	border-bottom-color: var(--line);
	color: var(--ink);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}

/* Brand lockup */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex: none;
}

.brand__mark { width: auto; height: 48px; }
.brand__mark--light { display: none; }
.brand__custom { width: auto; max-height: 52px; }

.has-dark-hero .site-header:not(.is-scrolled) .brand__mark--ink { display: none; }
.has-dark-hero .site-header:not(.is-scrolled) .brand__mark--light { display: block; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__ar {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.3rem;
}

.brand__en {
	margin-top: 4px;
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	color: var(--steel);
	direction: ltr;
}

.has-dark-hero .site-header:not(.is-scrolled) .brand__en { color: var(--steel-light); }

/* Navigation */
.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-inline-start: auto;
}

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
}

.site-nav .menu > li { position: relative; }

.site-nav .menu a {
	display: block;
	padding: 8px 12px;
	font-size: var(--fs-sm);
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--radius-s);
}

.site-nav .menu > li > a {
	background-image: linear-gradient(var(--coral), var(--coral));
	background-repeat: no-repeat;
	background-size: 0 2px;
	background-position: center bottom 2px;
	transition: background-size .25s var(--ease);
}

.site-nav .menu > li > a:hover,
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current_page_item > a { background-size: calc(100% - 24px) 2px; }

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 220px;
	padding: 8px;
	list-style: none;
	background: var(--white);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px -18px rgba(13, 27, 42, .35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.site-nav .sub-menu a:hover { background: var(--mist); }

.nav-toggle {
	display: none;
	margin-inline-start: auto;
	padding: 8px;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.nav-toggle__close { display: none; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; position: relative; z-index: 2; }

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		gap: 32px;
		margin: 0;
		padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
		background: var(--ink);
		color: var(--white);
		visibility: hidden;
		opacity: 0;
		transition: opacity .25s var(--ease);
	}

	.nav-open .site-nav { visibility: visible; opacity: 1; }
	.nav-open { overflow: hidden; }
	.nav-open .site-header { color: var(--white); background: transparent; border-color: transparent; }
	.nav-open .brand { position: relative; z-index: 2; }
	.nav-open .brand__mark--ink { display: none; }
	.nav-open .brand__mark--light { display: block; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }

	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }

	.site-nav .menu a {
		padding: 14px 0;
		font-family: var(--font-display);
		font-size: 1.75rem;
		font-weight: 700;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
		border-radius: 0;
	}

	.site-nav .menu > li > a { background-image: none; }

	.site-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		color: inherit;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 0;
		padding-inline-start: 20px;
	}

	.site-nav .sub-menu a { font-size: 1.2rem; }
	.site-nav .sub-menu a:hover { background: transparent; color: var(--coral-soft); }
	.site-nav__cta { align-self: flex-start; }
}

/* ==========================================================================
   Hero: the calligraphic mark at the centre of spreading rings (ideas that leave an impact)
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(100svh, 900px);
	padding-block: calc(var(--header-h) + 48px) 96px;
	background: var(--ink);
	color: var(--white);
	overflow: hidden;
	isolation: isolate;
}

.hero__impact {
	position: absolute;
	top: 50%;
	inset-inline-end: -10%;
	z-index: -1;
	width: min(980px, 88vw);
	aspect-ratio: 1;
	transform: translateY(-46%);
}

.hero__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.ring {
	fill: none;
	stroke-width: 1.5;
	transform-origin: 400px 400px;
	transform-box: view-box;
}

.ring--1 { stroke: var(--coral); stroke-opacity: .9; fill: var(--coral); fill-opacity: .08; }
.ring--2 { stroke: var(--coral); stroke-opacity: .5; }
.ring--3 { stroke: var(--coral); stroke-opacity: .28; }
.ring--4 { stroke: var(--steel-light); stroke-opacity: .2; }
.ring--5 { stroke: var(--steel-light); stroke-opacity: .12; }

.hero__mark {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 17%;
	transform: translate(-50%, -52%);
}

.hero__inner { position: relative; }

.hero__kicker {
	margin-bottom: 20px;
	color: var(--coral-soft);
	font-size: var(--fs-md);
	font-weight: 500;
}

.hero__title {
	max-width: 9ch;
	font-size: var(--fs-hero);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.hero__en {
	margin-top: 18px;
	color: var(--steel-light);
	font-size: var(--fs-md);
	font-weight: 400;
	letter-spacing: 0.16em;
	direction: ltr;
	text-align: end;
	width: max-content;
	max-width: 100%;
}

html[dir="rtl"] .hero__en { text-align: right; }

.hero__text {
	max-width: 34em;
	margin-top: 32px;
	color: #C9D2DD;
	font-size: var(--fs-md);
	line-height: 1.8;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

/* The one orchestrated moment: rings spread out from the mark on load. */
@media (prefers-reduced-motion: no-preference) {
	.ring { animation: za-ripple 1.6s var(--ease) both; }
	.ring--2 { animation-delay: .12s; }
	.ring--3 { animation-delay: .24s; }
	.ring--4 { animation-delay: .36s; }
	.ring--5 { animation-delay: .48s; }
	.hero__mark { animation: za-mark 1.2s var(--ease) both; }

	@keyframes za-ripple {
		from { transform: scale(.35); opacity: 0; }
		to { transform: scale(1); opacity: 1; }
	}

	@keyframes za-mark {
		from { opacity: 0; transform: translate(-50%, -46%); }
		to { opacity: 1; transform: translate(-50%, -52%); }
	}
}

@media (max-width: 960px) {
	.hero { align-items: flex-end; min-height: 100svh; padding-top: calc(var(--header-h) + 52vw); }
	.hero__impact { top: calc(var(--header-h) - 44vw); inset-inline-end: -38%; width: 120vw; transform: none; }
	.hero__mark { width: 16%; }
}

@media (max-width: 600px) {
	.hero { padding-top: calc(var(--header-h) + 64vw); }
	.hero__impact { top: calc(var(--header-h) - 58vw); inset-inline-end: -55%; width: 150vw; }
	.hero__actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	align-items: end;
	gap: 24px 64px;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
}

.section-title { font-size: var(--fs-xl); }

.section-intro {
	max-width: 36em;
	color: var(--steel);
	font-size: var(--fs-md);
	line-height: 1.75;
}

@media (max-width: 800px) {
	.section-head { grid-template-columns: 1fr; }
}

/* Clients: a quiet logo wall right under the hero */
.clients { padding-block: clamp(40px, 5vw, 64px); background: var(--white); border-bottom: 1px solid var(--line); }

.clients__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 32px;
	margin-bottom: 28px;
}

.clients__title { font-size: var(--fs-md); font-weight: 700; }
.clients__text { max-width: 40em; color: var(--steel); font-size: var(--fs-sm); }

.clients__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
}

.clients__item { flex: 1 1 168px; max-width: 220px; }

.clients__item > a,
.clients__item > span {
	display: grid;
	place-items: center;
	height: 104px;
	padding: 18px 22px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color .25s var(--ease);
}

.clients__item > a:hover { border-color: var(--ink); }

.clients__item img {
	width: auto;
	max-width: 100%;
	max-height: 56px;
	object-fit: contain;
	transition: filter .3s var(--ease), opacity .3s var(--ease);
}

.clients__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.35;
	text-align: center;
	color: var(--ink-2);
	transition: color .3s var(--ease);
}

.clients--mono .clients__item img { filter: grayscale(1); opacity: .62; }
.clients--mono .clients__name { color: var(--steel); }

.clients--mono .clients__item > :hover img,
.clients--mono .clients__item > :focus-visible img { filter: none; opacity: 1; }
.clients--mono .clients__item > :hover .clients__name,
.clients--mono .clients__item > :focus-visible .clients__name { color: var(--ink); }

@media (max-width: 560px) {
	.clients__item { flex-basis: calc(50% - 6px); max-width: none; }
	.clients__item > a,
	.clients__item > span { height: 88px; padding: 14px; }
}

/* Services explorer: an index of services beside one open, detailed panel */
.svc { display: grid; gap: 0; border-top: 2px solid var(--ink); }

.svc__heading { margin: 0; font-size: inherit; font-weight: inherit; }

.svc__tab {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 18px 16px;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	text-align: start;
	cursor: pointer;
	position: relative;
	transition: background-color .2s var(--ease);
}

.svc__tab::before {
	content: "";
	position: absolute;
	inset-block: -1px;
	inset-inline-start: 0;
	width: 3px;
	background: var(--coral);
	transform: scaleY(0);
	transition: transform .25s var(--ease);
}

.svc__tab:hover { background: var(--mist); }

.svc__tab[aria-expanded="true"] { background: var(--mist); }
.svc__tab[aria-expanded="true"]::before { transform: scaleY(1); }

.svc__tab-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	color: var(--ink);
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.svc__tab[aria-expanded="true"] .svc__tab-icon { background: var(--ink); border-color: var(--ink); color: var(--white); }

.svc__tab-text { display: flex; flex-direction: column; min-width: 0; }

.svc__tab-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.svc__tab-summary { margin-top: 2px; color: var(--steel); font-size: var(--fs-sm); line-height: 1.5; }

.svc__panel { position: relative; }
.js .svc__panel[data-closed] { display: none; }

.svc__panel-inner {
	position: relative;
	height: 100%;
	padding: clamp(28px, 4vw, 52px);
	background: var(--ink);
	color: #C9D2DD;
	overflow: hidden;
	isolation: isolate;
}

/* The brand's ripple, quietly, behind the open service */
.svc__panel-inner::after {
	content: "";
	position: absolute;
	bottom: -170px;
	inset-inline-end: -170px;
	z-index: -1;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 107, 61, .35);
	box-shadow: 0 0 0 60px var(--ink), 0 0 0 61.5px rgba(255, 107, 61, .16), 0 0 0 120px var(--ink), 0 0 0 121.5px rgba(154, 167, 184, .1);
}

.svc__panel-head { display: flex; align-items: center; gap: 18px; }

.svc__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--coral);
	color: var(--ink);
	box-shadow: 0 0 0 8px var(--ink), 0 0 0 9.5px rgba(255, 107, 61, .5);
}

.svc__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.25; color: var(--white); }

.svc__text { max-width: 38em; margin-top: 22px; font-size: var(--fs-md); line-height: 1.8; }

.svc__label { margin-top: 30px; margin-bottom: 12px; color: var(--coral-soft); font-size: var(--fs-sm); font-weight: 600; }

.svc__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; list-style: none; }

.svc__points li { display: flex; align-items: flex-start; gap: 10px; color: var(--white); line-height: 1.6; }
.svc__points .icon { flex: none; margin-top: 3px; color: var(--coral); stroke-width: 2.25; }

.svc__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }

.svc__tags li {
	padding: 3px 11px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	font-size: var(--fs-xs);
	font-weight: 500;
	color: #DCE2EA;
	white-space: nowrap;
}

@media (min-width: 961px) {
	.js .svc {
		grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
		column-gap: 32px;
		align-items: start;
	}

	.js .svc__heading { grid-column: 1; }

	.js .svc__panel {
		grid-column: 2;
		grid-row: 1 / span var(--svc-count);
		align-self: stretch;
		margin-top: 16px;
	}

	.js .svc__panel-inner { border-radius: var(--radius-l); }

	@media (prefers-reduced-motion: no-preference) {
		.js .svc__panel:not([data-closed]) .svc__panel-inner > * { animation: za-panel .45s var(--ease) both; }
		.js .svc__panel:not([data-closed]) .svc__panel-inner > :nth-child(2) { animation-delay: .04s; }
		.js .svc__panel:not([data-closed]) .svc__panel-inner > :nth-child(n+3) { animation-delay: .08s; }

		@keyframes za-panel {
			from { opacity: 0; transform: translateY(8px); }
			to { opacity: 1; transform: none; }
		}
	}
}

@media (max-width: 960px) {
	.svc__panel-inner { margin-block: 0 12px; border-radius: 0 0 var(--radius) var(--radius); }
	.svc__tab[aria-expanded="true"] { border-bottom-color: transparent; }
	/* The tab above already names the service. */
	.svc__panel-head { display: none; }
	.svc__text { margin-top: 0; }
}

@media (max-width: 640px) {
	.svc__points { grid-template-columns: 1fr; }
	.svc__panel-head { gap: 14px; }
	.svc__icon { width: 52px; height: 52px; }
	.svc__foot .btn { flex: 1 1 100%; }
	.svc__tab { padding-inline: 8px; }
}

/* About (static front page content) */
.about { background: var(--paper); }

/* Process: a real sequence, so it is numbered */
.process { background: var(--paper); }

.about + .process { padding-top: 0; }

.steps {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 40px 28px;
	list-style: none;
	counter-reset: step;
}

.step {
	position: relative;
	padding-top: 40px;
	border-top: 2px solid var(--ink);
}

.step__num {
	position: absolute;
	top: -19px;
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1;
	box-shadow: 0 0 0 6px var(--paper);
}

.step:last-child { border-top-color: var(--coral); }
.step:last-child .step__num { background: var(--coral); color: var(--ink); }

.step__title { margin-bottom: 8px; font-size: var(--fs-md); font-weight: 700; }
.step__text { color: var(--steel); font-size: var(--fs-sm); line-height: 1.8; }

@media (max-width: 1100px) {
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
}

@media (max-width: 640px) {
	.steps { grid-template-columns: 1fr; row-gap: 48px; }
}

/* Work */
.work-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
}

.work-grid > :first-child { grid-row: span 2; }

.work-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid--archive > :first-child { grid-row: auto; }

.project-card__link { display: block; height: 100%; text-decoration: none; }

.project-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-l);
	background: var(--ink-2);
}

.work-grid:not(.work-grid--archive) > :first-child .project-card__media { aspect-ratio: 4 / 4.2; }

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ease);
}

.project-card__link:hover .project-card__media img { transform: scale(1.03); }

.project-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.project-card__placeholder img { width: 56px; height: auto; object-fit: contain; opacity: .35; }

.project-card__body { padding-top: 18px; }

.project-card__type { color: var(--coral-text); font-size: var(--fs-sm); font-weight: 600; }

.project-card__title { margin-top: 4px; font-size: var(--fs-lg); font-weight: 700; }

.project-card__link:hover .project-card__title { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

.project-card__excerpt { margin-top: 6px; color: var(--steel); font-size: var(--fs-sm); }

@media (max-width: 960px) {
	.work-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.work-grid,
	.work-grid--archive { grid-template-columns: 1fr; }
	.work-grid > :first-child { grid-row: auto; }
	.work-grid:not(.work-grid--archive) > :first-child .project-card__media { aspect-ratio: 4 / 3; }
}

/* Posts */
.post-list { border-top: 2px solid var(--ink); }

.post-row {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding-block: 32px;
	border-bottom: 1px solid var(--line);
}

.post-row:not(:has(.post-row__media)) { grid-template-columns: minmax(0, 1fr); }

.post-row__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; }

.post-row__body { max-width: 46em; }

.post-row__cat { color: var(--coral-text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }

.post-row__title { margin-top: 4px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.4; }
.post-row__title a { text-decoration: none; }
.post-row__title a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

.post-row__excerpt { margin-top: 8px; color: var(--steel); }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	color: var(--steel);
	font-size: var(--fs-sm);
}

.entry-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

@media (max-width: 640px) {
	.post-row { grid-template-columns: 1fr; gap: 16px; }
}

/* Contact */
.contact { background: var(--paper); border-top: 1px solid var(--line); }

.process + .contact,
.about + .contact { border-top: 0; }

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 48px 80px;
	align-items: start;
}

.contact__title { max-width: 16ch; font-size: var(--fs-2xl); line-height: 1.2; }

.contact__text { max-width: 32em; margin-top: 20px; color: var(--steel); font-size: var(--fs-md); }

.contact__copy .btn { margin-top: 32px; }

.contact-list { display: grid; gap: 12px; list-style: none; }

.contact-list a,
.contact-list__static {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color .2s var(--ease);
}

.contact-list a:hover { border-color: var(--ink); }

.contact-list .icon {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 11px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--white);
}

.contact-list small { display: block; color: var(--steel); font-size: var(--fs-xs); line-height: 1.4; }
.contact-list b { display: block; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }

html[dir="rtl"] .contact-list [dir="ltr"] { text-align: right; }

.contact__form { margin-top: 24px; }

@media (max-width: 860px) {
	.contact__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Inner page header
   ========================================================================== */
.page-header {
	position: relative;
	padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}

.page-header__ripple {
	position: absolute;
	top: 50%;
	inset-inline-end: -140px;
	width: 440px;
	height: 440px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 107, 61, .45);
	box-shadow: 0 0 0 70px var(--paper), 0 0 0 71.5px rgba(255, 107, 61, .25), 0 0 0 140px var(--paper), 0 0 0 141.5px rgba(93, 107, 126, .15);
	transform: translateY(-50%);
	pointer-events: none;
}

.page-header__inner { position: relative; }

.page-header__above { margin-bottom: 12px; color: var(--coral-text); font-weight: 600; }
.page-header__above a { text-decoration: none; }

.page-header__title { max-width: 22ch; font-size: var(--fs-2xl); line-height: 1.2; }

.page-header__intro { max-width: 40em; margin-top: 16px; color: var(--steel); font-size: var(--fs-md); }
.page-header__intro .entry-meta { margin-top: 0; font-size: var(--fs-base); }

@media (max-width: 700px) {
	.page-header__ripple { width: 300px; height: 300px; inset-inline-end: -200px; }
}

/* ==========================================================================
   Content
   ========================================================================== */
.entry-hero {
	max-width: 1100px;
	margin: 0 auto clamp(40px, 5vw, 64px);
	overflow: hidden;
	border-radius: var(--radius-l);
}

.entry-hero img { width: 100%; }

.prose {
	max-width: 46rem;
	margin-inline: auto;
	font-size: 1.125rem;
	line-height: 1.95;
}

.prose--wide { max-width: 58rem; }

.prose > * + * { margin-top: 1.25em; }

.prose h2 { margin-top: 2em; font-size: 1.875rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.5rem; font-weight: 700; }
.prose h4 { margin-top: 1.6em; font-size: 1.25rem; font-weight: 700; }

.prose a { color: var(--coral-text); text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--ink); }

.prose ul,
.prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--coral); }

.prose blockquote,
.prose .wp-block-quote {
	margin-inline: 0;
	padding-inline-start: 24px;
	border-inline-start: 4px solid var(--coral);
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.6;
}

.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--font-text); font-size: var(--fs-sm); font-style: normal; font-weight: 400; color: var(--steel); }

.prose img,
.prose .wp-block-image img { border-radius: var(--radius); }

.prose figcaption,
.wp-caption-text { margin-top: 10px; color: var(--steel); font-size: var(--fs-sm); text-align: center; }

.prose pre,
.prose code { direction: ltr; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .9em; }
.prose code { padding: .1em .35em; background: var(--mist); border-radius: 4px; }
.prose pre { padding: 20px; overflow-x: auto; background: var(--ink); color: #E6EBF1; border-radius: var(--radius); text-align: left; }
.prose pre code { padding: 0; background: none; }

.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th,
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.prose th { font-weight: 600; background: var(--mist); }

.prose hr { height: 2px; border: 0; background: var(--line); }

.prose > .alignwide { width: min(1100px, 100vw - var(--gutter) * 2); max-width: none; margin-inline: calc(50% - min(550px, 50vw - var(--gutter))); }
.prose > .alignfull { max-width: none; width: 100vw; margin-inline: calc(50% - 50vw); }

.prose--full { max-width: none; }
.prose--full > * { max-width: 46rem; margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.prose--full > .alignwide { max-width: var(--container); }
.prose--full > .alignfull { max-width: none; width: auto; padding-inline: 0; margin-inline: 0; }

.alignleft { float: left; margin: .4em 0 1em 1.6em; }
.alignright { float: right; margin: .4em 1.6em 1em 0; }
.aligncenter { margin-inline: auto; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 46rem; margin: 48px auto 0; list-style: none; }
.entry-tags a { display: inline-block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); text-decoration: none; }
.entry-tags a:hover { border-color: var(--ink); }

.post-navigation { max-width: 46rem; margin: 56px auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.post-navigation a:hover { border-color: var(--ink); }
.post-navigation small { display: block; color: var(--steel); font-size: var(--fs-xs); }
.post-navigation span { font-family: var(--font-display); font-weight: 700; line-height: 1.45; }
.post-navigation .nav-next { text-align: end; }

@media (max-width: 640px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
}

.project-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 46rem;
	margin: 56px auto 0;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

/* Filter, pagination, search, empty */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); text-decoration: none; }
.filter a:hover { border-color: var(--ink); }
.filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; font-weight: 600; }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--white); }

.search-form { display: flex; max-width: 520px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.search-form:focus-within { border-color: var(--ink); }
.search-form__input { flex: 1; min-width: 0; padding: 14px 18px; background: none; border: 0; outline: 0; }
.search-form__submit { display: grid; place-items: center; width: 54px; background: var(--ink); color: var(--white); border: 0; cursor: pointer; }
.search-again { margin-bottom: 40px; }

.empty-state { max-width: 36rem; padding-block: 24px; }
.empty-state h2 { font-size: var(--fs-lg); }
.empty-state p { margin-top: 10px; color: var(--steel); }
.empty-state p .btn { margin-top: 8px; }
.empty-state .search-form { margin-top: 20px; }

/* 404 */
.not-found {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 78svh;
	padding-block: 96px;
	background: var(--ink);
	color: var(--white);
	overflow: hidden;
}

.not-found__rings {
	position: absolute;
	top: 50%;
	inset-inline-end: -120px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 107, 61, .6);
	box-shadow: 0 0 0 90px var(--ink), 0 0 0 91.5px rgba(255, 107, 61, .3), 0 0 0 180px var(--ink), 0 0 0 181.5px rgba(154, 167, 184, .15);
	transform: translateY(-50%);
}

.not-found__inner { position: relative; }
.not-found__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--coral); direction: ltr; width: max-content; }
.not-found__title { margin-top: 16px; font-size: var(--fs-2xl); }
.not-found__text { max-width: 32em; margin-top: 12px; color: #C9D2DD; font-size: var(--fs-md); }
.not-found .search-form { margin-block: 32px 20px; border-color: transparent; }
.not-found .search-form__submit { background: var(--coral); color: var(--ink); }

/* Comments */
.comments { max-width: 46rem; margin: 72px auto 0; padding-top: 48px; border-top: 2px solid var(--ink); }
.comments__title,
.comment-reply-title { font-size: var(--fs-lg); margin-bottom: 24px; }
.comment-list,
.comment-list .children { list-style: none; }
.comment-list .children { padding-inline-start: 32px; }
.comment-body { padding-block: 20px; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.comment-meta img { border-radius: 50%; }
.comment-metadata { color: var(--steel); }
.comment-metadata a { text-decoration: none; }
.comment-content { margin-top: 10px; }
.reply a { color: var(--coral-text); font-size: var(--fs-sm); font-weight: 600; }
.comment-respond { margin-top: 40px; }
.comment-form p { margin-top: 16px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 12px 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-s); }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--ink); outline: 0; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: baseline; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	position: relative;
	padding-top: clamp(64px, 8vw, 96px);
	background: var(--ink);
	color: #C9D2DD;
	overflow: hidden;
}

.site-footer__rings {
	position: absolute;
	bottom: -300px;
	inset-inline-end: -220px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 107, 61, .35);
	box-shadow: 0 0 0 80px var(--ink), 0 0 0 81.5px rgba(255, 107, 61, .18);
	pointer-events: none;
}

.site-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(180px, 1fr));
	gap: 48px;
	padding-bottom: 56px;
}

.site-footer .brand { color: var(--white); }
.site-footer .brand__mark { height: 64px; }
.site-footer .brand__mark--light { display: block; }
.site-footer .brand__ar { font-size: 1.6rem; }
.site-footer .brand__en { color: var(--steel-light); }

.site-footer__slogan { margin-top: 28px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1.4; }
.site-footer__slogan span { display: block; font-family: var(--font-text); font-size: var(--fs-sm); font-weight: 400; letter-spacing: .14em; color: var(--steel-light); }

.site-footer__text { max-width: 28em; margin-top: 12px; font-size: var(--fs-sm); }

.site-footer__heading { margin-bottom: 18px; font-size: var(--fs-md); color: var(--white); }

.footer-menu { list-style: none; }
.footer-menu li + li { margin-top: 8px; }
.footer-menu a,
.site-footer a { text-decoration: none; }
.footer-menu a:hover,
.contact-list--footer a:hover { color: var(--coral-soft); }

.contact-list--footer { gap: 10px; }
.contact-list--footer a,
.contact-list--footer .contact-list__static { padding: 0; background: none; border: 0; gap: 12px; }
.contact-list--footer .icon { width: 18px; height: 18px; padding: 0; background: none; color: var(--coral); }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: var(--white); transition: border-color .2s var(--ease), color .2s var(--ease); }
.social a:hover { border-color: var(--coral); color: var(--coral-soft); }

.site-footer .widget + .widget { margin-top: 24px; }
.site-footer .widget-title { margin-bottom: 14px; font-size: var(--fs-md); color: var(--white); }
.site-footer .widget ul { list-style: none; }

.site-footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 22px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: var(--fs-sm);
	color: var(--steel-light);
}

.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top:hover { color: var(--white); }

@media (max-width: 800px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* Floating WhatsApp */
.wa-float {
	position: fixed;
	bottom: 20px;
	inset-inline-end: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	color: var(--white);
	box-shadow: 0 10px 30px -8px rgba(13, 27, 42, .45);
	transition: transform .2s var(--ease);
}

.wa-float:hover { transform: scale(1.06); }

/* On the front page, the float waits until the hero's own buttons have scrolled away. */
.has-dark-hero:not(.is-past-top) .wa-float { opacity: 0; visibility: hidden; transform: scale(.85); }
.wa-float { transition: transform .2s var(--ease), opacity .25s var(--ease), visibility .25s; }
.wa-float .icon { stroke-width: 2; }

.nav-open .wa-float { display: none; }

/* WordPress core classes */
.sticky .post-row__title::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 10px; vertical-align: middle; border-radius: 50%; background: var(--coral); }
.bypostauthor > .comment-body .fn::after { content: " ✦"; color: var(--coral); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.wp-caption { max-width: 100%; }

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

@media print {
	.site-header,
	.site-footer,
	.wa-float,
	.hero__impact { display: none !important; }
	.hero { min-height: 0; padding: 24px 0; background: none; color: var(--ink); }
}
