/*
Theme Name: Mohamed El Ghachi – Immobilier neuf
Theme URI: https://example.com/
Author: Mohamed El Ghachi
Description: Thème WordPress sur mesure pour Mohamed El Ghachi, conseiller en immobilier neuf (achat sur plan). Pages : Accueil, Projets, Pourquoi moi, Comment ça marche, Avis clients, À propos, Contact. Formulaire de contact intégré, bouton WhatsApp, projets et avis modifiables depuis l’administration.
Version: 1.0.0
Requires at least: 6.0
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: mg-immobilier
*/

/* ==========================================================================
   1. Fonts (bundled – nothing is loaded from Google)
   ========================================================================== */
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Mr De Haviland"; src: url("assets/fonts/mr-de-haviland.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mrs Saint Delafield"; src: url("assets/fonts/mrs-saint-delafield.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("assets/fonts/cairo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; src: url("assets/fonts/cairo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; src: url("assets/fonts/cairo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }

/* ==========================================================================
   2. Design tokens
   ========================================================================== */
:root {
	--ink: #050d10;
	--ink-2: #0e151b;
	--gold: #b7853e;
	--gold-light: #d3a761;
	--gold-dark: #9a6d2b;
	--cream: #f9f5f2;
	--sand: #f3ece5;
	--paper: #fbfaf8;
	--text: #0d1417;
	--muted: #4a5358;
	--line: #e6ddd3;
	--green: #17b45a;
	--green-dark: #119a4c;

	--f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--f-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-hand: "Mr De Haviland", "Snell Roundhand", "Segoe Script", cursive;
	--f-sign: "Mrs Saint Delafield", "Snell Roundhand", "Segoe Script", cursive;

	--wrap: 1240px;
	--gutter: 28px;
	--nav-h: 74px;
	--radius: 14px;
	--shadow: 0 10px 34px rgba(30, 22, 12, 0.08);
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--f-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	max-width: 100%;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; }
h1, h2 { font-family: var(--f-serif); letter-spacing: -0.005em; }
button { font: inherit; cursor: pointer; }
figure { margin: 0; }

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

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .15s; }
.skip-link:focus { top: 8px; }
html[dir="rtl"] .skip-link { left: auto; right: 12px; }

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

.ico { width: 1.25em; height: 1.25em; flex: none; }
.inline-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; margin-right: 0.4em; color: var(--gold); }

/* Typographic helpers ---------------------------------------------------- */
.eyebrow {
	margin: 0 0 14px;
	font: 600 12.5px/1.3 var(--f-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
}
.eyebrow--wide { letter-spacing: 0.26em; }

.lead { font-size: 17px; line-height: 1.7; max-width: 62ch; }
.lead--dark { color: var(--text); }
.muted { color: var(--muted); }

.script { font-family: var(--f-hand); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; margin: 0; }
.script--sign { font-family: var(--f-sign); font-size: clamp(34px, 3.2vw, 46px); line-height: 1; }

.rule { display: block; width: 46px; height: 2px; background: var(--gold); margin: 22px 0; border-radius: 2px; }

.section { padding: 88px 0; }
.section--tight { padding: 44px 0 64px; }
.section--sand { background: var(--sand); }
.section-title { font-family: var(--f-serif); font-size: clamp(28px, 3.1vw, 40px); }
.section-title--center { text-align: center; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head .eyebrow { margin-bottom: 10px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
	font: 500 15px/1.2 var(--f-sans); text-align: center;
	transition: background-color .2s, transform .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--gold { color: #fff; background: linear-gradient(180deg, #c19147 0%, #b0802f 100%); box-shadow: 0 6px 18px rgba(183, 133, 62, .28); }
.btn--gold:hover { background: linear-gradient(180deg, #c99a52 0%, #9a6d2b 100%); transform: translateY(-1px); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(5, 13, 16, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--green { color: #fff; background: var(--green); box-shadow: 0 6px 18px rgba(23, 180, 90, .28); }
.btn--green:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn--outline { color: var(--text); border-color: var(--gold); background: transparent; }
.btn--outline:hover { background: var(--gold); color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--icon-only { padding: 0; width: 44px; height: 44px; border-radius: 50%; gap: 0; flex: none; }
.btn--icon-only .ico { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--gold-dark); padding-bottom: 4px; border-bottom: 2px solid rgba(183, 133, 62, .45); }
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.link-arrow--dark { color: var(--text); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.monogram { display: inline-flex; font-family: var(--f-serif); font-size: 42px; line-height: 1; font-weight: 400; }
.monogram span:first-child { color: #fff; }
.monogram span:last-child { color: var(--gold); margin-left: -0.3em; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__text strong { font: 500 15px/1 var(--f-sans); letter-spacing: .13em; text-transform: uppercase; color: #fff; }
.brand__text small { font: 500 9.5px/1 var(--f-sans); letter-spacing: .17em; text-transform: uppercase; color: var(--gold-light); }
.custom-logo-link img { max-height: 54px; width: auto; }

.primary-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.primary-nav .menu { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); }
.primary-nav .menu a { position: relative; display: block; padding: 8px 0; font-size: 14px; font-weight: 400; color: #fff; white-space: nowrap; transition: color .2s; }
.primary-nav .menu a:hover { color: var(--gold-light); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--gold-light); }
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; }
.primary-nav__cta-mobile { display: none; }

.site-header__cta { flex: none; }

/* Language switcher (FR / EN / AR) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; flex: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px; }
.lang-switch__btn { font: 600 11.5px/1 var(--f-sans); letter-spacing: .04em; color: rgba(255,255,255,.65); background: transparent; border: none; border-radius: 999px; padding: 6px 10px; cursor: pointer; transition: color .2s, background-color .2s; }
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active { color: var(--ink); background: var(--gold); }
.primary-nav__lang-mobile { display: none; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 1120px) {
	.site-header__cta { display: none; }
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 8px;
		padding: 12px var(--gutter) 24px; background: var(--ink);
		border-bottom: 1px solid rgba(255, 255, 255, .08);
		display: none;
	}
	.nav-open .primary-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
	.primary-nav .current-menu-item > a::after,
	.primary-nav .current_page_item > a::after { display: none; }
	.primary-nav__cta-mobile { display: inline-flex; align-self: center; margin-top: 16px; }
	.primary-nav__lang-mobile { display: flex; margin-top: 16px; }
	.site-header__inner > .lang-switch { display: none; }
}
@media (max-width: 520px) {
	.brand__text small { display: none; }
	.monogram { font-size: 38px; }
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr 1.25fr; gap: 0; padding-block: 52px 46px; }
.footer-col { padding: 0 32px; border-left: 1px solid rgba(255, 255, 255, .08); }
.footer-col:first-child { padding-left: 0; border-left: 0; }
.footer-brand p { margin: 26px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.footer-title { font: 600 14px/1.2 var(--f-sans); color: #fff; margin-bottom: 18px; }
.footer-menu li + li { margin-top: 7px; }
.footer-menu a { font-size: 13.5px; color: rgba(255, 255, 255, .82); transition: color .2s; }
.footer-menu a:hover { color: var(--gold-light); }
.footer-social li + li { margin-top: 12px; }
.footer-social a { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .92); }
.footer-social a:hover { color: var(--gold-light); }
.footer-social .ico { width: 20px; height: 20px; }
.footer-loc { display: flex; gap: 12px; margin: 0; font-size: 14px; }
.footer-loc .ico { width: 21px; height: 21px; color: #fff; margin-top: 2px; }
.footer-loc small { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.footer-script { display: flex; align-items: center; justify-content: flex-end; text-align: right; }
.footer-script .script { color: #efe4d0; font-size: clamp(24px, 2.2vw, 31px); }
.footer-script .script::after { content: ""; display: block; width: 62px; height: 2px; margin: 10px 0 0 auto; background: var(--gold); }

.footer-bottom { background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, .05); font-size: 13.5px; }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px; }
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, .9); }
.legal-menu { display: flex; gap: 0; }
.legal-menu li + li::before { content: "|"; margin: 0 14px; color: rgba(255, 255, 255, .35); }
.legal-menu a { color: rgba(255, 255, 255, .9); }
.legal-menu a:hover { color: var(--gold-light); }

@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 0; }
	.footer-col:nth-child(odd) { padding-left: 0; border-left: 0; }
	.footer-script { grid-column: 1 / -1; justify-content: flex-start; text-align: left; border-left: 0; padding-left: 0; }
	.footer-script .script::after { margin-left: 0; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-col { padding: 0; border-left: 0; }
}

/* ==========================================================================
   6. Home – hero + trust bar
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: min(68%, 980px); z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 18%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 0%, rgba(5, 13, 16, .82) 34%, rgba(5, 13, 16, 0) 62%); }
.hero__inner { position: relative; display: flex; align-items: center; min-height: 500px; padding-block: 64px 56px; }
.hero__copy { max-width: 560px; }
.hero__copy .eyebrow { margin-bottom: 18px; color: var(--gold-light); }
.hero h1 { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.hero__name { font-size: clamp(30px, 3.6vw, 48px); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.hero__title { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.06; color: var(--gold-light); }
.hero__text { margin: 22px 0 30px; font-size: 17px; line-height: 1.6; max-width: 46ch; color: rgba(255, 255, 255, .95); }
.hero__script { position: absolute; right: var(--gutter); bottom: 78px; text-align: left; color: #f1e6d1; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.hero__script::after { content: ""; display: block; width: 62px; height: 2px; margin-top: 12px; background: var(--gold); }

.trust { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .06); }
.trust__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-block: 24px; }
.trust__list li { display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.trust__list li + li { border-left: 1px solid rgba(255, 255, 255, .09); }
.trust__list .ico { width: 40px; height: 40px; color: var(--gold); stroke-width: 1.4; }
.trust__list strong { display: block; font: 600 14px/1.3 var(--f-sans); }
.trust__list span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }

@media (max-width: 1024px) {
	.hero__media { width: 100%; }
	.hero__media img { -webkit-mask-image: none; mask-image: none; opacity: .55; object-position: 70% 10%; }
	.hero::before { background: linear-gradient(90deg, rgba(5, 13, 16, .92) 0%, rgba(5, 13, 16, .55) 100%); }
	.hero__script { display: none; }
	.trust__list { grid-template-columns: 1fr 1fr; gap: 22px 0; }
	.trust__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
	.hero__inner { min-height: 0; padding-block: 48px; }
	.trust__list { grid-template-columns: 1fr; }
	.trust__list li { border-left: 0 !important; padding-left: 0; }
}

/* ==========================================================================
   7. Shared blocks
   ========================================================================== */
/* Icon in a soft round badge */
.badge-icon { display: inline-grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: #efe5d8; color: var(--gold); }
.badge-icon .ico { width: 28px; height: 28px; stroke-width: 1.5; }
.badge-icon--lg { width: 66px; height: 66px; }
.badge-icon--sm { width: 46px; height: 46px; }
.badge-icon--sm .ico { width: 22px; height: 22px; }

/* Why block */
.why { background: #f7f5f3; }
.why__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.why__intro h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; }
.why__intro p:last-child { max-width: 44ch; color: #1d2529; }
.why__items { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 44px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature h3 { font: 600 16px/1.3 var(--f-sans); margin-bottom: 6px; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #2b3438; }
.feature--plain { gap: 16px; }
.feature__ico { width: 40px; height: 40px; color: var(--gold); stroke-width: 1.4; margin-top: 2px; }

/* Numbered strip */
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #fff; font: 500 13.5px/1 var(--f-sans); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 42px; text-align: center; }
.timeline::before { content: ""; position: absolute; top: 19px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
.timeline li { position: relative; }
.timeline .num { box-shadow: 0 0 0 8px var(--sand); }
.timeline h3 { margin: 16px 0 8px; font: 600 16px/1.3 var(--f-sans); }
.timeline p { max-width: 26ch; margin: 0 auto; font-size: 14px; line-height: 1.6; color: #2b3438; }

/* Cards grid */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1024px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }

/* Checks row (about teaser, etc.) */
.checks li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; }
.checks li + li { margin-top: 16px; }
.checks .ico { width: 26px; height: 26px; color: var(--gold); stroke-width: 1.5; }

/* Project cards ------------------------------------------------------------- */
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30, 22, 12, .13); }
.pcard[hidden] { display: none; }
.pcard__media { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--sand); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badge { position: absolute; top: 12px; left: 12px; right: 12px; max-width: 62%; padding: 6px 13px; border-radius: 8px; background: var(--gold); color: #fff; font: 500 12.5px/1.2 var(--f-sans); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: max-content; }
.pcard__delivery { position: absolute; top: 12px; right: 12px; left: 12px; max-width: 55%; margin-left: auto; padding: 6px 12px; border-radius: 8px; background: #fff; color: var(--text); font: 500 12.5px/1.2 var(--f-sans); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: max-content; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.pcard__title { font: 600 19px/1.25 var(--f-sans); margin-bottom: 10px; }
.pcard__title a:hover { color: var(--gold-dark); }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #33393d; }
.pcard__meta li { display: inline-flex; align-items: center; gap: 7px; }
.pcard__meta .ico { width: 17px; height: 17px; color: var(--gold); stroke-width: 1.6; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.pcard__price { font: 600 15px/1.3 var(--f-sans); }
.pcard--home .pcard__body { padding-top: 20px; }
.pcard--home .pcard__meta { margin-bottom: 18px; }

/* "full" variant (projects page) */
.pcard--full .pcard__city { display: flex; align-items: center; gap: 7px; margin: -2px 0 12px; font-size: 14px; }
.pcard--full .pcard__city .ico { width: 16px; height: 16px; color: var(--gold); }
.pcard--full .pcard__desc { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #384045; }
.pcard--full .pcard__meta--full { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 16px; font-size: 12.5px; color: #5a6267; }
.pcard--full .pcard__meta--full li:nth-child(3) { grid-column: 1 / -1; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pcard__tags li { padding: 6px 11px; border-radius: 7px; background: #f1ebe4; font-size: 11.5px; line-height: 1.2; color: #4d5559; }
.pcard--full .pcard__cta { margin-top: auto; padding-block: 13px; font-weight: 600; font-size: 14px; }

/* About teaser (home) */
.about-teaser__grid { display: grid; grid-template-columns: 0.9fr 1.35fr 0.7fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-teaser__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.about-teaser__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-teaser__copy .section-title { margin-bottom: 16px; font-size: clamp(26px, 2.8vw, 36px); }
.about-teaser__copy p { max-width: 52ch; color: #263034; }
.about-teaser__copy .script--sign { margin: 18px 0 22px; color: #111; }

/* CTA band --------------------------------------------------------------- */
.cta-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(60% 120% at 88% 0%, rgba(183, 133, 62, .22), transparent 60%),
	radial-gradient(50% 100% at 6% 100%, rgba(183, 133, 62, .10), transparent 60%); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 60px; padding-block: 54px; }
.cta-band__copy { max-width: 560px; }
.cta-band__copy .eyebrow { margin-bottom: 12px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 14px; }
.cta-band__copy p:last-child { margin: 0; color: rgba(255, 255, 255, .88); max-width: 48ch; }
.cta-band__action { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta-band__checks { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; }
.cta-band__checks li { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(183, 133, 62, .6); }
.cta-band__checks .ico { color: var(--gold-light); width: 18px; height: 18px; }

/* Stats band -------------------------------------------------------------- */
.stats-band { position: relative; overflow: hidden; }
.stats-band--dark { background: linear-gradient(rgba(5, 13, 16, .82), rgba(5, 13, 16, .9)), var(--stats-bg, none) center 60% / cover, #050d10; color: #fff; }
.stats-band--light { background: var(--sand); color: var(--text); }
.stats-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 38px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; flex: 1; }
.stats li { display: flex; align-items: center; gap: 16px; padding: 0 34px; }
.stats li:first-child { padding-left: 0; }
.stats li + li { border-left: 1px solid rgba(128, 128, 128, .28); }
.stats .ico { width: 44px; height: 44px; color: var(--gold); stroke-width: 1.35; }
.stats strong { display: block; font: 600 26px/1.1 var(--f-serif); }
.stats span { display: block; margin-top: 2px; font-size: 14px; opacity: .9; }
.stats-band__script { flex: none; text-align: left; }
.stats-band--dark .stats-band__script { color: #f1e6d1; }
.stats-band__script::after { content: ""; display: block; width: 62px; height: 2px; margin-top: 10px; background: var(--gold); }

/* Responsive for blocks above */
@media (max-width: 1024px) {
	.why__grid { grid-template-columns: 1fr; }
	.cards-3 { grid-template-columns: 1fr 1fr; }
	.about-teaser__grid { grid-template-columns: 1fr 1.3fr; }
	.about-teaser__grid .checks { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
	.about-teaser__grid .checks li + li { margin-top: 0; }
	.stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
	.stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
	.stats-band__inner { flex-direction: column; align-items: flex-start; }
	.timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
	.timeline::before { display: none; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
	.section { padding: 60px 0; }
	.cards-3, .why__items, .about-teaser__grid { grid-template-columns: 1fr; }
	.about-teaser__grid .checks { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.timeline { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr; }
	.stats li { padding: 0 !important; border-left: 0 !important; }
}

/* ==========================================================================
   8. Page headers
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 600; }
.page-hero .lead { margin-top: 18px; }

/* Light: cream with a soft palm on each side */
.page-hero--light { padding: 56px 0 44px; background: var(--cream); }
.page-hero--light::before, .page-hero--light::after {
	content: ""; position: absolute; top: 0; width: 300px; height: 300px; z-index: -1;
	background: url("assets/img/palm-left.jpg") no-repeat left top / cover;
	mix-blend-mode: multiply; opacity: .5; pointer-events: none;
	-webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.page-hero--light::before { left: -60px; }
.page-hero--light::after { right: -60px; transform: scaleX(-1); }
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero--center .eyebrow { margin-bottom: 16px; }
.page-hero__script { position: absolute; right: var(--gutter); top: 40px; text-align: left; color: #868d93; }
.page-hero__script::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 12px; background: var(--gold); }
.page-hero .container { position: relative; }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--gold-light); }
.crumbs span { margin: 0 6px; }
.crumbs a:hover { text-decoration: underline; }
.page-hero--light .crumbs { color: var(--gold-dark); }

/* Dark: photo on the right */
.page-hero--dark { background: var(--ink); color: #fff; }
.page-hero--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 0%, rgba(5, 13, 16, .9) 36%, rgba(5, 13, 16, .15) 75%); }
.page-hero__media { position: absolute; inset: 0 0 0 auto; width: 70%; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.page-hero__inner { padding-block: 64px 56px; }
.page-hero--dark h1 { max-width: 12em; color: #fff; }
.page-hero--dark .lead { max-width: 52ch; color: rgba(255, 255, 255, .94); }
.page-hero--dark .page-hero__script { color: #f1e6d1; top: 96px; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero-icons { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 34px; }
.hero-icons li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 130px; font-size: 13px; line-height: 1.35; }
.hero-icons .ico { width: 32px; height: 32px; color: var(--gold); stroke-width: 1.4; }

/* Values row (projects page) */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 0; margin-top: 30px; }
.values li { display: flex; align-items: center; gap: 12px; padding: 0 30px; text-align: left; font-size: 14px; line-height: 1.35; max-width: 250px; }
.values li + li { border-left: 1px solid rgba(183, 133, 62, .55); }
.values .ico { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.4; }
.page-hero--center .page-hero__script { top: 70px; }

@media (max-width: 1360px) { .page-hero__script { display: none; } }
@media (max-width: 820px) {
	.page-hero--dark::before { background: rgba(5, 13, 16, .82); }
	.page-hero__media { width: 100%; }
	.values li { padding: 0 18px; }
}
@media (max-width: 560px) { .values li + li { border-left: 0; } .values { flex-direction: column; align-items: center; } }

/* ==========================================================================
   9. Projects page
   ========================================================================== */
.projects { padding: 6px 0 72px; background: linear-gradient(180deg, var(--cream), #fff 40%); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.chip { padding: 11px 24px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 500 14px/1.2 var(--f-sans); color: var(--text); transition: all .2s; box-shadow: 0 3px 10px rgba(30, 22, 12, .04); }
.chip:hover { border-color: var(--gold); color: var(--gold-dark); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(183, 133, 62, .3); }

.projects-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 22px; align-items: stretch; }
.projects-grid .pcard { grid-column: span 8; }

.pcta { grid-column: span 10; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 40px 44px; border-radius: var(--radius); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.pcta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 100% 0%, rgba(183, 133, 62, .28), transparent 65%); }
.pcta h2 { max-width: 12em; margin: 4px 0 22px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 500; }
.pcta--wide { grid-column: 1 / -1; }
.pcta--span-16 { grid-column: span 16; }
.pcta--span-8 { grid-column: span 8; }
.pcta[hidden], .projects-empty[hidden] { display: none; }
.projects-empty { text-align: center; padding: 40px 0; color: var(--muted); }

@media (max-width: 1024px) {
	.projects-grid { grid-template-columns: 1fr 1fr; }
	.projects-grid .pcard, .pcta { grid-column: auto; }
	.pcta--wide { grid-column: 1 / -1; }
}
@media (max-width: 680px) { .projects-grid { grid-template-columns: 1fr; } .pcta { padding: 32px 26px; } }

/* Single project */
.project-single__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.project-single__photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow); }
.project-single__photo img { width: 100%; height: auto; }
.project-single__side { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 14px; padding: 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.project-single__side h2 { font-size: 24px; margin-bottom: 6px; }
.facts { display: grid; gap: 14px; margin-bottom: 8px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts .ico { grid-row: span 2; width: 26px; height: 26px; color: var(--gold); stroke-width: 1.5; }
.facts span { font-size: 12.5px; color: var(--muted); }
.facts strong { font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .project-single__grid { grid-template-columns: 1fr; } .project-single__side { position: static; } }

/* Project photo gallery */
.project-gallery { margin-top: 40px; }
.project-gallery__title { font-size: 22px; margin-bottom: 16px; }
.project-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.project-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.project-gallery__item:hover img { transform: scale(1.06); }
.project-gallery__zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5, 13, 16, 0); transition: background .25s ease; opacity: 0; }
.project-gallery__zoom .ico { width: 26px; height: 26px; color: #fff; }
.project-gallery__item:hover .project-gallery__zoom { background: rgba(5, 13, 16, .38); opacity: 1; }
@media (max-width: 700px) { .project-gallery__grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(5, 13, 16, .94); }
.lightbox[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }
.lightbox__img { max-width: 88vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 30px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; opacity: .8; letter-spacing: .04em; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { width: 40px; height: 40px; font-size: 22px; } }

/* Prose (legal pages, project text) */
.prose { font-size: 16.5px; line-height: 1.8; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .4em; font-family: var(--f-sans); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.3em; margin-bottom: 1em; }
.prose a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 10px; }

/* ==========================================================================
   10. Why-me / About
   ========================================================================== */
.value-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-cards li { padding: 32px 24px; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.value-cards .badge-icon { margin-bottom: 18px; }
.value-cards h3 { margin-bottom: 8px; font: 600 16px/1.3 var(--f-sans); }
.value-cards p { margin: 0; font-size: 14px; color: #33393d; }
@media (max-width: 1024px) { .value-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-cards { grid-template-columns: 1fr; } }

.about-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(90deg, #e7ded5 0%, var(--cream) 46%, #eef1f3 100%); }
.about-hero__photo { position: absolute; inset: 0 auto 0 0; width: 46%; z-index: -1; }
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 22%; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%); }
.about-hero__quote { position: absolute; left: 34px; top: 46px; max-width: 250px; color: #f3e9d8; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); font-size: clamp(22px, 2vw, 28px); }
.about-hero__quote::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 12px; background: var(--gold); }
.about-hero__inner { display: flex; justify-content: flex-end; min-height: 640px; padding-block: 56px; }
.about-hero__copy { width: 54%; padding-left: 24px; }
.about-hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.about-hero h1 span { display: block; color: var(--gold); }
.about-hero .lead { margin: 22px 0 28px; font-size: 16px; max-width: 58ch; }
.about-hero__aside { position: absolute; right: var(--gutter); top: 48px; color: #8a9096; text-align: left; }
.about-hero__aside::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 12px; background: var(--gold); }
.about-hero__sign { position: absolute; left: 0; bottom: 34px; width: 46%; display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); font-size: 14px; }
.about-hero__sign .script--sign { color: #f5ecdc; margin-bottom: 6px; }
.about-hero__sign strong { font-weight: 600; font-size: 15px; }
.mini-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.mini-cards li { padding: 20px 14px 18px; text-align: center; background: rgba(255, 255, 255, .86); border-radius: 12px; box-shadow: 0 8px 24px rgba(30, 22, 12, .07); }
.mini-cards .badge-icon { width: 54px; height: 54px; margin-bottom: 10px; }
.mini-cards .badge-icon .ico { width: 26px; height: 26px; }
.mini-cards h3 { margin-bottom: 6px; font: 600 14px/1.25 var(--f-sans); }
.mini-cards p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #3a4145; }
@media (max-width: 1100px) {
	.about-hero { background: var(--cream); }
	.about-hero__photo { position: relative; width: 100%; height: 420px; }
	.about-hero__photo img { object-position: 30% 18%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
	.about-hero__quote { top: 30px; }
	.about-hero__inner { min-height: 0; padding-block: 0 48px; }
	.about-hero__copy { width: 100%; padding: 0; }
	.about-hero__aside { display: none; }
	.about-hero__sign { bottom: auto; top: 320px; width: 100%; left: 0; }
	.mini-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .mini-cards { grid-template-columns: 1fr; } .about-hero__quote { max-width: 200px; } }

/* ==========================================================================
   11. Testimonials
   ========================================================================== */
.reviews { background: linear-gradient(180deg, var(--cream), #fff); }

.review { display: flex; flex-direction: column; padding: 24px 24px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.review__headrow { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.review__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.review__id { min-width: 0; flex: 1; }
.review__name { display: flex; align-items: center; gap: 7px; font: 700 16.5px/1.25 var(--f-sans); color: var(--ink); text-transform: uppercase; letter-spacing: .01em; }
.review__verified { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); color: #fff; }
.review__verified .ico { width: 11px; height: 11px; stroke-width: 3; }
.review__role, .review__country { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.review__role .ico, .review__country .ico { width: 14px; height: 14px; color: var(--gold); flex: none; }
.review__country .flag-ico { flex: none; width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.stars { display: flex; gap: 3px; margin-bottom: 12px; color: #d0943e; }
.stars .ico { width: 17px; height: 17px; }
.review__text { font-size: 14.5px; line-height: 1.65; color: #263034; }
.review__text p:last-child { margin-bottom: 0; }

/* Scrolling testimonials "diaporama" on the home page.
   Every avis appears once (no duplicated cards) in a horizontally
   scrollable track; assets/js/main.js gently auto-scrolls it back and
   forth (paused on hover/touch, off for prefers-reduced-motion), so the
   whole set is reachable by hand at any time too. */
.testimonials-viewport { overflow-x: auto; overflow-y: hidden; margin-top: 30px; scrollbar-width: none; -ms-overflow-style: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.testimonials-viewport::-webkit-scrollbar { display: none; }
.testimonials-track { display: flex; gap: 24px; width: max-content; padding: 0 var(--gutter) 6px; }
.testimonials-track .review { flex: 0 0 380px; }
@media (max-width: 680px) { .testimonials-track .review { flex-basis: 300px; } }

.review-cta { display: flex; align-items: center; gap: 30px; margin-top: 28px; padding: 26px 32px; background: var(--sand); border-radius: var(--radius); }
.review-cta__main { display: flex; align-items: center; flex: 1; gap: 24px; }
.review-cta__wa { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .1); color: var(--green); }
.review-cta__wa .ico { width: 40px; height: 40px; }
.review-cta__main > div { flex: 1; }
.review-cta .eyebrow { margin-bottom: 4px; font-size: 11.5px; }
.review-cta h2 { font-size: clamp(22px, 2.3vw, 28px); }
.review-cta__main p:last-child { margin: 4px 0 0; font-size: 14.5px; }
.review-cta__checks { display: grid; gap: 14px; padding-left: 30px; border-left: 1px solid rgba(183, 133, 62, .5); font-size: 14px; }
.review-cta__checks li { display: flex; align-items: center; gap: 12px; }
.review-cta__checks .ico { width: 24px; height: 24px; color: var(--gold); stroke-width: 1.5; }
@media (max-width: 1024px) {
	.review-cta { flex-direction: column; align-items: flex-start; }
	.review-cta__main { flex-direction: column; align-items: flex-start; }
	.review-cta__checks { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(183, 133, 62, .5); width: 100%; }
}

/* ==========================================================================
   12. How it works
   ========================================================================== */
.process { background: var(--paper); padding-bottom: 72px; }
.process .lead { margin-top: 10px; }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 38px; }
.process__steps::before { content: ""; position: absolute; top: 22px; left: 9%; right: 9%; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(183, 133, 62, .35), var(--gold)); }
.pstep { position: relative; display: flex; flex-direction: column; align-items: center; }
.pstep .num { width: 46px; height: 46px; margin-bottom: 20px; font-size: 14px; box-shadow: 0 0 0 8px var(--paper); z-index: 1; }
.pstep__card { display: flex; flex-direction: column; width: 100%; flex: 1; overflow: hidden; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.pstep__card img { width: 100%; aspect-ratio: 1.6 / 1; object-fit: cover; }
.pstep__body { flex: 1; padding: 20px 18px 22px; }
.pstep__body h3 { margin-bottom: 8px; font: 600 16px/1.3 var(--f-sans); }
.pstep__body > p { margin-bottom: 12px; font-size: 13.5px; line-height: 1.55; color: #2b3438; }
.pstep__body li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.pstep__body li + li { margin-top: 7px; }
.pstep__body .ico { width: 17px; height: 17px; margin-top: 1px; color: var(--gold); fill: rgba(183, 133, 62, .12); }
@media (max-width: 1100px) {
	.process__steps { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
	.process__steps::before { display: none; }
}
@media (max-width: 640px) { .process__steps { grid-template-columns: 1fr; } }

.trust-split__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.trust-split__photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; box-shadow: var(--shadow); }
.trust-split__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.trust-split__photo blockquote { position: absolute; left: 22px; bottom: 22px; max-width: 300px; margin: 0; padding: 22px 22px 18px; text-align: center; color: #fff; background: rgba(5, 13, 16, .82); border-radius: 12px; }
.trust-split__photo blockquote p { margin: 0 0 8px; font: italic 500 19px/1.35 var(--f-serif); }
.trust-split__photo .script--sign { color: #f1e6d1; }
.trust-split .section-title { margin-bottom: 30px; }
.trust-split__items { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
@media (max-width: 900px) { .trust-split__grid { grid-template-columns: 1fr; } .trust-split__items { grid-template-columns: 1fr; } }

/* ==========================================================================
   13. Contact
   ========================================================================== */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--cream); padding-bottom: 8px; }
.contact::before { content: ""; position: absolute; left: -80px; top: 0; width: 320px; height: 100%; z-index: -1; background: url("assets/img/palm-left.jpg") no-repeat left top / cover; mix-blend-mode: multiply; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 35% 25%, #000 25%, transparent 100%); mask-image: radial-gradient(ellipse 60% 55% at 35% 25%, #000 25%, transparent 100%); }
.contact__media { position: absolute; inset: 0 0 0 auto; width: 24%; z-index: -1; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); }
.contact__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 13, 16, .25), transparent 40%, rgba(5, 13, 16, .55)); }
.contact__script { position: absolute; z-index: 1; right: 40px; top: 90px; color: #f3e9d8; font-size: clamp(22px, 2vw, 28px); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.contact__script::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 12px; background: var(--gold); }
.contact__sign { position: absolute; z-index: 1; right: 30px; bottom: 44px; color: #f5ecdc; }
.contact__inner { position: relative; padding-block: 48px 64px; }
.contact__head { margin-bottom: 30px; max-width: 700px; }
.contact__head h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 600; line-height: 1.1; }
.contact__head .lead { margin-top: 16px; }
.contact__head .eyebrow { color: var(--gold); }
.contact__grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(24px, 3vw, 44px); padding-right: 18%; align-items: start; }

.form-card { padding: 28px 30px 26px; background: rgba(255, 255, 255, .96); border-radius: var(--radius); box-shadow: 0 16px 50px rgba(30, 22, 12, .12); }
.form-card h2 { margin-bottom: 20px; font: 600 21px/1.2 var(--f-sans); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .goals legend { display: block; margin-bottom: 7px; font: 600 13.5px/1.3 var(--f-sans); padding: 0; }
.field__box { position: relative; }
.field__box input { width: 100%; height: 50px; padding: 0 46px 0 16px; border: 1px solid transparent; border-radius: 10px; background: #f2f2f4; font: 400 14.5px var(--f-sans); color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s; }
.field__box input::placeholder { color: #8a9095; }
.field__box input:focus { outline: none; background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183, 133, 62, .18); }
.field__box .ico { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--gold); pointer-events: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.goals { border: 0; margin: 0; padding: 0; min-width: 0; }
.goals__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.goal { display: block; cursor: pointer; }
.goal input { position: absolute; opacity: 0; pointer-events: none; }
.goal__box { position: relative; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 12px 34px 12px 12px; background: #f7f3ef; border: 1px solid transparent; border-radius: 10px; transition: border-color .2s, background .2s; }
.goal__box .ico { flex: none; width: 26px; height: 26px; color: var(--gold); stroke-width: 1.4; }
.goal__label { font-size: 12.5px; line-height: 1.25; }
.goal__dot { position: absolute; right: 12px; top: 12px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #c7c2bb; background: #fff; }
.goal:hover .goal__box { border-color: rgba(183, 133, 62, .5); }
.goal input:checked + .goal__box { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183, 133, 62, .15); }
.goal input:checked + .goal__box .goal__dot { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 4px, #fff 5px); }
.goal input:focus-visible + .goal__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.form__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 12px; color: #5b6368; text-align: center; }
.form__note .ico { width: 15px; height: 15px; }
.form .btn .ico:first-child { width: 1.05em; }

.notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; }
.notice .ico { width: 22px; height: 22px; margin-top: 1px; }
.notice--ok { background: #e8f6ee; color: #0c6b37; }
.notice--error { background: #fdecea; color: #a12622; }

.contact__side h2 { font: 600 22px/1.25 var(--f-sans); margin-bottom: 8px; }
.contact__side > p { margin-bottom: 16px; font-size: 14.5px; }
.contact__side h3 { margin: 28px 0 16px; font: 600 16px/1.3 var(--f-sans); }
.contact__why { display: grid; gap: 14px; }
.contact__why .feature { gap: 14px; align-items: center; }
.contact__why strong { display: block; font-size: 14px; line-height: 1.3; }
.contact__why span:not(.badge-icon) { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #33393d; }

@media (max-width: 1100px) {
	.contact__media { position: relative; width: 100%; height: 260px; order: 2; }
	.contact { display: flex; flex-direction: column; }
	.contact__inner { order: 1; }
	.contact__media img { -webkit-mask-image: none; mask-image: none; }
	.contact__script { right: 30px; top: 40px; }
	.contact__sign { right: 30px; bottom: 24px; }
	.contact__grid { padding-right: 0; grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.form__row, .goals__grid { grid-template-columns: 1fr; }
	.form-card { padding: 22px 18px; }
}

/* ==========================================================================
   13.5 Blog
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -30px rgba(5, 13, 16, .35); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(5, 13, 16, .4); }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 11; background: var(--sand); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__media--fallback { display: grid; place-items: center; color: var(--gold); }
.post-card__media--fallback .ico { width: 40px; height: 40px; stroke-width: 1.3; }
.post-card__badge { position: absolute; top: 14px; left: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(5, 13, 16, .82); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #7a8186; }
.post-card__meta .ico { width: 15px; height: 15px; }
.post-card__body h3 { font-family: var(--f-serif); font-size: 19px; line-height: 1.35; }
.post-card__body h3 a { color: var(--ink); }
.post-card__body h3 a:hover { color: var(--gold-dark); }
.post-card__body p { font-size: 14.5px; line-height: 1.6; color: #4c5257; flex: 1; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.pagination .page-numbers { display: inline-flex; align-items: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #e7dfd5; font-size: 14px; font-weight: 500; color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .page-numbers.dots { border: none; background: none; }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--gold-dark); }
.pagination .ico { width: 16px; height: 16px; }
.pagination .prev, .pagination .next { gap: 8px; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 70px 20px; color: #6c7378; }
.empty-state .ico { width: 40px; height: 40px; color: var(--gold); stroke-width: 1.3; }
.empty-state h3 { font-family: var(--f-serif); font-size: 20px; color: var(--ink); }

.post-hero .crumbs { justify-content: center; display: flex; }
.post-hero__meta { display: flex; justify-content: center; gap: 22px; margin-top: 14px; font-size: 14px; color: var(--gold-dark); }
.post-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero__meta .ico { width: 16px; height: 16px; }

.post-thumb { margin-top: -30px; }
.post-thumb img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); display: block; }

.post-layout__inner { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.post-content .page-links { margin-top: 30px; font-size: 14px; }
.post-side__card { position: sticky; top: 110px; padding: 28px 24px; border-radius: var(--radius); background: var(--sand); text-align: center; }
.post-side__brand { justify-content: center; margin: 0 auto 16px; }
.post-side__card h3 { font-family: var(--f-serif); font-size: 19px; margin-bottom: 6px; }
.post-side__card p { font-size: 14px; color: #4c5257; margin-bottom: 18px; }
.post-side__card .btn { margin-bottom: 10px; }
.post-side__card .btn:last-child { margin-bottom: 0; }

.section--tight { padding-top: 0; }

@media (max-width: 1024px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.post-layout__inner { grid-template-columns: 1fr; }
	.post-side__card { position: static; }
}
@media (max-width: 700px) {
	.blog-grid { grid-template-columns: 1fr; }
	.post-hero__meta { flex-wrap: wrap; }
}

/* ==========================================================================
   14. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   15. Language switcher: Arabic typography + RTL layout
   ========================================================================== */

/* Avoid a flash of French while the saved language is applied. The inline
   boot script in <head> adds one of these classes to <html> immediately;
   assets/js/i18n.js removes it once the real swap has run. */
html.mg-lang-boot-en body, html.mg-lang-boot-ar body { visibility: hidden; }

html[lang="ar"] body, html[lang="ar"] input, html[lang="ar"] textarea, html[lang="ar"] select,
html[lang="ar"] .btn, html[lang="ar"] .script { font-family: "Cairo", var(--f-sans); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .section-title, html[lang="ar"] .monogram, html[lang="ar"] .hero__title,
html[lang="ar"] .brand__text strong { font-family: "Cairo", var(--f-serif); }
/* The two handwritten "script" fonts have no Arabic glyphs — fall back cleanly. */
html[lang="ar"] .script { font-style: normal; }

/* Mirror the layout. Flexbox/Grid already reverse with dir=rtl; this
   patches the handful of spots with hardcoded left/right values. */
html[dir="rtl"] .ico--arrow,
html[dir="rtl"] .link-arrow .ico,
html[dir="rtl"] .btn .ico--arrow { transform: scaleX(-1); }
html[dir="rtl"] .primary-nav .current-menu-item > a::after,
html[dir="rtl"] .primary-nav .current_page_item > a::after { left: auto; right: 0; }
html[dir="rtl"] .monogram span:last-child { margin-left: 0; margin-right: -0.3em; }
html[dir="rtl"] .testimonials-viewport { -webkit-mask-image: linear-gradient(270deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(270deg, transparent, #000 5%, #000 95%, transparent); }
html[dir="rtl"] .checks li,
html[dir="rtl"] .review__role, html[dir="rtl"] .review__country,
html[dir="rtl"] .pcard__meta, html[dir="rtl"] .footer-loc { text-align: right; }
html[dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
@media (max-width: 1120px) {
	html[dir="rtl"] .nav-toggle { margin-right: 0; margin-left: auto; }
}

/* Breadcrumb separator: mirror the chevron so it still points "back". */
html[dir="rtl"] .crumbs__sep { display: inline-block; transform: scaleX(-1); }

/* Decorative handwritten captions keep their position (they sit over a
   fixed photo), but their text must read naturally in Arabic instead of
   being forced flush against the wrong edge. */
html[dir="rtl"] .hero__script,
html[dir="rtl"] .page-hero__script,
html[dir="rtl"] .stats-band__script,
html[dir="rtl"] .about-hero__aside,
html[dir="rtl"] .values li { text-align: right; }

/* Inline icon + text: the gap belongs on the side facing the text, which
   flips with reading direction. */
html[dir="rtl"] .inline-ico { margin-right: 0; margin-left: 0.4em; }

/* Project card badges are positioned with physical left/right + margin;
   swap which corner each one hugs. */
html[dir="rtl"] .pcard__badge { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .pcard__delivery { margin-left: 0; margin-right: auto; }

/* List markers in long-form content should sit on the right. */
html[dir="rtl"] .prose ul, html[dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3em; }

/* The checklist column next to the WhatsApp CTA is always divided from
   its neighbour by a single-side border; flip which side carries it. */
html[dir="rtl"] .review-cta__checks { padding-left: 0; padding-right: 30px; border-left: 0; border-right: 1px solid rgba(183, 133, 62, .5); }

/* Mobile footer signature: match the right-aligned desktop default
   instead of the LTR-only stacked-layout override. */
@media (max-width: 720px) {
	html[dir="rtl"] .footer-script { justify-content: flex-end; text-align: right; border-left: 0; padding-left: 0; border-right: 0; padding-right: 0; }
	html[dir="rtl"] .footer-script .script::after { margin-left: auto; margin-right: 0; }
}

/* Safety net: nothing on the page should be able to create horizontal
   scroll, in either direction. */
html, body { overflow-x: hidden; }
.container, .site-header__inner { max-width: 100%; }
