/* =========================================================
   Physician's Choice — site styles
   Themes: data-theme on <html> (colour palette)
   Modes:  data-mode="light" | "dark" on <html>
   RTL:    uses logical properties, so Urdu/Arabic mirror automatically
   ========================================================= */

/* ---------- Colour themes ---------- */
:root, [data-theme="brand"] { --p1: #1d4ed8; --p2: #e11d48; }
[data-theme="ocean"]   { --p1: #0369a1; --p2: #06b6d4; }
[data-theme="teal"]    { --p1: #0f766e; --p2: #22c3b0; }
[data-theme="emerald"] { --p1: #047857; --p2: #65a30d; }
[data-theme="violet"]  { --p1: #6d28d9; --p2: #db2777; }
[data-theme="rose"]    { --p1: #be123c; --p2: #f97316; }
[data-theme="amber"]   { --p1: #b45309; --p2: #e5a50a; }
[data-theme="indigo"]  { --p1: #4338ca; --p2: #0ea5e9; }

/* ---------- Light / dark ---------- */
:root {
  --bg: #f5f7fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --text: #0d1628;
  --heading: #0a1222;
  --muted: #56637a;
  --line: #e2e8f2;
  --accent: var(--p1);
  --tint: color-mix(in oklab, var(--p1) 9%, #ffffff);
  --tint-2: color-mix(in oklab, var(--p2) 10%, #ffffff);
  --shadow-sm: 0 2px 6px -2px rgb(15 23 42 / .08);
  --shadow: 0 18px 40px -18px rgb(15 23 42 / .22);
  --shadow-lg: 0 40px 80px -30px rgb(15 23 42 / .35);
  --glow: 0 12px 30px -10px color-mix(in oklab, var(--p1) 60%, transparent);
  --footer-bg: color-mix(in oklab, var(--p1) 18%, #060b16);

  --grad: linear-gradient(120deg, var(--p1), var(--p2));
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1220px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lh: 1.7;
  --tracking: -0.02em;
  color-scheme: light;
}

[data-mode="dark"] {
  --bg: #060b17;
  --bg-alt: #0a1222;
  --surface: #0e182c;
  --surface-2: #131f37;
  --text: #dbe4f3;
  --heading: #f3f6fc;
  --muted: #94a2bb;
  --line: #1d2a45;
  --accent: color-mix(in oklab, var(--p1) 45%, #ffffff);
  --tint: color-mix(in oklab, var(--p1) 22%, #0e182c);
  --tint-2: color-mix(in oklab, var(--p2) 18%, #0e182c);
  --shadow-sm: 0 2px 6px -2px rgb(0 0 0 / .4);
  --shadow: 0 18px 40px -18px rgb(0 0 0 / .7);
  --shadow-lg: 0 40px 80px -30px rgb(0 0 0 / .8);
  --footer-bg: color-mix(in oklab, var(--p1) 12%, #03060d);
  color-scheme: dark;
}

/* ---------- Script-specific typography ---------- */
html[lang="ur"] { --font: "Noto Nastaliq Urdu", "Plus Jakarta Sans", serif; --lh: 2.15; --tracking: 0; }
html[lang="ar"] { --font: "Noto Kufi Arabic", "Plus Jakarta Sans", sans-serif; --lh: 1.9; --tracking: 0; }
html[lang="zh"] { --font: "Noto Sans SC", "Plus Jakarta Sans", sans-serif; --tracking: 0; }
html[lang="hi"] { --font: "Noto Sans Devanagari", "Plus Jakarta Sans", sans-serif; --lh: 1.85; --tracking: 0; }
html[lang="ru"] { --font: "Noto Sans", "Plus Jakarta Sans", sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .5em; line-height: 1.2; letter-spacing: var(--tracking); font-weight: 800; }
html[lang="ur"] :is(h1, h2, h3, h4) { line-height: 1.9; font-weight: 700; }
html[lang="ar"] :is(h1, h2, h3, h4), html[lang="hi"] :is(h1, h2, h3, h4) { line-height: 1.5; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in oklab, var(--p1) 30%, transparent); }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--p1) 60%, transparent); outline-offset: 3px; border-radius: 8px; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
p.ltr { display: block; }
[dir="rtl"] p.ltr { text-align: end; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section-alt { background: var(--bg-alt); }
.skip { position: absolute; inset-inline-start: 1rem; top: 0; transform: translateY(-120%); z-index: 100; background: var(--p1); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 10px; }
.skip:focus { transform: none; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); background: var(--tint);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
  border: 1px solid color-mix(in oklab, var(--p1) 18%, transparent);
}
html:is([lang="ur"], [lang="ar"], [lang="hi"], [lang="zh"]) .eyebrow { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px color-mix(in oklab, var(--p1) 15%, transparent); }
.section-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
.section-head.start { margin-inline: 0; text-align: start; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.lead { font-size: 1.12rem; color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h); padding: 0 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { transition: transform .25s ease; }
.btn:hover .ic-flip { transform: translateX(3px); }
[dir="rtl"] .btn:hover .ic-flip { transform: scaleX(-1) translateX(3px); }
.btn-primary { background: var(--grad); background-size: 140% 100%; color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 36px -12px color-mix(in oklab, var(--p1) 70%, transparent); }
.btn-ghost { border: 1.5px solid var(--line); background: var(--surface); color: var(--heading); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #0b1324; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .35); }
.btn-outline-light { border: 1.5px solid rgb(255 255 255 / .5); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); }
.btn-sm { --h: 42px; padding: 0 1.15rem; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); font-size: .95rem; }
.link-arrow:hover .ic-flip { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .ic-flip { transform: scaleX(-1) translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--footer-bg); color: rgb(255 255 255 / .82); font-size: .84rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; }
.tb-right { display: flex; gap: 1.4rem; }
.topbar .ic { color: color-mix(in oklab, var(--p2) 70%, #fff); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgb(0 0 0 / .35); }
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 50px; width: auto; }
.logo-for-dark { display: none !important; }
[data-mode="dark"] .logo-for-dark { display: block !important; }
[data-mode="dark"] .logo-for-light { display: none !important; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a.nav-link {
  position: relative; display: block; padding: .55rem .95rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background-color .2s;
}
.main-nav a.nav-link:hover { color: var(--heading); background: var(--surface-2); }
.main-nav a.nav-link.active { color: var(--accent); background: var(--tint); }
.drawer-head, .drawer-cta, .drawer-contact { display: none; }

.nav-tools { display: flex; align-items: center; gap: .45rem; }
.tool-btn {
  display: inline-flex; align-items: center; gap: .45rem; height: 42px; min-width: 42px; padding: 0 .7rem;
  justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--heading); font-weight: 600; font-size: .88rem; transition: border-color .2s, color .2s, transform .2s;
}
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }
.tool-btn .ic { width: 1.2em; height: 1.2em; }
.only-dark { display: none; }
[data-mode="dark"] .only-dark { display: block; }
[data-mode="dark"] .only-light { display: none; }
.burger { display: none; }

/* Dropdowns */
.dd { position: relative; }
.dd-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60;
  min-width: 250px; padding: .6rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; min-width: 330px; }
.lang-menu a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem;
  align-items: center; padding: .5rem .6rem; border-radius: 12px; line-height: 1.35; font-family: "Plus Jakarta Sans", "Noto Nastaliq Urdu", "Noto Kufi Arabic", "Noto Sans SC", "Noto Sans Devanagari", sans-serif;
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a.is-active { background: var(--tint); color: var(--accent); }
.lang-code { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); font-size: .72rem; font-weight: 800; letter-spacing: .04em; font-family: "Plus Jakarta Sans", sans-serif; }
.lang-menu a.is-active .lang-code { background: var(--grad); color: #fff; }
.lang-menu small { color: var(--muted); font-size: .74rem; font-family: "Plus Jakarta Sans", sans-serif; }
.dd-title { margin: .4rem .5rem .6rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.theme-menu { min-width: 280px; padding: .9rem; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin-bottom: 1rem; }
.swatch {
  position: relative; aspect-ratio: 1; border-radius: 14px; background: linear-gradient(135deg, var(--s1), var(--s2));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); transition: transform .2s;
}
.swatch:hover { transform: scale(1.07); }
.swatch[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -4px; border-radius: 17px; border: 2.5px solid var(--heading);
}
.swatch[aria-pressed="true"]::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: #fff;
}
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .55rem .3rem; border-radius: 11px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40rem 30rem at 85% 10%, color-mix(in oklab, var(--p2) 18%, transparent), transparent 70%),
    radial-gradient(45rem 35rem at 5% 90%, color-mix(in oklab, var(--p1) 18%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--p1) 28%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 65%);
  opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.07; margin-bottom: 1.4rem; }
html[lang="ur"] .hero h1 { line-height: 1.75; font-size: clamp(2rem, 4.4vw, 3.4rem); }
html[lang="ar"] .hero h1, html[lang="hi"] .hero h1 { line-height: 1.4; }
.hero h1 .grad-text { display: inline-block; }
.hero .lead { max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.trust-row li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--heading); }
.trust-row .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; }
.trust-row .tick .ic { width: 13px; height: 13px; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: 34px; padding: 10px;
  background: linear-gradient(140deg, color-mix(in oklab, var(--p1) 55%, transparent), color-mix(in oklab, var(--p2) 55%, transparent));
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
[dir="rtl"] .hero-frame { transform: rotate(1.5deg); }
.hero-frame img { border-radius: 26px; aspect-ratio: 4 / 4.3; object-fit: cover; width: 100%; }
.hero-ring { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 2px dashed color-mix(in oklab, var(--p1) 45%, transparent); inset-inline-end: -40px; top: -40px; animation: spin 30s linear infinite; z-index: -1; }
.hero-dot { position: absolute; width: 90px; height: 90px; border-radius: 26px; background: var(--grad); inset-inline-start: -28px; bottom: 60px; z-index: -1; opacity: .9; transform: rotate(18deg); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.05rem; border-radius: 18px; min-width: 210px;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--heading); font-size: 1rem; line-height: 1.3; }
.float-card span { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.float-card .fc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; flex: none; }
.float-card.fc-1 { top: 9%; inset-inline-start: -40px; }
.float-card.fc-2 { bottom: 9%; inset-inline-end: -30px; animation-delay: -3s; }
.fc-bar { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-inline-start: .4rem; }
.fc-bar i { width: 5px; border-radius: 3px; background: var(--grad); animation: bars 2.4s ease-in-out infinite; }
.fc-bar i:nth-child(1) { height: 40%; } .fc-bar i:nth-child(2) { height: 70%; animation-delay: -.4s; } .fc-bar i:nth-child(3) { height: 55%; animation-delay: -.8s; } .fc-bar i:nth-child(4) { height: 95%; animation-delay: -1.2s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bars { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }
.fc-bar i { transform-origin: bottom; }

/* ---------- Feature strip ---------- */
.features { margin-top: clamp(-4rem, -5vw, -2.5rem); position: relative; z-index: 2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
  position: relative; display: flex; gap: 1.1rem; padding: 1.7rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

.icon-tile {
  display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 17px;
  color: var(--accent); background: var(--tint); position: relative;
  transition: transform .35s ease, color .35s ease;
}
.icon-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); opacity: 0; transition: opacity .35s ease; }
.icon-tile .ic { width: 27px; height: 27px; position: relative; }
.feature:hover .icon-tile, .svc:hover .icon-tile { color: #fff; transform: rotate(-6deg) scale(1.05); }
.feature:hover .icon-tile::before, .svc:hover .icon-tile::before { opacity: 1; }
.icon-tile.solid { color: #fff; }
.icon-tile.solid::before { opacity: 1; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.collage { position: relative; padding-bottom: 3.5rem; padding-inline-end: 3.5rem; }
.collage .c-main { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.collage .c-sub { position: absolute; inset-inline-end: 0; bottom: 0; width: 52%; border-radius: var(--radius); border: 8px solid var(--bg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.section-alt .collage .c-sub { border-color: var(--bg-alt); }
.exp-badge {
  position: absolute; top: 1.4rem; inset-inline-start: -1.4rem; padding: 1.1rem 1.3rem; border-radius: 20px;
  background: var(--grad); color: #fff; box-shadow: var(--glow); text-align: center; line-height: 1.2;
}
.exp-badge strong { display: block; font-size: 2.3rem; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }
.exp-badge span { font-size: .8rem; font-weight: 600; opacity: .92; }
.check-list { display: grid; gap: .8rem; margin: 1.6rem 0 2rem; }
.check-list.two { grid-template-columns: 1fr 1fr; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--heading); line-height: 1.5; }
.check-list .tick { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--tint); color: var(--accent); margin-top: .1em; }
html[lang="ur"] .check-list .tick { margin-top: .5em; }
.check-list .tick .ic { width: 14px; height: 14px; }
.muted { color: var(--muted); }

/* ---------- Stats band ---------- */
.stats {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(2rem, 5vw, 3.4rem);
  background: var(--grad); color: #fff; box-shadow: var(--glow);
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / .18) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat + .stat { border-inline-start: 1px solid rgb(255 255 255 / .22); }
.stat .ic { width: 30px; height: 30px; opacity: .85; margin-bottom: .5rem; }
.stat-num { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.1; font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: -0.03em; }
.stat-label { font-weight: 600; opacity: .9; font-size: .95rem; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
  position: relative; display: flex; flex-direction: column; padding: 2rem 1.8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.svc::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
[dir="rtl"] .svc::after { transform-origin: right; }
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }
.svc h3 { font-size: 1.22rem; margin: 1.3rem 0 .6rem; }
.svc p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc .num { position: absolute; top: 1.3rem; inset-inline-end: 1.5rem; font-size: 2.6rem; font-weight: 800; color: var(--surface-2); font-family: "Plus Jakarta Sans", sans-serif; line-height: 1; transition: color .35s; }
.svc:hover .num { color: var(--tint); }

/* ---------- Security / HIPAA ---------- */
.secure {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(2.2rem, 6vw, 4.5rem);
  background:
    radial-gradient(40rem 25rem at 100% 0%, color-mix(in oklab, var(--p2) 35%, transparent), transparent 60%),
    radial-gradient(40rem 25rem at 0% 100%, color-mix(in oklab, var(--p1) 55%, transparent), transparent 60%),
    #07101f;
  color: rgb(255 255 255 / .82);
}
.secure h2, .secure h3 { color: #fff; }
.secure .eyebrow { color: #fff; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .18); }
.secure-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.secure-cards { display: grid; gap: 1rem; }
.sec-card {
  display: flex; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 20px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1);
  backdrop-filter: blur(8px); transition: background-color .3s, transform .3s;
}
.sec-card:hover { background: rgb(255 255 255 / .1); transform: translateX(6px); }
[dir="rtl"] .sec-card:hover { transform: translateX(-6px); }
.sec-card h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.sec-card p { margin: 0; font-size: .92rem; }
.shield-badge { display: inline-flex; align-items: center; gap: .7rem; margin-top: .6rem; padding: .7rem 1.1rem; border-radius: 14px; background: rgb(255 255 255 / .08); color: #fff; font-weight: 700; }
.shield-badge .ic { color: #4ade80; width: 22px; height: 22px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 38px; inset-inline: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--p1) 40%, transparent) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-ic {
  position: relative; display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 1.3rem;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--accent);
}
.step-ic .ic { width: 30px; height: 30px; }
.step-ic::after {
  counter-increment: step; content: counter(step);
  position: absolute; top: -4px; inset-inline-end: -4px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif; box-shadow: 0 0 0 4px var(--bg);
}
.section-alt .step-ic::after { box-shadow: 0 0 0 4px var(--bg-alt); }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.testi {
  position: relative; padding: 2.4rem 2.2rem 2rem; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.testi .q { position: absolute; top: 1.6rem; inset-inline-end: 1.8rem; width: 54px; height: 54px; color: var(--tint); }
[data-mode="dark"] .testi .q { color: var(--surface-2); }
.stars { display: flex; gap: 3px; color: #f5b301; margin-bottom: 1rem; }
.stars .ic { width: 18px; height: 18px; }
.testi blockquote { margin: 0 0 1.8rem; font-size: 1.07rem; color: var(--heading); flex: 1; position: relative; }
.person { display: flex; align-items: center; gap: .9rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; flex: none; }
.person strong { display: block; color: var(--heading); line-height: 1.3; }
.person span { color: var(--muted); font-size: .88rem; }
.person .avatar { color: #fff; font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.help-card { margin-top: 2rem; padding: 1.6rem; border-radius: var(--radius); background: var(--tint); border: 1px solid color-mix(in oklab, var(--p1) 15%, transparent); }
.help-card h3 { font-size: 1.1rem; }
.faq-list { display: grid; gap: .9rem; }
.faq-item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--p1) 35%, var(--line)); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.2rem 1.4rem; font-weight: 700; color: var(--heading); font-size: 1.03rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .pm { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--accent); transition: transform .3s, background-color .3s, color .3s; }
.faq-item[open] .pm { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-body { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq-body p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: clamp(2.2rem, 5vw, 3.6rem); border-radius: 32px; background: var(--grad); color: #fff; box-shadow: var(--glow);
}
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgb(255 255 255 / .18); }
.cta::before { width: 360px; height: 360px; inset-inline-end: -120px; top: -180px; }
.cta::after { width: 220px; height: 220px; inset-inline-end: 140px; bottom: -150px; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: .4rem; }
.cta p { margin: 0; opacity: .9; font-size: 1.05rem; }
.cta-section { padding-top: 0; }
.section-alt + .cta-section { padding-top: clamp(4rem, 8vw, 7rem); }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 5.5rem); text-align: center; isolation: isolate; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .6rem; }
.page-hero .lead { max-width: 680px; margin-inline: auto; }
.crumbs { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 1.1rem; padding: .35rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.crumbs a { color: var(--accent); }
.crumbs .ic { width: 14px; height: 14px; transform: rotate(-90deg); }
[dir="rtl"] .crumbs .ic { transform: rotate(90deg); }

/* ---------- Principles / mission ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.principle { padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; transition: transform .3s, box-shadow .3s; }
.principle:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.principle .big-num { font-size: 3.2rem; font-weight: 800; line-height: 1; margin-bottom: 1rem; display: block; font-family: "Plus Jakarta Sans", sans-serif; }
.principle h3 { font-size: 1.2rem; }
.principle p { color: var(--muted); margin: 0; font-size: .95rem; }
.mission-card { padding: clamp(2rem, 4vw, 3rem); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Prose blocks ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.prose-card { padding: 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 1.1rem; }
.prose-card p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.info-cards { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; padding: 1.4rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.info-card:hover { border-color: color-mix(in oklab, var(--p1) 40%, var(--line)); transform: translateY(-3px); }
.info-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.info-card p, .info-card a { margin: 0; color: var(--muted); }
.info-card a:hover { color: var(--accent); }
.form-card { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--heading); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text); background: var(--surface-2);
  border: 1.5px solid transparent; border-radius: 14px; padding: .85rem 1rem; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in oklab, var(--p1) 15%, transparent); }
.form-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
.map { margin-top: 1rem; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; }
[data-mode="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.socials { display: flex; gap: .55rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--heading); transition: background-color .25s, color .25s, transform .25s; }
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.socials .ic { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 0; background: var(--footer-bg); color: rgb(255 255 255 / .7); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: 4.5rem 3rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.site-footer .logo img { height: 54px; margin-bottom: 1.2rem; }
.site-footer ul { display: grid; gap: .6rem; }
.site-footer ul a { display: inline-flex; align-items: center; gap: .4rem; transition: color .2s, transform .2s; }
.site-footer ul a:hover { color: #fff; transform: translateX(4px); }
[dir="rtl"] .site-footer ul a:hover { transform: translateX(-4px); }
.site-footer .socials a { background: rgb(255 255 255 / .08); color: #fff; }
.f-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.f-contact .ic { color: color-mix(in oklab, var(--p2) 65%, #fff); margin-top: .3em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .88rem; }

/* ---------- Floating UI ---------- */
.to-top {
  position: fixed; inset-inline-end: 1.3rem; bottom: 1.3rem; z-index: 40; width: 50px; height: 50px; border-radius: 16px;
  display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  padding: .9rem 1.3rem; border-radius: 14px; background: var(--heading); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-lg);
  transition: opacity .3s, transform .3s, visibility .3s; max-width: calc(100% - 2rem);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Error page ---------- */
.error-wrap { text-align: center; padding-block: 6rem; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; font-family: "Plus Jakarta Sans", sans-serif; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav a.nav-link { padding: .5rem .7rem; }
  .hide-lg { display: none !important; }
}

@media (max-width: 1024px) {
  .burger { display: inline-flex; }
  .main-nav {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 70; width: min(86vw, 360px);
    margin: 0; padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto;
    background: var(--surface); box-shadow: var(--shadow-lg);
    clip-path: inset(0 0 0 100%); visibility: hidden;
    transition: clip-path .45s cubic-bezier(.2,.8,.2,1), visibility .45s;
  }
  [dir="rtl"] .main-nav { clip-path: inset(0 100% 0 0); }
  body.nav-open .main-nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: .2rem; }
  .main-nav a.nav-link { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 14px; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
  .drawer-head img { height: 42px; width: auto; }
  .drawer-cta { display: inline-flex; margin-top: .5rem; }
  .drawer-contact { display: grid; gap: .6rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
  .drawer-contact a { display: flex; align-items: center; gap: .6rem; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 65; background: rgb(3 7 18 / .5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav-tools { margin-inline-start: auto; }
  .hero-grid, .split, .secure-grid, .faq-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .faq-aside { position: static; }
  .svc-grid, .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .stat:nth-child(3) { border-inline-start: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar .tb-left { display: none; }
  .tb-right { width: 100%; justify-content: center; gap: 1rem; }
  .tb-right .tb-mail { display: none; }
  .nav-wrap { min-height: 68px; gap: .8rem; }
  .logo img { height: 40px; }
  .hide-sm, .tool-label { display: none !important; }
  .tool-btn { padding: 0; width: 42px; }
  .feature-grid, .svc-grid, .cards-3, .testi-grid, .prose-grid, .form-grid, .check-list.two { grid-template-columns: 1fr; }
  .features { margin-top: 0; }
  .float-card { min-width: 0; padding: .65rem .8rem; }
  .float-card.fc-1 { inset-inline-start: -6px; }
  .float-card.fc-2 { inset-inline-end: -6px; }
  .float-card .fc-ic { width: 36px; height: 36px; }
  .fc-bar { display: none; }
  .hero-ring, .hero-dot { display: none; }
  .collage { padding-inline-end: 1.5rem; padding-bottom: 2.5rem; }
  .exp-badge { inset-inline-start: .6rem; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta-section { padding-top: 0; }
.section-alt + .cta-section { padding-top: clamp(4rem, 8vw, 7rem); }
.cta-actions { justify-content: center; }
  .lang-menu { min-width: 0; width: min(88vw, 330px); position: fixed; inset-inline: 0; margin-inline: auto; top: 76px; }
  .theme-menu { position: fixed; inset-inline: 0; margin-inline: auto; top: 76px; width: min(88vw, 300px); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .testi { padding: 2rem 1.5rem 1.6rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem .5rem; }
  .hero-actions .btn { width: 100%; }
  .nav-tools { gap: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .to-top, .cta, .site-footer { display: none; }
}
