/* Heaven of Web — public site styles
   Brand: navy #041C32, coral #FF4848, grey #DBDBDB. Fonts: Poppins (latin), Cairo (arabic). */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/poppins-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: Cairo; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cairo-arabic-400.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: Cairo; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cairo-arabic-600.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: Cairo; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/cairo-arabic-700.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: Cairo; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/cairo-arabic-800.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; }

/* ---------- Tokens (light theme only) ---------- */
:root {
  --navy: #041C32;
  --navy-2: #0B2A47;
  --navy-3: #133A5E;
  --coral: #FF4848;          /* accents, icons, large text */
  --coral-btn: #D9363A;      /* buttons: white text stays readable (4.6:1) */
  --coral-text: #D63333;     /* small coral text on white */
  --grey: #DBDBDB;

  --bg: #FFFFFF;
  --tint: #F2F6FA;
  --surface: #FFFFFF;
  --text: #0E2238;
  --muted: #5B6B7C;
  --line: #E3E9EF;
  --bubble: #EAF1F8;
  --shadow-sm: 0 10px 30px -18px rgba(4, 28, 50, .28);
  --shadow: 0 28px 60px -30px rgba(4, 28, 50, .35);

  --font: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: Cairo, Tahoma, "Segoe UI", sans-serif;

  --step--1: clamp(.84rem, .8rem + .15vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.12rem, 1.04rem + .35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.45rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.2rem);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 8vw, 8rem);
  --radius: 18px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 82px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); overflow-x: clip; } /* on html too: otherwise body's value moves to the viewport and body stops clipping (mobile pages grew wider) */
html:not(.lenis) { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; color: var(--navy); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 3px solid var(--coral-text); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--coral-btn); color: #fff; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Large screens: wider content and slightly larger type (rem-based sizes scale with the root font size) */
:root { --container: 1240px; }
@media (min-width: 1440px) { :root { --container: 1320px; } }
@media (min-width: 1680px) { :root { --container: 1480px; } html { font-size: 103.125%; } }
@media (min-width: 1920px) { :root { --container: 1640px; } html { font-size: 109.375%; } }
@media (min-width: 2400px) { :root { --container: 1920px; } html { font-size: 125%; } }
@media (min-width: 3000px) { :root { --container: 2240px; } html { font-size: 143.75%; } }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.accent { color: var(--coral); }

/* ---------- Scrollbars (brand colours) ----------
   Chrome/Edge/Safari use the ::-webkit-scrollbar rules; Firefox uses scrollbar-color/width.
   The page bar is a slim navy pill that turns coral on hover; inner scroll areas get a thinner version. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #EEF2F6; }
::-webkit-scrollbar-thumb { border: 3px solid #EEF2F6; border-radius: 999px; background: linear-gradient(180deg, var(--navy-3), var(--navy)); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #FF6A6A, var(--coral-btn)); }
::-webkit-scrollbar-thumb:active { background: var(--coral-btn); }
::-webkit-scrollbar-corner { background: #EEF2F6; }
.select-list::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 8px; }
.select-list::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track { background: transparent; }
.select-list::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb { border: 2px solid #fff; background: #C5D0DB; }
.select-list::-webkit-scrollbar-thumb:hover, textarea::-webkit-scrollbar-thumb:hover { background: var(--coral); }
.menu-panel::-webkit-scrollbar { width: 6px; }
.menu-panel::-webkit-scrollbar-track { background: transparent; }
.menu-panel::-webkit-scrollbar-thumb { border: 0; background: rgba(255, 255, 255, .25); }
/* Phones and tablets: no visible page scrollbar (touch scrolling needs none, and a styled one would take width). */
@media (max-width: 899px), (pointer: coarse) {
  html { scrollbar-width: none; }
  ::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
/* Firefox (no ::-webkit-scrollbar support): standard properties. Kept out of Chrome, where they would override the styles above. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--navy-3) #EEF2F6; scrollbar-width: thin; }
  .select-list, textarea { scrollbar-width: thin; scrollbar-color: #C5D0DB transparent; }
  .menu-panel { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: .7em 1.4em; border: 1.5px solid transparent; border-radius: 10px;
  background: transparent; color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease-out);
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--coral-btn); color: #fff; box-shadow: 0 12px 26px -14px rgba(217, 54, 58, .9); }
.btn-primary:hover { background: #C42E32; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: .85em 1.6em; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); transition: border-color .2s, background-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn .icon { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--coral-text); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: translateX(-4px); }

/* ---------- Eyebrow & section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--coral); border-radius: 2px; transform-origin: left; }
[dir="rtl"] .eyebrow::before { transform-origin: right; }
[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.eyebrow-light { color: #fff; }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * .6); }
.tint { background: var(--tint); }
.section-head { max-width: 45rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.55rem); letter-spacing: -.02em; }
[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.4; }
.section-title-sm { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 20px; }
.section-intro { margin-top: 14px; color: var(--muted); font-size: var(--step-1); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head-row .section-head { margin-bottom: 0; }
.lead { font-size: var(--step-1); color: var(--muted); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-inline-start: 1.3em; }
.prose a { color: var(--coral-text); }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist .icon { width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%; background: rgba(255, 72, 72, .12); color: var(--coral-text); stroke-width: 2.4; }
.icon-bubble { display: inline-grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 14px; background: var(--bubble); color: var(--navy); transition: background-color .3s, color .3s, transform .45s var(--ease-out); }
.icon-bubble .icon { width: 26px; height: 26px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--navy); color: #fff; pointer-events: none;
  animation: preloader-auto-hide .6s 4s forwards; /* safety net if JS never runs (opacity only: GPU-composited) */
}
.no-preload .preloader { display: none; }
.preloader.is-done { opacity: 0; transform: translateY(-3%); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.preloader-mark { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }
.preloader-mark img { width: 64px; animation: preloader-pulse 1.6s ease-in-out infinite; }
.preloader-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 260; animation: preloader-spin 1.2s linear infinite; }
.preloader-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; font-family: var(--font); }
.preloader-name span { color: var(--coral); }
.preloader-bar { position: relative; width: 160px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.preloader-bar span { position: absolute; inset: 0; background: var(--coral); transform-origin: left; animation: preloader-bar 1.6s var(--ease-out) forwards; }
@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-pulse { 50% { transform: scale(1.06); } }
@keyframes preloader-bar { from { transform: scaleX(0); } to { transform: scaleX(.9); } }
@keyframes preloader-auto-hide { to { opacity: 0; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; color: var(--navy); transition: background-color .35s, box-shadow .35s, height .35s, transform .45s var(--ease-out); }
.has-hero .site-header:not(.is-scrolled) { color: #fff; }
.site-header.is-scrolled, body:not(.has-hero) .site-header { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -20px rgba(4, 28, 50, .35); }
.site-header.is-scrolled { height: 70px; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 48px; height: auto; }
/* Two logo versions: light (for the navy hero) and dark (for white backgrounds) */
.brand .logo-on-dark { display: none; }
.has-hero .site-header:not(.is-scrolled) .logo-on-dark { display: block; }
.has-hero .site-header:not(.is-scrolled) .logo-on-light { display: none; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 160px; height: auto; }
.brand-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; font-family: var(--font); }
.brand-name span { color: var(--coral); font-weight: 600; }
.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; gap: 6px; }
.main-nav a { position: relative; display: block; padding: 8px 12px; font-size: .92rem; font-weight: 500; text-decoration: none; opacity: .85; transition: opacity .2s; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--coral); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a.is-active::after, .main-nav a:hover::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid currentColor; border-radius: 999px; cursor: pointer; font-size: .82rem; font-weight: 600; opacity: .9; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .icon { width: 17px; height: 17px; }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; font-size: .92rem; }
.lang-menu a:hover { background: var(--tint); }
.lang-menu a[aria-current] { color: var(--coral-text); font-weight: 600; }

/* Mobile and tablet: slim top bar + menu button opening a bottom sheet */
.menu-toggle { display: none; }
.menu-sheet[hidden] { display: none; }
@media (max-width: 1023px) {
  :root { --header-h: 66px; }
  .main-nav, .header-cta, .lang-menu { display: none; }
  .header-inner { justify-content: space-between; }
  .site-header.is-hidden { transform: none; }
  .site-header.is-scrolled { height: 66px; }
  .menu-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 14px; background: transparent; color: inherit; opacity: .9; transition: background-color .25s, transform .3s var(--ease-out); }
  .site-header.is-scrolled .menu-toggle, body:not(.has-hero) .menu-toggle { border-color: var(--line); background: #fff; box-shadow: var(--shadow-sm); color: var(--navy); }
  .menu-toggle:active { transform: scale(.94); }
  .menu-toggle .icon { width: 22px; height: 22px; }
}
.menu-sheet { position: fixed; inset: 0; z-index: 120; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(2, 12, 24, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s ease; }
.menu-panel {
  position: absolute; inset: auto 0 0; max-height: calc(100svh - 40px); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0; color: #fff;
  background: radial-gradient(120% 70% at 50% 0%, #0E3A63 0%, transparent 70%), linear-gradient(180deg, #0A2A4A 0%, var(--navy) 100%);
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .5);
  transform: translateY(100%); transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  touch-action: pan-y;
}
.menu-sheet.is-open .menu-backdrop { opacity: 1; }
.menu-sheet.is-open .menu-panel { transform: translateY(var(--drag, 0px)); }
.menu-sheet.is-dragging .menu-panel { transition: none; }
.menu-handle, .menu-head { touch-action: none; }
.menu-handle { display: block; width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 99px; background: rgba(255, 255, 255, .3); cursor: grab; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menu-head .brand { color: #fff; }
.menu-head .brand-name { display: inline; }
.menu-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; }
.menu-close .icon { width: 20px; height: 20px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 96px; padding: 14px 6px;
  border-radius: 18px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; text-align: center; line-height: 1.25;
  transition: background-color .25s, transform .3s var(--ease-out); -webkit-tap-highlight-color: transparent;
}
.menu-grid a .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.menu-grid a:hover, .menu-grid a:focus-visible { background: rgba(255, 255, 255, .06); }
.menu-grid a:active { transform: scale(.95); }
.menu-grid a.is-active { background: rgba(255, 255, 255, .1); color: #9CC7FF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.menu-grid a.is-active .icon { color: #9CC7FF; }
.menu-sheet.is-open .menu-grid li { animation: menu-tile .5s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(120ms + var(--i) * 35ms); }
@keyframes menu-tile { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.menu-langs { display: flex; justify-content: center; gap: 6px; margin: 14px 0 16px; }
.menu-langs a { display: block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .86rem; font-weight: 500; }
.menu-langs a[aria-current] { background: #fff; color: var(--navy); border-color: #fff; font-weight: 600; }
.menu-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 16px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; transition: transform .3s var(--ease-out); }
.menu-cta .icon { width: 18px; height: 18px; color: var(--coral-text); }
.menu-cta:active { transform: scale(.98); }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .menu-sheet { display: none !important; } }
@media (max-width: 420px) { .brand-name { display: none; } .menu-head .brand-name { display: inline; } }


/* ---------- Hero (photo + navy overlay) ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 140px; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: -6% 0 0; z-index: -3; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(4, 28, 50, .96) 0%, rgba(4, 28, 50, .88) 42%, rgba(4, 28, 50, .55) 75%, rgba(4, 28, 50, .45) 100%); }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(4, 28, 50, .96) 0%, rgba(4, 28, 50, .88) 42%, rgba(4, 28, 50, .55) 75%, rgba(4, 28, 50, .45) 100%); }
.hero-visual { position: absolute; z-index: -1; top: 50%; inset-inline-end: -2vw; width: min(46vw, 42rem); aspect-ratio: 1.05; transform: translateY(-54%); cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.2s ease; }
.hero-visual.globe-ready { opacity: 1; }
.hero-visual:active { cursor: grabbing; }
.hero-visual canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-inner { position: relative; }
.hero-title { display: grid; gap: 14px; max-width: 47.5rem; color: #fff; }
.hero-brand { font-size: var(--step-4); font-weight: 800; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.hero-tagline { display: block; max-width: 30ch; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 600; line-height: 1.3; color: #fff; }
.hero-tagline-lg { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
[lang="ar"] .hero-brand, [lang="ar"] .hero-tagline-lg { letter-spacing: 0; line-height: 1.3; }
.hero-sub { max-width: 40em; margin-top: 18px; color: rgba(255, 255, 255, .8); font-size: var(--step-0); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-wave { position: absolute; inset: auto 0 -1px; z-index: 1; width: 100%; height: clamp(50px, 8vw, 110px); fill: var(--bg); }
.hero-page { min-height: min(78svh, 680px); padding-bottom: 130px; }
.hero-compact { min-height: min(60svh, 520px); }
.hero .breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: var(--step--1); color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
@media (max-width: 899px) {
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .hero-visual { top: calc(var(--header-h) - 20px); inset-inline-end: 50%; width: min(110vw, 560px); transform: translateX(50%); }
  [dir="rtl"] .hero-visual { transform: translateX(-50%); }
  .hero-visual.globe-ready { opacity: .45; }
  /* Phones: the 3D logo is not loaded; a still image of the mark takes its place. */
  .hero-visual { background: url(../img/brand/mark-light-hero.webp) center 30% / 82% auto no-repeat; opacity: .3; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 28, 50, .75) 0%, rgba(4, 28, 50, .92) 55%, rgba(4, 28, 50, .97) 100%); }
}

/* ---------- Highlights strip (overlaps the hero) ---------- */
.highlights { position: relative; z-index: 2; margin-top: clamp(-90px, -6vw, -40px); }
.highlight-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.highlight { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); font-weight: 500; font-size: .92rem; line-height: 1.4; color: var(--navy); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.highlight:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.highlight-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; color: var(--navy); }
.highlight-icon .icon { width: 30px; height: 30px; stroke-width: 1.5; }
@media (max-width: 1023px) { .highlight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) { .highlight-list { grid-template-columns: 1fr; gap: 10px; } .highlight { padding: 14px 16px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-text .section-head { margin-bottom: 22px; }
.about-text .prose { margin-bottom: 30px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 34px; }
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, #fff 40%, var(--tint)); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.stat::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 20px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--coral), #FF8A6B); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat dd { display: flex; align-items: baseline; color: var(--navy); font-size: clamp(2rem, 1.4rem + 1.8vw, 2.8rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-suffix { margin-inline-start: 2px; color: var(--coral); font-size: .7em; }
.stat dt { color: var(--muted); font-size: .86rem; font-weight: 500; line-height: 1.35; }
.about-media { position: relative; }
.about-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--bubble); border-radius: var(--radius-lg); z-index: -1; }
[dir="rtl"] .about-media::before { inset: 22px 22px -22px -22px; }
.about-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--tint); box-shadow: var(--shadow); }
.float-card { position: absolute; inset-inline-start: clamp(12px, 6%, 40px); bottom: -26px; display: flex; align-items: center; gap: 14px; max-width: 320px; padding: 14px 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.float-card strong { display: block; font-size: .95rem; color: var(--navy); }
.float-card small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.float-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255, 72, 72, .12); color: var(--coral-text); }
@media (max-width: 899px) { .about-grid { grid-template-columns: 1fr; } .about-media { max-width: 520px; margin-bottom: 30px; } }

/* ---------- Service cards ---------- */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.service-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover .icon-bubble { background: var(--coral); color: #fff; transform: rotate(-6deg); }
.service-card h3 { margin-top: 22px; font-size: 1.15rem; font-weight: 600; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card p { margin-top: 10px; color: var(--muted); font-size: .95rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--coral-text); font-weight: 600; font-size: .9rem; }
.card-link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.service-card:hover .card-link .icon { transform: translateX(4px); }
[dir="rtl"] .service-card:hover .card-link .icon { transform: translateX(-4px); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; counter-reset: step; }
.process-step { position: relative; }
.process-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--coral); color: #fff; box-shadow: 0 14px 28px -14px rgba(255, 72, 72, .9); }
.process-icon.is-navy { background: var(--navy-3); box-shadow: 0 14px 28px -14px rgba(4, 28, 50, .8); }
.process-icon .icon { width: 28px; height: 28px; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 34px; inset-inline-start: 84px; inset-inline-end: -14px; height: 2px; background: linear-gradient(90deg, var(--line) 50%, transparent 0) 0 0 / 10px 2px repeat-x; transform-origin: left; }
[dir="rtl"] .process-step:not(:last-child)::after { transform-origin: right; }
.process-step h3 { margin-top: 20px; font-size: 1rem; font-weight: 600; }
.process-num { color: var(--muted); font-weight: 500; }
.process-step p { margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
@media (max-width: 899px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process-step { display: grid; grid-template-columns: 68px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .process-step .process-icon { grid-row: span 2; }
  .process-step h3 { margin-top: 10px; }
  .process-step:not(:last-child)::after { top: 72px; bottom: 0; inset-inline-start: 33px; inset-inline-end: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--line) 50%, transparent 0) 0 0 / 2px 10px repeat-y; transform-origin: top; }
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card { padding: 28px 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card .icon-bubble { background: rgba(255, 72, 72, .1); color: var(--coral-text); }
.why-card h3 { margin-top: 20px; font-size: 1.08rem; font-weight: 600; }
.why-card p { margin-top: 8px; color: var(--muted); font-size: .93rem; }

/* ---------- Carousel (projects, reviews) ---------- */
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 24px; margin: -6px -4px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { scroll-snap-align: start; }
@media (max-width: 1099px) { .carousel-track { grid-auto-columns: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 799px) { .carousel-track { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 559px) { .carousel-track { grid-auto-columns: 82%; } }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.carousel-dots { display: flex; gap: 2px; }
/* 24 px tap target around a small visual dot (accessibility: touch target size). */
.carousel-dots button { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border: 0; background: none; cursor: pointer; }
.carousel-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--line); transition: width .35s var(--ease-out), background-color .25s; }
.carousel-dots button[aria-current="true"]::before { width: 28px; background: var(--coral); }
.carousel-dots button:hover::before { background: #C5D0DB; }
.carousel-dots button[aria-current="true"]:hover::before { background: var(--coral); }
.carousel-controls[hidden] { display: none; }

.project-tile a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); text-decoration: none; overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.project-tile a:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-tile figure { aspect-ratio: 16 / 10; background: #EEF1F4; overflow: hidden; }
.project-tile img { width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: transform .7s var(--ease-out); }
.project-tile a:hover img { transform: scale(1.06); }
.project-tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 4px; }
.project-tile-meta strong { display: block; font-size: .98rem; font-weight: 600; color: var(--navy); }
.project-tile-meta small { display: block; color: var(--muted); font-size: .82rem; }
.project-tile-meta .icon { color: var(--coral-text); width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.project-tile a:hover .project-tile-meta .icon { transform: translateX(4px); }
[dir="rtl"] .project-tile a:hover .project-tile-meta .icon { transform: translateX(-4px); }
.project-tile-summary { padding: 6px 18px 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-tile .palette-dots { padding: 0 18px 18px; margin-top: 12px; }
.project-tile a > :last-child:not(.palette-dots) { padding-bottom: 18px; }

/* Projects page grid + filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 500; color: var(--muted); transition: all .25s; }
.chip:hover { color: var(--navy); border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.project-grid .is-hidden { display: none; }

/* Reviews */
.review-track { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
@media (max-width: 899px) { .review-track { grid-auto-columns: 86%; } }
.review figure { display: flex; flex-direction: column; height: 100%; padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.review blockquote { flex: 1; margin-top: 16px; line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.review figcaption img, .avatar-initial { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initial { display: grid; place-items: center; background: var(--navy-3); color: #fff; font-weight: 700; }
.review figcaption strong { display: block; font-weight: 600; color: var(--navy); }
.review figcaption small { display: block; color: var(--muted); font-size: .86rem; }
.stars { --size: 18px; --rating: 5; display: inline-block; width: calc(var(--size) * 5); height: var(--size); background: linear-gradient(90deg, var(--coral) calc(var(--rating) / 5 * 100%), var(--line) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; }
[dir="rtl"] .stars { transform: scaleX(-1); }

/* ---------- Contact band ---------- */
.contact-band { position: relative; padding-block: var(--section); background: var(--navy); color: #fff; isolation: isolate; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.contact-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 28, 50, .97) 30%, rgba(4, 28, 50, .8)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.contact-text .section-title { color: #fff; }
.contact-text .lead { margin-top: 16px; color: rgba(255, 255, 255, .78); }
.contact-direct { display: grid; gap: 12px; margin-top: 30px; }
.contact-direct a, .contact-direct span { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .9); text-decoration: none; }
.contact-direct a:hover { color: #fff; }
.contact-direct .icon { color: var(--coral); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; transition: background-color .25s, border-color .25s; }
.socials a:hover { background: var(--coral-btn); border-color: var(--coral-btn); }
.socials .icon { width: 18px; height: 18px; }
.contact-form { padding: clamp(22px, 3.5vw, 36px); background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form-title { margin-bottom: 18px; font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6B7C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: left 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 72, 72, .18); }
.field input::placeholder, .field textarea::placeholder { color: #93A1AF; }
.field.has-error input, .field.has-error textarea { border-color: var(--coral-text); }
.field-error { margin-top: 6px; color: var(--coral-text); font-size: .84rem; font-weight: 500; }
.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--coral-btn); }
.field-check label { margin: 0; font-weight: 400; font-size: .86rem; color: var(--muted); }
.field-check label a { color: var(--coral-text); }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { margin-top: 6px; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.form-note { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.form-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-weight: 500; border: 1px solid var(--line); }
.form-alert.is-success { background: #E8F7EF; border-color: #A8DFC2; color: #0E5A35; }
.form-alert.is-error { background: #FDECEC; border-color: #F5B5B5; color: #8E1F1F; }
.contact-form.is-sent .field, .contact-form.is-sent .field-row, .contact-form.is-sent .btn-submit, .contact-form.is-sent .form-note { display: none; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #031627; color: rgba(255, 255, 255, .78); padding-top: clamp(48px, 6vw, 72px); }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 40px; }
.site-footer .brand { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 26em; font-size: .92rem; }
.footer-col h2 { font-size: .95rem; font-weight: 600; margin-bottom: 14px; color: #fff; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col li a, .footer-col li span { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; }
.footer-col .icon { width: 18px; height: 18px; color: var(--coral); }
.site-footer .socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.site-footer .socials a { display: grid; place-items: center; gap: 0; color: #fff; }
.site-footer .socials a:hover .icon { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; color: rgba(255, 255, 255, .6); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom a, .footer-bottom .link-btn { white-space: nowrap; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }
/* Phones: centred copyright, links as a 2 × 2 grid of tappable chips, room left for the floating buttons. */
@media (max-width: 699px) {
  .footer-bottom { flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-bottom ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 360px; }
  .footer-bottom li { display: flex; }
  .footer-bottom a, .footer-bottom .link-btn { flex: 1; display: grid; place-items: center; min-height: 42px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: .8rem; line-height: 1.3; white-space: normal; text-align: center; }
  .footer-bottom a:active, .footer-bottom .link-btn:active { background: rgba(255, 255, 255, .1); }
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 459px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages without a photo hero ---------- */
.page { padding-top: calc(var(--header-h) + clamp(36px, 5vw, 64px)); padding-bottom: var(--section); }
.page-head { max-width: 56rem; margin-bottom: clamp(28px, 4vw, 48px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.back-link:hover { color: var(--navy); }
.back-link .icon { width: 18px; height: 18px; }
.page-title { font-size: var(--step-3); letter-spacing: -.02em; }
[lang="ar"] .page-title { letter-spacing: 0; line-height: 1.4; }
.project-cat { display: inline-block; font-size: var(--step--1); color: var(--coral-text); font-weight: 600; }
.page-head .project-cat { margin-bottom: 8px; }
.page-head .lead { margin-top: 18px; }
.project-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 28px 0; }
.project-facts dt { font-size: var(--step--1); color: var(--muted); }
.project-facts dd { font-weight: 600; color: var(--navy); }
.project-facts a { color: var(--coral-text); }
.project-cover img { width: 100%; border-radius: var(--radius-lg); background: #EEF1F4; }
.prose-narrow { max-width: calc(720px + 2 * var(--gutter)); margin-top: clamp(36px, 5vw, 64px); }
.text-page .prose-narrow { margin-top: 0; margin-inline: 0; }
.text-page .prose h2 { color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.gallery img { width: 100%; border-radius: 16px; }
@media (max-width: 639px) { .gallery { grid-template-columns: 1fr; } }
.project-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(48px, 7vw, 88px); padding: 28px 32px; border-radius: var(--radius-lg); background: var(--tint); }
.project-cta h2 { font-size: var(--step-2); }
.more-projects { margin-top: clamp(48px, 7vw, 88px); }
.more-projects h2 { font-size: var(--step-2); margin-bottom: 24px; }
.more-projects .project-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.error-page { min-height: 80svh; display: flex; align-items: center; }
.error-code { font-size: clamp(5rem, 20vw, 12rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--coral); }
.error-page .lead { margin-top: 16px; max-width: 34em; }
.error-page .hero-actions { margin-top: 28px; }
.error-page .btn-ghost { color: var(--navy); }

/* Palette display (project pages) */
.palette-dots { display: flex; margin-top: 14px; }
.palette-dots span { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(4, 28, 50, .12); }
.palette-dots span + span { margin-inline-start: -5px; }
.palette-section { margin-top: clamp(48px, 7vw, 88px); }
.palette-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.palette-head h2 { font-size: var(--step-2); }
.muted-note { color: var(--muted); font-size: var(--step--1); }
.palette-strip { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-bottom: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.palette-strip span { flex: 1; }
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.swatch { display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; text-align: start; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--text); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.swatch:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.swatch-color { display: grid; place-items: center; height: 130px; background: var(--swatch); color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
.swatch-copied { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .35s var(--ease-out); }
.swatch-copied .icon { width: 18px; height: 18px; }
.swatch.is-copied .swatch-copied { opacity: 1; transform: none; }
.swatch-info { display: grid; gap: 2px; padding: 14px 16px 16px; }
.swatch-info strong { font-weight: 600; color: var(--navy); }
.swatch-info code { font-family: inherit; font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
.swatch-info small { color: var(--muted); font-size: .82rem; }

/* ---------- Service page ---------- */
.service-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.service-intro .section-head { margin-bottom: 22px; }
.service-prose { font-size: 1.04rem; }
.service-prose h2:first-child { margin-top: 0; }
.service-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.service-visual { border-radius: var(--radius-lg); overflow: hidden; background: #EEF1F4; box-shadow: var(--shadow); }
.service-visual img { width: 100%; aspect-ratio: 16 / 11; object-fit: contain; padding: 4%; }
.included-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.included-card h2 { font-size: 1.1rem; margin-bottom: 16px; }
.included-card .checklist { font-size: .93rem; }
@media (max-width: 899px) { .service-intro { grid-template-columns: 1fr; } .service-aside { position: static; } }
.faq .section-head { margin-bottom: 28px; }
.faq-list { max-width: 55rem; display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .3s, border-color .3s; }
.faq-list details[open] { border-color: transparent; box-shadow: var(--shadow-sm); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 1.02rem; font-weight: 600; color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--bubble); color: var(--navy); transition: transform .35s var(--ease-out), background-color .25s, color .25s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); background: var(--coral-btn); color: #fff; }
.faq-answer { padding: 0 22px 20px; color: var(--muted); }
.service-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.service-area .section-title-sm { color: #fff; margin-bottom: 12px; }
.service-area .lead { color: rgba(255, 255, 255, .75); }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.area-list .icon { width: 16px; height: 16px; color: var(--coral); }
@media (max-width: 899px) { .service-area { grid-template-columns: 1fr; } }
.other-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.other-services a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .25s, box-shadow .3s, transform .4s var(--ease-out); }
.other-services a:hover { border-color: transparent; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.other-services strong { display: block; font-weight: 600; color: var(--navy); }
.other-services small { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.other-services a > span:nth-child(2) { flex: 1; }
.other-services a > .icon { color: var(--coral-text); }

/* ---------- Project detail page ---------- */
.icon-xs { width: 14px; height: 14px; display: inline; vertical-align: -2px; }
.pill { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 16px; padding: 5px 14px; border-radius: 999px; background: var(--coral-btn); color: #fff; font-size: .82rem; font-weight: 600; }
.pill-sm { display: block; margin: 0 0 6px; padding: 2px 10px; font-size: .72rem; background: rgba(255, 72, 72, .12); color: var(--coral-text); }
.back-link-light { color: rgba(255, 255, 255, .75); margin-bottom: 20px; }
.back-link-light:hover { color: #fff; }
.hero-project { min-height: min(84svh, 760px); }
.hero-project-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-project .hero-inner { display: flex; flex-direction: column; }
.hero-lead { margin-top: 12px; max-width: 30ch; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 500; line-height: 1.35; color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 30px; }
.hero-meta li { display: flex; align-items: center; gap: 12px; }
.hero-meta li > .icon { width: 30px; height: 30px; color: #fff; stroke-width: 1.4; }
.hero-meta small { display: block; color: rgba(255, 255, 255, .65); font-size: .8rem; }
.hero-meta strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.hero-meta a { color: #fff; text-decoration: none; }
.hero-meta a:hover { text-decoration: underline; }
.hero-project-visual img { width: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); }
.hero-project-visual { background: rgba(255, 255, 255, .92); border-radius: var(--radius-lg); padding: 3%; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.hero-project-visual img { filter: none; }
@media (max-width: 1023px) {
  .hero-project-grid { grid-template-columns: 1fr; }
  .hero-project { align-items: flex-start; }
  .hero-project-visual { max-width: 560px; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-reverse > :first-child { order: 0; }
.split .section-head { margin-bottom: 22px; }
.split-visual, .feature-visual { position: relative; }
.split-visual::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; z-index: -1; border-radius: var(--radius-lg); background: var(--bubble); }
[dir="rtl"] .split-visual::before { inset: -18px -18px 18px 18px; }
.split-visual img, .feature-visual img { width: 100%; border-radius: var(--radius-lg); background: #EEF1F4; box-shadow: var(--shadow); object-fit: contain; aspect-ratio: 16 / 11; padding: 3%; }
.mini-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }
.mini-features li { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; line-height: 1.35; color: var(--navy); }
.icon-bubble-sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-bubble-sm .icon { width: 20px; height: 20px; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .split-reverse > :first-child { order: 1; } }

.tech-panel { display: grid; grid-template-columns: 1fr; border-radius: var(--radius-lg); background: var(--tint); overflow: hidden; }
.tech-panel.has-visual { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.tech-body { padding: clamp(28px, 4vw, 52px); }
.tech-body .section-head { margin-bottom: 26px; }
.tech-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tech-list li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; text-align: center; border-inline-end: 1px solid var(--line); }
.tech-list li:last-child { border-inline-end: 0; }
.tech-logo { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
.tech-list strong { font-size: .92rem; color: var(--navy); }
.tech-list small { color: var(--muted); font-size: .78rem; }
.tech-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .tech-panel.has-visual { grid-template-columns: 1fr; } .tech-visual { max-height: 320px; overflow: hidden; } }

.stat-overlay { position: absolute; inset-inline: 8%; bottom: -26px; display: flex; justify-content: space-around; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.stat-overlay span { display: grid; text-align: center; }
.stat-overlay strong { color: var(--coral-text); font-size: 1.05rem; }
.stat-overlay small { color: var(--muted); font-size: .8rem; }
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.feature-list .icon { width: 22px; height: 22px; padding: 3px; flex: none; margin-top: 2px; border: 1.5px solid var(--coral); border-radius: 50%; color: var(--coral-text); stroke-width: 2.6; }

.results-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.results-split.no-results { grid-template-columns: 1fr; }
.results .section-head { margin-bottom: 26px; }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 559px) { .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.result-grid div { display: flex; flex-direction: column; }
.result-grid dt { display: contents; color: var(--muted); font-size: .84rem; }
.result-grid dt .icon-bubble { order: -2; margin-bottom: 14px; }
.result-grid dd { order: -1; font-size: var(--step-2); font-weight: 700; color: var(--navy); line-height: 1.1; margin-bottom: 4px; }
.icon-bubble-coral { background: rgba(255, 72, 72, .1); color: var(--coral-text); }
.similar .section-head-row { margin-bottom: 22px; align-items: center; }
.similar .section-title-sm { margin-bottom: 0; }
.similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.no-results .similar-grid { gap: 22px; }
.similar-grid .project-tile-meta { padding: 12px 14px 16px; }
.similar-grid .project-tile-meta strong { font-size: .9rem; }
@media (max-width: 1023px) { .results-split { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .similar-grid { grid-template-columns: 1fr 1fr; } }

.cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.cta-band .section-title { color: #fff; }
.cta-band .lead { margin: 14px 0 26px; color: rgba(255, 255, 255, .78); max-width: 38em; }
.cta-band .contact-direct { margin-top: 0; justify-items: start; }
@media (max-width: 899px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages & site map ---------- */
.hero-legal { min-height: 0; padding: calc(var(--header-h) + 56px) 0 120px; background: radial-gradient(80% 120% at 85% 0%, #0E3A63 0%, transparent 60%), linear-gradient(160deg, #052443 0%, var(--navy) 60%); }
.hero-legal::before { display: none; }
.hero-legal .hero-inner { max-width: 47.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .9); font-size: .82rem; font-weight: 500; }
.chips .icon { width: 16px; height: 16px; color: var(--coral); }
.legal-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 28px; align-items: start; margin-top: -64px; padding-bottom: var(--section); position: relative; z-index: 2; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 20px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.legal-toc-title { padding: 0 8px 10px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[lang="ar"] .legal-toc-title { letter-spacing: 0; font-size: .85rem; }
.legal-toc ol { display: grid; gap: 2px; }
.legal-toc a { display: flex; gap: 10px; padding: 8px; border-radius: 10px; font-size: .88rem; line-height: 1.35; color: var(--text); text-decoration: none; transition: background-color .2s, color .2s; }
.legal-toc a span { color: var(--coral-text); font-weight: 600; font-size: .78rem; padding-top: 1px; font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: var(--tint); }
.legal-toc a.is-active { background: var(--bubble); color: var(--navy); font-weight: 600; }
.legal-content { display: grid; gap: 18px; min-width: 0; }
.legal-intro { padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: #EEF4FB; border: 1px solid #DCE7F3; box-shadow: var(--shadow-sm); }
.legal-intro p { color: var(--text); }
.legal-card { padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-card h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
.legal-num { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; }
.legal-card .prose p, .legal-card .prose li { color: var(--muted); font-size: .97rem; }
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; font-size: .93rem; }
.info-table th, .info-table td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 36%; background: #F5F8FB; color: var(--navy); font-weight: 600; }
.info-table td { color: var(--text); overflow-wrap: anywhere; }
.info-table a { color: var(--coral-text); }
@media (max-width: 899px) {
  .legal-layout { grid-template-columns: 1fr; margin-top: -48px; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 539px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 2px; background: none; font-size: .82rem; color: var(--muted); }
  .info-table td { padding-top: 0; }
}

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: -64px; padding-bottom: var(--section); position: relative; z-index: 2; }
.sitemap-card { padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sitemap-card h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 1.12rem; }
.sitemap-card ul { display: grid; gap: 2px; }
.sitemap-card a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .94rem; transition: background-color .2s, color .2s; }
.sitemap-card a .icon { width: 15px; height: 15px; color: var(--coral-text); transition: transform .3s var(--ease-out); }
.sitemap-card a:hover { background: var(--tint); color: var(--navy); }
.sitemap-card a:hover .icon { transform: translateX(3px); }
[dir="rtl"] .sitemap-card a:hover .icon { transform: translateX(-3px); }

.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.link-btn:hover { color: #fff; }

/* ---------- Floating buttons (WhatsApp, back to top) ---------- */
.fab-stack { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 70; display: grid; gap: 12px; justify-items: end; }
.fab { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(4, 28, 50, .55); transition: transform .45s var(--ease-out), opacity .35s, visibility .35s, box-shadow .3s; }
.fab .icon { width: 24px; height: 24px; }
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab-wa { background: #25D366; animation: fab-pop .6s 1.2s var(--ease-out) backwards; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: fab-pulse 2.6s 2s infinite; }
.fab-wa .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.fab-tip { position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; padding: 8px 12px; border-radius: 10px; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(8px, -50%); transition: opacity .25s, transform .35s var(--ease-out); }
[dir="rtl"] .fab-tip { transform: translate(-8px, -50%); }
.fab-wa:hover .fab-tip, .fab-wa:focus-visible .fab-tip { opacity: 1; transform: translate(0, -50%); }
.fab-top { background: var(--navy); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); }
.fab-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab-top.is-visible:hover { transform: translateY(-3px); }
.fab-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0)); }
@keyframes fab-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (max-width: 1023px) {
  .fab-stack { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; }
  .fab { width: 48px; height: 48px; }
  .fab-tip { display: none; }
}

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 80; width: min(440px, calc(100vw - 40px)); }
.cookie[hidden] { display: none; }
.cookie-card { position: relative; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -28px rgba(4, 28, 50, .5); overflow: hidden; }
.cookie-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--coral), #FF8A5B, var(--navy-3)); }
.cookie.is-open .cookie-card { animation: cookie-in .7s cubic-bezier(.34, 1.4, .64, 1) both; }
.cookie.is-closing .cookie-card { animation: cookie-out .45s var(--ease-out) forwards; }
.cookie-head { display: flex; gap: 14px; align-items: flex-start; }
.cookie-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255, 72, 72, .12); color: var(--coral-text); }
.cookie-icon .icon { width: 26px; height: 26px; }
.cookie.is-open .cookie-icon .icon { animation: cookie-wobble 1.4s .5s ease-in-out; }
.cookie-title { font-weight: 700; color: var(--navy); }
.cookie-text { margin-top: 4px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.cookie-text a { color: var(--coral-text); font-weight: 500; }
.cookie-prefs { display: grid; gap: 10px; margin-top: 16px; }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs:not([hidden]) { animation: cookie-prefs .45s var(--ease-out); }
.cookie-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--tint); cursor: pointer; }
.cookie-opt strong { display: block; font-size: .9rem; color: var(--navy); }
.cookie-opt small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.cookie-opt input { appearance: none; position: relative; width: 42px; height: 24px; flex: none; margin: 0; border-radius: 999px; background: #C9D3DD; cursor: pointer; transition: background-color .25s; }
.cookie-opt input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease-out); }
.cookie-opt input:checked { background: var(--coral-btn); }
.cookie-opt input:checked::after { transform: translateX(18px); }
[dir="rtl"] .cookie-opt input:checked::after { transform: translateX(-18px); }
.cookie-opt input:disabled { opacity: .6; cursor: not-allowed; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-actions [hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes cookie-out { to { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes cookie-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
@keyframes cookie-prefs { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 1023px) {
  .cookie { inset-inline: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Scroll & load animations ----------
   Elements start hidden only when JS runs (html.js); site.js adds .is-in when they enter the viewport.
   html.anim-off (reduced motion or fallback timer) shows everything immediately. */
.js [data-hero-item] { opacity: 0; transform: translateY(26px); }
.js.is-loaded [data-hero-item] { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }
.js .eyebrow-light::before { transform: scaleX(0); }
.js.is-loaded .eyebrow-light::before { transform: scaleX(1); transition: transform .8s .5s var(--ease-out); }
.js .hero-brand .accent { display: inline-block; }

.js [data-anim="up"], .js [data-anim="left"], .js [data-anim="right"] { opacity: 0; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js [data-anim="up"] { transform: translateY(36px); }
.js [data-anim="left"] { transform: translateX(-48px); }
.js [data-anim="right"] { transform: translateX(48px); }
[dir="rtl"].js [data-anim="left"] { transform: translateX(48px); }
[dir="rtl"].js [data-anim="right"] { transform: translateX(-48px); }
.js [data-anim="reveal"] img { clip-path: inset(0 0 100% 0 round var(--radius-lg)); }
.js [data-anim="reveal"] img { transform: scale(1.04); transition: clip-path 1.3s var(--ease-out), transform 1.6s var(--ease-out); }
.js [data-anim="reveal"] .float-card { opacity: 0; transform: translateY(20px); transition: opacity .8s .7s var(--ease-out), transform .9s .7s var(--ease-out); }
.js [data-anim="stagger"] > * { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-anim="process"] .process-icon { transform: scale(0); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 180ms); }
.js [data-anim="process"] .process-step h3, .js [data-anim="process"] .process-step p { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms + 150ms); }
.js [data-anim="process"] .process-step::after { transform: scaleX(0); transition: transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms + 250ms); }
@media (max-width: 899px) { .js [data-anim="process"] .process-step::after { transform: scaleY(0); } }
.js .section-head .eyebrow::before { transform: scaleX(0); transition: transform .8s .25s var(--ease-out); }

.js .is-in[data-anim="up"], .js .is-in[data-anim="left"], .js .is-in[data-anim="right"] { opacity: 1; transform: none; }

.js .is-in[data-anim="reveal"] img { transform: none; clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js .is-in[data-anim="reveal"] .float-card { opacity: 1; transform: none; }
.js .is-in[data-anim="stagger"] > * { opacity: 1; transform: none; }
.js .is-in[data-anim="process"] .process-icon { transform: none; }
.js .is-in[data-anim="process"] .process-step h3, .js .is-in[data-anim="process"] .process-step p { opacity: 1; transform: none; }
.js .is-in[data-anim="process"] .process-step::after { transform: none; }
.js .section-head.is-in .eyebrow::before { transform: scaleX(1); }

.anim-off [data-hero-item], .anim-off [data-anim], .anim-off [data-anim] > *, .anim-off [data-anim] .process-icon, .anim-off [data-anim] h3, .anim-off [data-anim] p, .anim-off [data-anim] img, .anim-off [data-anim] .float-card { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.anim-off .process-step::after, .anim-off .eyebrow::before { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .preloader { display: none; }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Custom select (contact form) ---------- */
.select { position: relative; }
.select-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); text-align: start; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.select-trigger:hover { border-color: #C8D3DE; }
.select-trigger:focus-visible, .select.is-open .select-trigger { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 72, 72, .18); }
.select-trigger.is-placeholder .select-value { color: #93A1AF; }
.select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .35s var(--ease-out); }
.select.is-open .select-chevron { transform: rotate(180deg); color: var(--coral-text); }
.select-list {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 40; max-height: 290px; overflow-y: auto; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(4, 28, 50, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s .3s; overscroll-behavior: contain;
}
.select.is-up .select-list { top: auto; bottom: calc(100% + 8px); transform: translateY(6px) scale(.98); transform-origin: bottom center; }
.select.is-open .select-list { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s; }
.select-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: .94rem; cursor: pointer; transition: background-color .15s, color .15s; }
.select-option.is-placeholder { color: var(--muted); }
.select-option.is-active { background: var(--tint); }
.select-option[aria-selected="true"] { color: var(--coral-text); font-weight: 600; background: rgba(255, 72, 72, .07); }
.select-option[aria-selected="true"].is-placeholder { color: var(--muted); font-weight: 500; background: transparent; }
.select-check { width: 18px; height: 18px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); }
.select-option[aria-selected="true"]:not(.is-placeholder) .select-check { opacity: 1; transform: none; }
