/* Medical Mark — main.css */
:root {
  --teal: #1FA6A6;
  --navy: #0E2A47;
  --bg: #040D18;
  --bg2: #071523;
  --card: #0C1E30;
  --text: #F0F4F8;
  --muted: #8BA3BA;
  --dim: #4A6478;
  --border: rgba(31,166,166,.15);
  --border-h: rgba(31,166,166,.4);
  --font-d: 'Syne', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --font-a: 'Tajawal', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease2: cubic-bezier(.83,0,.17,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) var(--bg2);
}
html::-webkit-scrollbar { width: 4px; }
html::-webkit-scrollbar-track { background: var(--bg2); }
html::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  overflow-x: hidden;
  cursor: none;
}
[lang="ar"] body, body[dir="rtl"] { font-family: var(--font-a); }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: .35;
}

/* ── Cursor ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--teal); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 99999;
  transition: transform .12s var(--ease), opacity .3s;
  mix-blend-mode: screen;
}
.cursor-follower {
  width: 34px; height: 34px;
  border: 1px solid var(--teal); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 99998;
  opacity: .45;
  transition: transform .3s var(--ease);
}
.cursor.hov { transform: scale(4); opacity: .25; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.navbar.scrolled {
  background: rgba(4,13,24,.94);
  backdrop-filter: blur(20px);
  padding: 14px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-logo-text { font-family: var(--font-d); font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; }
.nav-logo-text em { color: var(--teal); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--teal);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: 6px 16px; border-radius: 30px;
  font-size: 12px; cursor: pointer; transition: all .3s;
  font-family: inherit; font-weight: 600; letter-spacing: .5px;
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.btn-nav {
  background: var(--teal); color: #fff;
  padding: 9px 22px; border-radius: 30px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: all .3s; white-space: nowrap;
}
.btn-nav:hover { box-shadow: 0 0 28px rgba(31,166,166,.45); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* Mobile Nav */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--bg); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a { font-family: var(--font-d); font-size: 28px; font-weight: 800; color: var(--text); text-decoration: none; transition: color .3s; }
.mobile-nav a:hover { color: var(--teal); }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* Page Hero (inner pages) */
.page-hero {
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(31,166,166,.07) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(31,166,166,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(31,166,166,.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero-content { position: relative; z-index: 2; max-width: 700px; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31,166,166,.1); border: 1px solid var(--border);
  padding: 6px 18px; border-radius: 30px;
  font-size: 11px; font-weight: 700; color: var(--teal);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}
.page-hero-eyebrow::before { content: ''; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.4} }
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -2.5px; margin-bottom: 20px;
}
[lang="ar"] .page-hero h1 { font-family: var(--font-a); letter-spacing: -.5px; }
.page-hero h1 span { color: var(--teal); }
.page-hero p { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 520px; }

/* Section labels */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.label::before { content: ''; width: 20px; height: 1px; background: var(--teal); }
.sec-title {
  font-family: var(--font-d);
  font-size: clamp(30px, 4vw, 52px); font-weight: 800;
  line-height: 1.1; letter-spacing: -2px; margin-bottom: 16px;
}
[lang="ar"] .sec-title { font-family: var(--font-a); letter-spacing: -.5px; }
.sec-title span { color: var(--teal); }
.sec-sub { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 520px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .4s var(--ease); position: relative; overflow: hidden;
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(31,166,166,.5); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); color: var(--text);
  padding: 14px 32px; border-radius: 50px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: all .4s var(--ease);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* Cards */
.card-dark {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; transition: border-color .3s, transform .3s;
}
.card-dark:hover { border-color: var(--border-h); transform: translateY(-3px); }

/* Dividers */
.dark-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s}

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 52px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 280px; margin-top: 8px; }
.footer-logo-text { font-family: var(--font-d); font-size: 20px; font-weight: 800; }
.footer-logo-text em { color: var(--teal); font-style: normal; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-decoration: none; transition: all .3s;
}
.social-icon:hover { border-color: var(--teal); color: var(--teal); }
.footer-heading { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: var(--dim); }

/* WhatsApp */
.wa-float {
  position: fixed; bottom: 28px; z-index: 9000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
[dir="rtl"] .wa-float { left: 28px; align-items: flex-start; }
[dir="ltr"] .wa-float { right: 28px; }
.wa-btn {
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s;
  animation: wap 3s ease-in-out infinite;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 36px rgba(37,211,102,.6); }
@keyframes wap { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,.4)}50%{box-shadow:0 4px 36px rgba(37,211,102,.7)} }
.wa-tooltip {
  background: #25D366; color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; white-space: nowrap;
  opacity: 0; transform: translateX(10px);
  transition: all .3s; pointer-events: none;
}
[dir="rtl"] .wa-tooltip { transform: translateX(-10px); }
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .navbar.scrolled { padding: 12px 20px; }
  section { padding: 64px 0; }
  .page-hero { padding: 120px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
