/* Self-hosted IBM Plex Sans Arabic + IBM Plex Sans (OFL-1.1) — see assets/fonts/FONT-LICENSE.md */

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Southern Castle — theme styles (brand refresh, 2026-11).
   Tokens: brand/output/tokens.md (source of truth) mirrored in
   theme.json. Arabic (RTL) is the default; English (LTR) is
   secondary. Layout uses CSS logical properties throughout so one
   rule set serves both directions. Two documented physical-side
   exceptions only (lightbox arrow flip). No build step.

   Polylang note (kept from WP-02): Polylang emits lang="en-US", so
   English-only rules use html[lang|="en"]; WordPress only ever
   emits dir="rtl", never dir="ltr".
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* brand palette (logo board) */
  --teal:       #0E4A5B;  /* Primary — Deep Teal */
  --teal-dk:    #0A3846;
  --teal-xdk:   #072A35;
  --teal-tint:  #E8F0F2;
  --beige:      #B89F86;  /* Secondary — Stone Beige (accent; not body text on white) */
  --beige-dk:   #7E6650;  /* text-safe beige for small labels on light grounds */
  --beige-tint: #F3EEE8;
  --slate:      #6B6F72;  /* Accent — Slate Gray (secondary text) */
  --surface:    #F4F5F4;  /* Neutral — Light Gray */
  --white:      #FFFFFF;
  --ink:        #1C1C1C;  /* Text — Charcoal */
  --gold:       #C9A96B;  /* Optional — Metallic Gold: rare highlights only */

  --ink-80: #33373A;
  --line: #E1E4E3;
  --line-strong: #CDD2D1;
  --on-dark: #FFFFFF;
  --on-dark-75: rgba(255, 255, 255, .76);
  --on-dark-55: rgba(255, 255, 255, .56);
  --line-dark: rgba(255, 255, 255, .16);

  --font-ar:   "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en:   "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Latin label face (tracked uppercase: section numbers, codes, wordmark). */
  --font-mono: "IBM Plex Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 38, .05);
  --shadow: 0 1px 2px rgba(10, 30, 38, .04), 0 10px 30px rgba(10, 30, 38, .07);
  --header-h: 76px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip`, not `hidden`: suppresses horizontal spill without making <body>
     a scroll container (which breaks window.scrollTo / "#top" jumps). */
  overflow-x: clip;
}
html[lang|="en"] body { font-family: var(--font-en); line-height: 1.7; font-size: 16.5px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: inherit; font-weight: 700; line-height: 1.3; margin: 0; color: var(--ink); }
html[lang|="en"] h1, html[lang|="en"] h2, html[lang|="en"] h3 { line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--teal); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
.section--dark :focus-visible, .site-footer :focus-visible, .hero__visual :focus-visible { outline-color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 100;
  background: var(--teal); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
  transition: transform .15s;
}
.skip-link:focus { transform: translateY(0); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ----------
   Tracking + uppercase is for Latin labels only — letter-spacing breaks
   Arabic joins, so Arabic-bearing labels are only tracked in English. */
.section__num, .card__code, .step__n, .work-group__code {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 600;
}
h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.25; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 1.8vw, 22px); }
.lede { font-size: clamp(17.5px, 1.9vw, 20px); color: var(--slate); max-width: 62ch; line-height: 1.85; }
html[lang|="en"] .lede { line-height: 1.65; }
.section--dark .lede { color: var(--on-dark-75); }

/* Kicker: a short stone-beige rule + label, echoing the logo board. */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--teal);
  margin-block-end: 18px;
}
.kicker::before { content: ""; inline-size: 32px; block-size: 2px; background: var(--beige); flex: none; }
html[lang|="en"] .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }

/* ---------- brand lockup ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); flex: none;
}
.brand__mark { flex: none; display: block; inline-size: 40px; block-size: auto; }
.brand__text { display: grid; gap: 3px; line-height: 1; }
.brand__word {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand__word-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
@media (max-width: 400px) {
  .brand { gap: 9px; }
  .brand__mark { inline-size: 34px; }
  .brand__word { font-size: 14px; letter-spacing: .12em; }
  .brand__word-sub { font-size: 7px; letter-spacing: .16em; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-block-end: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); margin-inline: auto; }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink-80);
  padding-block: 8px;
  transition: color .15s;
}
.site-nav a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0;
  block-size: 2px; background: var(--beige);
  transform: scaleX(0); transition: transform .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 40px; padding: 0 12px;
  background: none; border: 1px solid var(--line-strong); color: var(--ink-80);
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 48px;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.3;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn--sm { min-block-size: 40px; padding: 8px 16px; font-size: 14px; }
.btn--lg { min-block-size: 56px; padding: 14px 32px; font-size: 17px; }
.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 18px rgba(14, 74, 91, .22); }
.btn--primary:hover { background: var(--teal-dk); }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal-tint); }
.btn--light { background: var(--white); color: var(--teal); }
.btn--light:hover { background: var(--beige-tint); }
.section--dark .btn--primary, .hero--dark .btn--primary { background: var(--white); color: var(--teal); box-shadow: none; }
.section--dark .btn--primary:hover { background: var(--beige-tint); }
.section--dark .btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn--wa { background: var(--teal); color: var(--white); }
.btn--wa:hover { background: var(--teal-dk); }
/* The header bar's own WhatsApp button is hidden below 640px for the bar's
   limited width; the copy inside the opened .mobile-nav panel stays visible
   (WP-08 §15 mobile-conversion review). */
@media (max-width: 640px) { .site-header__actions .btn--wa { display: none; } }

/* ---------- burger + mobile nav ---------- */
.nav-burger {
  display: none; align-items: center; justify-content: center;
  inline-size: 44px; block-size: 44px;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; padding: 0;
}
.nav-burger__box { display: block; width: 20px; height: 14px; position: relative; }
.nav-burger__box span {
  position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-burger__box span:nth-child(1) { top: 0; }
.nav-burger__box span:nth-child(2) { top: 6px; }
.nav-burger__box span:nth-child(3) { top: 12px; }
.nav-burger[aria-expanded="true"] .nav-burger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger__box span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .nav-burger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  border-block-start: 1px solid var(--line);
  background: var(--white);
  padding: 8px var(--gutter) 20px;
  max-block-size: calc(100vh - var(--header-h));
  max-block-size: calc(100dvh - var(--header-h));
  overflow-y: auto;
  box-shadow: 0 18px 30px rgba(10, 30, 38, .08);
}
.mobile-nav > a {
  display: flex; align-items: center; min-block-size: 52px;
  text-decoration: none; font-weight: 600; font-size: 17px;
  border-block-end: 1px solid var(--line);
}
.mobile-nav > a[aria-current="page"] { color: var(--teal); }
.mobile-nav .btn { margin-block-start: 16px; inline-size: 100%; border-block-end: 0; }

@media (max-width: 960px) {
  .site-nav[data-nav] { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface); }
.section--dark {
  background: var(--teal-xdk);
  background-image: radial-gradient(120% 140% at 100% 0%, #13596C 0%, var(--teal) 35%, var(--teal-xdk) 100%);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark .card__t { color: var(--on-dark); }
.section--dark .breadcrumbs, .section--dark .service-crumb { color: var(--on-dark-75); }
.section--dark .breadcrumbs [aria-current="page"] { color: var(--on-dark); }
.section--dark .breadcrumbs li:not(:last-child)::after { color: var(--on-dark-55); }
.section__body > .cards, .section__body > .faqs, .section__body > .steps, .section__body > .fears { margin-block-end: 36px; }

.section__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.section__num {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--beige-dk); margin: 0;
}
.section__num::after { content: ""; inline-size: 40px; block-size: 1px; background: var(--beige); }
.section--dark .section__num { color: var(--beige); }
.section__body > h2 { margin-block-end: 18px; max-width: 26ch; }
.section__body > .lede { margin-block-end: 40px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface);
  padding-block: clamp(48px, 8vw, 112px);
  border-block-end: 1px solid var(--line);
}
/* faint drawing-sheet grid behind the hero copy */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14, 74, 91, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 74, 91, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0) 90%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0) 90%);
}
.hero__inner {
  position: relative;
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 80px);
}
.hero__content { min-width: 0; }
.hero h1 { max-width: 20ch; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero__sub { font-size: clamp(17.5px, 2vw, 20.5px); color: var(--slate); max-width: 52ch; margin-block: 22px 34px; line-height: 1.85; }
html[lang|="en"] .hero__sub { line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note {
  display: flex; align-items: center; gap: 10px;
  margin-block: 26px 0; font-size: 14.5px; color: var(--slate);
}
.hero__note::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--beige); flex: none; }

/* Visual panel: the brand mark on a deep-teal "sheet". Swappable for a
   real (or labelled concept) photograph later without layout changes. */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: radial-gradient(130% 120% at 85% 10%, #15627A 0%, var(--teal) 40%, var(--teal-xdk) 100%);
  box-shadow: 0 30px 60px -20px rgba(7, 42, 53, .45);
  display: grid; place-items: center;
  isolation: isolate;
}
.hero__visual::before { /* setting-out grid */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero__visual::after { /* survey mark corner */
  content: ""; position: absolute; inset-block-start: 22px; inset-inline-end: 22px;
  inline-size: 44px; block-size: 44px;
  border-block-start: 2px solid var(--beige); border-inline-end: 2px solid var(--beige);
  opacity: .8;
}
.hero__visual svg { inline-size: 54%; block-size: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
.hero__visual .hero__art {
  position: static; z-index: auto;
  inline-size: 86%; block-size: 86%; max-block-size: calc(100% - 64px);
  object-fit: contain; margin-block-end: 40px;
}
.hero__visual img:not(.hero__art) { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; z-index: -1; }
.hero__caption {
  position: absolute; inset-inline: 22px; inset-block-end: 20px;
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--on-dark-75); font-size: 12.5px;
  border-block-start: 1px solid var(--line-dark); padding-block-start: 12px;
}
.hero__caption span:last-child { font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; color: var(--beige); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 16 / 10; order: 2; }
  .hero__visual svg { inline-size: 30%; }
}
@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__visual { aspect-ratio: 16 / 9; }
  .hero__visual svg { inline-size: 26%; }
}

/* ---------- callout (trust) ---------- */
.callout {
  margin: 36px 0 0; padding: 26px 28px;
  border-inline-start: 3px solid var(--beige);
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.callout p { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; margin-block-end: 8px; color: var(--ink); }
.callout footer { font-size: 14.5px; color: var(--slate); }
.section--dark .callout { background: rgba(255, 255, 255, .06); box-shadow: none; }
.section--dark .callout p { color: var(--on-dark); }
.section--dark .callout footer { color: var(--on-dark-75); }

/* ---------- concerns / answers ---------- */
.fears { display: grid; gap: 12px; }
.fears li {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 32px); align-items: start;
  background: var(--white); padding: 22px clamp(18px, 3vw, 28px);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.fears .fear { color: var(--slate); }
.fears .fear::before { content: "— "; color: var(--beige); }
.fears .answer { font-weight: 600; color: var(--ink); padding-inline-start: 26px; position: relative; }
.fears .answer::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .55em;
  inline-size: 14px; block-size: 8px;
  border-inline-start: 2px solid var(--teal); border-block-end: 2px solid var(--teal);
  transform: rotate(-45deg);
}
@media (max-width: 640px) { .fears li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- BOQ / quotation review ---------- */
.boq-review__prompt {
  font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; line-height: 1.6;
  max-width: 56ch; margin: 0 0 26px;
  padding-inline-start: 20px; border-inline-start: 3px solid var(--beige);
}
.boq-review__scope { margin-block-start: 20px; max-width: 62ch; font-size: 14.5px; color: var(--slate); }

/* ---------- steps ---------- */
.steps {
  display: grid; gap: 16px; margin-block-end: 36px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: step;
}
.steps li {
  position: relative;
  display: grid; align-content: start; gap: 14px;
  padding: 24px 22px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.section--tint .steps li { background: var(--white); }
.step__n {
  display: inline-grid; place-items: center;
  inline-size: 40px; block-size: 40px; border-radius: 50%;
  border: 1.5px solid var(--teal); color: var(--teal); font-size: 14px;
}
.step__t { font-weight: 700; font-size: 17.5px; margin-block-end: 4px; color: var(--ink); }
.step__b { color: var(--slate); margin: 0; font-size: 15.5px; }

/* ---------- cards (services / capabilities) ---------- */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.cards li {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); padding: 30px clamp(20px, 2.4vw, 28px) 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cards li::before {
  content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 28px;
  inline-size: 36px; block-size: 3px; background: var(--beige); border-radius: 0 0 2px 2px;
}
.cards li:hover { border-color: rgba(14, 74, 91, .35); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  display: grid; place-items: center; inline-size: 52px; block-size: 52px;
  border-radius: 10px; background: var(--teal-tint); color: var(--teal); margin-block-end: 18px;
}
.card__icon svg { inline-size: 28px; block-size: 28px; }
.card__code { color: var(--beige-dk); display: block; margin-block-end: 10px; }
.card__t { font-weight: 700; font-size: 19px; line-height: 1.45; margin-block-end: 10px; color: var(--ink); }
.card__b { color: var(--slate); font-size: 15.5px; margin: 0; }
.card__t a { color: inherit; text-decoration: none; }
.card__t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.card__t a:hover { color: var(--teal); }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-block-start: auto; padding-block-start: 18px;
  font-size: 15px; font-weight: 600; color: var(--teal); text-decoration: none;
}
/* The "Service details" label is a decorative <span>: clicks must fall
   through to the title's stretched link (it used to sit above it with
   z-index:1 and swallow the click). A real <a class="card__link"> keeps
   its own stacking so it stays clickable. */
span.card__link { pointer-events: none; }
a.card__link { position: relative; z-index: 1; }
.card__link::after { content: "←"; transition: transform .2s; }
html:not([dir="rtl"]) .card__link::after { content: "→"; }
.cards li:hover .card__link::after { transform: translateX(-4px); }
html:not([dir="rtl"]) .cards li:hover .card__link::after { transform: translateX(4px); }
.card__flag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal);
  background: var(--teal-tint); padding: 3px 12px; border-radius: 999px;
  margin-block-end: 12px;
}
.excluded { margin-block-start: 22px; color: var(--slate); font-size: 14.5px; }

/* ---------- work / gallery ---------- */
.work-group { margin-block-end: 44px; }
.work-group__head { display: flex; align-items: baseline; gap: 14px; margin-block-end: 8px; }
.work-group__code { color: var(--beige); }
.work-group__title { font-size: 21px; color: var(--on-dark); }
.work-group__caption { color: var(--on-dark-75); max-width: 62ch; margin-block-end: 22px; }
.work-group__empty { color: var(--on-dark-75); font-style: italic; }
.section:not(.section--dark) .work-group__title { color: var(--ink); }
.section:not(.section--dark) .work-group__caption, .section:not(.section--dark) .work-group__empty { color: var(--slate); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.gallery button {
  display: block; padding: 0; border: 0; cursor: pointer; background: var(--teal-xdk);
  border-radius: 10px; overflow: hidden; line-height: 0;
}
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .35s, opacity .35s; opacity: .94; }
.gallery button:hover img { transform: scale(1.04); opacity: 1; }

.attribution { margin-block-start: 28px; color: var(--on-dark-75); border-block-start: 1px solid var(--line-dark); padding-block-start: 18px; max-width: 68ch; font-size: 14.5px; }
.section:not(.section--dark) .attribution { color: var(--slate); border-block-start-color: var(--line); }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-80); margin-block-end: 1.15em; }
.prose p:first-child { color: var(--ink); font-size: 19px; font-weight: 500; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-block: 1.6em .6em; }
.prose h3 { font-size: 19px; margin-block: 1.4em .5em; }
.prose ul { list-style: disc; padding-inline-start: 1.3em; margin-block-end: 1.15em; }
.prose ul li { margin-block-end: .35em; color: var(--ink-80); }
.prose a { color: var(--teal); text-underline-offset: 3px; }

/* ---------- area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 22px; }
.chips li {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 18px; font-size: 15px; font-weight: 500; color: var(--ink-80);
}
.area__rest { color: var(--slate); margin: 0; }

/* ---------- contact ---------- */
.section--contact .section__body > .btn { margin-block: 10px 34px; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 0; }
.contact-meta > div { min-inline-size: 140px; }
.contact-meta dt { color: var(--beige); margin-block-end: 4px; font-size: 13.5px; }
.contact-meta dd { margin: 0; font-size: 17px; }
html[lang|="en"] .contact-meta dt { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.contact-social { margin-block-start: 30px; }
.contact-social[hidden] { display: none; }
.contact-social__label { display: block; font-size: 13px; color: var(--on-dark-75); margin-block-end: 10px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--teal-xdk);
  background-image: linear-gradient(115deg, var(--teal-xdk) 0%, var(--teal-dk) 45%, var(--teal) 100%);
  color: var(--on-dark-75);
  padding-block: clamp(48px, 7vw, 80px) 28px;
  font-size: 15.5px;
}
.site-footer__inner { display: grid; gap: 36px; }
.site-footer__top {
  display: grid; gap: 36px 48px;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(170px, 1fr));
}
.site-footer__brand { display: grid; gap: 18px; max-width: 46ch; align-content: start; }
.site-footer__brand .brand { color: var(--on-dark); }
.site-footer__brand .brand__word { color: var(--on-dark); }
.site-footer__brand .brand__word-sub { color: var(--on-dark-55); }
.site-footer__brand p { margin: 0; }
.site-footer__col h2 {
  font-size: 14px; font-weight: 600; color: var(--beige); margin-block-end: 14px;
}
html[lang|="en"] .site-footer__col h2 { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.site-footer__col ul { display: grid; gap: 8px; }
.site-footer__col a { text-decoration: none; color: var(--on-dark-75); transition: color .15s; }
.site-footer__col a:hover { color: var(--on-dark); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0; }
.site-footer__legal dt { color: var(--beige); margin-block-end: 3px; font-size: 13px; }
html[lang|="en"] .site-footer__legal dt { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.site-footer__legal dd { margin: 0; color: var(--on-dark); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links[hidden] { display: none; }
.social-link {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--on-dark-75); transition: color .15s, border-color .15s;
}
.social-link:hover { color: var(--on-dark); border-color: var(--on-dark-75); }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  border-block-start: 1px solid var(--line-dark); padding-block-start: 22px;
  font-size: 13.5px; color: var(--on-dark-55);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { text-decoration: none; color: var(--on-dark-75); }
.site-footer__bottom a:hover { color: var(--on-dark); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__bottom .brand__word { color: var(--on-dark-75); font-size: 12px; letter-spacing: .14em; }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(7, 26, 33, .94); }
.lightbox__figure { position: relative; margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; width: auto; border-radius: 8px; }
.lightbox__figure figcaption { color: var(--on-dark-75); font-size: 13.5px; text-align: center; max-width: 60ch; }
.lightbox__btn {
  position: absolute; background: rgba(255, 255, 255, .12); color: var(--white);
  border: 0; width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__btn--close { top: 2vmin; inset-inline-end: 2vmin; position: fixed; }
.lightbox__btn--prev { inset-inline-start: 1vmin; }
.lightbox__btn--next { inset-inline-end: 1vmin; }
/* arrows point the reading direction (documented physical-side exception) */
html[dir="rtl"] .lightbox__btn--prev { transform: scaleX(-1); }
html[dir="rtl"] .lightbox__btn--next { transform: scaleX(-1); }

/* ---------- back-to-top button ---------- */
.to-top {
  position: fixed;
  inset-block-end: clamp(16px, 4vw, 28px);
  inset-inline-end: clamp(16px, 4vw, 28px);
  z-index: 30;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--line-strong);
  border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--teal);
  box-shadow: var(--shadow);
  transition: background .15s, color .15s, border-color .15s;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.to-top svg { width: 20px; height: 20px; }
@media (hover: none) { .to-top { width: 48px; height: 48px; } }

/* ---------- persistent floating WhatsApp CTA ----------
   inset-inline-start (opposite .to-top's corner): bottom-right on the
   Arabic (RTL) default, bottom-left in English. Brand teal, not
   WhatsApp green (not a project token). */
.wa-floating {
  position: fixed;
  inset-block-end: clamp(16px, 4vw, 28px);
  inset-inline-start: clamp(16px, 4vw, 28px);
  z-index: 35;
  display: inline-flex; align-items: center; gap: 10px;
  min-block-size: 52px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  background: var(--teal); color: var(--white);
  text-decoration: none;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 28px rgba(7, 42, 53, .32);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .15s, transform .15s;
}
.wa-floating:hover { background: var(--teal-dk); transform: translateY(-1px); }
.wa-floating:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wa-floating svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 640px) {
  .wa-floating { padding: 14px; min-block-size: 56px; min-inline-size: 56px; justify-content: center; }
  .wa-floating__label { display: none; }
}
@media (hover: none) { .wa-floating { padding: 14px; } }

/* ---------- services archive + single service ---------- */
.service-crumb { font-size: 14px; color: var(--slate); margin-block-end: 18px; }
.service-crumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.breadcrumbs { font-size: 14px; color: var(--slate); margin-block-end: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding-inline-start: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 8px; color: var(--line-strong); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

.faqs { display: grid; gap: 12px; margin-block-end: 32px; max-width: 860px; }
.faqs details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 22px; transition: border-color .2s, box-shadow .2s;
}
.faqs details[open] { border-color: rgba(14, 74, 91, .3); box-shadow: var(--shadow-sm); }
.faqs summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-block-size: 64px; padding-block: 16px;
  font-weight: 600; font-size: 17px; color: var(--ink);
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal); font-size: 20px; font-weight: 500; line-height: 1;
  font-family: var(--font-en);
}
.faqs details[open] summary::after { content: "\2212"; background: var(--teal); color: var(--white); }
.faqs details p { color: var(--slate); margin: 0; padding-block-end: 20px; }

.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 10px; }
.service-nav a {
  font-size: 14.5px; text-decoration: none; color: var(--teal);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px;
  transition: border-color .15s, background .15s;
}
.service-nav a:hover { border-color: var(--teal); background: var(--teal-tint); }
.section--dark .service-nav { margin-block-end: 28px; }
.service-nav--spaced { margin-block-start: 32px; }
.section--dark .service-nav a { color: var(--on-dark); border-color: var(--line-dark); }
.section--dark .service-nav a:hover { border-color: var(--on-dark-75); background: rgba(255, 255, 255, .08); }

.entry-content { max-width: 70ch; }
.entry-content > * + * { margin-block-start: 1em; }
.entry-content a { color: var(--teal); }

/* ============================================================
   Southern Castle refactor (2026-11): structure components
   ============================================================ */

/* ---------- nav list + services dropdown ---------- */
.site-nav__list { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__item--has-sub { gap: 2px; }
.subnav-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 15.5px; color: var(--ink-80); transition: color .15s;
}
.subnav-toggle > span { position: relative; }
.subnav-toggle > span::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -8px;
  block-size: 2px; background: var(--beige); transform: scaleX(0); transition: transform .2s;
}
.subnav-toggle svg { inline-size: 16px; block-size: 16px; transition: transform .2s; }
.subnav-toggle:hover, .subnav-toggle.is-current, .subnav-toggle[aria-expanded="true"] { color: var(--teal); }
.subnav-toggle:hover > span::after, .subnav-toggle.is-current > span::after { transform: scaleX(1); }
.subnav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav {
  position: absolute; inset-block-start: calc(100% + 14px); inset-inline-start: -16px; z-index: 50;
  inline-size: min(440px, 80vw);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -12px rgba(7, 42, 53, .22);
  padding: 10px;
}
.subnav[hidden] { display: none; }
.subnav__list { display: grid; gap: 2px; }
.subnav__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink);
}
.subnav__list a::after { display: none; }
.subnav__list a:hover, .subnav__list a[aria-current="page"] { background: var(--surface); color: var(--teal); }
.subnav__icon { display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 8px; background: var(--teal-tint); color: var(--teal); flex: none; }
.subnav__icon svg { inline-size: 20px; block-size: 20px; }
.subnav__all {
  display: block; margin-block-start: 6px; padding: 12px; border-block-start: 1px solid var(--line);
  font-weight: 600; font-size: 14.5px; color: var(--teal); text-decoration: none;
}
.subnav__all::after { display: none; }
.subnav__all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* mobile services group */
.mobile-nav__group { border-block-end: 1px solid var(--line); }
.mobile-nav__group summary {
  display: flex; align-items: center; justify-content: space-between; min-block-size: 52px;
  font-weight: 600; font-size: 17px; cursor: pointer; list-style: none;
}
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group summary svg { inline-size: 18px; block-size: 18px; transition: transform .2s; }
.mobile-nav__group[open] summary svg { transform: rotate(180deg); }
.mobile-nav__group ul { display: grid; gap: 2px; padding-block-end: 12px; }
.mobile-nav__group a {
  display: flex; align-items: center; min-block-size: 44px; padding-inline-start: 14px;
  border-inline-start: 2px solid var(--line); text-decoration: none; font-size: 15.5px; color: var(--ink-80);
}
.mobile-nav__group a[aria-current="page"] { color: var(--teal); border-inline-start-color: var(--teal); }
.mobile-nav__all { font-weight: 600; color: var(--teal) !important; }

/* ---------- section scaffolding ---------- */
.section--compact { padding-block: clamp(40px, 6vw, 64px); }
.section--flush { padding-block: clamp(48px, 7vw, 96px) 0; }
.section-head { max-width: 760px; margin-block-end: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-block-end: 14px; }
.section-head .lede { margin: 0; }
.section-actions { margin-block-start: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.h-small { font-size: 18px; margin-block-end: 6px; }
.hero__more { color: var(--slate); font-size: 16px; max-width: 58ch; margin-block: -14px 30px; }

/* ---------- inner page head ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-block-end: 1px solid var(--line);
  padding-block: clamp(36px, 6vw, 80px) clamp(44px, 6vw, 84px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14, 74, 91, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 74, 91, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,0) 95%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,0) 95%);
}
.page-head::after { /* faint brand-mark corner accent */
  content: ""; position: absolute; inset-block-end: -1px; inset-inline-end: var(--gutter);
  inline-size: 120px; block-size: 4px; background: linear-gradient(90deg, var(--teal) 0 66%, var(--beige) 66% 100%);
}
.page-head__inner { position: relative; }
/* Inner pages with a line illustration: text + drawing side by side. */
.page-head--visual .page-head__inner {
  display: grid; align-items: center; gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}
.page-head__text { min-width: 0; }
.page-head__visual {
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(10px, 1.6vw, 18px); box-shadow: var(--shadow);
}
.page-head__visual img { display: block; inline-size: 100%; block-size: auto; }
@media (max-width: 900px) {
  .page-head--visual .page-head__inner { grid-template-columns: 1fr; }
  .page-head__visual { max-inline-size: 440px; }
}
.page-head h1 { font-size: clamp(30px, 4.6vw, 50px); max-width: 22ch; margin-block-end: 18px; }
.page-head .lede { max-width: 66ch; margin-block-end: 12px; }
.page-head__p { color: var(--slate); max-width: 66ch; margin-block-end: 12px; }
.page-head .hero__cta { margin-block-start: 26px; }

/* ---------- features (why) ---------- */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.feature {
  position: relative; padding: 32px 28px 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.feature__icon { display: grid; place-items: center; inline-size: 56px; block-size: 56px; border-radius: 50%; background: var(--teal); color: var(--white); margin-block-end: 22px; }
.feature__icon svg { inline-size: 28px; block-size: 28px; }
.feature__n { position: absolute; inset-block-start: 26px; inset-inline-end: 28px; font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--beige-dk); letter-spacing: .02em; }
.feature__t { font-size: 20px; margin-block-end: 10px; }
.feature__b { color: var(--slate); margin: 0; }

/* ---------- spotlight (Egyptians abroad on the homepage) ---------- */
.spotlight {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--beige-tint);
  border: 1px solid #E8DED2;
}
.spotlight h2 { margin-block-end: 18px; max-width: 20ch; }
.spotlight p:not(.kicker) { color: var(--ink-80); max-width: 60ch; }
.spotlight .btn { margin-block-start: 10px; }
.spotlight__art { display: grid; place-items: center; color: var(--beige); }
.spotlight__art svg { inline-size: min(240px, 60%); block-size: auto; stroke-width: 1; }
@media (max-width: 760px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__art { max-inline-size: 360px; }
}

/* ---------- closing CTA band ---------- */
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 48px; }
.cta-band h2 { max-width: 24ch; margin-block-end: 12px; }
.cta-band .lede { margin: 0; }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions .btn { inline-size: 100%; } }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--center { grid-template-columns: auto minmax(0, 1fr); }
.split__body h2 { margin-block-end: 18px; }
.split__body p { color: var(--ink-80); max-width: 64ch; }
.stat-card {
  display: grid; gap: 12px; padding: 36px 32px; border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(130% 120% at 85% 10%, #15627A 0%, var(--teal) 40%, var(--teal-xdk) 100%);
  color: var(--white);
}
.stat-card__n { font-family: var(--font-mono); font-size: clamp(64px, 9vw, 96px); font-weight: 600; line-height: 1; color: var(--white); }
.stat-card__l { color: var(--on-dark-75); font-size: 15px; border-block-start: 1px solid var(--line-dark); padding-block-start: 14px; }
.where-icon { display: grid; place-items: center; inline-size: 88px; block-size: 88px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); }
.where-icon svg { inline-size: 40px; block-size: 40px; }
.where-art { inline-size: min(100%, 340px); background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 12px; box-shadow: var(--shadow); }
.where-art img, .spotlight__art img { display: block; inline-size: 100%; block-size: auto; }
@media (max-width: 760px) { .split, .split--center { grid-template-columns: 1fr; } }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.panel { padding: 34px 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.panel__icon { display: grid; place-items: center; inline-size: 52px; block-size: 52px; border-radius: 10px; background: var(--teal-tint); color: var(--teal); margin-block-end: 18px; }
.panel__icon svg { inline-size: 26px; block-size: 26px; }
.panel h2 { font-size: clamp(22px, 2.4vw, 28px); margin-block-end: 12px; }
.panel p { color: var(--ink-80); margin: 0; }

.principles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.principles li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.principles__icon { display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--teal); color: var(--white); flex: none; }
.principles__icon svg { inline-size: 18px; block-size: 18px; stroke-width: 2.2; }
.principles h3 { font-size: 18px; margin-block-end: 4px; }
.principles p { color: var(--slate); margin: 0; font-size: 15.5px; }

/* numbered timeline (how we work / how we help) */
.steps--timeline { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.steps--timeline li { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
.steps--timeline .step__n { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ---------- checklists ---------- */
.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-inline-start: 32px; color: var(--ink-80); }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .5em;
  inline-size: 18px; block-size: 18px; border-radius: 50%; background: var(--teal-tint);
}
.checklist li::after {
  content: ""; position: absolute; inset-inline-start: 8px; inset-block-start: calc(.5em + 5px);
  inline-size: 7px; block-size: 4px; border-inline-start: 2px solid var(--teal); border-block-end: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.checklist--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.checklist--grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 20px; padding-inline-start: 52px; font-weight: 500; color: var(--ink); }
.checklist--grid li::before { inset-inline-start: 18px; inset-block-start: calc(18px + .35em); }
.checklist--grid li::after { inset-inline-start: 24px; inset-block-start: calc(18px + .35em + 5px); }

/* ---------- single service ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.service-body { max-width: 72ch; }
.service-body > p:first-child { font-size: 19px; color: var(--ink); font-weight: 500; }
.service-body p { color: var(--ink-80); }
.service-body h2 {
  font-size: clamp(22px, 2.6vw, 28px); margin-block: 2em .8em;
  padding-block-start: 22px; border-block-start: 1px solid var(--line);
}
.service-body ul { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-block: 1em 0; }
.service-body ul li {
  position: relative; padding: 14px 16px; padding-inline-start: 50px;
  background: var(--surface); border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15.5px; line-height: 1.6;
}
.service-body ul li::before {
  content: ""; position: absolute; inset-inline-start: 16px; inset-block-start: 16px;
  inline-size: 20px; block-size: 20px; border-radius: 50%; background: var(--teal);
}
.service-body ul li::after {
  content: ""; position: absolute; inset-inline-start: 22.5px; inset-block-start: 22px;
  inline-size: 7px; block-size: 4px; border-inline-start: 2px solid var(--white); border-block-end: 2px solid var(--white);
  transform: rotate(-45deg);
}
.service-aside { position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
.aside-card { display: grid; gap: 14px; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.aside-card .card__icon { margin: 0; }
.aside-card__t { font-weight: 700; font-size: 18px; margin: 0; line-height: 1.45; }
.aside-card .btn { inline-size: 100%; }
.aside-card__link { text-align: center; font-weight: 600; font-size: 14.5px; color: var(--teal); }
@media (max-width: 960px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}
.cards--services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); }
.cards--numbered .card__code { position: absolute; inset-block-start: 30px; inset-inline-end: 26px; margin: 0; color: var(--beige-dk); font-size: 22px; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-channels h2, .contact-form-wrap > h2 { font-size: clamp(22px, 2.6vw, 28px); margin-block-end: 18px; }
.channel { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-block-end: 12px; }
.channel h3 { font-size: 17px; margin-block-end: 4px; }
.channel p { color: var(--slate); margin-block-end: 0; }
.channel a { color: var(--teal); font-weight: 600; text-decoration: none; }
.channel--primary { background: var(--teal-tint); border-color: rgba(14, 74, 91, .2); }
.channel--primary p { margin-block-end: 14px; color: var(--ink-80); }
.channel--primary .btn { color: var(--white); }
.channel__icon { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--teal); color: var(--white); flex: none; }
.channel__icon svg { inline-size: 22px; block-size: 22px; }
.info-box { margin-block-start: 20px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.info-box h3 { font-size: 17px; margin-block: 0 8px; }
.info-box h3:not(:first-child) { margin-block-start: 18px; }
.info-box p { color: var(--ink-80); margin-block-end: 8px; font-size: 15.5px; }
.info-box--plain { background: none; border: 1px solid var(--line); margin-block-start: 28px; }
.note { color: var(--slate); font-size: 14.5px; margin-block: 12px 0; }
.form-intro { color: var(--slate); margin-block-end: 22px; }

.contact-form-wrap { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); background: var(--white); }
.sc-form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.field--full, .field--choice { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--slate); font-size: 13px; }
.field__hint { color: var(--slate); font-size: 13.5px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  inline-size: 100%; min-block-size: 48px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-block-size: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 74, 91, .15); }
.field--choice { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.field--choice legend { inline-size: 100%; margin-block-end: 6px; }
.field--choice label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.field--consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-80); font-size: 14.5px; }
.field--consent input { margin-block-start: 5px; inline-size: 18px; block-size: 18px; flex: none; accent-color: var(--teal); }
.field--consent a { color: var(--teal); }
.field input[type="radio"] { accent-color: var(--teal); inline-size: 18px; block-size: 18px; }
.sc-form .btn { justify-self: start; }
.hp-field { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .sc-form .btn { inline-size: 100%; } }
.form-status { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-block-end: 20px; }
.form-status p { margin: 0; }
.form-status--ok { background: #E7F3EC; color: #145A32; border: 1px solid #B7DCC4; }
.form-status--ok svg { inline-size: 22px; block-size: 22px; flex: none; stroke-width: 2.4; }
.form-status--error { background: #FBECEA; color: #8A1F11; border: 1px solid #F0C4BD; }

/* ---------- legal ---------- */
.notice { display: inline-block; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--beige-tint); border: 1px solid #E8DED2; color: var(--beige-dk); font-size: 14.5px; font-weight: 500; margin-block-end: 28px; }
.prose--legal { max-width: 74ch; }
.prose--legal p:first-child { font-size: 18px; }

/* ---------- footer additions ---------- */
.site-footer__tag { color: var(--on-dark); font-weight: 600; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.site-footer__contact svg { inline-size: 18px; block-size: 18px; flex: none; margin-block-start: 4px; color: var(--beige); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .cards li:hover, .wa-floating:hover { transform: none; }
}

/* =====================================================================
   Homepage refinement (owners' UX brief, 2026-11-03).
   Scoped to .home-main (front-page.php only) so inner pages keep their
   layout; the only shared changes are the footer's mobile grouping and
   the floating CTA's safe-area offset, at the end of this block.
   ===================================================================== */
.home-main { --section-y: clamp(48px, 7vw, 88px); }
.home-main h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; }
html[lang|="en"] .home-main h2 { line-height: 1.25; }
.home-main .section-head { max-width: 680px; margin-block-end: clamp(24px, 3vw, 36px); }
.home-main .section-head h2 { margin-block-end: 12px; }
.home-main .section-head .lede { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.8; }

/* 1 — hero: text leads, the drawing supports it */
.home-main .hero { padding-block: clamp(40px, 6vw, 88px); }
.home-main .hero__inner {
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}
.home-main .hero h1 { max-width: none; font-size: clamp(30px, 4.2vw, 54px); text-wrap: balance; }
.home-main .hero__sub { max-width: 60ch; margin-block: 20px 32px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.85; }
/* Audit 2026-11-05: the hero supporting line (same treatment as .page-head__support). */
.home-main .hero__sub:has(+ .hero__support) { margin-block-end: 12px; }
.hero__support { font-weight: 600; color: var(--teal); max-width: 62ch; margin-block: 0 32px; }
.home-main .hero__cta .btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.home-main .hero__cta .btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.home-main .hero__visual {
  aspect-ratio: 1 / 1; inline-size: 100%; max-inline-size: 420px; justify-self: end;
  background: var(--teal);
  box-shadow: 0 24px 48px -28px rgba(7, 42, 53, .5);
}
.home-main .hero__visual .hero__art { margin: 0; inline-size: 84%; block-size: 84%; max-block-size: none; }
@media (max-width: 900px) {
  .home-main .hero__inner { grid-template-columns: 1fr; }
  .home-main .hero__visual { display: none; } /* keep the first screen to the message + actions */
}

/* 2 — three service groups */
.cards--groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards--groups li { padding: 28px; }
.cards--groups .card__icon { margin-block-end: 18px; }
.cards--groups .card__t { font-size: 20px; margin-block-end: 8px; }
.cards--groups .card__b { line-height: 1.75; }
.cards--groups li:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }
.cards--groups .card__t a:focus-visible { outline: none; } /* the whole card shows focus instead */
@media (max-width: 900px) {
  .cards--groups { grid-template-columns: 1fr; gap: 14px; }
  .cards--groups li { flex-direction: row; gap: 18px; padding: 22px; }
  .cards--groups .card__icon { margin: 0; flex: none; inline-size: 48px; block-size: 48px; }
  .cards--groups .card__icon svg { inline-size: 26px; block-size: 26px; }
}
.section-more { margin: 28px 0 0; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--teal);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link::after { content: "←"; text-decoration: none; }
html:not([dir="rtl"]) .text-link::after { content: "→"; }
.text-link:hover { text-decoration-thickness: 2px; }

/* 3 — trust strip (not steps: no numbering) */
.trust__h { margin-block-end: clamp(20px, 3vw, 32px); }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust__item { display: flex; align-items: flex-start; gap: 16px; padding: 4px 28px; }
.trust__item:first-child { padding-inline-start: 0; }
.trust__item + .trust__item { border-inline-start: 1px solid var(--line-strong); }
.trust__icon {
  flex: none; display: grid; place-items: center;
  inline-size: 44px; block-size: 44px; border-radius: 50%;
  background: var(--white); color: var(--teal); border: 1px solid var(--line);
}
.trust__icon svg { inline-size: 22px; block-size: 22px; }
.trust__t { font-size: 17.5px; margin-block-end: 4px; }
.trust__b { margin: 0; color: var(--slate); font-size: 15.5px; line-height: 1.7; }
@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr; }
  .trust__item, .trust__item:first-child { padding: 16px 0; }
  .trust__item + .trust__item { border-inline-start: 0; border-block-start: 1px solid var(--line-strong); }
}

/* 4 — Egyptians abroad: lighter than the hero */
.spotlight--compact { padding: clamp(24px, 4vw, 48px); gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.spotlight--compact h2 { max-width: 26ch; margin-block-end: 14px; }
.spotlight--compact p:not(.kicker) { margin-block-end: 22px; max-width: 56ch; line-height: 1.85; }
.spotlight--compact .spotlight__art img { max-inline-size: 320px; margin-inline: auto; }
@media (max-width: 760px) { .spotlight--compact { grid-template-columns: 1fr; } .spotlight--compact .spotlight__art { display: none; } }

/* 5 — closing CTA: flat brand teal, no decorative gradient */
.home-main .cta-band { background: var(--teal); background-image: none; }
.home-main .cta-band h2 { max-width: none; }

/* Shared: footer on phones — quick links + contact side by side, the
   services list full width so long names stay on one line. */
@media (max-width: 760px) {
  .site-footer__top { gap: 28px 24px; }
  .site-footer__top > .site-footer__col:nth-child(2) { order: 1; }
  .site-footer__top > .site-footer__col:nth-child(4) { order: 2; }
  .site-footer__top > .site-footer__col:nth-child(3) { order: 3; grid-column: 1 / -1; }
  .site-footer__bottom { padding-block-end: 72px; } /* clear of the floating WhatsApp button */
}
/* Shared: keep the floating buttons above the iOS home indicator. */
.wa-floating { inset-block-end: calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-bottom, 0px)); }
.to-top { inset-block-end: calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-bottom, 0px)); }
/* Shared fix: on tablets (761–1100px) the brand column's 0-min track was
   narrower than the logo lockup, which then overlapped the quick links.
   Brand gets its own row; the three link groups share the next one. */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   Phase 2 — inner pages design system (2026-11, owners' brief §3)
   One rhythm for every page; compact inner heads; one timeline, one FAQ
   accordion, one closing CTA. Scoped to inner pages (the homepage keeps
   its own .home-main block above).
   ========================================================================== */
#main-content { --section-y: clamp(48px, 7vw, 88px); }
main:not(.home-main) h2 { font-size: clamp(24px, 2.6vw, 32px); }
.section-title { margin-block-end: clamp(20px, 3vw, 32px); max-width: 30ch; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

/* ---- compact inner page head: clearly smaller than the home hero ---- */
.page-head { padding-block: clamp(24px, 3.6vw, 48px) clamp(32px, 4.4vw, 56px); }
.page-head::before { content: none; } /* no background grid behind the text */
.page-head .breadcrumbs { margin-block-end: 14px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; max-width: 24ch; margin-block-end: 14px; text-wrap: balance; }
.page-head .lede { max-width: 62ch; font-size: clamp(16.5px, 1.4vw, 18.5px); margin: 0; }
.page-head .hero__cta { margin-block-start: 22px; }
.page-head--visual .page-head__inner { grid-template-columns: minmax(0, 720px) minmax(0, 300px); justify-content: space-between; }
.page-head__visual { padding: 10px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06)); }
@media (max-width: 900px) {
  .page-head--visual .page-head__inner { grid-template-columns: 1fr; }
  .page-head__visual { display: none; } /* phones/tablets: text first, no tall drawing */
}

/* ---- prose block (about: experience) ---- */
.prose-block { max-width: 760px; }
.prose-block h2 { margin-block-end: 16px; }
.prose-block p { color: var(--ink-80); max-width: 68ch; }
.prose-block .lede { color: var(--ink); }

/* ---- vision / mission: two balanced blocks ---- */
.panel { padding: clamp(24px, 3vw, 32px); border-block-start: 3px solid var(--teal); }

/* ---- four principles: compact row ---- */
.principles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.principles--4 li { flex-direction: column; gap: 12px; padding: 22px 20px; }
.principles--4 h3 { font-size: 17.5px; }
@media (max-width: 1100px) { .principles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .principles--4 { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
  .principles--4 li { flex-direction: row; border: 0; border-radius: 0; padding: 16px; }
  .principles--4 li + li { border-block-start: 1px solid var(--line); }
}

/* ---- timeline: one number per step (HTML list markers are off) ---- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }
.timeline li { position: relative; padding-inline-end: 18px; }
.timeline li::before { /* connector */
  content: ""; position: absolute; inset-block-start: 19px; inset-inline-start: 46px; inset-inline-end: 0;
  block-size: 2px; background: var(--line-strong, #c9d1d3);
}
.timeline li:last-child::before { content: none; }
.timeline__n {
  position: relative; display: grid; place-items: center; inline-size: 40px; block-size: 40px;
  border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; font-size: 15px; margin-block-end: 14px;
}
.timeline__t { font-weight: 700; font-size: 16.5px; color: var(--ink); margin-block-end: 4px; line-height: 1.5; }
.timeline__b { color: var(--slate); font-size: 15px; margin: 0; line-height: 1.65; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 0 0 20px; }
  .timeline li::before { inset-block-start: 44px; inset-block-end: 4px; inset-inline-start: 19px; inset-inline-end: auto; block-size: auto; inline-size: 2px; }
  .timeline__n { margin: 0; }
  .timeline li:last-child { padding-block-end: 0; }
}

/* ---- service body: scope checklist + numbered considerations ---- */
.service-main .wrap > .service-body { max-width: none; }
.service-body h2:first-child { margin-block-start: 0; padding-block-start: 0; border: 0; }
.service-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin-block: 1.6em .8em; }
.service-body > p { max-width: 68ch; }
.service-body ol.sc-points { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); counter-reset: pt; margin-block-start: 1em; }
.service-body ol.sc-points li {
  counter-increment: pt; position: relative; padding: 16px 18px; padding-inline-start: 58px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15.5px; line-height: 1.6;
}
.service-body ol.sc-points li::before {
  content: counter(pt); position: absolute; inset-inline-start: 16px; inset-block-start: 14px;
  display: grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 50%;
  border: 1.5px solid var(--beige-dk, #9a8168); color: var(--beige-dk, #9a8168); font-size: 14px; font-weight: 700;
}

/* ---- FAQ ---- */
.faq-wrap > h2 { margin-block-end: clamp(18px, 2.6vw, 28px); }
.faq-wrap .faqs { margin-block-end: 0; }

/* ---- services index: seven equal cards ---- */
.cards--index { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); align-items: stretch; }
.cards--index .card__b { font-size: 15px; line-height: 1.75; }

/* ---- expats: four short points + four service links ---- */
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.points li { padding: 20px; background: var(--white); border-radius: var(--radius); border-block-start: 3px solid var(--beige); }
.points h3 { font-size: 17px; margin-block-end: 6px; }
.points p { color: var(--slate); margin: 0; font-size: 15px; }
@media (max-width: 1100px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; gap: 10px; } }
.link-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.link-list a {
  display: flex; align-items: center; gap: 12px; block-size: 100%; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.5;
  transition: border-color .2s, background-color .2s;
}
.link-list a:hover { border-color: var(--teal); background: var(--teal-tint); }
.link-list__icon { display: grid; place-items: center; flex: none; inline-size: 40px; block-size: 40px; border-radius: 8px; background: var(--teal-tint); color: var(--teal); }
.link-list__icon svg { inline-size: 22px; block-size: 22px; }
@media (max-width: 1100px) { .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .link-list { grid-template-columns: 1fr; } }

/* ---- contact ---- */
.coverage { margin-block-start: 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); }
.coverage__h { font-size: 18px !important; line-height: 1.5; margin-block-end: 8px; }
.coverage p { color: var(--ink-80); font-size: 15.5px; margin-block-end: 8px; }
.coverage p:last-child { margin-block-end: 0; }
.form-intro { color: var(--slate); font-size: 14.5px; margin-block-end: 18px; }
.form-status:focus { outline: 2px solid currentColor; outline-offset: 2px; }
.sc-form button[disabled] { opacity: .7; cursor: progress; }

/* ---------- contact form: alignment, phone + WhatsApp (owners' feedback 2026-11-03) ----------
   Fields in a row align to the top (a hint under one field no longer
   stretches its neighbour's input). The phone group is one bordered box:
   a compact "+code" selector and the number, always left-to-right. */
.form-grid { align-items: start; }
.field { align-content: start; }
.field[hidden] { display: none; }
.tel {
  display: flex; align-items: stretch;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.tel:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 74, 91, .15); }
.field .tel input[type="tel"] { border: 0; box-shadow: none; flex: 1 1 auto; min-inline-size: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.field .tel input[type="tel"]:focus { box-shadow: none; }
.tel-cc {
  position: relative; flex: none; display: flex; align-items: center; gap: 6px;
  padding-inline: 12px 10px; border-inline-end: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.tel-cc::after {
  content: ""; inline-size: 7px; block-size: 7px; margin-block-start: -3px;
  border-inline-end: 2px solid var(--slate); border-block-end: 2px solid var(--slate); transform: rotate(45deg);
}
/* The real select covers the box (invisible): native, keyboard- and
   screen-reader-friendly list; the visible text is the "+code" span. */
.field .tel-cc select {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  opacity: 0; cursor: pointer; border: 0; padding: 0; font-size: 16px;
}
.tel-cc:focus-within { outline: 2px solid var(--teal); outline-offset: -2px; }
.field__check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500 !important; font-size: 14.5px; color: var(--ink-80); cursor: pointer; margin-block-start: 2px; }
.field__check input { inline-size: 18px; block-size: 18px; accent-color: var(--teal); flex: none; margin: 0; }

/* ---------- mobile header fit (owners' feedback 2026-11-03) ----------
   With the language switch visible the bar overflowed on phones and the
   burger was pushed to the edge. Below 640px: the switch moves into the
   menu (.mobile-nav__lang), the lockup steps down a size, gaps tighten and
   the actions are pinned to the inline end. */
.mobile-nav__lang { display: none; }
@media (max-width: 640px) {
  .site-header__inner { gap: 12px; }
  .site-header__actions { margin-inline-start: auto; gap: 8px; }
  .site-header__actions .lang-toggle { display: none; }
  .mobile-nav__lang {
    display: flex; align-items: center; min-block-size: 52px;
    text-decoration: none; font-weight: 600; font-size: 16px; color: var(--teal);
    border-block-end: 1px solid var(--line);
  }
  .brand { gap: 10px; min-inline-size: 0; }
  .brand__mark { inline-size: 34px; }
  .brand__word { font-size: 14.5px; letter-spacing: .12em; }
  .brand__word-sub { font-size: 7px; letter-spacing: .14em; }
}
@media (max-width: 360px) {
  .brand__mark { inline-size: 30px; }
  .brand__word { font-size: 13px; letter-spacing: .1em; }
  .brand__word-sub { font-size: 6.5px; letter-spacing: .1em; }
}
/* The hidden WhatsApp field keeps its grid cell on two-column layouts so the
   following fields stay paired (service | governorate); one column collapses it. */
.field[data-wa-field][hidden] { display: grid; visibility: hidden; }
@media (max-width: 560px) { .field[data-wa-field][hidden] { display: none; } }

/* ---------- English typography pass (owners' feedback 2026-11-03) ----------
   IBM Plex Sans (Latin) reads larger than Plex Sans Arabic at the same
   pixel size, so the English pages step down one notch and nav labels never
   wrap. Arabic is unaffected (every rule is scoped to html[lang|="en"]). */
html[lang|="en"] body { font-size: 16px; line-height: 1.65; }
html[lang|="en"] .site-nav a,
html[lang|="en"] .subnav-toggle { font-size: 15px; }
.site-nav a, .subnav-toggle, .site-header__actions .btn, .lang-toggle { white-space: nowrap; }
html[lang|="en"] .site-nav { gap: clamp(12px, 1.6vw, 26px); }
html[lang|="en"] .site-nav__list { gap: clamp(12px, 1.6vw, 26px); }
html[lang|="en"] h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.15; letter-spacing: -.01em; }
html[lang|="en"] h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -.005em; }
html[lang|="en"] h3 { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.4; }
html[lang|="en"] main:not(.home-main) h2 { font-size: clamp(22px, 2.3vw, 30px); }
html[lang|="en"] .page-head h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.2; }
html[lang|="en"] .lede,
html[lang|="en"] .hero__sub { font-size: clamp(16.5px, 1.6vw, 18px); line-height: 1.7; }
html[lang|="en"] .card__t { font-size: 18px; line-height: 1.35; }
html[lang|="en"] .panel h2 { font-size: clamp(20px, 2vw, 24px); }
html[lang|="en"] .principles h3 { font-size: 17px; }
html[lang|="en"] .timeline__t { font-size: 15.5px; line-height: 1.4; }
html[lang|="en"] .timeline__b { font-size: 14.5px; line-height: 1.6; }
html[lang|="en"] .faqs summary { font-size: 16px; }
html[lang|="en"] .btn--lg { font-size: 16px; }
/* English labels are wider: hand over to the burger menu a little earlier. */
@media (max-width: 1180px) {
  html[lang|="en"] .site-nav[data-nav] { display: none; }
  html[lang|="en"] .nav-burger { display: inline-flex; }
  html[lang|="en"] .site-header__actions { margin-inline-start: auto; }
}
/* English step titles are longer: five or six steps sit in three columns
   (two rows) instead of one cramped row. The row end has no connector. */
@media (min-width: 761px) {
  html[lang|="en"] .timeline:has(> li:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  html[lang|="en"] .timeline:has(> li:nth-child(5)) > li { padding-inline-end: 32px; }
  html[lang|="en"] .timeline:has(> li:nth-child(5)) > li:nth-child(3n)::before { content: none; }
  html[lang|="en"] .timeline__b { max-inline-size: 34ch; }
}

/* ==========================================================================
   Partners' content pass (2026-11-03): quiet "explore" link instead of a
   hero contact button, long service pages (sections, items, steps, notes),
   services list. Existing tokens only; no new colours, fonts or images.
   ========================================================================== */
.page-head__support { font-weight: 600; color: var(--teal); max-width: 62ch; margin-block: 4px 0; }
.explore-link {
  display: inline-flex; align-items: center; gap: 10px; margin-block-start: 22px; padding-block: 6px;
  color: var(--teal); font-weight: 600; font-size: 16px; text-decoration: none;
}
.explore-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.explore-link__arrow {
  display: inline-grid; place-items: center; inline-size: 30px; block-size: 30px; flex: none;
  border: 1.5px solid currentColor; border-radius: 50%; font-size: 15px; line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .explore-link__arrow { transition: transform .2s; }
  .explore-link:hover .explore-link__arrow { transform: translateY(3px); }
}
.cta-band__p { color: var(--on-dark-75); max-width: 62ch; margin: 10px 0 0; }

/* ---- long service pages ---- */
.service-body--v10 .sc-sec + .sc-sec {
  margin-block-start: clamp(44px, 6vw, 72px); padding-block-start: clamp(36px, 5vw, 56px);
  border-block-start: 1px solid var(--line);
}
.service-body--v10 .sc-sec > h2 { margin: 0 0 16px; padding: 0; border: 0; max-width: 32ch; text-wrap: balance; }
.service-body--v10 .sc-sec > * + * { margin-block-start: 14px; }
.service-body--v10 .sc-sec > p { max-width: 68ch; color: var(--ink-80); }
.service-body--v10 .sc-sec > p:first-of-type { color: var(--ink); }
.sc-items { display: grid; gap: 26px 36px; }
.service-body--v10 .sc-sec > .sc-items, .service-body--v10 .sc-sec > .sc-steps { margin-block-start: 28px; }
@media (min-width: 720px) { .sc-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sc-items--n3, .sc-items--n5, .sc-items--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-item { position: relative; padding-block-start: 16px; border-block-start: 1px solid var(--line); min-width: 0; }
.sc-item::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 0; inline-size: 40px; block-size: 2px; background: var(--teal); }
.sc-item h3 { font-size: 18px; line-height: 1.5; margin: 0 0 6px; color: var(--ink); }
.sc-item p { margin: 0; color: var(--slate); font-size: 15.5px; line-height: 1.8; }
.sc-item .sc-item__lead { color: var(--teal); font-weight: 600; margin-block-end: 6px; }
.sc-steps { list-style: none; padding: 0; margin-inline: 0; display: grid; max-width: 780px; }
.sc-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding-block-end: 24px; }
.sc-steps li::before {
  content: ""; position: absolute; inset-inline-start: 21px; inset-block-start: 48px; inset-block-end: 4px;
  inline-size: 2px; background: var(--line-strong);
}
.sc-steps li:last-child { padding-block-end: 0; }
.sc-steps li:last-child::before { content: none; }
.sc-steps__n {
  display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums;
}
.sc-steps h3 { font-size: 17.5px; line-height: 1.5; margin: 9px 0 4px; color: var(--ink); }
.sc-steps p { margin: 0; color: var(--slate); font-size: 15.5px; line-height: 1.8; }
.sc-list__label { font-weight: 700; color: var(--ink); }
.service-body--v10 .sc-sec > .sc-list__label { margin-block-start: 24px; }
.service-body--v10 .sc-sec > .sc-checks { margin-block-start: 12px; }
.sc-close {
  font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; line-height: 1.7; color: var(--ink);
  max-width: 60ch; padding-inline-start: 18px; border-inline-start: 3px solid var(--beige);
}
.service-body--v10 .sc-sec > .sc-close { margin-block-start: 28px; color: var(--ink); }
.sc-note { background: var(--surface); border-radius: var(--radius-sm); padding: 16px 20px; max-width: 78ch; }
.service-body--v10 .sc-sec > .sc-note { margin-block-start: 24px; }
.sc-note p { margin: 0; color: var(--ink-80); font-size: 15px; line-height: 1.8; }
.sc-note p + p { margin-block-start: 6px; }
.sc-note .sc-note__label { font-weight: 700; color: var(--teal); font-size: 14px; }
html[lang|="en"] .sc-item h3, html[lang|="en"] .sc-steps h3 { font-size: 16.5px; }
.sc-item h3:last-child { margin: 0; }
/* Highlighted capability panel inside a section (industrial: automation, v11). */
.sc-feature {
  margin-block-start: 32px; padding: clamp(20px, 3vw, 32px); background: var(--white);
  border: 1px solid var(--line); border-block-start: 3px solid var(--teal); border-radius: var(--radius-sm);
}
.sc-feature > h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; margin: 0; color: var(--ink); }
.sc-feature > .sc-feature__en { margin: 4px 0 0; color: var(--slate); font-size: 14px; }
.sc-feature > .sc-item__lead { margin: 14px 0 0; color: var(--teal); font-weight: 600; max-width: 68ch; }
.sc-feature > p { margin: 12px 0 0; max-width: 68ch; color: var(--ink-80); }
.sc-feature > .sc-list__label { margin-block-start: 24px; color: var(--ink); }
.sc-feature > .sc-steps { margin-block-start: 16px; }
.sc-feature > .sc-note { margin-block-start: 24px; }

/* ---- services list: seven services, quick to scan ---- */
.section-title--wide { max-width: 72ch; }
.section-title--wide h2 { max-width: 30ch; text-wrap: balance; }
.section-title--wide .lede { margin-block-start: 12px; color: var(--ink-80); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: clamp(22px, 2.6vw, 30px); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.svc-card::before {
  content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 28px;
  inline-size: 36px; block-size: 3px; background: var(--beige); border-radius: 0 0 2px 2px;
}
.svc-card__head { display: flex; align-items: center; gap: 14px; margin-block-end: 4px; }
.svc-card .card__icon { margin: 0; flex: none; inline-size: 48px; block-size: 48px; }
.svc-card__t { font-size: 20px; line-height: 1.45; margin: 0; color: var(--ink); }
.svc-card__t a { color: inherit; text-decoration: none; }
.svc-card__t a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
.svc-card__sub { margin: 0; color: var(--teal); font-weight: 600; line-height: 1.7; }
.svc-card__b { margin: 0; color: var(--slate); font-size: 15.5px; line-height: 1.8; }
.svc-card__cases { margin-block-start: 4px; border-block-start: 1px solid var(--line); padding-block-start: 12px; }
.svc-card__cases summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; min-block-size: 32px;
}
.svc-card__cases summary::-webkit-details-marker { display: none; }
.svc-card__cases summary::after {
  content: "+"; display: grid; place-items: center; flex: none; inline-size: 26px; block-size: 26px;
  border-radius: 50%; background: var(--surface); color: var(--teal); font-weight: 700;
}
.svc-card__cases[open] summary::after { content: "\2212"; }
.svc-card__cases ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.svc-card__cases li { position: relative; padding-inline-start: 22px; color: var(--ink-80); font-size: 15px; line-height: 1.7; }
.svc-card__cases li::before {
  content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .7em;
  inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--beige);
}
.svc-card__more { padding-block-start: 10px; }
.svc-card:hover .svc-card__more::after { transform: translateX(-4px); }
html:not([dir="rtl"]) .svc-card:hover .svc-card__more::after { transform: translateX(4px); }
html[lang|="en"] .svc-card__t { font-size: 18.5px; }

/* ==========================================================================
   Phase 3 (v04, local branch) — approved photographs and unified icons.
   Local rules only; nothing above is changed.
   ========================================================================== */

/* Inner page heads: approved 4:3 photo in the existing frame (hidden <=900px
   by the rule above, and not downloaded there: see southcastle_page_photo_html). */
.page-head__visual picture { display: block; }
.page-head__visual picture img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Unified service icons (approved SVG files as <img>). */
.svc-icon { display: block; flex: none; }
.subnav__icon .svc-icon { inline-size: 28px; block-size: 28px; }
.card__icon .svc-icon { inline-size: 32px; block-size: 32px; }
.link-list__icon .svc-icon { inline-size: 28px; block-size: 28px; }

/* 1 — Home hero: the approved collage (7 scenes desktop/tablet, 3 on phones). */
.home-main .hero__visual--photo {
  aspect-ratio: 1920 / 1100; max-inline-size: none; justify-self: stretch;
  background: none; box-shadow: none; border-radius: 0; overflow: visible; display: block;
}
.home-main .hero__visual--photo::before,
.home-main .hero__visual--photo::after { content: none; }
.home-main .hero__visual--photo picture { display: block; inline-size: 100%; block-size: 100%; }
.home-main .hero__photo {
  position: static; z-index: auto; display: block;
  inline-size: 100%; block-size: 100%; object-fit: contain;
}
.home-main .hero__inner:has(.hero__visual--photo) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 1024px) {
  .home-main .hero__visual--photo { aspect-ratio: 1600 / 1030; }
}
@media (max-width: 900px) {
  .home-main .hero__inner:has(.hero__visual--photo) { grid-template-columns: 1fr; gap: 0; }
  /* phones/tablets: text, then the collage, then the scroll link (approved mobile order) */
  .home-main .hero__inner:has(.hero__visual--photo) .hero__content { display: contents; }
  .home-main .hero__visual--photo { display: block; order: 1; inline-size: 100%; max-inline-size: 720px; justify-self: center; margin-block: 4px 24px; }
  .home-main .hero__inner:has(.hero__visual--photo) .hero__explore { order: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .home-main .hero__visual--photo { aspect-ratio: 1600 / 630; margin-block: 0 20px; }
}

/* 2 — Home: the seven services with their icons (4 + 3; 3 columns on small phones). */
.svc-icons {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.svc-icons li { flex: 0 1 calc((100% - 3 * 16px) / 4); min-width: 0; }
.svc-icons__link {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  block-size: 100%; min-block-size: 44px; padding: 22px 14px 16px; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.svc-icons__link:hover { border-color: rgba(14, 74, 91, .35); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--teal); }
.svc-icons__icon { display: grid; place-items: center; inline-size: 64px; block-size: 64px; border-radius: 12px; background: var(--surface); }
.svc-icons__icon .svc-icon { inline-size: 48px; block-size: 48px; }
.svc-icons__t { font-weight: 700; font-size: 16.5px; line-height: 1.5; overflow-wrap: break-word; }
.svc-icons__arrow { display: grid; place-items: center; inline-size: 28px; block-size: 28px; margin-block-start: auto; border-radius: 50%; background: var(--teal-tint); color: var(--teal); }
.svc-icons__arrow svg { inline-size: 18px; block-size: 18px; transform: rotate(90deg); } /* chevron points the reading direction */
html:not([dir="rtl"]) .svc-icons__arrow svg { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .svc-icons__link { transition: none; } .svc-icons__link:hover { transform: none; } }
@media (max-width: 900px) {
  .svc-icons { gap: 12px; }
  .svc-icons li { flex-basis: calc((100% - 3 * 12px) / 4); }
  .svc-icons__link { padding: 16px 8px 12px; gap: 10px; }
  .svc-icons__t { font-size: 14.5px; }
}
@media (max-width: 600px) {
  .svc-icons { gap: 10px; }
  .svc-icons li { flex-basis: calc((100% - 3 * 10px) / 4); }
  .svc-icons__link { padding: 12px 4px 10px; gap: 8px; }
  .svc-icons__icon { inline-size: 48px; block-size: 48px; border-radius: 10px; }
  .svc-icons__icon .svc-icon { inline-size: 36px; block-size: 36px; }
  .svc-icons__t { font-size: 13px; line-height: 1.45; }
  .svc-icons__arrow { inline-size: 24px; block-size: 24px; }
}
@media (max-width: 369px) {
  .svc-icons li { flex-basis: calc((100% - 2 * 10px) / 3); }
}
/* RC: English service names hold longer single words ("Strengthening",
   "Contracting"), which must not break mid-word: 3 columns on phones,
   2 below 360px. Arabic keeps 4 + 3. */
@media (max-width: 600px) {
  html[lang|="en"] .svc-icons li { flex-basis: calc((100% - 2 * 10px) / 3); }
  html[lang|="en"] .svc-icons__t { font-size: 12.5px; }
}
@media (max-width: 359px) {
  html[lang|="en"] .svc-icons li { flex-basis: calc((100% - 10px) / 2); }
}

/* 5 — Home: selected real examples of our work (3 cards; one compact shortcut on phones). */
.work__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work__card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work__img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.work__body { padding: 16px 18px 20px; }
.work__c { margin: 0 0 6px; color: var(--beige-dk, var(--slate)); font-size: 13.5px; font-weight: 600; }
.work__t { margin: 0 0 6px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.work__b { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.7; }
.work__compact { display: none; }
@media (max-width: 900px) {
  .work__list { gap: 14px; }
  .work__body { padding: 12px 14px 16px; }
  .work__t { font-size: 16px; }
  .work__b { font-size: 14px; }
}
@media (max-width: 600px) {
  .work__wide { display: none; }
  .work__compact { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
  .work__summary {
    display: flex; align-items: center; gap: 14px; min-block-size: 44px; padding: 14px 16px;
    cursor: pointer; list-style: none;
  }
  .work__summary::-webkit-details-marker { display: none; }
  .work__summary-icon { display: grid; place-items: center; flex: none; inline-size: 48px; block-size: 48px; border-radius: 10px; background: var(--surface); color: var(--teal); }
  .work__summary-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
  .work__summary-t { font-weight: 700; color: var(--ink); }
  .work__summary-b { font-size: 14px; color: var(--slate); }
  .work__summary-arrow { display: grid; place-items: center; flex: none; inline-size: 32px; block-size: 32px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); }
  .work__summary-arrow svg { inline-size: 18px; block-size: 18px; }
  .work__compact[open] .work__summary-arrow svg { transform: rotate(180deg); }
  .work__compact .work__list { grid-template-columns: 1fr; padding: 0 12px 12px; }
}

/* ==========================================================================
   Phase 3.1 — owner review corrections (service page heads, expats FAQ).
   Scoped to .page-head--service and .faq-wrap--expats; nothing above changes.
   ========================================================================== */

/* Service page heads (and, from Phase 3.2, the About / Services /
   Egyptians Abroad heads via .page-head--photo), desktop: a larger photo beside the text (≈ 42–44% of
   the content width) instead of the narrow 300px column. */
.page-head--visual:is(.page-head--service, .page-head--photo) .page-head__inner {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); justify-content: normal;
}
:is(.page-head--service, .page-head--photo) .page-head__visual { padding: 8px; }
.page-head--service h1 { max-width: 22ch; }

/* Service page heads, phones/tablets: the photo stays visible, placed after
   the H1 and the opening paragraph and before the rest of the intro.
   The text wrapper becomes "contents" so its children can be ordered around
   the photo; the DOM (and screen-reader) order is unchanged. */
@media (max-width: 900px) {
  .page-head--visual:is(.page-head--service, .page-head--photo) .page-head__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  :is(.page-head--service, .page-head--photo) .page-head__text { display: contents; }
  :is(.page-head--service, .page-head--photo) .page-head__text > * { order: 1; }
  :is(.page-head--service, .page-head--photo) .page-head__text > .page-head__p,
  :is(.page-head--service, .page-head--photo) .page-head__text > .page-head__support,
  :is(.page-head--service, .page-head--photo) .page-head__text > .hero__cta,
  :is(.page-head--service, .page-head--photo) .page-head__text > .explore-link { order: 3; }
  :is(.page-head--service, .page-head--photo) .page-head__text > .explore-link { justify-self: start; }
  :is(.page-head--service, .page-head--photo) .page-head__visual {
    display: block; order: 2; inline-size: 100%; max-inline-size: 680px;
    margin-block: 20px 18px; padding: 6px;
  }
}

/* Egyptians Abroad FAQ: answers in the main text colour (not secondary
   grey), comfortable line length and spacing, a clearer open state.
   The <details>/<summary> accordion and its keyboard behaviour are unchanged. */
.faq-wrap--expats .faqs details { border-color: var(--line-strong); }
.faq-wrap--expats .faqs details[open] { border-color: var(--teal); border-inline-start-width: 4px; }
.faq-wrap--expats .faqs summary { color: var(--teal); font-size: 18px; line-height: 1.55; }
.faq-wrap--expats .faqs summary:hover { color: var(--ink); }
.faq-wrap--expats .faqs summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.faq-wrap--expats .faqs details p {
  color: var(--ink); font-size: 17px; line-height: 1.9; max-width: 72ch;
  padding-block: 14px 22px; border-block-start: 1px solid var(--line);
}
html[lang|="en"] .faq-wrap--expats .faqs summary { font-size: 17px; }
html[lang|="en"] .faq-wrap--expats .faqs details p { font-size: 16.5px; line-height: 1.75; }
@media (max-width: 600px) {
  .faq-wrap--expats .faqs details { padding-inline: 16px; }
  .faq-wrap--expats .faqs summary { font-size: 17px; }
  .faq-wrap--expats .faqs details p { font-size: 16.5px; }
}

/* ==========================================================================
   Phase 3.2 — official social links in the footer contact column.
   Rendered only when an official URL is saved; nothing shows otherwise.
   ========================================================================== */
.site-footer__col .site-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.site-footer__col .site-footer__social a {
  display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; color: var(--on-dark-75);
  transition: background-color .15s ease, border-color .15s ease;
}
.site-footer__col .site-footer__social a:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }
.site-footer__col .site-footer__social a:focus-visible { outline: 3px solid var(--beige); outline-offset: 3px; }
.site-footer__col .site-footer__social svg { inline-size: 20px; block-size: 20px; }
@media (prefers-reduced-motion: reduce) { .site-footer__social a { transition: none; } }

