/* ARCH-VISION — "luxury clay heritage" theme. Logical properties keep RTL/LTR in sync. */
:root {
  /* Palette sampled from Najdi mud walls under a Riyadh sky */
  --clay: #8b5e3c;          /* shaded mud plaster — primary */
  --clay-dark: #6a4329;
  --terracotta: #c4925f;    /* sun-lit mud */
  --sand: #e4cfb4;          /* wall in daylight */
  --sand-2: #f2e7d8;
  --ivory: #faf6f0;         /* cloud white */
  --charcoal: #2a1f18;      /* dark wood rails & door shadows */
  --ink: #33271f;
  --muted: #6f6157;
  --line: #e6d7c3;
  --sky: #2f64a8;           /* deep afternoon sky */
  --sky-2: #4f8fca;
  --turquoise: #5cc3d3;     /* clear dusk sky */
  --lattice: #ffffff;       /* white mashrabiya */
  --white: #fff;
  --ok: #2f7d4f;
  --err: #b3261e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(70, 45, 25, .3);
  --shadow-lg: 0 30px 60px -20px rgba(45, 28, 16, .45);
  --ff-head: "Cormorant Garamond", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 76px;
  /* Decorative SVGs (colours baked in) */
  --vents: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='38'%3E%3Cpath d='M8 14l4-8 4 8zM30 33l4-8 4 8z' fill='%238b5e3c'/%3E%3C/svg%3E");
  --vents-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='38'%3E%3Cpath d='M8 14l4-8 4 8zM30 33l4-8 4 8z' fill='%23ffffff'/%3E%3C/svg%3E");
  --merlons-ivory: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='22'%3E%3Cpath d='M0 22V16h5V9a6 6 0 0 1 12 0v7h13v6z' fill='%23faf6f0'/%3E%3C/svg%3E");
  --merlons-wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='22'%3E%3Cpath d='M0 22V16h5V9a6 6 0 0 1 12 0v7h13v6z' fill='%23231a14'/%3E%3C/svg%3E");
  --arch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V34C0 18 28 7 50 0c22 7 50 18 50 34v66z'/%3E%3C/svg%3E");
}
html[lang="ar"] {
  --ff-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --ff-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ff-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--ivory); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }
h1, h2, h3 { font-family: var(--ff-head); color: var(--charcoal); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
html[lang="ar"] h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
html[lang="ar"] h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
html[lang="ar"] h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[dir="rtl"] .i.flip { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--charcoal); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip:focus { inset-inline-start: 1rem; }
:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 2px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--sky); margin-bottom: .8rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; text-transform: none; }
.hide-mobile, .btn.hide-mobile { display: none; }
@media (min-width: 1021px) { .btn.hide-mobile { display: inline-flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
  font: 600 .98rem/1 var(--ff-body); padding: .9rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 8px 20px -10px var(--clay); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--charcoal); }
.btn-sm { padding: .62rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, .88);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--charcoal); }
.brand:hover { color: var(--charcoal); }
.logo-mark { width: 42px; height: 42px; color: var(--clay); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; letter-spacing: .06em; }
.brand-text small { font-size: .78rem; color: var(--muted); }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--clay); background: var(--sand-2); }
.nav-mobile-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .35rem; background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem .8rem; cursor: pointer; font: 600 .85rem var(--ff-body); color: var(--ink); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 160px; }
.lang-menu a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--sand-2); color: var(--clay); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--charcoal); border-radius: 2px; transition: .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ivory); padding: 1.5rem 1rem 2rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; overflow-y: auto; margin: 0;
  }
  .menu-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  /* backdrop-filter makes the header the containing block for fixed children — drop it while the menu is open */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  .main-nav { z-index: 49; height: calc(100dvh - var(--header-h)); box-shadow: 0 20px 30px -20px rgba(0,0,0,.25); }
  .menu-open { overflow: hidden; }
  .menu-open .float-dock { display: none; }
  .main-nav ul { flex-direction: column; gap: .2rem; }
  .main-nav a { font-size: 1.15rem; padding: .85rem 1rem; }
  .nav-mobile-cta { display: grid; gap: .7rem; margin-top: 1.5rem; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* Najdi triangle band */
.najdi-band { height: 22px; background: var(--merlons-ivory) 0 100% / 30px 22px repeat-x; }
.site-footer .najdi-band { background-image: var(--merlons-wood); margin-top: -21px; position: relative; z-index: 1; }
.vent-row { height: 38px; background: var(--vents) center / 44px 38px repeat-x; opacity: .35; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, #d9eef3 0%, #eef4f1 38%, var(--sand-2) 100%); }
.hero-texture {
  position: absolute; inset: 40% 0 0 0; pointer-events: none; opacity: .09;
  background: var(--vents) 0 0 / 44px 38px repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.hero-grid { position: relative; display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; grid-template-columns: 1.05fr .95fr; }
.hero-text { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.tagline { font-family: "Cormorant Garamond", serif; letter-spacing: .3em; text-transform: uppercase; color: var(--clay); font-weight: 700; font-size: .95rem; }
html[lang="ar"] .tagline { letter-spacing: .1em; color: var(--clay); font-family: var(--ff-head); font-size: .95rem; }
.hero-media { position: relative; isolation: isolate; }
.hero-frame {
  overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--sand);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat;
}
.hero-media::before { content: ""; position: absolute; inset: 6% -4% -4% 6%; background: var(--sand); opacity: .7; z-index: -1;
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; inset-inline-start: -1.2rem; bottom: 2rem; background: var(--charcoal); color: #fff;
  padding: 1rem 1.2rem; border-radius: var(--radius); max-width: 220px; box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.4rem; line-height: 1; color: var(--sand); }
.hero-badge span { font-size: .82rem; opacity: .85; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-frame { aspect-ratio: 4 / 3.6; }
  .hero-badge { inset-inline-start: .8rem; bottom: .8rem; }
}

/* Stats */
.stats { background: linear-gradient(120deg, var(--sky) 0%, var(--sky-2) 70%, #6fb3cf 100%); color: #fff; padding: 2.4rem 0; position: relative; }
.stats::after { content: ""; position: absolute; inset: 0; background: var(--vents-light) 0 0 / 44px 38px repeat; opacity: .07; pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat strong { display: block; font-family: "Cormorant Garamond", serif; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1.1; }
.stat span { font-size: .92rem; opacity: .9; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section.tinted { background: var(--sand-2); }
.section-head { margin-bottom: 2.4rem; max-width: 760px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.section-head.row > div { max-width: 720px; }

/* Services */
.services-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.service-card {
  display: flex; flex-direction: column; padding: 1.8rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.service-card p { color: var(--muted); flex: 1; }
.service-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 28px 28px 10px 10px; background: var(--sand-2); color: var(--clay); margin-bottom: 1rem; }
.service-icon .i { width: 30px; height: 30px; }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--clay); font-size: .95rem; }

.services-list { display: grid; gap: 2rem; }
.service-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { height: 100%; min-height: 260px; background: var(--sand); }
.service-row-media img, .service-row-media .img-ph { width: 100%; height: 100%; object-fit: cover; }
.service-row-copy { padding: 2rem 2rem 2rem 0; }
.service-row:nth-child(even) .service-row-copy { padding: 2rem 0 2rem 2rem; }
[dir="rtl"] .service-row-copy { padding: 2rem 0 2rem 2rem; }
[dir="rtl"] .service-row:nth-child(even) .service-row-copy { padding: 2rem 2rem 2rem 0; }
.service-row h2 a { color: var(--charcoal); }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .service-row-copy, .service-row:nth-child(even) .service-row-copy, [dir="rtl"] .service-row-copy, [dir="rtl"] .service-row:nth-child(even) .service-row-copy { padding: 0 1.5rem 1.8rem; }
  .service-row-media { min-height: 220px; }
}

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.stack { position: relative; padding-bottom: 18%; }
.stack-a { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 86%; aspect-ratio: 4/3; object-fit: cover; }
.stack-b { position: absolute; inset-inline-end: 0; bottom: 0; width: 46%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--ivory); box-shadow: var(--shadow); }
.heritage { background: linear-gradient(180deg, var(--sand-2), var(--ivory)); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; }
.checks .i { color: #fff; background: var(--clay); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: .2em; }
.checks.compact { gap: .45rem; margin: 1rem 0 1.4rem; }

/* Cards */
.cards-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--sand); }
.card-media img, .card-media .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.chip { position: absolute; inset-inline-start: .8rem; top: .8rem; background: rgba(31, 27, 24, .82); color: #fff; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-body .more { margin-top: auto; }
.card-meta { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; flex-wrap: wrap; }
.img-ph { background: linear-gradient(135deg, var(--sand), var(--sand-2)); min-height: 120px; }

/* Partners */
.partners { background: var(--charcoal) var(--vents-light) 0 0 / 44px 38px repeat; background-blend-mode: normal; color: #fff; position: relative; }
.partners::before { content: ""; position: absolute; inset: 0; background: var(--charcoal); opacity: .94; }
.partners > * { position: relative; }
.partners h2 { color: var(--sand); }
.partners-inner { text-align: center; max-width: 900px; }
.partners-inner p { opacity: .8; }
.partner-names { list-style: none; padding: 0; margin: 1.5rem 0 1.8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.4rem; }
.partner-names li { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; opacity: .9; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--clay-dark), var(--clay) 50%, var(--terracotta)); color: #fff; padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: var(--vents-light) 0 0 / 44px 38px repeat; opacity: .1; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { opacity: .9; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn-primary { background: #fff; color: var(--clay-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--charcoal); color: #fff; }

/* Page hero */
.page-hero { background: linear-gradient(170deg, #24508c 0%, var(--sky) 35%, var(--sky-2) 75%, #7cc4d4 100%); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: -40px; width: min(46%, 520px); background: var(--vents-light) 0 0 / 44px 38px repeat; opacity: .08; pointer-events: none; }
.page-hero h1 { color: #fff; max-width: 28ch; }
html[lang="ar"] .page-hero h1 { max-width: 30ch; }
.page-hero .lead { color: rgba(255,255,255,.9); }
.page-hero .container { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero .najdi-band { position: absolute; bottom: -1px; left: 0; right: 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .88rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: .4rem; opacity: .5; }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { opacity: .85; }

/* Values, timeline, team */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; }
.value { background: #fff; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); }
.value-num { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: var(--sky-2); line-height: 1; display: block; margin-bottom: .4rem; }
.value p { color: var(--muted); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.4rem; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 46px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 94px 1fr; gap: 1.4rem; align-items: start; position: relative; }
.tl-year { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.25rem; background: var(--sky); color: #fff; text-align: center; border-radius: 999px; padding: .25rem 0; position: relative; z-index: 1; }
.timeline p { margin: .2rem 0 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.2rem; }
.team { background: #fff; border-radius: var(--radius); padding: 1.8rem; text-align: center; border: 1px solid var(--line); }
.team-avatar { display: inline-grid; place-items: center; width: 84px; height: 96px; border-radius: 42px 42px 12px 12px; background: var(--sand-2); margin-bottom: 1rem; }
.team p { color: var(--muted); margin: 0; }

/* Content */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 980px) { .with-aside { grid-template-columns: 1fr; } }
.aside { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 980px) { .aside { position: static; } }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .7rem; }
.aside-card h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.aside-links a { display: flex; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: 8px; color: var(--ink); }
.aside-links a:hover { background: var(--sand-2); color: var(--clay); }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: end; }
.project-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.project-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.faq { display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--clay); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: .8rem 0 0; color: var(--muted); }
.article-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* Projects filter + gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; font: 500 .92rem var(--ff-body); color: var(--ink); }
.filter.is-active, .filter:hover { background: var(--sky); border-color: var(--sky); color: #fff; }
.card.is-hidden { display: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: .8rem; }
.gallery-item { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 12, 10, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox .modal-close { position: fixed; top: 1rem; inset-inline-end: 1rem; background: rgba(255,255,255,.12); color: #fff; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; cursor: pointer; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .contact-info { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; color: var(--ink); }
a.contact-card:hover { border-color: var(--clay); color: var(--ink); }
.contact-card .i { width: 40px; height: 40px; padding: 9px; background: var(--sand-2); color: var(--clay); border-radius: 12px; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; }
.contact-card strong { font-weight: 600; font-size: .95rem; }
.map-box { grid-column: 1 / -1; min-height: 280px; border-radius: var(--radius); background: var(--sand-2) center/cover; display: grid; place-content: center; text-align: center; gap: .6rem; padding: 1.5rem; border: 1px dashed var(--line); }
.map-box iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }
.map-box.has-map { display: block; padding: 0; border: 0; }
.hint { font-size: .82rem; color: var(--muted); margin: .3rem 0 0; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.req { color: var(--err); }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(160, 82, 45, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-err { color: var(--err); font-size: .8rem; margin: .25rem 0 0; min-height: 0; }
.field-err:empty { display: none; }
.file-field input { padding: .6rem; background: var(--sand-2); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-note { font-size: .8rem; color: var(--muted); margin: 1rem 0; }
.form-alert { background: #fdecea; color: var(--err); border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .9rem; }
.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success:focus { outline: 0; }
.success-icon { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #e3f2e8; color: var(--ok); margin-bottom: 1rem; }
.success-icon .i { width: 36px; height: 36px; }

/* Modals */
.modal { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 1.2rem)); max-height: calc(100dvh - 1.2rem); overflow: visible; }
.modal::backdrop { background: rgba(31, 27, 24, .62); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-box { position: relative; background: var(--ivory); border-radius: 20px; padding: 2rem; max-height: calc(100dvh - 1.2rem); overflow-y: auto; overflow-x: hidden; box-shadow: var(--shadow-lg); border-top: 6px solid var(--sky-2); }
.modal-callback, .modal-exit { width: min(480px, calc(100vw - 1.2rem)); }
.modal-head { text-align: center; margin-bottom: 1.4rem; }
.modal-head h2 { margin-bottom: .3rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.modal-head p { color: var(--muted); margin: 0; }
.modal-mark .logo-mark { width: 46px; height: 46px; margin: 0 auto .5rem; }
.modal-close { position: absolute; top: .8rem; inset-inline-end: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand-2); cursor: pointer; display: grid; place-items: center; color: var(--charcoal); }
.modal-close:hover { background: var(--sand); }
@media (max-width: 560px) { .modal-box { padding: 1.5rem 1.1rem; } }

/* Floating dock */
.float-dock { position: fixed; bottom: 1.1rem; inset-inline-end: 1.1rem; z-index: 40; display: flex; flex-direction: column; gap: .7rem; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: .5rem; height: 56px; min-width: 56px; justify-content: center; border-radius: 999px; border: 0; cursor: pointer; color: #fff; box-shadow: var(--shadow-lg); font: 600 .92rem var(--ff-body); padding: 0 1rem; }
.fab .i { width: 26px; height: 26px; }
.fab-wa { background: #25d366; padding: 0; width: 56px; }
.fab-wa:hover { color: #fff; filter: brightness(.95); }
.fab-call { background: var(--charcoal); }
.fab-call:hover { background: var(--sky); color: #fff; }
.fab-label { display: none; }
@media (min-width: 900px) { .fab-label { display: inline; } .fab-call { padding: 0 1.2rem 0 1rem; } }

/* Consent */
.consent { position: fixed; z-index: 60; inset-inline: 1rem; bottom: 1rem; max-width: 560px; background: var(--charcoal); color: #fff; padding: 1.1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; gap: .8rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .9rem; opacity: .92; }
.consent a { color: var(--turquoise); text-decoration: underline; }
.consent-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }

/* Footer */
.site-footer { background: #231a14; color: rgba(255,255,255,.78); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.6); }
.footer-brand p { font-size: .92rem; margin-top: 1rem; }
.cr { opacity: .6; font-size: .85rem !important; }
.footer-h { color: #fff; font-size: 1.05rem; font-family: var(--ff-body); font-weight: 600; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; font-size: .92rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.75); }
.footer-links a:hover, .footer-contact a:hover { color: var(--sand); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .i { color: var(--turquoise); margin-top: .3em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0 5.5rem; font-size: .85rem; }
@media (min-width: 900px) { .footer-bottom { padding-bottom: 1.4rem; } }

/* 404 */
.big-404 { font-family: "Cormorant Garamond", serif; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--sky-2); margin: 0; font-weight: 700; }
.notfound .btn { margin: .3rem; }
.empty { color: var(--muted); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
@media print { .site-header, .float-dock, .consent, .cta-band, .site-footer { display: none; } }
.services-grid > .service-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.service-gallery { margin-top: 1.5rem; }
.partner-logos { list-style: none; padding: 0; margin: 1.8rem 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.partner-logos li { background: #fff; border-radius: var(--radius); height: 130px; display: grid; place-items: center; padding: 1.1rem 1.4rem; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.partner-logos img { max-height: 92px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 760px) { .partner-logos { grid-template-columns: repeat(2, 1fr); } .partner-logos li { height: 110px; } .partner-logos img { max-height: 76px; } }
.brand-logo { height: 58px; width: auto; display: block; }
.brand-logo-lg { height: 84px; }
@media (max-width: 1020px) { .brand-logo { height: 50px; } }
@media (max-width: 420px) { .brand-logo { height: 44px; } }

/* Home hero banner (full-bleed photo behind the headline) */
.hero-banner { position: relative; overflow: hidden; min-height: clamp(560px, 84vh, 780px); display: flex; align-items: center; color: #fff; background: #3a2a1d; isolation: isolate; }
.hero-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; z-index: -2; }
/* LTR: mirror the photo so the building sits opposite the text and the open sky is behind it */
html[dir="ltr"] .hero-banner-img { transform: scaleX(-1); }
.hero-banner-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, rgba(34,20,10,.84) 0%, rgba(34,20,10,.7) 34%, rgba(34,20,10,.3) 60%, rgba(34,20,10,0) 80%),
              linear-gradient(0deg, rgba(34,20,10,.45) 0%, rgba(34,20,10,0) 30%); }
html[dir="ltr"] .hero-banner-shade { background: linear-gradient(90deg, rgba(34,20,10,.84) 0%, rgba(34,20,10,.7) 34%, rgba(34,20,10,.3) 60%, rgba(34,20,10,0) 80%),
              linear-gradient(0deg, rgba(34,20,10,.45) 0%, rgba(34,20,10,0) 30%); }
.hero-banner-inner { padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem); }
.hero-banner .hero-copy { max-width: 600px; }
.hero-banner h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-banner .eyebrow { color: #f3d9b4; }
.hero-banner .hero-text { color: rgba(255,255,255,.9); }
.hero-banner .tagline { color: #f3d9b4; }
.hero-banner .najdi-band { position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='22'%3E%3Cpath d='M0 22V16h5V9a6 6 0 0 1 12 0v7h13v6z' fill='%232f64a8'/%3E%3C/svg%3E"); }
@media (max-width: 760px) {
  .hero-banner { min-height: 0; align-items: flex-end; }
  .hero-banner-img { object-position: 38% 50%; }
  .hero-banner-shade, html[dir="ltr"] .hero-banner-shade { background: linear-gradient(0deg, rgba(34,20,10,.88) 0%, rgba(34,20,10,.62) 55%, rgba(34,20,10,.25) 100%); }
  .hero-banner-inner { padding-top: 14rem; }
}

/* Sadu weave band (stats under the hero) — revert by restoring main.css.before-sadu */
.stats {
  background:
    url("../img/sadu/strip.svg") 0 0 / 40px 30px repeat-x,
    url("../img/sadu/strip-bottom.svg") 0 100% / 40px 30px repeat-x,
    linear-gradient(120deg, var(--sky) 0%, var(--sky-2) 70%, #6fb3cf 100%);
  padding: calc(2.4rem + 30px) 0;
}
.stats::after { background: url("../img/sadu/texture.svg") 0 0 / 160px 160px repeat; opacity: .11; inset: 30px 0; }
.stats .stat { position: relative; z-index: 1; }
.hero-banner .najdi-band { display: none; }

/* Sadu weave in the footer — revert by restoring main.css.before-footer-sadu */
.site-footer { position: relative; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 30px 0 0; background: url("../img/sadu/texture.svg") 0 0 / 160px 160px repeat; opacity: .05; z-index: -1; pointer-events: none; }
.site-footer .najdi-band { height: 30px; margin-top: 0; background: url("../img/sadu/strip.svg") 0 0 / 40px 30px repeat-x; }
.footer-bottom { border-top: 0; position: relative; }
.footer-bottom::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #b3202a 0 50%, transparent 50%) 0 0 / 16px 2px repeat-x, linear-gradient(90deg, rgba(255,255,255,.18) 0 100%) 0 4px / 100% 1px no-repeat; }

/* Video */
.video-player { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #1a1410; box-shadow: var(--shadow-lg); }
.video-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #1a1410; }
.video-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(139, 94, 60, .92); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s, background .2s; }
.video-player:has(figcaption) .video-play { bottom: 70px; }
.video-play:hover { transform: scale(1.06); background: var(--clay-dark); }
.video-play svg { width: 38px; height: 38px; margin-left: 5px; }
.video-play svg { direction: ltr; }
.video-player.is-playing .video-play { display: none; }
.video-player figcaption { padding: 1rem 1.2rem 1.2rem; background: #fff; display: grid; gap: .2rem; }
.video-player figcaption span { color: var(--muted); font-size: .92rem; }
.video-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.video-grid.single { grid-template-columns: 1fr; max-width: 1000px; }
.video-section { background: linear-gradient(180deg, var(--ivory), var(--sand-2)); }
.archive-group { margin-bottom: 2.2rem; }
.archive-group h3 { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; font-size: 1.15rem; }
.archive-group h3 a { color: var(--charcoal); }
.archive-group h3 a:hover { color: var(--clay); }
.archive-count { font-family: var(--ff-body); font-size: .8rem; font-weight: 500; color: var(--muted); background: #fff; border-radius: 999px; padding: .1rem .6rem; }
.archive-gallery { grid-template-columns: repeat(auto-fill, minmax(min(30%, 150px), 1fr)); gap: .5rem; }

/* Desktop: logo | centred menu | actions */
@media (min-width: 1021px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; }
  .header-inner .brand { justify-self: start; }
  .main-nav { margin: 0; justify-self: center; }
  .header-actions { justify-self: end; }
}

.service-cover img { max-height: 460px; object-position: 50% 62%; }
.service-row-media img { object-position: 50% 60%; }
.service-row-media { position: relative; align-self: stretch; min-height: 300px; }
.service-row-media img, .service-row-media .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .service-row-media { min-height: 240px; } }
.footer-bottom::before { content: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }

/* Service-page video + portrait clips */
.service-video { margin: 1.6rem 0 2rem; }
.service-video .video-player figcaption strong { font-size: 1rem; }
.service-video-more { margin: .6rem 0 0; font-size: .92rem; }
.service-video-more a { color: var(--clay); font-weight: 600; }
[dir="rtl"] .service-video-more a { unicode-bidi: plaintext; }
.video-player.is-portrait video { object-fit: contain; }

/* Blog cover credit (Pexels) */
.article-cover { background: #fff; }
.photo-credit { padding: .45rem .9rem; font-size: .78rem; color: var(--muted); text-align: end; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* reCAPTCHA v3: badge hidden (it would cover the floating WhatsApp/call buttons); the notice is shown under each form instead */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { margin-top: -.6rem; font-size: .72rem; }
.recaptcha-note a { color: inherit; text-decoration: underline; }
