/* =========================================================
   SmartMed — Private Medical Services
   Design system + components + animations
   ========================================================= */

:root {
  --brand:        #1a4fd6;
  --brand-dark:   #1340ad;
  --brand-darker: #0e2f80;
  --brand-light:  #eaf0ff;
  --brand-tint:   #f4f7ff;
  --accent:       #25d366; /* whatsapp green */
  --ink:          #0e1726;
  --muted:        #5b6577;
  --line:         #e6eaf2;
  --white:        #ffffff;
  --radius:       18px;
  --radius-sm:    12px;
  --shadow-sm:    0 4px 14px rgba(16,30,60,.07);
  --shadow:       0 18px 50px rgba(16,40,110,.12);
  --shadow-lg:    0 30px 80px rgba(16,40,110,.20);
  --container:    1200px;
  --ease:         cubic-bezier(.22,.61,.36,1);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --display:      'Poppins', var(--font);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--display); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.skip-link { position: fixed; top: 12px; left: 12px; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 8px; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; border-radius: 100px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-lg { --pad: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(26,79,214,.32); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(26,79,214,.42); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--brand); transform: translateY(-3px); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 18px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* transparent over hero */
.site-header[data-theme="transparent"] { background: transparent; }
.site-header[data-theme="transparent"] .nav-link,
.site-header[data-theme="transparent"] .brand-name,
.site-header[data-theme="transparent"] .brand-sub { color: #fff; }
.site-header[data-theme="transparent"] .brand-mark { color: #fff; }
.site-header[data-theme="transparent"] .nav-call { color: #fff; border-color: rgba(255,255,255,.4); }

/* solid after scroll (near-opaque so it never drops out during iOS momentum scroll) */
.site-header.scrolled {
  background: rgba(255,255,255,.98);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 6px 26px rgba(16,30,60,.09);
  padding: 8px 0;
}
.site-header.scrolled .nav-link,
.site-header.scrolled .brand-name { color: var(--ink); }
.site-header.scrolled .brand-sub { color: var(--muted); }
.site-header.scrolled .brand-mark { color: var(--brand); }
.site-header.scrolled .nav-call { color: var(--ink); border-color: var(--line); }

/* brand / logo (real PNG; white over hero, color when scrolled) */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { position: relative; display: block; height: 90px; width: 135px; transition: height .35s var(--ease), width .35s var(--ease); }
.brand-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s var(--ease); }
.brand-img--color { opacity: 0; }
.site-header.scrolled .brand-img--white { opacity: 0; }
.site-header.scrolled .brand-img--color { opacity: 1; }
.site-header.scrolled .brand-logo { height: 76px; width: 114px; }

/* nav links with animated underline */
.nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 2px; }
.nav-m-head, .nav-m-foot, .nav-close { display: none; }
body.menu-open { overflow: hidden; }
.nav-link {
  position: relative; font-family: var(--display); font-weight: 500; font-size: 15px;
  padding: 8px 14px; color: var(--ink); transition: color .25s; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--brand); }
.site-header[data-theme="transparent"]:not(.scrolled) .nav-link:hover { color: #fff; opacity: .9; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-call { padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 100px; font-size: 14px; font-family: var(--display); font-weight: 600; }
.nav-call:hover { transform: translateY(-2px); }

/* hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: .3s var(--ease); }
.site-header[data-theme="transparent"]:not(.scrolled) .nav-toggle { color: #fff; }
.nav-toggle { color: var(--ink); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(102deg, rgba(7,16,44,.90) 0%, rgba(7,16,44,.62) 34%, rgba(7,16,44,.18) 60%, rgba(7,16,44,0) 88%),
    linear-gradient(0deg, rgba(7,16,44,.60) 0%, rgba(7,16,44,0) 28%),
    radial-gradient(90% 80% at 12% 88%, rgba(26,79,214,.40) 0%, transparent 55%);
}
/* full-bleed so the text hugs the page edge: left in English, right in Arabic */
.hero-content { padding: 132px clamp(24px, 4.5vw, 70px) 96px; max-width: none; text-align: start; transition: opacity .5s var(--ease), visibility .5s var(--ease); }

/* cinema mode: sound on -> hide hero text + lighten the video overlay */
.hero-overlay { transition: opacity .5s var(--ease); }
.hero.video-focus .hero-content { opacity: 0; visibility: hidden; pointer-events: none; }
.hero.video-focus .hero-overlay { opacity: .35; }
.hero.video-focus .hero-scroll { opacity: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; font-size: 12.5px; padding: 9px 18px; border-radius: 100px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); margin-bottom: 24px;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero-title { font-size: clamp(2.7rem, 6.2vw, 5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 24px; text-shadow: 0 6px 40px rgba(0,0,0,.30); max-width: 760px; margin-inline-end: auto; }
.hero-title .hl {
  background: linear-gradient(100deg, #8fb4ff 10%, #ffffff 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.06rem, 1.5vw, 1.28rem); max-width: 560px; color: rgba(255,255,255,.90); margin-bottom: 38px; line-height: 1.7; margin-inline-end: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-cta .btn-primary { box-shadow: 0 14px 38px rgba(26,79,214,.5); }
.hero-trust { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-trust li { display: flex; flex-direction: column; position: relative; }
.hero-trust li + li { padding-inline-start: 30px; }
.hero-trust li + li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 38px; background: rgba(255,255,255,.22); }
.hero-trust strong { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.hero-trust span { font-size: 12.5px; color: rgba(255,255,255,.72); letter-spacing: .04em; margin-top: 5px; }

.hero-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: #fff; border-radius: 4px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 60%{opacity:1;transform:translate(-50%,14px)} 100%{opacity:0;transform:translate(-50%,14px)} }

/* hero sound toggle — glassy pill that pulses to invite a tap, becomes a live EQ when sound is on */
.hero-audio {
  position: fixed; bottom: 92px; inset-inline-end: 24px; z-index: 89;
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px;
  border-radius: 100px; background: rgba(12,20,45,.42); border: 1px solid rgba(255,255,255,.45); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 13.5px; white-space: nowrap; letter-spacing: .01em;
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0,0,0,.28); cursor: pointer;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s, opacity .35s, visibility .35s;
}
.hero-audio:hover { transform: translateY(-2px); background: rgba(12,20,45,.62); }
.ha-ico { position: relative; display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.hero-audio .ic-on { display: none; }

/* attention ring while muted */
.hero-audio::after { content:""; position:absolute; inset:-1px; border-radius:100px; border:2px solid rgba(255,255,255,.55); opacity:0; animation: haRing 2.6s var(--ease) infinite; pointer-events:none; }
@keyframes haRing { 0%{opacity:.55; transform:scale(1)} 70%{opacity:0; transform:scale(1.16)} 100%{opacity:0} }

/* sound ON: filled brand + animated equalizer bars */
.hero-audio.sound-on { background: var(--brand); border-color: var(--brand); box-shadow: 0 12px 30px rgba(26,79,214,.5); }
.hero-audio.sound-on::after { display: none; }
.hero-audio.sound-on .ic-muted { display: none; }
.ha-eq { display: none; align-items: flex-end; gap: 2px; width: 18px; height: 15px; }
.hero-audio.sound-on .ha-eq { display: flex; }
.ha-eq i { flex: 1; background: #fff; border-radius: 2px; height: 30%; animation: haEq .95s ease-in-out infinite; }
.ha-eq i:nth-child(2){ animation-delay: .22s } .ha-eq i:nth-child(3){ animation-delay: .44s } .ha-eq i:nth-child(4){ animation-delay: .12s }
@keyframes haEq { 0%,100%{ height: 25% } 50%{ height: 100% } }

.hero-audio.hide { opacity: 0; visibility: hidden; transform: translateY(10px) scale(.92); pointer-events: none; }

/* small screens: collapse to a clean icon-only circle */
@media (max-width: 600px) {
  .hero-audio { padding: 0; width: 46px; justify-content: center; gap: 0; bottom: 90px; }
  .ha-txt { display: none; }
}

/* short / landscape screens: compress the hero so nothing overlaps */
@media (max-height: 560px) and (max-width: 1024px) {
  .hero { min-height: 520px; }
  .hero-content { padding-top: 84px; padding-bottom: 36px; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-title { font-size: clamp(1.7rem, 5.4vw, 2.6rem); margin-bottom: 12px; }
  .hero-sub { font-size: .95rem; margin-bottom: 18px; line-height: 1.55; }
  .hero-cta { margin-bottom: 0; }
  .hero-trust, .hero-scroll { display: none; }
  .hero-audio { bottom: 76px; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.logo-strip { background: var(--brand); color: #fff; overflow: hidden; padding: 16px 0; direction: ltr; }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-item { font-family: var(--display); font-weight: 600; font-size: 15px; white-space: nowrap; opacity: .92; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.kicker { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.kicker--light { color: #bcd0ff; }
.section-head h2 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); margin-bottom: 16px; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* =========================================================
   SERVICE CARDS
   ========================================================= */
.services { background: linear-gradient(180deg, #fff, var(--brand-tint)); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; inset:0 0 auto 0; height:4px; background:linear-gradient(90deg,var(--brand),#5b8bff); transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 60px; height: 60px; display: grid; place-items: center; font-size: 28px; border-radius: 16px; background: var(--brand-light); margin-bottom: 20px; transition: transform .4s var(--ease); }
.card:hover .card-icon { transform: scale(1.1) rotate(-6deg); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.card-link { font-family: var(--display); font-weight: 600; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover span { transform: translateX(5px); }

/* ---------- ICONS ---------- */
.icon { width: 24px; height: 24px; display: block; flex: none; }
.card-icon { color: var(--brand); font-size: 0; }
.card-icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.why-list span { font-size: 0; }
.why-list span .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.cm-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; }
.cm-icon .icon { width: 24px; height: 24px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact li a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 17px; height: 17px; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; position: relative; }
.step { text-align: center; padding: 16px; }
.step-num {
  width: 70px; height: 70px; margin: 0 auto 22px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 26px; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-darker)); border-radius: 50%;
  box-shadow: 0 14px 30px rgba(26,79,214,.35); position: relative;
}
.step-num::after { content:""; position:absolute; inset:-7px; border:2px dashed var(--brand-light); border-radius:50%; }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 320px; margin: 0 auto; }
.how-cta { text-align: center; margin-top: 56px; }

/* =========================================================
   WHY / STATS
   ========================================================= */
.why { background: var(--brand-tint); }
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.why-text h2 { font-size: clamp(2.1rem,3.8vw,3.2rem); margin: 8px 0 18px; line-height: 1.12; }
.why-text > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.why-list { display: grid; gap: 14px; margin-bottom: 32px; }
.why-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.why-list span { flex: none; width: 26px; height: 26px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 50%; font-size: 13px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 2.5rem; color: var(--brand); line-height: 1; }
.stat-label { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; }
.about-badge { position: absolute; right: -18px; bottom: -22px; background: #fff; border-radius: 18px; padding: 20px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.about-badge strong { font-family: var(--display); font-size: 1.9rem; color: var(--brand); line-height: 1; }
.about-badge span { font-size: .85rem; color: var(--muted); max-width: 130px; margin-top: 6px; }
.about-text h2 { font-size: clamp(2.1rem,3.8vw,3.2rem); margin: 8px 0 18px; line-height: 1.12; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.06rem; }
.about-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 26px; }
.about-points div { background: var(--brand-tint); border-radius: var(--radius-sm); padding: 18px 16px; }
.about-points strong { display: block; font-family: var(--display); color: var(--brand); margin-bottom: 4px; }
.about-points span { font-size: .85rem; color: var(--muted); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes { grid-template-columns: repeat(3,1fr); }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote-stars { color: #ffb02e; letter-spacing: 2px; margin-bottom: 14px; }
.quote-card p { font-size: 1.05rem; color: var(--ink); margin-bottom: 20px; font-style: italic; }
.quote-author strong { display: block; font-family: var(--display); }
.quote-author span { font-size: .85rem; color: var(--muted); }

/* =========================================================
   PARTNERS CAROUSEL
   ========================================================= */
.trusted { padding: 52px 0 56px; background: var(--brand-tint); overflow: hidden; }
.trusted-label { text-align: center; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .03em; margin-bottom: 30px; }
.partners-wrap { position: relative; }
.partners-carousel { width: 100%; overflow-x: auto; overflow-y: hidden; direction: ltr; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partners-carousel::-webkit-scrollbar { display: none; }
.partners-carousel.grabbing { cursor: grabbing; }
.partners-track { display: flex; align-items: center; gap: 30px; width: max-content; padding: 4px 24px; }
.partners-carousel.grabbing .partner-logo { pointer-events: none; }

/* left / right arrows */
.pc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.pc-arrow:hover { background: var(--brand); color: #fff; transform: translateY(-50%) scale(1.08); }
.pc-prev { left: 8px; }
.pc-next { right: 8px; }
[dir="rtl"] .pc-prev { left: auto; right: 8px; }
[dir="rtl"] .pc-next { right: auto; left: 8px; }
.partner-logo {
  flex: none; width: 210px; height: 124px; display: grid; place-items: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 18px 24px; transition: transform .35s var(--ease), box-shadow .35s;
}
.partner-logo img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.partner-logo:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.partner-logo:hover img { transform: scale(1.05); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: linear-gradient(150deg, var(--brand-darker), var(--brand)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-text h2 { font-size: clamp(2.1rem,3.9vw,3.2rem); margin: 8px 0 16px; line-height: 1.12; }
.contact-text > p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 30px; }
.contact-methods { display: grid; gap: 14px; }
.contact-method { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 16px 20px; transition: background .3s, transform .3s; }
.contact-method:hover { background: rgba(255,255,255,.18); transform: translateX(5px); }
.cm-icon { font-size: 22px; }
.contact-method strong { font-family: var(--display); }

.contact-form { background: #fff; color: var(--ink); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 15px; background: #fbfcfe; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }
.field textarea { resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.contact-form .btn { margin-top: 6px; }
.form-note { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 14px; }
.form-note a { color: var(--brand); font-weight: 600; }
.form-alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .92rem; font-weight: 500; }
.form-alert.ok { background: #e7f9ee; color: #157a3e; border: 1px solid #b6ebc9; }
.form-alert.err { background: #fdeaea; color: #b32424; border: 1px solid #f4c2c2; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0c1322; color: #c4cbd9; padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer .brand-logo { height: 82px; width: 123px; }
.brand--footer .brand-img--white { opacity: 1; }
.brand--footer .brand-img--color { display: none; }
.footer-tag { margin: 20px 0; max-width: 320px; font-size: .95rem; color: #97a1b3; }
.footer-social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .3s, transform .3s; }
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: #97a1b3; font-size: .94rem; transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { font-size: .94rem; color: #97a1b3; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #7d889b; }
.footer-legal a:hover { color: #fff; }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.fab-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease); animation: fabpulse 2.4s infinite;
}
.fab-whatsapp:hover { transform: scale(1.1); }
@keyframes fabpulse { 0%{box-shadow:0 12px 30px rgba(37,211,102,.45),0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 12px 30px rgba(37,211,102,.45),0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 12px 30px rgba(37,211,102,.45),0 0 0 0 rgba(37,211,102,0)} }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid, .quotes, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media { max-width: 480px; }
}
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .header-actions .nav-call, .header-actions .lang-switch { display: none; }   /* moved into the drawer */
  .nav-toggle { display: block; }
  /* backdrop-filter on the header would make it a containing block for the fixed
     drawer (collapsing it into the bar). Drop it on mobile so the drawer fills the screen. */
  .site-header.scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* ---- modern slide-in drawer ---- */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px);
    background: #fff; box-shadow: -24px 0 70px rgba(8,16,40,.28);
    transform: translateX(100%); transition: transform .42s var(--ease);
    padding: 0; z-index: 99; display: flex; flex-direction: column;
    overscroll-behavior: contain; overflow-y: auto;
  }
  body.menu-open .nav { transform: translateX(0); }

  .nav-m-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
  .nav-m-logo { height: 40px; width: auto; }
  .nav-close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--brand-tint); color: var(--ink); cursor: pointer; transition: background .2s, transform .2s; }
  .nav-close:hover { background: var(--brand-light); transform: rotate(90deg); }

  .nav-list { flex-direction: column; gap: 0; padding: 12px 0; flex: 1; }
  .nav-link {
    color: var(--ink) !important; font-size: 18px; font-weight: 600; padding: 16px 26px;
    display: flex; align-items: center; justify-content: space-between; border-radius: 0;
    transition: background .2s, padding .2s, color .2s;
    opacity: 0; transform: translateX(20px);
  }
  [dir="rtl"] .nav-link { transform: translateX(-20px); }
  .nav-link::after { content: "›"; position: static; width: auto; height: auto; background: none; transform: none; font-size: 22px; color: var(--muted); font-family: var(--font); }
  [dir="rtl"] .nav-link::after { content: "‹"; }
  .nav-link:hover, .nav-link.active { background: var(--brand-tint); color: var(--brand) !important; padding-inline-start: 32px; }
  .nav-link.active::after { color: var(--brand); }
  body.menu-open .nav-link { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .2s, color .2s; }
  body.menu-open .nav-link:nth-child(1) { transition-delay: .08s; }
  body.menu-open .nav-link:nth-child(2) { transition-delay: .14s; }
  body.menu-open .nav-link:nth-child(3) { transition-delay: .20s; }
  body.menu-open .nav-link:nth-child(4) { transition-delay: .26s; }
  body.menu-open .nav-link:nth-child(5) { transition-delay: .32s; }

  .nav-m-foot { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--brand-tint); }
  .nav-m-book { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; padding: 15px; border-radius: 100px; box-shadow: 0 10px 24px rgba(26,79,214,.3); }
  .nav-m-book:hover { background: var(--brand-dark); }
  .nav-m-foot-row { display: flex; gap: 10px; }
  .nav-m-call, .nav-m-lang { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); }
  .nav-m-call:hover, .nav-m-lang:hover { border-color: var(--brand); color: var(--brand); }

  .nav-overlay { position: fixed; inset: 0; background: rgba(8,16,30,.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .3s; z-index: 98; }
  body.menu-open .nav-overlay { opacity: 1; visibility: visible; }
  .hero-trust { gap: 26px; }
}
@media (max-width: 600px) {
  .cards-grid, .quotes, .steps, .stats, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .hero-content { padding-top: 120px; }
  .hero-title { font-size: 2.15rem; }
  .hero-sub { font-size: 1.02rem; }
  .section-head h2, .why-text h2, .about-text h2, .contact-text h2 { font-size: 2rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .brand-sub { display: none; }
  .about-points { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .about-points strong { font-size: .95rem; }
  .about-points span { font-size: .78rem; }
  .about-badge { right: 10px; bottom: -16px; padding: 14px 18px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-book span { display: none; }
  .nav-book { padding: 11px 14px; }
}

/* hard guard against any horizontal overflow on small screens */
h1, h2, h3 { overflow-wrap: break-word; }
html, body { max-width: 100%; overflow-x: hidden; }

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 100px; border: 1.5px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink);
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.lang-switch:hover { transform: translateY(-2px); background: var(--brand-light); border-color: var(--brand-light); color: var(--brand); }
.site-header[data-theme="transparent"]:not(.scrolled) .lang-switch { color: #fff; border-color: rgba(255,255,255,.4); }
.site-header[data-theme="transparent"]:not(.scrolled) .lang-switch:hover { background: rgba(255,255,255,.16); color: #fff; }

/* =========================================================
   ARABIC TYPOGRAPHY (swap font tokens for the whole site)
   ========================================================= */
body.lang-ar { --font: 'Tajawal', system-ui, sans-serif; --display: 'Cairo', 'Tajawal', sans-serif; line-height: 1.8; }
body.lang-ar .brand-name { font-family: 'Poppins', sans-serif; }   /* keep the Latin wordmark */
body.lang-ar .brand-sub { letter-spacing: 0; }
body.lang-ar .hero-eyebrow, body.lang-ar .kicker { letter-spacing: .02em; }
body.lang-ar .kicker { font-size: 18px; }
body.lang-ar .hero-title { line-height: 1.3; }

/* =========================================================
   RTL DIRECTIONAL OVERRIDES
   ========================================================= */
[dir="rtl"] .brand-name { direction: ltr; }
[dir="rtl"] .card-link .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .card-link:hover .arrow { transform: scaleX(-1) translateX(5px); }
[dir="rtl"] .contact-method:hover { transform: translateX(-5px); }
[dir="rtl"] .footer-col a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .about-badge { right: auto; left: -18px; }
/* mirror the hero scrim so the dark side follows the (right-aligned) Arabic text */
[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(258deg, rgba(7,16,44,.90) 0%, rgba(7,16,44,.62) 34%, rgba(7,16,44,.18) 60%, rgba(7,16,44,0) 88%),
    linear-gradient(0deg, rgba(7,16,44,.60) 0%, rgba(7,16,44,0) 28%),
    radial-gradient(90% 80% at 88% 88%, rgba(26,79,214,.40) 0%, transparent 55%);
}

/* off-canvas mobile menu slides in from the left in RTL */
@media (max-width: 1024px) {
  [dir="rtl"] .nav { inset: 0 auto 0 0; transform: translateX(-100%); box-shadow: 20px 0 60px rgba(0,0,0,.18); }
  body.menu-open[dir="rtl"] .nav, [dir="rtl"] body.menu-open .nav { transform: translateX(0); }
}
@media (max-width: 600px) {
  [dir="rtl"] .about-badge { left: 10px; right: auto; }
}
