/* ==========================================================================
   Dr. Peter Shehata Thabet: Physical Therapy & Clinical Nutrition
   Main stylesheet (LTR + RTL via logical properties)
   ========================================================================== */

:root {
  --navy-950: #071834;
  --navy-900: #0a2250;
  --navy-800: #0f2f6b;
  --navy-700: #16408c;
  --blue-600: #1d6fd1;
  --blue-500: #2a8be6;
  --blue-400: #4fa9f2;
  --blue-50: #eef5fe;
  --green-700: #3a7a1c;
  --green-600: #4c962a;
  --green-500: #67b23a;
  --green-400: #8cc63f;
  --green-50: #f1f8ea;
  --ink: #0d1c3a;
  --text: #43536c;
  --muted: #6b7b93;
  --line: #e3eaf3;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --danger: #dc2626;
  --whatsapp: #25d366;

  --grad-brand: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--green-500) 100%);
  --grad-navy: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);

  --font-en: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(13, 28, 58, .06), 0 2px 8px rgba(13, 28, 58, .04);
  --shadow: 0 14px 34px -14px rgba(13, 28, 58, .22);
  --shadow-lg: 0 30px 60px -22px rgba(10, 34, 80, .35);

  --header-h: 76px;
  --container: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 68px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: opacity .25s ease;
}

html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }
.i18n-pending body { opacity: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.4; }

h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; border-radius: 10px;
  background: var(--navy-900); color: #fff; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  margin-bottom: 1rem;
  font-size: .98rem; font-weight: 600;
  color: var(--green-700);
}
/* small hand-drawn sprout, echoing the leaves in the logo */
.eyebrow::before {
  content: ""; flex: none;
  width: 20px; height: 20px;
  background: linear-gradient(160deg, var(--green-400), var(--green-600));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c.3-3.2-.1-6-1.2-8.6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M11 13.6C6.5 14.1 3.2 11.6 2.5 6.6c5-.5 8.3 2.1 8.5 7z'/%3E%3Cpath d='M11.4 12.2c-.4-5.2 2.6-8.7 9.1-9.6.5 5.9-2.9 9.4-9.1 9.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c.3-3.2-.1-6-1.2-8.6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M11 13.6C6.5 14.1 3.2 11.6 2.5 6.6c5-.5 8.3 2.1 8.5 7z'/%3E%3Cpath d='M11.4 12.2c-.4-5.2 2.6-8.7 9.1-9.6.5 5.9-2.9 9.4-9.1 9.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-8deg);
}
[dir="rtl"] .eyebrow::before { transform: scaleX(-1) rotate(-8deg); }
html[lang="ar"] .eyebrow { font-size: 1rem; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lead { font-size: 1.125rem; }

/* ---------- Sections ---------- */
main > section { overflow-x: clip; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--surface-2); }
.section-tight-top { padding-top: 0; }

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section-head p { font-size: 1.08rem; margin-bottom: 0; }
.section-head.start { margin-inline: 0; text-align: start; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: .98rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s, color .25s, border-color .25s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-navy); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(15, 47, 107, .65);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(15, 47, 107, .75); }

.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-600); }

.btn-whatsapp {
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .75);
}
.btn-whatsapp:hover { background: #1fbe5b; }

.btn-light { background: #fff; color: var(--navy-900); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }

.btn-sm { padding: .7em 1.25em; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; color: var(--blue-600);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -20px rgba(13, 28, 58, .45);
}

.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.06rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
.brand-text small { font-size: .75rem; font-weight: 600; color: var(--green-700); }
html[lang="ar"] .brand-text strong { letter-spacing: 0; font-size: 1.1rem; }
html[lang="ar"] .brand-text small { font-size: .8rem; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a:not(.btn) {
  position: relative; display: block;
  padding: 10px 16px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--ink);
  transition: color .2s, background-color .2s;
}
.main-nav a:not(.btn):hover { color: var(--blue-600); background: var(--blue-50); }
.main-nav a[aria-current="page"] { color: var(--blue-600); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--grad-brand);
}
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: .9rem; font-weight: 700; color: var(--navy-800);
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--blue-400); color: var(--blue-600); }
.lang-toggle .icon { width: 18px; height: 18px; }
.lang-toggle [lang="ar"] { font-family: var(--font-ar); }
.lang-toggle [lang="en"] { font-family: var(--font-en); }
.lang-short { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.nav-toggle-bar {
  width: 18px; height: 2px; border-radius: 2px; background: var(--navy-900);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-actions { margin-inline-start: auto; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    margin: 0; padding: 12px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a:not(.btn) { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"] { background: var(--blue-50); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 12px; }
}

@media (max-width: 480px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand { gap: 10px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1rem; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-toggle { padding: 9px 12px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(55% 60% at 92% 8%, rgba(42, 139, 230, .15), transparent 62%),
    radial-gradient(45% 50% at 0% 100%, rgba(103, 178, 58, .14), transparent 62%),
    linear-gradient(180deg, #f6faff 0%, #fff 100%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; margin-bottom: .45em; }
html[lang="ar"] .hero h1 { line-height: 1.35; }
.hero .lead { max-width: 36em; margin-bottom: 2rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

.hero-points { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 2.2rem; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--ink); }

.check {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
}
.check .icon { width: 14px; height: 14px; stroke-width: 3; }

.hero-visual { position: relative; width: 100%; max-width: 470px; margin-inline: auto; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -14% -8%;
  background: radial-gradient(circle, rgba(42, 139, 230, .2), transparent 65%);
  filter: blur(8px);
}

.hero-photo {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 240px 240px 32px 32px;
  background: var(--grad-brand);
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.hero-ring {
  position: absolute; z-index: 0;
  width: 122%; inset-inline-start: -11%; top: -9%;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding-block: 12px; padding-inline: 12px 18px;
  background: #fff; border: 1px solid rgba(227, 234, 243, .9); border-radius: 18px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-card .fc-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
}
.float-card .fc-icon .icon { width: 22px; height: 22px; }
.float-card strong { display: block; font-size: .92rem; line-height: 1.25; color: var(--ink); }
.float-card small { display: block; font-size: .8rem; color: var(--muted); }
.fc-1 { inset-inline-start: -32px; bottom: 13%; }
.fc-2 { inset-inline-end: -26px; top: 15%; animation-delay: -3s; }
.fc-2 .fc-icon { background: linear-gradient(135deg, var(--green-600), var(--green-400)); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
}
@media (max-width: 600px) {
  .hero-visual { max-width: 330px; }
  .fc-1 { inset-inline-start: -10px; bottom: 8%; }
  .fc-2 { inset-inline-end: -10px; top: 8%; }
  .float-card { padding-inline: 10px 14px; }
  .float-card .fc-icon { width: 38px; height: 38px; }
  .float-card strong { font-size: .84rem; }
  .float-card small { font-size: .74rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(52px, 8vw, 96px) clamp(48px, 7vw, 80px);
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(42, 139, 230, .14), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(103, 178, 58, .12), transparent 60%),
    linear-gradient(180deg, #f3f8fe 0%, #fff 100%);
}
.page-hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 520px; height: 520px; inset-inline-end: -150px; top: -120px;
  background: url("../images/emblem.png") center / contain no-repeat;
  opacity: .06;
}
.page-hero h1 { max-width: 16em; margin-inline: auto; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.page-hero .lead { max-width: 40em; margin-inline: auto; margin-bottom: 0; }

.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px; padding: 6px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .88rem; color: var(--muted);
}
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.chip-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .92rem; font-weight: 600; color: var(--ink);
  transition: border-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--blue-400); color: var(--blue-600); transform: translateY(-2px); }
.chip .icon { width: 18px; height: 18px; color: var(--blue-600); }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { gap: 12px; }
  .grid-4 .card { padding: 18px; }
  .grid-4 .card h3 { font-size: 1rem; }
  .grid-4 .card p { font-size: .86rem; }
  .grid-4 .icon-tile { width: 44px; height: 44px; margin-bottom: 14px; }
  .grid-4 .icon-tile .icon { width: 22px; height: 22px; }
}
@media (max-width: 340px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.12rem; margin-bottom: .4em; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }

.icon-tile {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px; background: var(--blue-50); color: var(--blue-600);
  transition: background .3s, color .3s;
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile.green { background: var(--green-50); color: var(--green-600); }
.card:hover .icon-tile { background: var(--blue-600); color: #fff; }
.card:hover .icon-tile.green { background: var(--green-600); }

/* Pillars (home) */
.pillar {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 55%);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar.is-green { background: linear-gradient(180deg, var(--green-50) 0%, #fff 55%); }
.pillar::after {
  content: ""; position: absolute; pointer-events: none;
  width: 220px; height: 220px; inset-inline-end: -70px; top: -70px;
  border-radius: 50%; border: 28px solid rgba(42, 139, 230, .07);
}
.pillar.is-green::after { border-color: rgba(103, 178, 58, .09); }
.pillar h3 { font-size: 1.6rem; }
.pillar > p { font-size: 1.02rem; }

.pillar-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 24px; border-radius: 18px;
  color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  box-shadow: 0 12px 24px -12px rgba(29, 111, 209, .85);
}
.pillar.is-green .pillar-icon {
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  box-shadow: 0 12px 24px -12px rgba(76, 150, 42, .85);
}
.pillar-icon .icon { width: 30px; height: 30px; }

.check-list { display: grid; gap: 12px; margin: 22px 0 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--ink); }
.check-list .check { margin-top: 2px; }
.pillar:not(.is-green) .check { background: var(--blue-50); color: var(--blue-600); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

.split-media { position: relative; isolation: isolate; max-width: 520px; width: 100%; margin-inline: auto; }
.split-media::before {
  content: ""; position: absolute; z-index: -1;
  inset-block-start: -20px; inset-inline-start: -20px;
  width: 62%; height: 62%; border-radius: var(--radius-lg);
  background: var(--grad-brand); opacity: .16;
}
.split-media::after {
  content: ""; position: absolute; z-index: -1;
  inset-block-end: -24px; inset-inline-end: -24px;
  width: 120px; height: 120px;
  background-image: radial-gradient(var(--green-500) 2px, transparent 2.5px);
  background-size: 16px 16px; opacity: .45;
}

.media-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

.media-badge {
  position: absolute; z-index: 2; inset-inline-end: -22px; bottom: 32px;
  display: flex; align-items: center; gap: 12px; max-width: 270px;
  padding: 14px 18px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow);
}
.media-badge .fc-icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
}
.media-badge strong { display: block; font-size: .92rem; line-height: 1.3; color: var(--ink); }
.media-badge small { display: block; font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) { .media-badge { inset-inline-end: -8px; bottom: 18px; } }

.role { margin-top: -.3em; margin-bottom: 1.2em; font-weight: 700; color: var(--blue-600); }

.callout {
  margin: 26px 0 30px; padding: 18px 22px;
  border-inline-start: 4px solid var(--green-500);
  border-start-end-radius: 14px; border-end-end-radius: 14px;
  background: var(--green-50);
  font-weight: 600; color: var(--ink);
}

.mini-creds { display: grid; gap: 14px; margin: 24px 0; }
.mini-creds li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); }
.mini-creds .icon-tile { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.mini-creds .icon-tile .icon { width: 22px; height: 22px; }
.mini-creds small { display: block; font-weight: 500; color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps::before {
  content: ""; position: absolute; top: 36px; inset-inline: 12.5%;
  border-top: 2px dashed #cbd8ea;
}
.step { position: relative; padding-inline: 8px; text-align: center; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; font-size: .95rem; color: var(--muted); }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s var(--ease);
}
.step:hover .step-num { border-color: var(--blue-400); transform: translateY(-3px); }
.step-num .icon { width: 28px; height: 28px; }
.step-num span {
  position: absolute; top: -4px; inset-inline-end: -4px;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  font-size: .78rem; font-weight: 800;
}
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--grad-navy); color: #c9d7ef;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band::before {
  content: ""; position: absolute; z-index: -1;
  width: 440px; height: 440px; inset-inline-end: -120px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 169, 242, .45), transparent 70%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1;
  width: 360px; height: 360px; inset-inline-start: -140px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 198, 63, .35), transparent 70%);
}
.cta-band .btn-group { justify-content: flex-end; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-group { justify-content: flex-start; }
}

/* ---------- About page ---------- */
.prose p { font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

.cred-card { display: flex; gap: 16px; align-items: flex-start; }
.cred-card .icon-tile { margin: 0; }
.cred-card h3 { font-size: 1.08rem; margin-bottom: .25em; }

.mission {
  position: relative; max-width: 900px; margin-inline: auto; text-align: center;
}
.mission img { width: 72px; height: 72px; margin: 0 auto 24px; }
.mission p {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1.5;
  color: var(--ink); letter-spacing: -.01em;
}
html[lang="ar"] .mission p { letter-spacing: 0; line-height: 1.8; }

/* ---------- Services page ---------- */
.svc-card .tag {
  position: absolute; top: 24px; inset-inline-end: 24px;
  font-size: .8rem; font-weight: 800; color: #c3cfdf;
}

.integrated {
  position: relative; overflow: hidden;
  background: var(--grad-navy); color: #c9d7ef;
}
.integrated::before {
  content: ""; position: absolute; pointer-events: none;
  width: 600px; height: 600px; inset-inline-start: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 169, 242, .3), transparent 70%);
}
.integrated h2 { color: #fff; }
.integrated .eyebrow { color: var(--green-400); }
.integrated .check-list li { color: #fff; }
.integrated .check { background: rgba(140, 198, 63, .18); color: var(--green-400); }
.integrated .split-media::before { opacity: .35; }

.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: box-shadow .3s, border-color .3s;
}
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq .plus .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--blue-600); color: #fff; }
.faq-body { padding: 0 24px 22px; }
.faq-body p { margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 14px; }
.info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
a.info-card:hover { transform: translateY(-2px); border-color: var(--blue-400); box-shadow: var(--shadow); }
.info-card .icon-tile { margin: 0; width: 48px; height: 48px; }
.info-card .icon-tile.wa { background: #e8faf0; color: #128c4a; }
.info-card h3 { margin: 0 0 2px; font-size: .95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.info-card .value { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.info-body { min-width: 0; flex: 1; }

.hours-list { display: grid; gap: 4px; font-size: .95rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.hours-list li span:first-child { font-weight: 600; }
.hours-list .closed { color: #c2410c; font-weight: 600; }

.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  transition: background .2s, color .2s, transform .2s;
}
.social a:hover { transform: translateY(-2px); }
.social .icon { width: 20px; height: 20px; }
.social-block { padding: 20px 22px; border-radius: var(--radius); background: var(--surface-2); }
.social-block h3 { font-size: .95rem; margin-bottom: 12px; color: var(--muted); font-weight: 600; }
.social-block .social a { background: #fff; color: var(--navy-800); border: 1px solid var(--line); }
.social-block .social a:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .3em; }
.form-card > p, .form-intro { margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 700; color: var(--ink); }
.field .req { margin-inline-start: 2px; color: var(--danger); }

.input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface-2); color: var(--ink); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #9aa8bc; }
.input:hover { border-color: #cfdbea; }
.input:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(42, 139, 230, .15); }
textarea.input { min-height: 130px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-inline-end: 44px;
  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='%236b7b93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] select.input { background-position: left 14px center; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

.field.is-invalid .input { border-color: var(--danger); background: #fef4f4; }
.field-error { font-size: .85rem; font-weight: 600; color: var(--danger); }
.field-error:empty { display: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.form-actions .btn { flex: 1 1 200px; }
.form-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .86rem; color: var(--muted); }
.form-note .icon { width: 16px; height: 16px; color: var(--green-600); }

.form-success { padding: 28px 0 8px; text-align: center; }
.form-success:focus { outline: none; }
.form-success h2 { margin-bottom: .4em; }
.form-success p { max-width: 30em; margin: 0 auto 26px; }
.success-icon {
  display: grid; place-items: center;
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
  animation: pop .5s var(--ease);
}
.success-icon .icon { width: 40px; height: 40px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.map-wrap { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }
.map-frame {
  position: relative; overflow: hidden; min-height: 380px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.visit-card {
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--grad-navy); color: #c9d7ef;
}
.visit-card h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.visit-list { display: grid; gap: 16px; margin: 8px 0 28px; }
.visit-list li { display: flex; align-items: flex-start; gap: 14px; }
.visit-list .vi {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); color: var(--green-400);
}
.visit-list .vi .icon { width: 20px; height: 20px; }
.visit-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 72px; background: var(--navy-950); color: #a9b8d3; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 40px;
  padding-bottom: 52px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.brand-badge {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 16px; background: #fff;
}
.brand-badge img { width: 44px; height: 44px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: var(--green-400); }

.footer-brand p { max-width: 34em; margin: 20px 0; font-size: .95rem; }
.footer-brand .social a { background: rgba(255, 255, 255, .07); color: #fff; }
.footer-brand .social a:hover { background: var(--blue-600); }

.footer-title { margin-bottom: 18px; font-size: 1rem; color: #fff; letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }

.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact .icon { margin-top: 4px; width: 18px; height: 18px; color: var(--green-400); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer { flex-basis: 100%; color: #7c8cae; }
/* keep footer text clear of the floating WhatsApp button */
@media (max-width: 1380px) { .footer-bottom { padding-inline-end: 92px; } }

.footer-credit { display: inline-flex; align-items: center; gap: 6px; }
.footer-credit a {
  font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(140, 198, 63, .5);
  transition: color .2s, border-color .2s;
}
.footer-credit a:hover { color: var(--green-400); border-color: var(--green-400); }
.footer-credit .heart {
  width: 15px; height: 15px; color: #ef4444;
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  20% { transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) { .footer-credit .heart { animation: none; } }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; z-index: 90; inset-inline-end: 20px; bottom: 20px;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .75);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--whatsapp);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.65); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-ring, .float-card, .whatsapp-float::before, .success-icon { animation: none; }
  .btn:hover, .card:hover, .pillar:hover { transform: none; }
}
