/* ==========================================================================
   Galal Eldin Mostafa & Co. — main stylesheet (RTL, logical properties)
   ========================================================================== */

:root {
	--navy: #19193b;
	--navy-900: #121230;
	--navy-700: #232352;
	--gold: #b79a5b;
	--gold-300: #d4bc86;
	--gold-700: #9c8046;
	--offwhite: #f7f5ef;
	--grey: #e7e7e3;
	--card: #efeee9;
	--ink: #19193b;
	--muted: #5b5b70;
	--on-dark: #f7f5ef;
	--on-dark-muted: rgba(247, 245, 239, .78);
	--line-dark: rgba(183, 154, 91, .28);

	--font-head: "Cairo", "Tajawal", system-ui, sans-serif;
	--font-body: "Tajawal", "Cairo", system-ui, sans-serif;

	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 10px 30px rgba(25, 25, 59, .08);
	--shadow-lg: 0 18px 45px rgba(25, 25, 59, .14);
	--container: 1200px;
	--gutter: 24px;
	--header-h: 84px;
	--section-y: clamp(56px, 7vw, 96px);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 8px);
	-webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Page loader ------------------------------------------------------------ */
html.is-loading { overflow: hidden; }
.page-loader {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
	color: var(--on-dark);
	text-align: center;
	background: radial-gradient(ellipse at 50% 45%, var(--navy-700) 0%, var(--navy) 55%, var(--navy-900) 100%);
	transition: opacity .6s ease, visibility .6s ease;
}
/* Sunset photo at 30% under the navy */
.page-loader::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--loader-bg, none) center 60% / cover no-repeat;
	opacity: .3;
	pointer-events: none;
}
.page-loader.is-done { opacity: 0; visibility: hidden; }
.page-loader.is-done .page-loader__inner { transform: translateY(-12px) scale(.98); }
.page-loader__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform .6s ease;
	animation: loader-in .7s ease both;
}
.page-loader__mark {
	position: relative;
	width: 132px;
	height: 132px;
	display: grid;
	place-items: center;
	margin-bottom: 22px;
}
.page-loader__mark img {
	width: 58px;
	height: auto;
	animation: loader-breathe 2.4s ease-in-out infinite;
}
.page-loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.page-loader__ring circle { fill: none; stroke-width: 2; }
.page-loader__ring-track { stroke: rgba(183, 154, 91, .22); }
.page-loader__ring-fill {
	stroke: var(--gold);
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--loader-progress, 0));
	filter: drop-shadow(0 0 6px rgba(212, 188, 134, .45));
}
.page-loader__name {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(1.1rem, 3.6vw, 1.45rem);
	color: var(--on-dark);
}
.page-loader__tag {
	margin: 4px 0 0;
	font-size: .95rem;
	color: var(--gold-300);
	letter-spacing: .02em;
}
/* Rising ledger bars — a small growth chart */
.page-loader__bars {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 34px;
	margin-top: 22px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--line-dark);
}
.page-loader__bars i {
	display: block;
	width: 7px;
	border-radius: 2px 2px 0 0;
	background: linear-gradient(to top, var(--gold-700), var(--gold-300));
	transform-origin: bottom;
	animation: loader-bar 1.6s ease-in-out infinite;
}
.page-loader__bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.page-loader__bars i:nth-child(2) { height: 48%; animation-delay: .12s; }
.page-loader__bars i:nth-child(3) { height: 40%; animation-delay: .24s; }
.page-loader__bars i:nth-child(4) { height: 70%; animation-delay: .36s; }
.page-loader__bars i:nth-child(5) { height: 100%; animation-delay: .48s; }
.page-loader__count {
	margin: 10px 0 0;
	font-family: var(--font-head);
	font-size: .9rem;
	color: var(--on-dark-muted);
	direction: ltr;
	font-variant-numeric: tabular-nums;
}
@keyframes loader-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes loader-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes loader-bar { 0%, 100% { transform: scaleY(.35); opacity: .6; } 50% { transform: scaleY(1); opacity: 1; } }

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.8;
	color: var(--ink);
	background: var(--offwhite);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.35;
	margin: 0 0 .5em;
	color: inherit;
	font-weight: 800;
}

p { margin: 0 0 1em; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.site-main { flex: 1 0 auto; }

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

.screen-reader-text,
.hp-field {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	inset-inline-start: 16px;
	top: -60px;
	z-index: 1000;
	background: var(--gold);
	color: var(--navy);
	padding: 10px 18px;
	border-radius: var(--radius);
	font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--navy); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7em;
	min-height: 48px;
	padding: .6em 1.6em;
	border-radius: 8px;
	border: 1.5px solid transparent;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	text-align: center;
}
.btn__icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.btn:hover .btn__icon { transform: translateX(-4px); }
.btn--gold {
	background: var(--gold);
	color: var(--navy);
	box-shadow: 0 6px 18px rgba(183, 154, 91, .28);
}
.btn--gold:hover { background: var(--gold-300); color: var(--navy); transform: translateY(-1px); }
.btn--outline {
	border-color: rgba(247, 245, 239, .7);
	color: var(--on-dark);
	background: transparent;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold-300); }
.btn--outline-dark {
	border-color: var(--navy);
	color: var(--navy);
	background: transparent;
}
.btn--outline-dark:hover { background: var(--navy); color: var(--offwhite); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Top bar ---------------------------------------------------------------- */
.topbar {
	background: var(--navy-900);
	color: var(--on-dark-muted);
	font-size: .875rem;
	border-bottom: 1px solid rgba(183, 154, 91, .15);
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.topbar__info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin-inline-start: auto;
}
.topbar__info li { display: flex; align-items: center; }
.topbar__info li + li::before {
	content: "";
	width: 1px; height: 14px;
	background: rgba(247, 245, 239, .35);
	margin-inline: 14px;
}
.topbar__info li > span,
.topbar__info a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar__info .icon { color: var(--gold); width: 16px; height: 16px; }
.topbar__info a:hover { color: var(--gold-300); }
.topbar__info > li > .icon { margin-inline-end: 8px; }

.social { display: flex; align-items: center; gap: 6px; }
.social a {
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	color: var(--on-dark);
	transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--gold); color: var(--navy); }
.social .icon { width: 16px; height: 16px; }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	color: var(--on-dark);
	border-bottom: 1px solid rgba(183, 154, 91, .18);
	transition: box-shadow .25s;
}
.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.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

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

.brand { display: inline-flex; align-items: center; flex: none; }
.brand__img { height: 54px; width: auto; }
.brand--footer .brand__img { height: 64px; }

.primary-nav { flex: 1; display: flex; align-items: center; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; }
.primary-nav .menu a {
	position: relative;
	display: block;
	padding: 10px 14px;
	color: var(--on-dark);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .98rem;
}
.primary-nav .menu a::after {
	content: "";
	position: absolute;
	inset-inline: 14px;
	bottom: 4px;
	height: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transition: transform .25s;
}
.primary-nav .menu a:hover,
.primary-nav .menu .is-active > a,
.primary-nav .menu .current-menu-item > a:not([href*="#"]) { color: var(--gold-300); }
.primary-nav .menu a:hover::after,
.primary-nav .menu .is-active > a::after { transform: scaleX(1); }
.primary-nav__cta { display: none; }

.btn--header { min-height: 46px; padding-inline: 1.3em; }
.btn--header .btn__lead { width: 18px; height: 18px; }

.nav-toggle {
	display: none;
	margin-inline-start: auto;
	width: 46px; height: 46px;
	border: 1px solid var(--line-dark);
	border-radius: 8px;
	background: transparent;
	color: var(--on-dark);
	cursor: pointer;
	place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: var(--on-dark);
	background:
		radial-gradient(700px 520px at 88% 18%, rgba(183, 154, 91, .16), transparent 62%),
		radial-gradient(620px 520px at 12% 85%, rgba(72, 72, 150, .35), transparent 65%),
		linear-gradient(160deg, var(--navy-700) 0%, var(--navy) 45%, var(--navy-900) 100%);
	padding-block: clamp(48px, 7vw, 88px) 0;
}
/* Optional photo background (Customizer «صورة خلفية الواجهة») under a navy tint */
.hero--has-bg {
	background:
		linear-gradient(90deg, rgba(25, 25, 59, .6) 0%, rgba(25, 25, 59, .75) 50%, rgba(25, 25, 59, .9) 100%),
		radial-gradient(700px 520px at 88% 18%, rgba(183, 154, 91, .14), transparent 62%),
		var(--hero-bg) center 60% / cover no-repeat,
		var(--navy);
}
.hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-300) 50%, var(--gold) 70%, transparent);
	opacity: .7;
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	align-items: end;
	gap: clamp(24px, 4vw, 56px);
}
.hero__content { padding-block: 24px clamp(72px, 10vw, 130px); align-self: center; }
.hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 1.4rem;
	padding: 7px 16px 7px 18px;
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	background: rgba(183, 154, 91, .08);
	color: var(--gold-300);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .92rem;
	letter-spacing: .01em;
}
.hero__kicker::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 4px rgba(183, 154, 91, .22);
}
.hero__title {
	font-size: clamp(2.1rem, 4.2vw, 3.4rem);
	line-height: 1.28;
	color: var(--offwhite);
	margin-bottom: .5em;
	font-weight: 800;
}
.hero__title span { display: block; }
.hero__title span + span {
	background: linear-gradient(90deg, var(--gold-300), var(--gold) 55%, var(--gold-700));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-bottom: .08em;
}
.hero__text {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: var(--on-dark-muted);
	max-width: 34em;
	margin-bottom: 2.2rem;
	padding-inline-start: 18px;
	border-inline-start: 3px solid var(--gold);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn--gold { box-shadow: 0 12px 30px rgba(183, 154, 91, .28); }

.hero__media { position: relative; align-self: end; padding-top: 24px; }
/* Soft glow behind the arch */
.hero__media::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 10% 8% 0;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(183, 154, 91, .35), transparent);
	filter: blur(30px);
}
.arch {
	position: relative;
	margin-inline: auto;
	width: min(100%, 480px);
	aspect-ratio: 5 / 6;
	border-radius: 260px 260px 0 0;
	overflow: hidden;
	background: linear-gradient(180deg, var(--navy-700), var(--navy));
	box-shadow: 0 0 0 1px rgba(183, 154, 91, .45), 0 30px 60px rgba(0, 0, 0, .35);
}
.arch::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 48, .55));
	pointer-events: none;
}
.hero__media::before {
	content: "";
	position: absolute;
	inset-block: 6px 0;
	inset-inline: calc(50% - min(50%, 240px) - 18px);
	border: 1.5px solid var(--gold);
	border-bottom: 0;
	border-radius: 280px 280px 0 0;
	opacity: .55;
	pointer-events: none;
}
.arch__img { width: 100%; height: 100%; object-fit: cover; }
.arch__art { position: absolute; inset: 12% 6% 0; width: 88%; height: auto; }

.hero__badge {
	position: absolute;
	z-index: 2;
	bottom: clamp(28px, 5vw, 56px);
	inset-inline-end: max(0px, calc(50% - 300px));
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px 12px 14px;
	border-radius: 14px;
	background: rgba(247, 245, 239, .96);
	color: var(--navy);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
	text-decoration: none;
	transition: transform .25s;
	animation: hero-float 6s ease-in-out infinite;
}
.hero__badge:hover { transform: translateY(-3px); }
.hero__badge-icon {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--navy);
	color: var(--gold-300);
}
.hero__badge-icon .icon { width: 20px; height: 20px; }
.hero__badge-text { display: flex; flex-direction: column; line-height: 1.35; }
.hero__badge-text small { color: var(--muted); font-size: .8rem; }
.hero__badge-text strong { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .02em; }
@keyframes hero-float {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -8px; }
}

/* Features strip --------------------------------------------------------- */
.features {
	background: #efede6;
	border-bottom: 1px solid var(--grey);
}
.features__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.feature {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 26px 16px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.1rem;
}
.feature + .feature { border-inline-start: 1px solid #d8d6cf; }
.feature__icon { color: var(--gold); }
.feature__icon .icon { width: 38px; height: 38px; }

/* Sections --------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-head { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.section-title {
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	margin: 0;
	display: inline-block;
	position: relative;
	padding-bottom: 14px;
}
.section-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 50%;
	width: 64px; height: 3px;
	transform: translateX(50%);
	border-radius: 3px;
	background: var(--gold);
}
.section-title--plain { padding-bottom: 0; }
.section-title--plain::after { display: none; }
.kicker {
	color: var(--gold-700);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: .3em;
}
.kicker--line { display: flex; align-items: center; gap: 12px; }
.kicker--line::after { content: ""; width: 48px; height: 2px; background: var(--gold); }

/* Cards / icon rings ----------------------------------------------------- */
.icon-ring {
	display: grid;
	place-items: center;
	width: 72px; height: 72px;
	border-radius: 50%;
	border: 1.5px solid var(--gold);
	color: var(--gold);
	background: #fff;
	transition: background-color .25s, color .25s;
}
.icon-ring .icon { width: 34px; height: 34px; }
.icon-ring--lg { width: 96px; height: 96px; }
.icon-ring--lg .icon { width: 44px; height: 44px; }

.card {
	background: var(--card);
	border: 1px solid var(--grey);
	border-radius: var(--radius);
	padding: 32px 24px 26px;
	transition: transform .25s, box-shadow .25s, background-color .25s;
}

/* Services --------------------------------------------------------------- */
.services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: #fff; }
.service-card:hover .icon-ring { background: var(--gold); color: #fff; }
.service-card .icon-ring { margin-bottom: 18px; }
.card__title { font-size: 1.2rem; margin-bottom: .5em; }
.card__title a { color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__text { color: var(--muted); font-size: .98rem; line-height: 1.75; flex: 1; }
.card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	color: var(--gold-700);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
}
.card__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.service-card:hover .card__more .icon { transform: translateX(-4px); }

/* About ------------------------------------------------------------------ */
.about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #fff;
	min-height: 440px;
}
.about__media {
	order: 2;
	position: relative;
	overflow: hidden;
	background: var(--navy);
}
.about__img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 25%; }
.about__media:has(.about__img)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, transparent 65%, #fff 100%);
	pointer-events: none;
}
@media (max-width: 980px) {
	.about__media:has(.about__img)::after { background: linear-gradient(to bottom, transparent 70%, #fff 100%); }
}
.about__art {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		repeating-linear-gradient(135deg, rgba(183, 154, 91, .06) 0 2px, transparent 2px 22px),
		radial-gradient(500px 340px at 50% 50%, var(--navy-700), var(--navy) 70%);
}
.about__art img { width: min(42%, 220px); opacity: .95; }
.about__content {
	order: 1;
	padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
	align-self: center;
	max-width: 680px;
}
.about__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about__text { color: var(--muted); margin-bottom: 1.5rem; }

/* Process ---------------------------------------------------------------- */
.process { background: var(--offwhite); }
.process .section-head .kicker { margin-bottom: 0; }
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	counter-reset: step;
}
.step { position: relative; text-align: center; padding-inline: 12px; }
.step + .step::before {
	content: "";
	position: absolute;
	top: 40px;
	inset-inline-start: -22px;
	width: 14px; height: 14px;
	border-top: 2px solid var(--gold);
	border-left: 2px solid var(--gold);
	transform: rotate(-45deg);
}
.step__icon { position: relative; display: inline-block; margin-bottom: 18px; }
.step__num {
	position: absolute;
	top: -4px;
	inset-inline-end: -10px;
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--gold);
	color: var(--navy);
	font-family: var(--font-head);
	font-weight: 800;
	font-size: .85rem;
	box-shadow: 0 0 0 4px var(--offwhite);
}
.step__title { font-size: 1.25rem; margin-bottom: .35em; }
.step__text { color: var(--muted); max-width: 22em; margin-inline: auto; }

/* CTA band --------------------------------------------------------------- */
.cta-band {
	position: relative;
	overflow: hidden;
	text-align: center;
	color: var(--on-dark);
	background:
		radial-gradient(700px 300px at 50% 0%, rgba(183, 154, 91, .16), transparent 70%),
		linear-gradient(180deg, var(--navy-700), var(--navy-900));
	padding-block: clamp(56px, 7vw, 88px);
}
.cta-band__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: .35;
}
.cta-band.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(25, 25, 59, .55), rgba(18, 18, 48, .85));
}
.cta-band__inner { position: relative; }
.cta-band__title { color: var(--gold); font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-band__text {
	max-width: 40em;
	margin: 0 auto 1.8rem;
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	color: var(--on-dark-muted);
}

/* Contact ---------------------------------------------------------------- */
.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: 24px;
	align-items: stretch;
}
.contact-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: linear-gradient(160deg, #fff 0%, #f1efe8 100%);
	border: 1px solid var(--grey);
	--pad-y: 32px;
	--pad-x: 28px;
	padding: var(--pad-y) var(--pad-x);
	box-shadow: var(--shadow);
}
.contact-card__banner {
	display: block;
	width: calc(100% + 2 * var(--pad-x));
	max-width: none;
	height: 190px;
	margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) 24px;
	object-fit: cover;
	object-position: center 40%;
}
.contact-card > * { position: relative; z-index: 2; }
.contact-card.has-image { padding-bottom: 28px; }
.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-block: 16px;
	border-bottom: 1px solid var(--grey);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list__icon {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	flex: none;
	border-radius: 50%;
	background: var(--navy);
	color: var(--gold);
}
.contact-list__icon .icon { width: 20px; height: 20px; }
.contact-list__body { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.contact-list__body strong { font-family: var(--font-head); font-size: .95rem; }
.contact-list__body a,
.contact-list__body span { color: var(--muted); overflow-wrap: anywhere; }
.contact-list__body a:hover { color: var(--gold-700); }
.contact-card__intro { display: flex; gap: 14px; align-items: flex-start; }
.contact-card__intro p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.contact-card__formation {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding: 14px 16px;
	border-radius: var(--radius);
	background: var(--navy);
	color: var(--on-dark);
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.4;
	transition: background-color .2s;
}
.contact-card__formation .icon { color: var(--gold); width: 24px; height: 24px; }
.contact-card__formation span { flex: 1; }
.contact-card__formation:hover { background: var(--navy-700); color: var(--gold-300); }

.contact-card.has-map { padding-bottom: 28px; }
.contact-card__map {
	margin-top: 20px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--grey);
	aspect-ratio: 16 / 10;
	background: var(--grey);
}
.contact-card__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Forms ------------------------------------------------------------------ */
.galal-form {
	background: #fff;
	border: 1px solid var(--grey);
	border-radius: var(--radius-lg);
	padding: clamp(20px, 3vw, 32px);
	box-shadow: var(--shadow);
}
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 16px;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.form-group-title {
	grid-column: 1 / -1;
	font-size: 1.05rem;
	color: var(--navy);
	margin: 12px 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--grey);
}
.form-group-title:first-child { margin-top: 0; }
.field__label {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .92rem;
	margin-bottom: 6px;
}
.galal-form--contact .field__label {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
.field__req { color: #b4232c; margin-inline-start: 2px; }
.field__opt { color: var(--muted); font-weight: 400; font-size: .82rem; margin-inline-start: 4px; }
.field__control { position: relative; }
.field__icon {
	position: absolute;
	top: 15px;
	right: 14px;
	width: 18px; height: 18px;
	color: #8a8a99;
	pointer-events: none;
}
.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #d9d8d2;
	border-radius: 8px;
	background: #fcfbf8;
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field.has-icon input,
.field.has-icon textarea { padding-right: 42px; }
.field input[dir="ltr"], .field textarea[dir="ltr"] { text-align: right; }
.field input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.field textarea { resize: vertical; min-height: 120px; }
.field select {
	appearance: none;
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b79a5b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 18px;
	background-position: left 14px center;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a8a99; }
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--gold);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(183, 154, 91, .22);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #b4232c; background: #fff8f8; }
.field__error {
	min-height: 1.4em;
	margin: 4px 0 6px;
	font-size: .85rem;
	line-height: 1.4;
	color: #b4232c;
}
.form-status {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	margin-bottom: 14px;
	border-radius: 8px;
	font-weight: 500;
	line-height: 1.6;
}
.form-status[hidden] { display: none; }
.form-status .icon { margin-top: 3px; }
.form-status.is-success { background: #eef6ee; color: #1f5d2c; border: 1px solid #bfdcc4; }
.form-status.is-error { background: #fbeeee; color: #8d1c23; border: 1px solid #ecc5c7; }
.galal-form .btn--gold { min-height: 52px; }
.btn__lead { width: 18px; height: 18px; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
	position: relative;
	overflow: hidden;
	background: var(--navy);
	color: var(--on-dark-muted);
	font-size: .95rem;
}
.site-footer__photo {
	position: absolute;
	inset-block: 0;
	left: 0;
	width: min(620px, 55%);
	background-size: cover;
	background-position: center;
	opacity: .45;
	-webkit-mask-image: linear-gradient(to left, transparent 0%, #000 60%);
	mask-image: linear-gradient(to left, transparent 0%, #000 60%);
	pointer-events: none;
}
.site-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 32px;
	padding-block: 56px 40px;
}
.footer-about { margin-top: 18px; max-width: 26em; }
.footer-title {
	color: var(--on-dark);
	font-size: 1.05rem;
	margin-bottom: 14px;
}
.footer-links li + li { margin-top: 6px; }
.footer-links a,
.footer-contact a { color: var(--on-dark-muted); }
.footer-links a:hover,
.footer-contact a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li + li { margin-top: 10px; }
.footer-contact .icon { color: var(--gold); width: 18px; height: 18px; margin-top: 5px; }
.footer-widget { color: var(--on-dark-muted); }
.footer-widget a { color: var(--gold-300); }
.site-footer__bottom {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 18px;
	border-top: 1px solid rgba(247, 245, 239, .12);
	font-size: .85rem;
}
.copyright { margin: 0 0 0 0; margin-inline-start: auto; }
.copyright a { color: var(--on-dark-muted); }
.copyright a:hover { color: var(--gold-300); }
.copyright .sep { margin-inline: 10px; opacity: .5; }

/* Floating WhatsApp button */
.wa-float {
	position: fixed;
	z-index: 90;
	bottom: 20px;
	left: 20px;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
.nav-open .wa-float { display: none; }

/* Back to top */
.to-top {
	position: fixed;
	z-index: 90;
	bottom: 20px;
	right: 20px;
	display: grid;
	place-items: center;
	width: 50px; height: 50px;
	border: 1px solid rgba(183, 154, 91, .6);
	border-radius: 50%;
	background: var(--navy);
	color: var(--gold);
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s, transform .25s, background-color .2s, color .2s;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy); }
.to-top .icon { width: 24px; height: 24px; transform: rotate(90deg); }
.nav-open .to-top { display: none; }

/* Inner pages ------------------------------------------------------------ */
.page-hero {
	position: relative;
	background: linear-gradient(180deg, var(--navy), var(--navy-900));
	color: var(--on-dark);
	padding-block: clamp(40px, 6vw, 72px);
	text-align: center;
}
.page-hero .kicker { color: var(--gold-300); }
.page-hero__title { color: var(--gold); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0; }
.content-area { padding-block: clamp(40px, 6vw, 72px); max-width: 920px; }
.content-area--center { text-align: center; }
.content-area--center .btn { margin-top: 8px; }
.entry__thumb { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.entry__content { font-size: 1.08rem; }
.entry__content > * + * { margin-top: 1em; }
.entry__content h2, .entry__content h3 { margin-top: 1.6em; }
.entry__content ul { list-style: disc; padding-inline-start: 1.4em; }
.entry__content ol { list-style: decimal; padding-inline-start: 1.4em; }
.entry__content a { text-decoration: underline; text-underline-offset: 3px; }
.entry__content .formation-form-wrap { margin-top: 28px; }
.entry__content .lead { font-size: 1.2rem; color: var(--ink); }
.entry__content li + li { margin-top: .4em; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .6em 1.6em; border-radius: 8px;
	background: var(--gold); color: var(--navy); border: 1.5px solid var(--gold);
	font-family: var(--font-head); font-weight: 700; text-decoration: none !important;
}
.wp-block-button__link:hover { background: var(--gold-300); color: var(--navy); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); }
.is-style-outline .wp-block-button__link:hover { background: var(--navy); color: var(--offwhite); }
.entry__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { position: relative; }
.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers {
	display: grid; place-items: center;
	min-width: 42px; height: 42px; padding-inline: 10px;
	border-radius: 8px; border: 1px solid var(--grey); color: var(--ink);
}
.page-numbers.current { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.empty-state { text-align: center; color: var(--muted); }

/* Reveal on scroll (only when JS is available) --------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.site-header__inner { gap: 20px; }
	.primary-nav .menu a { padding-inline: 10px; }
	.primary-nav .menu a::after { inset-inline: 10px; }
	.services__grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.footer-col--brand { grid-column: 1 / -1; }
}

/* Tablet & mobile navigation */
@media (max-width: 980px) {
	:root { --header-h: 72px; }
	.brand__img { height: 46px; }
	.nav-toggle { display: grid; }
	.btn--header { display: none; }
	.primary-nav {
		position: fixed;
		inset-inline: 0;
		top: var(--nav-top, var(--header-h));
		bottom: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 16px var(--gutter) 32px;
		background: var(--navy);
		border-top: 1px solid var(--line-dark);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.nav-open .primary-nav { visibility: visible; opacity: 1; transform: none; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu a {
		padding: 16px 4px;
		font-size: 1.1rem;
		border-bottom: 1px solid rgba(247, 245, 239, .08);
	}
	.primary-nav .menu a::after { display: none; }
	.primary-nav__cta { display: block; margin-top: 24px; }
	.primary-nav__cta .btn { width: 100%; }

	.hero__inner { grid-template-columns: 1fr; text-align: center; }
	.hero__content { padding-bottom: 8px; }
	.hero__text { margin-inline: auto; }
	.hero__actions { justify-content: center; }
	.hero__content { align-self: auto; }
	.hero__text { border-inline-start: 0; padding-inline-start: 0; }
	.arch { width: min(78%, 420px); }
	.hero__media::before { inset-inline: calc(50% - min(39%, 210px) - 18px); }
	.hero__badge { inset-inline-end: 4%; }

	.about { grid-template-columns: 1fr; }
	.about__media { order: 1; min-height: 300px; height: clamp(300px, 50vw, 420px); }
	.about__content { order: 2; max-width: none; }

	.contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.topbar__social { display: none; }
	.topbar__info { margin-inline: auto; justify-content: center; font-size: .82rem; }
	.topbar__info li + li::before { margin-inline: 10px; }

	.features__list { grid-template-columns: 1fr; }
	.feature { justify-content: flex-start; padding: 16px 8px; }
	.feature + .feature { border-inline-start: 0; border-top: 1px solid #d8d6cf; }
	.features__list { max-width: 360px; margin-inline: auto; }

	.steps { grid-template-columns: 1fr; gap: 40px; }
	.step + .step::before {
		top: -30px;
		inset-inline-start: calc(50% - 7px);
		transform: rotate(-135deg);
	}

	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.site-footer__photo { width: 100%; opacity: .2; -webkit-mask-image: linear-gradient(to top, transparent, #000 70%); mask-image: linear-gradient(to top, transparent, #000 70%); }
	.site-footer__bottom { flex-direction: column-reverse; text-align: center; }
	.copyright { margin-inline: auto; }
	.post-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.brand__img { height: 40px; }
	.services__grid { grid-template-columns: 1fr; }
	.service-card { padding: 26px 20px 22px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.arch { width: 86%; }
	.hero__media::before { inset-inline: calc(7% - 14px); inset-block-start: -14px; }
	.form-grid { grid-template-columns: 1fr; }
	.field--half { grid-column: 1 / -1; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.contact-card { --pad-y: 24px; --pad-x: 20px; }
	.contact-card.has-image, .contact-card.has-map { padding-bottom: 24px; }
	.contact-card__banner { height: 150px; }
	.entry__cta .btn { flex: 1 1 100%; }
}

/* Contact form fills the height of the details card on wide screens */
@media (min-width: 981px) {
	.galal-form--contact { display: flex; flex-direction: column; }
	.galal-form--contact .form-grid { flex: 1; grid-template-rows: auto auto 1fr; }
	.galal-form--contact .field--textarea { min-height: 0; }
	.galal-form--contact .field--textarea .field__control { flex: 1; display: flex; }
	.galal-form--contact .field--textarea textarea { flex: 1; height: auto; }
}
