/* Domotique Marrakech — design system & site stylesheet
   Identity taken from the logo: deep navy (house, lettering), signal orange (arcs, swoosh),
   on warm sand neutrals. Headings in Outfit (geometric, like the wordmark), text in Manrope. */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-wght.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

/* Tajawal (SIL OFL), Arabic glyphs only: Latin text in Arabic pages keeps the Latin fonts */
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-arabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-arabic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-arabic-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-arabic-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --navy-950: #041530;
  --navy-900: #062044;
  --navy-800: #0c2f5e;
  --navy-700: #16407a;
  --navy-100: #dfe7f3;
  --navy-50:  #f0f4fa;
  --orange-400: #ff9a3d;
  --orange-500: #ff7a0a;
  --orange-600: #f06a00;
  --orange-700: #b34a00;
  --orange-100: #ffe6cc;
  --orange-50:  #fff4e8;
  --ink: #071a36;
  --text: #46505f;
  --muted: #677180;
  --line: #e7e1d7;
  --line-cool: #dbe2ec;
  --bg: #ffffff;
  --bg-soft: #faf6f0;
  --wa: #0f7d42;
  --wa-dark: #0b6635;
  --success: #17794a;
  --danger: #b42318;

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Outfit", "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --container: 1220px;
  --gutter: 20px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(6, 32, 68, .06), 0 2px 6px rgba(6, 32, 68, .04);
  --shadow: 0 14px 34px -16px rgba(6, 32, 68, .22);
  --shadow-lg: 0 30px 70px -30px rgba(6, 32, 68, .45);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Concentric "signal" arcs of the logo, reused as a background motif */
  --arcs: radial-gradient(circle, transparent 0 118px, currentColor 119px 121px, transparent 122px 198px, currentColor 199px 201px, transparent 202px 288px, currentColor 289px 291px, transparent 292px 388px, currentColor 389px 391px, transparent 392px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 76px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--navy-700); text-decoration-color: var(--orange-500); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--orange-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.14; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.022em; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.55rem); }
h3 { font-size: 1.2rem; letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0 0 1.1em; }
ul, ol { padding-inline-start: 1.25rem; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--orange-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.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; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange-500); --btn-fg: var(--navy-950); --btn-border: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  font: inherit; font-family: var(--font-head); font-size: 1rem; font-weight: 600; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-border); border-radius: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--orange-400); color: var(--btn-fg); box-shadow: 0 12px 24px -12px rgba(255, 122, 10, .75); transform: translateY(-2px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease); }
.btn:hover .i-dir { transform: translateX(3px); }
.btn-lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.06rem; }
.btn-sm { min-height: 42px; padding: .5em 1.05em; font-size: .94rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-navy { --btn-bg: var(--navy-900); --btn-fg: #fff; }
.btn-navy:hover { --btn-bg: var(--navy-800); box-shadow: 0 12px 24px -12px rgba(6, 32, 68, .6); }
.btn-wa { --btn-bg: var(--wa); --btn-fg: #fff; }
.btn-wa:hover { --btn-bg: var(--wa-dark); box-shadow: 0 12px 24px -12px rgba(15, 125, 66, .7); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-cool); }
.btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: var(--ink); box-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-border: #fff; }
.btn-light:hover { --btn-bg: var(--orange-50); --btn-border: var(--orange-50); box-shadow: none; }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.4); }
.btn-outline-light:hover { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-border: #fff; box-shadow: none; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange-500); padding-bottom: 2px; }
.link-arrow:hover { color: var(--orange-700); }
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #b8c4d6; font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-list { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: inline-flex; align-items: center; gap: 7px; }
.topbar-tagline { color: #8f9db3; letter-spacing: .04em; }
.topbar svg { width: 15px; height: 15px; color: var(--orange-500); }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 1099px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
/* The translucent blur lives on a pseudo-element: a backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu and collapse it to the header's height */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .97); }
@supports (backdrop-filter: blur(8px)) { .site-header::before { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 26px -20px rgba(6, 32, 68, .55); }
.header-inner { position: relative; display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; text-decoration: none; margin-inline-end: auto; }
.brand img { width: auto; height: 50px; }
@media (max-width: 1099px) { .brand img { height: 42px; } }
@media (max-width: 380px) { .brand img { height: 36px; } }

.main-nav { align-self: stretch; display: flex; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; }
.nav-list > li { display: flex; align-items: center; }
.nav-list > li > a { display: block; padding: 9px 13px; border-radius: 10px; color: var(--ink); font-family: var(--font-head); font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav-list > li > a:hover { background: var(--navy-50); color: var(--ink); }
.nav-list > li > a[aria-current] { color: var(--orange-700); box-shadow: inset 0 -2px 0 var(--orange-500); border-radius: 10px 10px 0 0; }
.mega-toggle { display: inline-grid; place-items: center; width: 26px; height: 34px; margin-inline-start: -8px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.mega-toggle svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.has-mega.is-open .mega-toggle svg { transform: rotate(180deg); }

.mega { text-align: start; }
.mega-grid { display: grid; grid-template-columns: 1.5fr 1.25fr 1fr 1fr 1fr; gap: 8px 28px; }
.mega-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; }
.mega-title svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--orange-50); color: var(--orange-700); }
.mega-title:hover { color: var(--orange-700); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega ul a { display: block; padding: 6px 0; font-size: .93rem; line-height: 1.4; color: var(--text); text-decoration: none; }
.mega ul a:hover, .mega ul a[aria-current] { color: var(--orange-700); }
.mega-all { margin-top: 18px; font-size: .95rem; }

@media (min-width: 1100px) {
  .mega {
    position: absolute; inset-inline: 0; top: 100%; z-index: 60;
    padding: 28px 30px 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange-500);
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
    visibility: hidden; opacity: 0; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .has-mega:hover .mega-toggle svg { transform: rotate(180deg); }
}
@media (min-width: 1100px) and (max-width: 1240px) {
  .header-inner { gap: 14px; }
  .nav-list > li > a { padding-inline: 9px; font-size: .95rem; }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy-50); color: var(--navy-900); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.header-icon svg { width: 19px; height: 19px; }
.header-icon:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }
.header-icon.is-wa { background: #e5f5ec; color: var(--wa); }
.header-icon.is-wa:hover { background: var(--wa); color: #fff; }

.nav-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 46px; padding: 0 14px; background: var(--navy-900); color: #fff; border: 0; border-radius: 12px; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: .95rem; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav-extra { display: none; }

@media (max-width: 1099px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: block;
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 40px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 16px 4px; border-radius: 0; font-size: 1.15rem; }
  .nav-list > li > a:hover, .nav-list > li > a[aria-current] { background: none; box-shadow: none; }
  .mega-toggle { width: 48px; height: 48px; margin: 0; background: var(--navy-50); color: var(--ink); border-radius: 12px; }
  .mega-toggle svg { width: 20px; height: 20px; }
  .mega { display: none; flex-basis: 100%; padding: 4px 0 20px; }
  .has-mega.is-open > .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .mobile-nav-extra { display: grid; gap: 12px; margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) { .mega-grid { grid-template-columns: 1fr; } .header-icon { display: none; } }
@media (max-width: 420px) { .nav-toggle .label { display: none; } }

/* ---------- Mobile action bar ---------- */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -10px 26px -18px rgba(6, 32, 68, .5); gap: 8px; }
.mobile-cta .btn { flex: 1; min-height: 48px; padding-inline: .5em; font-size: .93rem; gap: .4em; }
@media (max-width: 767px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.nav-open .mobile-cta { display: none; }
}

/* ---------- Floating WhatsApp button (desktop and tablet; phones use the action bar) ---------- */
.fab { position: fixed; z-index: 44; bottom: calc(24px + env(safe-area-inset-bottom)); inset-inline-end: 22px; display: inline-flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 18px; border-radius: 18px; color: #fff; background: var(--wa); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .98rem; box-shadow: 0 14px 28px -10px rgba(4, 21, 48, .5); isolation: isolate; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.fab:hover { color: #fff; background: var(--wa-dark); transform: translateY(-3px); }
.fab svg { width: 24px; height: 24px; transform-origin: 50% 60%; animation: fab-ring 5s ease-in-out infinite; }
.fab::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: inherit; opacity: 0; animation: fab-halo 2.6s ease-out infinite; }
.fab:hover::before, .fab:hover svg { animation: none; }
@keyframes fab-halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.3, 1.55); opacity: 0; } }
@keyframes fab-ring { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-14deg); } 86% { transform: rotate(12deg); } 90% { transform: rotate(-8deg); } 94% { transform: rotate(5deg); } }
@media (max-width: 767px) { .fab { display: none; } }
body.nav-open .fab { display: none; }

/* ---------- Typography helpers ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--orange-700); margin: 0 0 16px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(255, 122, 10, .2); }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--text); }
.text-center { text-align: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 4rem + 3.4vw, 116px) 0; }
.section-tight { padding: clamp(44px, 3rem + 1.4vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: #b8c4d6; }
.section-navy::before { content: ""; position: absolute; z-index: -1; inset-inline-end: -320px; top: -320px; width: 800px; height: 800px; background: var(--arcs); color: rgba(255, 122, 10, .16); pointer-events: none; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 740px; margin: 0 0 clamp(32px, 2rem + 1vw, 54px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 2rem + .6vw, 44px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: clamp(36px, 2rem + 3vw, 84px) 0 clamp(36px, 2rem + 2vw, 64px); }
.hero::before { content: ""; position: absolute; z-index: -1; inset-inline-end: -260px; top: -300px; width: 860px; height: 860px; background: var(--arcs); color: rgba(255, 122, 10, .2); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .accent { color: var(--orange-600); }
.hero .lead { max-width: 580px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-call { font-size: .96rem; color: var(--muted); margin-bottom: 28px; }
.hero-call a { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hero-call a:hover { color: var(--orange-700); text-decoration: underline; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); }
.trust-list svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--orange-500); color: var(--navy-950); stroke-width: 3; }

.hero-visual { position: relative; padding: 0 0 9% 7%; }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow-lg); background: var(--navy-100); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.hero-photo img, .hero-photo-sm img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-sm { position: absolute; inset-inline-start: 0; bottom: 0; width: 44%; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); background: var(--navy-100); }
.hero-chips { list-style: none; margin: 0; padding: 0; }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 12px; max-width: 250px; padding: 11px 16px 11px 11px; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); font-size: .8rem; line-height: 1.35; color: var(--muted); animation: chip-float 7s ease-in-out infinite; }
@supports (backdrop-filter: blur(8px)) { .hero-chip { background: rgba(255,255,255,.82); backdrop-filter: blur(10px) saturate(1.3); } }
.hero-chip strong { display: block; font-family: var(--font-head); font-size: .95rem; font-weight: 600; }
.hero-chip > span:last-child { display: flex; flex-direction: column; }
.chip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-900); color: var(--orange-500); flex-shrink: 0; }
.chip-icon svg { width: 21px; height: 21px; }
.hero-chip-1 { top: 7%; inset-inline-end: -14px; }
.hero-chip-2 { top: 36%; inset-inline-start: -10px; animation-delay: -2.4s; }
.hero-chip-3 { bottom: 15%; inset-inline-end: -8px; animation-delay: -4.6s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text, .hero-visual { max-width: 660px; width: 100%; margin-inline: auto; }
  .hero-chip-1 { inset-inline-end: 8px; }
  .hero-chip-3 { inset-inline-end: 8px; }
}
@media (max-width: 575px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 0 0 12% 0; }
  .hero-photo-sm { inset-inline-start: 12px; width: 46%; border-width: 4px; }
  .hero-chip { padding: 8px 12px 8px 8px; font-size: .74rem; }
  .hero-chip strong { font-size: .86rem; }
  .chip-icon { width: 34px; height: 34px; border-radius: 10px; }
  .hero-chip-2 { display: none; }
  .hero-chip-3 { bottom: 4%; }
}

/* ---------- Category shortcuts ---------- */
.cat-strip { margin-top: clamp(36px, 4vw, 64px); }
.cat-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat-strip a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .84rem; line-height: 1.35; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.cat-strip a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange-500); }
.cat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--navy-900); color: var(--orange-500); flex-shrink: 0; transition: background-color .2s, color .2s; }
.cat-icon svg { width: 23px; height: 23px; }
.cat-strip a:hover .cat-icon { background: var(--orange-500); color: var(--navy-950); }
.cat-text { display: flex; flex-direction: column; min-width: 0; }
.cat-text strong { font-family: var(--font-head); font-size: 1rem; font-weight: 600; }
@media (max-width: 1099px) {
  .cat-strip { margin-inline: calc(var(--gutter) * -1); }
  .cat-strip ul { display: flex; overflow-x: auto; padding: 4px var(--gutter) 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .cat-strip ul::-webkit-scrollbar { display: none; }
  .cat-strip li { flex: 0 0 auto; width: min(260px, 72vw); scroll-snap-align: start; }
}
/* Compact variant: pills only (sticky sub-navigation, 404 page) */
.cat-strip.is-compact { margin-top: 0; }
.cat-strip.is-compact ul { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 0; scrollbar-width: none; }
.cat-strip.is-compact ul::-webkit-scrollbar { display: none; }
.cat-strip.is-compact li { flex: 0 0 auto; width: auto; }
.cat-strip.is-compact a { padding: 6px 16px 6px 6px; gap: 10px; border-radius: 999px; }
.cat-strip.is-compact .cat-icon { width: 34px; height: 34px; border-radius: 50%; }
.cat-strip.is-compact .cat-icon svg { width: 18px; height: 18px; }
.cat-strip.is-compact .cat-text span { display: none; }
.cat-strip.is-compact .cat-text strong { font-size: .95rem; white-space: nowrap; }
@media (max-width: 1099px) { .cat-strip.is-compact { margin-inline: calc(var(--gutter) * -1); } .cat-strip.is-compact ul { padding-inline: var(--gutter); } }
.not-found .cat-strip { margin-top: 40px; }
.not-found .cat-strip.is-compact ul { flex-wrap: wrap; justify-content: center; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); padding: 12px 0; }
@supports (backdrop-filter: blur(8px)) { .subnav { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); } }
.anchor-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a, .chip-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font-head); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.anchor-nav a:hover, .chip-links a:hover { border-color: var(--orange-500); background: var(--orange-50); color: var(--ink); }
.anchor-nav svg, .chip-links svg { width: 18px; height: 18px; color: var(--orange-700); }
@media (max-width: 1099px) { .anchor-nav { margin-inline: calc(var(--gutter) * -1); } .anchor-nav ul { padding-inline: var(--gutter); } }
.chip-links { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-label { font-family: var(--font-head); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 10px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--navy-900); color: #c3cee0; overflow: hidden; padding: clamp(40px, 2rem + 3.4vw, 88px) 0; }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset-inline-start: -380px; bottom: -420px; width: 860px; height: 860px; background: var(--arcs); color: rgba(255, 122, 10, .2); pointer-events: none; }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(22, 64, 122, .7), transparent 70%); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.page-hero:not(.has-image) .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero-media { position: relative; border-radius: var(--radius-lg); aspect-ratio: 4/3; }
.page-hero-media::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: inherit; border: 2px solid var(--orange-500); opacity: .8; }
.page-hero-media img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 34px 60px -34px rgba(0,0,0,.7); background: var(--navy-800); }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-media { aspect-ratio: 16/9; max-width: 640px; margin-inline-end: 14px; }
}
.page-hero h1 { color: #fff; max-width: 820px; margin-bottom: .35em; font-size: clamp(2rem, 1.3rem + 2.5vw, 3.1rem); }
.page-hero .lead { color: #c3cee0; max-width: 640px; margin-bottom: 0; }
.page-hero .kicker, .section-navy .kicker, .cta-box .kicker { color: var(--orange-400); }
.page-hero .lead a { color: #fff; font-weight: 700; white-space: nowrap; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 575px) { .page-hero-actions .btn { flex: 1 1 auto; } }

.breadcrumb { margin: 0 0 20px; font-size: .86rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: #94a3ba; }
.breadcrumb li + li::before { content: "/"; color: #5f7391; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 640px) { .breadcrumb li[aria-current] { display: none; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(18px, 1rem + .8vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 16/10; background: var(--navy-50); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.card-icon { position: absolute; inset-inline-start: 20px; bottom: -22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--orange-500); color: var(--navy-950); box-shadow: 0 0 0 4px #fff; transition: transform .25s var(--ease); }
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 36px 22px 24px; }
.card-tag { align-self: flex-start; margin-bottom: 8px; font-family: var(--font-head); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--orange-700); }
.card-title { font-size: 1.2rem; margin-bottom: 10px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-text { flex: 1; font-size: .96rem; margin-bottom: 18px; }
.card .link-arrow { position: relative; z-index: 2; align-self: flex-start; font-size: .95rem; }
.card:focus-within { box-shadow: 0 0 0 3px var(--orange-500); }
.card:focus-within a:focus-visible { outline: none; }

/* Last card alone on its row (13 services in 3 columns): it becomes a full-width banner */
@media (min-width: 992px) {
  #service-cards > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; }
  #service-cards > .card:last-child:nth-child(3n+1) .card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 250px; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
  #service-cards > .card:last-child:nth-child(3n+1) .card-icon { inset-inline-start: auto; inset-inline-end: -24px; bottom: auto; top: 28px; }
  #service-cards > .card:last-child:nth-child(3n+1) .card-body { justify-content: center; padding: 32px 40px 32px 52px; }
  #service-cards > .card:last-child:nth-child(3n+1) .card-title { font-size: 1.5rem; }
  #service-cards > .card:last-child:nth-child(3n+1) .card-text { flex: 0 1 auto; max-width: 560px; font-size: 1.02rem; }
  [dir="rtl"] #service-cards > .card:last-child:nth-child(3n+1) .card-media { border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0; }
}
/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filters button svg { width: 18px; height: 18px; color: var(--orange-700); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filters button[aria-pressed="true"] svg { color: var(--orange-500); }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; white-space: nowrap; }
}

/* ---------- Places (solutions by type of place) ---------- */
.place-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; }
.place-grid li:first-child { grid-column: span 2; }
.place-card { position: relative; display: block; height: 100%; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy-900); isolation: isolate; }
.place-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.place-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 21, 48, .92) 0%, rgba(4, 21, 48, .35) 48%, rgba(4, 21, 48, 0) 75%); }
.place-card:hover img { transform: scale(1.06); }
.place-card:hover { color: #fff; }
.place-body { position: absolute; z-index: 1; inset-inline: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; line-height: 1.35; color: #d3dcea; }
.place-body strong { font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; line-height: 1.25; color: #fff; }
.place-body strong::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--orange-500); transition: width .3s var(--ease); }
.place-card:hover .place-body strong::after { width: 56px; }
@media (max-width: 991px) {
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .place-grid li:first-child { grid-column: span 2; }
}
@media (max-width: 480px) { .place-grid { grid-auto-rows: 180px; gap: 12px; } .place-body strong { font-size: 1.1rem; } .place-body > span { display: none; } }

/* ---------- Tiles (compact links to services and categories) ---------- */
.tile-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.tile:hover { border-color: var(--orange-500); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--orange-50); color: var(--orange-700); flex-shrink: 0; transition: background-color .2s, color .2s; }
.tile-icon svg { width: 24px; height: 24px; }
.tile:hover .tile-icon { background: var(--orange-500); color: var(--navy-950); }
.tile-body { display: flex; flex-direction: column; gap: 3px; font-size: .92rem; line-height: 1.45; min-width: 0; }
.tile-body strong { font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; }
.tile > svg:last-child { width: 18px; height: 18px; color: var(--muted); margin-inline-start: auto; }
@media (max-width: 767px) { .tile-list { grid-template-columns: 1fr; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 84px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .photo-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); background: var(--navy-50); }
.split-media .photo-main img, .split-media .photo-inset img { width: 100%; height: 100%; object-fit: cover; }
.split-media .photo-inset { position: absolute; inset-inline-end: -24px; bottom: -32px; width: 42%; border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.split.reverse .split-media .photo-inset { inset-inline-end: auto; inset-inline-start: -24px; }
@media (max-width: 991px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media .photo-inset, .split.reverse .split-media .photo-inset { inset-inline: auto 12px; bottom: -22px; width: 36%; }
}
.place-section { scroll-margin-top: calc(var(--header-h) + 60px); }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 36px; color: var(--ink); font-weight: 500; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--orange-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23041530' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.500l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }

/* ---------- Features (commitments) ---------- */
.feature { position: relative; padding: 28px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.feature::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--orange-500); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature:hover::after { transform: scaleX(1); }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-900); color: var(--orange-500); margin-bottom: 20px; }
.feature-icon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; }
.feature p { font-size: .96rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--orange-500); color: var(--navy-950); font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { font-size: .95rem; margin: 0; color: #b8c4d6; }
@media (max-width: 991px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-50); }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px; font-size: .86rem; font-weight: 600; color: #fff; line-height: 1.35; background: linear-gradient(0deg, rgba(4, 21, 48, .9), rgba(4, 21, 48, 0)); }
@media (max-width: 991px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; } .gallery figure.wide, .gallery figure.tall { grid-column: auto; grid-row: auto; } }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 18px; align-items: start; }
.video-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--navy-950); }
.video-card.is-landscape video { object-fit: contain; }
.video-card figcaption { padding: 12px 16px; font-size: .93rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
@media (max-width: 767px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(48px, 3rem + 2vw, 88px) 0; background: var(--bg-soft); }
.cta-box { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: center; padding: clamp(30px, 4vw, 60px); border-radius: var(--radius-lg); background: var(--navy-900); color: #b8c4d6; }
.cta-box::before { content: ""; position: absolute; z-index: -1; inset-inline-end: -330px; top: -330px; width: 800px; height: 800px; background: var(--arcs); color: rgba(255, 122, 10, .22); }
.cta-box h2 { color: #fff; margin-bottom: .35em; }
.cta-box p { margin: 0; }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.cta-actions .btn { width: 100%; }
.cta-meta { font-size: .88rem; text-align: center; color: #94a3ba; margin: 4px 0 0; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; } }

/* ---------- Content layout (service pages) ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(32px, 4vw, 68px); align-items: start; }
@media (max-width: 991px) { .content-layout { grid-template-columns: 1fr; } }
.prose { max-width: 780px; font-size: 1.05rem; }
.prose.center { margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul:not(.check-list), .prose ol { margin: 0 0 1.4em; display: grid; gap: .45em; }
.prose li::marker { color: var(--orange-600); }
.prose .check-list { margin: 0 0 1.5em; gap: 10px; }
.prose .check-list li { font-weight: 400; color: var(--text); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption, .fig-note { font-size: .9rem; color: var(--muted); margin-top: 12px; padding-inline-start: 14px; border-inline-start: 3px solid var(--orange-500); }
.fig-note { margin: 0 0 1.6em; }
.prose .intro { font-size: 1.18rem; color: var(--ink); line-height: 1.65; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2em 0; }
.figure-pair img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 480px) { .figure-pair { grid-template-columns: 1fr; } }

.facts-box { margin: 1.8em 0 0; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); border-inline-start: 4px solid var(--orange-500); }
.facts-title { font-family: var(--font-head); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--orange-700); margin: 0 0 12px; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 6px 18px; }
.facts dt { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; font-size: .98rem; }
@media (max-width: 575px) { .facts > div { grid-template-columns: 1fr; gap: 0; } }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 991px) { .sidebar { position: static; } }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.side-card h2 { font-size: 1.2rem; margin-bottom: 10px; }
.side-card p { font-size: .95rem; }
.side-card.is-navy { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); border-color: var(--navy-900); color: #b8c4d6; }
.side-card.is-navy::before { content: ""; position: absolute; z-index: -1; inset-inline-end: -420px; top: -420px; width: 800px; height: 800px; background: var(--arcs); color: rgba(255, 122, 10, .2); }
.side-card.is-navy h2 { color: #fff; }
.side-card .btn { width: 100%; margin-top: 10px; }
.side-card > .link-arrow { margin-top: 14px; font-size: .93rem; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.35; text-decoration: none; }
.side-nav a > span { flex: 1; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--orange-700); }
.side-nav svg { width: 20px; height: 20px; color: var(--orange-700); }
.side-nav svg:last-child { width: 15px; height: 15px; color: var(--muted); }
.related { border-top: 1px solid var(--line); }

table.specs { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.2em 0 1.6em; font-size: .97rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
table.specs th, table.specs td { text-align: start; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }
table.specs th { background: var(--bg-soft); width: 38%; color: var(--ink); font-family: var(--font-head); font-weight: 600; }
table.specs td { overflow-wrap: anywhere; }
@media (max-width: 480px) { table.specs th, table.specs td { display: block; width: 100%; } table.specs th { border-bottom: 0; padding-bottom: 2px; } }

/* ---------- Service categories (listing page) ---------- */
.cat-section { scroll-margin-top: calc(var(--header-h) + 60px); }
.cat-head { display: flex; gap: 22px; align-items: flex-start; max-width: 820px; }
.cat-badge { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--navy-900); color: var(--orange-500); flex-shrink: 0; }
.cat-badge svg { width: 32px; height: 32px; }
@media (max-width: 575px) { .cat-head { flex-direction: column; gap: 16px; } .cat-badge { width: 56px; height: 56px; border-radius: 16px; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-layout .section-head { margin: 0; position: sticky; top: calc(var(--header-h) + 28px); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--orange-500); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.08rem; font-weight: 600; }
.faq-item summary svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--navy-50); color: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); background: var(--orange-500); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 991px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange-500); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 42px); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.form-card h2 { font-size: clamp(1.45rem, 1.2rem + .7vw, 1.9rem); margin-bottom: .3em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 575px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .93rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field .optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #cdd5e0; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346505f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-inline-end: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #94a3ba; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-600); box-shadow: 0 0 0 4px rgba(255, 122, 10, .2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.15); }
.field-error { display: block; margin-top: 6px; font-size: .87rem; font-weight: 600; color: var(--danger); }
.field-error:empty { display: none; }
.captcha-q { white-space: nowrap; color: var(--orange-700); font-variant-numeric: tabular-nums; }
.captcha-row { display: flex; gap: 10px; max-width: 260px; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-refresh { flex-shrink: 0; width: 52px; display: grid; place-items: center; cursor: pointer; background: var(--navy-50); color: var(--ink); border: 1px solid var(--line-cool); border-radius: 12px; }
.captcha-refresh:hover { background: var(--orange-50); color: var(--orange-700); }
.captcha-refresh svg { width: 20px; height: 20px; }
.field-hint { margin: 8px 0 0; font-size: .87rem; color: var(--muted); }
.check-field { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field.check-field input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--orange-600); cursor: pointer; }
.field.check-field label { margin: 0; font-weight: 500; line-height: 1.5; cursor: pointer; }
.check-field .field-error { grid-column: 2; margin-top: 0; }
.check-field input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; flex: 1 1 240px; }
.form-status { display: none; margin-top: 20px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .96rem; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e7f6ee; color: #0f5c37; border: 1px solid #b8e2cb; }
.form-status.is-error { background: #fdecea; color: #8a1c13; border: 1px solid #f5c2bc; }

.aside-title { font-size: 1.3rem; margin-bottom: 16px; }
.quick-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (max-width: 400px) { .quick-contact { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-item .info-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-700); flex-shrink: 0; }
.info-item .info-icon svg { width: 22px; height: 22px; }
.info-item .info-label { display: block; font-family: var(--font-head); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.info-item .info-value { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.info-item .info-value.is-text { font-weight: 500; font-size: .93rem; line-height: 1.55; color: var(--text); }
.info-item a.info-value { text-decoration: none; }
.info-item a.info-value:hover { color: var(--orange-700); text-decoration: underline; }
.tips-box { margin-top: 16px; padding: 20px 22px 4px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.tips-box h3 { font-size: 1.05rem; margin-bottom: 14px; }
.tips-box .check-list li { font-size: .94rem; font-weight: 500; }
.map-embed { margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--bg-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-actions { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fadc2; font-size: .94rem; }
.footer-main { padding: clamp(48px, 3rem + 2vw, 84px) 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1.7fr .7fr 1.15fr; gap: 44px; }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }
.site-footer h2 { font-family: var(--font-head); color: #fff; font-size: .84rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 18px; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand img { height: 54px; }
.site-footer a { color: #d3dcea; text-decoration: none; }
.site-footer a:hover { color: var(--orange-400); }
.site-footer .btn { color: var(--btn-fg); }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links.cols-2 { display: block; columns: 2; column-gap: 28px; }
.footer-links.cols-2 li { break-inside: avoid; padding-bottom: 10px; line-height: 1.4; }
@media (max-width: 420px) { .footer-links.cols-2 { columns: 1; } }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; color: var(--orange-500); margin-top: 4px; }
.footer-areas { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.09); }
.footer-areas h2 { margin-bottom: 8px; }
.footer-areas p { margin: 0; font-size: .9rem; max-width: 900px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0 28px; font-size: .86rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.footer-bottom .credit { flex-basis: 100%; font-size: .8rem; color: #7f8ea6; }
.footer-bottom .credit a { color: #c3cee0; font-weight: 700; }
@media (min-width: 768px) and (max-width: 1599px) { .footer-bottom { padding-inline-end: 0; } .footer-bottom .container { padding-inline-end: 190px; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; max-width: 760px; margin: 0 auto; }
.not-found .btn-row { justify-content: center; }

/* ---------- Language switcher (top bar, mobile menu, footer) ---------- */
.lang-switch { list-style: none; margin: 0; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 34px; min-height: 30px; padding: 0 5px; border-radius: 6px; text-decoration: none; transition: background-color .2s; }
.lang-switch .flag { display: block; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.25); opacity: .7; transition: opacity .2s; }
.lang-switch .flag svg { display: block; width: 100%; height: 100%; }
.lang-switch a:hover .flag, .lang-switch a[aria-current] .flag { opacity: 1; }
.lang-switch a[aria-current] .flag { box-shadow: 0 0 0 2px var(--orange-500); }
.topbar .lang-switch a:hover, .footer-bottom .lang-switch a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.mobile-nav-extra .lang-switch { justify-content: center; gap: 10px; margin-top: 8px; }
.mobile-nav-extra .lang-switch a { min-width: 54px; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; }
.mobile-nav-extra .lang-switch .flag { width: 28px; height: 19px; opacity: 1; box-shadow: 0 0 0 1px rgba(7, 26, 54, .15); }
.mobile-nav-extra .lang-switch a[aria-current] { border-color: var(--orange-500); box-shadow: 0 0 0 2px var(--orange-500); }
.mobile-nav-extra .lang-switch a[aria-current] .flag { box-shadow: 0 0 0 1px rgba(7, 26, 54, .15); }
.footer-bottom .lang-switch { flex-basis: 100%; }

/* ---------- Right-to-left (Arabic) ---------- */
html[lang="ar"] { --font: "Tajawal", "Manrope", "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; --font-head: "Tajawal", "Outfit", "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; }
html[lang="ar"] body { font-size: 1.06rem; line-height: 1.85; }
/* Letter-spacing breaks the joining of Arabic letters; uppercase has no meaning in Arabic */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; font-weight: 800; }
html[lang="ar"] .kicker, html[lang="ar"] .card-tag, html[lang="ar"] .site-footer h2, html[lang="ar"] .info-label, html[lang="ar"] .facts-title, html[lang="ar"] .chip-label { text-transform: none; font-size: .92rem; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg, [dir="rtl"] .btn:hover .i-dir { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .field select { background-position: left 12px center; }
[dir="rtl"] .breadcrumb li + li::before { content: "\\"; }
[dir="rtl"] .feature::after { transform-origin: right; }
[dir="rtl"] .page-hero-media::before { inset: 18px 18px -14px -14px; }
[dir="rtl"] .page-hero::after { background: radial-gradient(60% 80% at 0% 0%, rgba(22, 64, 122, .7), transparent 70%); }
/* In RTL the scrollable overflow is on the left: park the honeypot on the right instead */
[dir="rtl"] .hp-field { left: auto; right: -9999px; }
/* Phone numbers keep their left-to-right digit groups inside Arabic text */
[dir="rtl"] a[href^="tel:"]:not(.btn):not(.header-icon) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Cards of a grid appear one after the other */
.js .grid > .reveal:nth-child(3n+2), .js .tile-list > .reveal:nth-child(2n), .js .steps > .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid > .reveal:nth-child(3n), .js .steps > .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps > .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .tile:hover, .feature:hover, .cat-strip a:hover, .fab:hover { transform: none; }
  .fab::before { opacity: 0; }
}

@media print {
  .topbar, .site-header, .subnav, .mobile-cta, .fab, .cta-band, .site-footer, .sidebar { display: none !important; }
  body { padding: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
