/* ==========================================================================
   Nimeh Shaaban Hospital — public site
   Visual language: soft light-grey canvas, very round white cards, pill buttons,
   pastel tints of the logo colours, and the logo's diagonal split circle
   ("half moon") as the signature element. IPD pages switch to a dark editorial theme.
   All spacing uses logical properties so one stylesheet serves RTL and LTR.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0b2a5b;
  --navy-2: #13386f;
  --navy-ink: #0a1a33;
  --navy-deep: #07142a;
  --sun: #ffd60a;
  --sun-2: #ffe45c;
  --sun-soft: #fff3b8;
  --sun-ink: #5c4a00;
  --sky: #dce5f4;
  --sky-2: #e9eff9;
  --mint: #dff3ea;
  --mint-ink: #1f6b4a;
  --rose: #fbe4e1;
  --rose-ink: #8a2f24;
  --bg: #eef1f6;
  --card: #ffffff;
  --text: #1b2436;
  --muted: #5b6679;
  --line: #dde3ec;
  --r-xxl: 36px;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pill: 999px;
  --shadow: 0 18px 40px -22px rgba(11, 42, 91, .28);
  --shadow-sm: 0 6px 18px -10px rgba(11, 42, 91, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --font: "Vazirmatn", Tahoma, system-ui, sans-serif;
}

*, *::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: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pagein .5s var(--ease) both;
}
.lang-en body, body.lang-en { line-height: 1.7; }
@keyframes pagein { from { opacity: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.45; font-weight: 800; color: var(--navy); }
p { margin: 0 0 1em; }
bdi { unicode-bidi: isolate; }
::selection { background: var(--sun); color: var(--navy); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; background: var(--sun); padding: 8px 16px; border-radius: var(--pill); z-index: 100; transition: top .2s; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[dir="ltr"] .flip { transform: scaleX(-1); }

/* ---------- signature: half moon (logo split circle) ---------- */
.moon {
  --size: 22px;
  display: inline-block; flex: none;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--sun);
  position: relative; overflow: hidden;
  vertical-align: middle;
}
.moon i { position: absolute; inset: 0; background: var(--navy); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.moon::after { /* the white scalpel line on the diagonal */
  content: ""; position: absolute; inset: -10%;
  background: linear-gradient(135deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px));
  opacity: .9;
}
.moon--sm { --size: 12px; }
.moon--lg { --size: 64px; }
.moon--xl { --size: 220px; }
.moon--xxl { --size: 520px; }
.moon--soft { background: var(--sun-soft); }
.moon--soft i { background: var(--sky); }
.moon--soft::after { opacity: 0; }
.moon--ghost { background: rgba(255, 214, 10, .14); }
.moon--ghost i { background: rgba(255, 255, 255, .06); }
.moon--ghost::after { opacity: 0; }
.spin-slow { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  border: 0; border-radius: var(--pill);
  padding: .78em 1.5em; font-weight: 700; font-size: .95rem; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn .i { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .i.flip, .btn:hover .i-go { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .i.flip { transform: scaleX(-1) translateX(-4px); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--navy:hover { background: var(--navy-2); }
.btn--sun { background: var(--sun); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(255, 190, 0, .9); }
.btn--sun:hover { background: var(--sun-2); }
.btn--soft { background: var(--sky); color: var(--navy); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--white { background: #fff; color: var(--navy); }
.btn--sm { padding: .6em 1.15em; font-size: .88rem; }
.btn--lg { padding: 1em 1.9em; font-size: 1.02rem; }
.btn--block { width: 100%; justify-content: center; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 0; color: var(--navy);
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--sky); transform: scale(1.05); }
.icon-btn .i { width: 20px; height: 20px; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #d9e2f2; font-size: .84rem; }
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar__em { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.topbar__links { display: flex; gap: 20px; margin-inline-start: auto; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; opacity: .85; transition: opacity .2s; }
.topbar__links a:hover { opacity: 1; color: var(--sun); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4f; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #ff5a4f; animation: ping 1.8s var(--ease) infinite; }
.pulse--navy { background: var(--navy); }
.pulse--navy::after { border-color: var(--navy); }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.langs { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: var(--pill); padding: 3px; }
.langs a { padding: 2px 12px; border-radius: var(--pill); font-size: .8rem; opacity: .8; }
.langs a.on { background: var(--sun); color: var(--navy); opacity: 1; font-weight: 700; }
.langs a:not(.on):hover { opacity: 1; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: padding .3s var(--ease); }
.hdr__in {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-radius: var(--pill);
  padding: 8px 10px; padding-inline-start: 18px;
  box-shadow: var(--shadow-sm);
}
.hdr.is-scrolled { padding: 6px 0; }
.hdr.is-scrolled .hdr__in { box-shadow: 0 14px 34px -18px rgba(11, 42, 91, .45); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 46px; height: 46px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-180deg); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand__txt b { font-size: 1.15rem; color: var(--navy); font-weight: 900; }
.brand__txt small { font-size: .72rem; color: var(--muted); }
.brand--light .brand__txt b { color: #fff; }
.brand--light .brand__txt small { color: #a9b7d0; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav__item { position: relative; }
.nav__btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: var(--pill);
  background: none; border: 0; font-weight: 600; font-size: .93rem; color: var(--text);
  transition: background .2s, color .2s;
}
.nav__btn { white-space: nowrap; }
.lang-en .nav__btn { font-size: .88rem; padding-inline: 11px; }
.nav__btn:hover, .nav__item.open > .nav__btn { background: var(--bg); color: var(--navy); }
.nav__btn .chev { width: 14px; height: 14px; transition: transform .3s; }
.nav__item.open > .nav__btn .chev { transform: rotate(180deg); }
.nav__btn--ipd { color: var(--navy); }
.nav__btn--ipd > .i:first-child { color: #d4a900; }
.nav__mobile-extra { display: none; }

.drop, .mega {
  position: absolute; top: calc(100% + 14px);
  inset-inline-start: 0;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -25px rgba(11, 42, 91, .45);
  padding: 10px; min-width: 240px;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98);
  transform-origin: top;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.drop::before, .mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__item.open > .drop, .nav__item.open > .mega,
.nav__item:hover > .drop, .nav__item:hover > .mega { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 9px 14px; border-radius: var(--r-sm); font-size: .92rem; transition: background .15s, padding .2s; }
.drop a:hover { background: var(--bg); color: var(--navy); padding-inline-start: 20px; }
.mega { display: grid; grid-template-columns: 1fr 1fr 250px; gap: 8px; width: 760px; padding: 18px; inset-inline-start: -120px; }
.mega__col h6 { font-size: .78rem; color: var(--muted); margin: 0 0 6px; padding-inline-start: 10px; font-weight: 700; }
.mega__col h6.mt { margin-top: 12px; }
.mega__col a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); font-size: .9rem; transition: background .15s; }
.mega__col a .i { color: var(--navy); background: var(--sky-2); border-radius: 10px; padding: 6px; width: 30px; height: 30px; }
.mega__col a:hover { background: var(--bg); }
.mega__feature { background: var(--navy); color: #cfd9ea; border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mega__feature b { color: #fff; font-size: 1.05rem; }
.mega__feature p { font-size: .86rem; margin: 0 0 6px; line-height: 1.7; }

.hdr__actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; }

/* ---------- ticker ---------- */
.ticker {
  display: flex; align-items: center; gap: 14px;
  background: var(--sun-soft); border-radius: var(--pill);
  padding: 6px; padding-inline-end: 18px; margin-top: 2px; overflow: hidden;
}
.ticker__tag { display: inline-flex; align-items: center; gap: 10px; background: var(--sun); color: var(--navy); border-radius: var(--pill); padding: 4px 14px; font-weight: 800; font-size: .85rem; flex: none; }
.ticker__track { display: flex; gap: 40px; overflow: hidden; white-space: nowrap; font-weight: 600; color: var(--sun-ink); font-size: .93rem; }
.ticker__track a:hover { text-decoration: underline; }

/* ---------- sections ---------- */
.sec { padding: 72px 0; position: relative; }
.sec--tight { padding: 44px 0; }
.sec--white { background: #fff; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.sec__head h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 0; }
.sec__head p { color: var(--muted); margin: 6px 0 0; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 800; color: var(--navy-2); letter-spacing: .02em; margin-bottom: 8px; }
.eyebrow .moon { --size: 14px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); padding: 8px 16px; border-radius: var(--pill); background: #fff; box-shadow: var(--shadow-sm); transition: gap .25s var(--ease), background .2s; }
.link-more:hover { gap: 12px; background: var(--sun-soft); }

.card { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: var(--pill); font-size: .8rem; font-weight: 700; background: var(--sky-2); color: var(--navy); }
.chip--sun { background: var(--sun-soft); color: var(--sun-ink); }
.chip--mint { background: var(--mint); color: var(--mint-ink); }
.chip--rose { background: var(--rose); color: var(--rose-ink); }
.muted { color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 26px 0 40px; }
.hero__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: #fff; border-radius: var(--r-xxl); box-shadow: var(--shadow);
  min-height: 520px;
}
.hero__text { padding: 56px 56px 44px; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.hero__text h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.3; margin-bottom: 18px; }
/* Yellow marker under the key words; a background (not a pseudo-element) so it follows line wraps on phones. */
.hero__text h1 .hl {
  background: linear-gradient(transparent 64%, var(--sun) 64%, var(--sun) 90%, transparent 90%) no-repeat right / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: 4px;
  animation: grow 1s .6s var(--ease) both;
}
[dir="ltr"] .hero__text h1 .hl { background-position: left; }
@keyframes grow { from { background-size: 0 100%; } }
.hero__lead { color: var(--muted); font-size: 1.05rem; max-width: 520px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hero__media { position: relative; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::before { /* diagonal cut from the logo */
  content: ""; position: absolute; inset-block: 0; inset-inline-start: -1px; width: 22%; background: #fff; z-index: 1;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
[dir="ltr"] .hero__media::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
[dir="rtl"] .hero__media::before { clip-path: polygon(100% 0, 0 0, 100% 100%); inset-inline-start: auto; inset-inline-end: auto; right: -1px; }
.hero__moon { position: absolute; z-index: 3; inset-block-end: -120px; inset-inline-end: calc(48% - 150px); }
.hero__badge {
  position: absolute; z-index: 3; inset-block-end: 26px; inset-inline-end: 26px;
  background: rgba(255, 255, 255, .95); border-radius: var(--r-lg); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero__badge b { display: block; color: var(--navy); font-size: 1.05rem; }
.hero__badge small { color: var(--muted); font-size: .8rem; }
.hero__badge .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--sun); display: grid; place-items: center; color: var(--navy); }
@keyframes float { 50% { transform: translateY(-8px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.stat { background: var(--bg); border-radius: var(--r-md); padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--navy); line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--muted); }
.stat:nth-child(2) { background: var(--sun-soft); }
.stat:nth-child(2) b { color: var(--sun-ink); }

/* ---------- quick access ---------- */
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.qa {
  background: #fff; border-radius: var(--r-lg); padding: 20px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.qa::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: var(--sun-soft); inset-block-start: -45px; inset-inline-end: -45px; transition: transform .5s var(--ease); }
.qa:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.qa:hover::after { transform: scale(2.6); }
.qa > * { position: relative; z-index: 1; }
.qa .ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--sky-2); color: var(--navy); transition: transform .5s var(--ease); }
.qa:hover .ic { transform: rotate(-8deg) scale(1.08); }
.qa .ic .i { width: 26px; height: 26px; }
.qa b { font-size: .95rem; color: var(--navy); }
.qa small { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ---------- department cards ---------- */
.dept {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dept:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dept__img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--sky); }
.dept__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dept:hover .dept__img img { transform: scale(1.07); }
.dept__ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--navy); color: var(--sun); overflow: hidden; }
.dept__ph > .i { width: 64px; height: 64px; position: relative; z-index: 1; transition: transform .6s var(--ease); }
.dept:hover .dept__ph > .i { transform: scale(1.1) rotate(-6deg); }
.dept__ph .moon { position: absolute; inset-inline-end: -60px; inset-block-end: -80px; }
.dept__ic { position: absolute; inset-block-end: -22px; inset-inline-start: 20px; width: 50px; height: 50px; border-radius: 16px; background: var(--sun); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 2; }
.dept__body { padding: 32px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.dept__body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.dept__body p { color: var(--muted); font-size: .9rem; line-height: 1.8; flex: 1; }
.dept__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--navy); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); background: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); transition: background .2s, transform .2s; }
.pill-link .i { color: var(--navy-2); }
.pill-link:hover { background: var(--sun-soft); transform: translateY(-2px); }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-xxl); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.split__media > .deco { position: absolute; inset-block-start: -40px; inset-inline-start: -46px; z-index: 0; }
.split__media > .deco .moon { --size: 180px; }
.split__media .float-card { position: absolute; inset-block-end: -24px; inset-inline-start: -24px; background: #fff; border-radius: var(--r-lg); padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.split__media .float-card b { font-size: 2rem; color: var(--navy); font-weight: 900; line-height: 1; }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.3em; }
.prose h4 { font-size: 1.05rem; }
.prose a { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { color: #d4a900; }
.prose img { border-radius: var(--r-lg); margin: 1em auto; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.2em 0; font-size: .95rem; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th, .prose td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.prose th { background: var(--sky-2); color: var(--navy); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin: 1.2em 0; padding: 16px 20px; background: var(--sun-soft); border-radius: var(--r-md); color: var(--sun-ink); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r-lg); }
.prose .table-wrap { overflow-x: auto; }

/* ---------- IPD dark band ---------- */
.ipd-band { background: var(--navy-ink); color: #c9d3e6; border-radius: var(--r-xxl); overflow: hidden; position: relative; }
.ipd-band__grid { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 480px; }
.ipd-band__text { padding: 60px 56px; position: relative; z-index: 2; }
.ipd-band__text h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.35; }
.ipd-band__kicker { color: var(--sun); font-size: .8rem; letter-spacing: .12em; font-weight: 700; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ipd-band__kicker::after { content: ""; width: 48px; height: 1px; background: var(--sun); }
.ipd-band__media { position: relative; }
.ipd-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ipd-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-ink) 0, transparent 45%); }
[dir="ltr"] .ipd-band__media::after { background: linear-gradient(270deg, var(--navy-ink) 0, transparent 45%); }
.ipd-band .moon { position: absolute; inset-block-end: -120px; inset-inline-start: -120px; opacity: .5; }
.ipd-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin: 22px 0 28px; }
.ipd-feats span { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.ipd-feats .i { color: var(--sun); }

/* ---------- doctors ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.doc {
  background: #fff; border-radius: var(--r-xl); padding: 18px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.doc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doc__ph { width: 128px; height: 128px; border-radius: 50%; position: relative; margin-bottom: 10px; }
.doc__ph::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 225deg, var(--sun) 0 50%, var(--navy) 50% 100%); transition: transform .8s var(--ease); }
.doc:hover .doc__ph::before { transform: rotate(180deg); }
.doc__ph img, .doc__ph .ini { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: var(--sky); }
.doc__ph .ini { display: grid; place-items: center; color: var(--navy-2); }
.doc__ph .ini .i { width: 44%; height: 44%; stroke-width: 1.4; }
.doc h3 { font-size: 1rem; margin: 0; }
.doc p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.6; }
/* doctor profile header */
.doc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.doc-head__ph { width: 170px; height: 170px; margin: 0; }
.doc-head__chips { margin: 14px 0 0; }
.doc-head__acts { display: flex; flex-direction: column; gap: 10px; position: relative; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button, .filters a { border: 0; background: #fff; border-radius: var(--pill); padding: 8px 16px; font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-sm); transition: background .2s; }
.filters .on { background: var(--navy); color: #fff; }
.search-box { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--pill); padding: 6px 6px 6px 18px; padding-inline: 18px 6px; box-shadow: var(--shadow-sm); max-width: 520px; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font: inherit; padding: 8px 0; min-width: 0; }

/* ---------- posts ---------- */
.post { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16/10; overflow: hidden; background: var(--sky); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.post h3 { font-size: 1.05rem; margin: 0; line-height: 1.65; }
.post p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.8; }
.post--wide { grid-column: span 2; }
.post--wide .post__img { aspect-ratio: 16/8; }

/* ---------- education ---------- */
.edu-cat { background: #fff; border-radius: var(--r-lg); padding: 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), background .3s; }
.edu-cat:hover { transform: translateY(-4px); background: var(--sun-soft); }
.edu-cat .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-2); color: var(--navy); flex: none; }
.edu-cat b { color: var(--navy); display: block; }
.edu-cat small { color: var(--muted); }
.list-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), background .2s; }
.list-item:hover { transform: translateX(-4px); background: var(--sun-soft); }
[dir="ltr"] .list-item:hover { transform: translateX(4px); }
.list-item .i { color: var(--navy-2); }
.list-item span { flex: 1; font-weight: 600; }

/* ---------- insurance marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
[dir="ltr"] .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }
.ins { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--pill); padding: 8px 18px 8px 8px; padding-inline: 8px 18px; white-space: nowrap; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); }
.ins img, .ins .ic { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: var(--sky-2); display: grid; place-items: center; color: var(--navy); }

/* ---------- page head ---------- */
.phead { padding: 30px 0 10px; }
.phead__card { background: #fff; border-radius: var(--r-xxl); padding: 40px 44px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.phead__card .moon { position: absolute; inset-inline-end: -60px; inset-block-start: -60px; }
.phead__card h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin: 6px 0 8px; position: relative; }
.phead__card p { color: var(--muted); max-width: 720px; margin: 0; position: relative; }
.phead--img .phead__card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.phead--img img { border-radius: var(--r-xl); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); position: relative; }
.crumbs a:hover { color: var(--navy); }
.crumbs .i { width: 14px; height: 14px; }
[dir="rtl"] .crumbs .i { transform: scaleX(-1); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.aside .card { padding: 22px; border-radius: var(--r-lg); }
.aside h4 { font-size: 1rem; margin-bottom: 10px; }
.aside a.al { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: .9rem; }
.aside a.al:hover, .aside a.al.on { background: var(--bg); color: var(--navy); }
.aside a.al.on { font-weight: 700; }
.content-card { background: #fff; border-radius: var(--r-xl); padding: 36px 40px; box-shadow: var(--shadow-sm); }
.info-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

/* ---------- schedule table ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.day { background: #fff; border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); min-height: 180px; }
.day h4 { font-size: .95rem; display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px dashed var(--line); }
.day.today { box-shadow: 0 0 0 3px var(--sun), var(--shadow-sm); }
.slot { display: block; background: var(--bg); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: .82rem; transition: background .2s; }
.slot:hover { background: var(--sun-soft); }
.slot b { display: block; color: var(--navy); font-size: .85rem; }
.slot time { color: var(--muted); font-size: .78rem; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .93rem; }
.tbl th, .tbl td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--navy); color: #fff; font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.grp td { background: var(--sky-2); font-weight: 800; color: var(--navy); }
.tbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.tbl tbody tr:not(.grp):hover td { background: #fbfcfe; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); }

/* ---------- forms ---------- */
.form-card { background: #fff; border-radius: var(--r-xxl); padding: 36px 40px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f { display: flex; flex-direction: column; gap: 6px; }
.f--full { grid-column: 1 / -1; }
.f label, .f .lbl { font-weight: 700; font-size: .88rem; color: var(--navy); }
.f label .req { color: #d1453b; margin-inline-start: 2px; }
.f input[type=text], .f input[type=email], .f input[type=tel], .f input[type=date], .f input[type=number], .f input[type=search], .f select, .f textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 2px solid transparent; border-radius: var(--r-md);
  padding: 12px 16px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.f textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; background: #fff; border-color: var(--navy-2); box-shadow: 0 0 0 5px rgba(19, 56, 111, .1); }
.f .hint { font-size: .78rem; color: var(--muted); }
.f .err, .field-validation-error { font-size: .8rem; color: #c0392b; font-weight: 600; }
.input-validation-error { border-color: #e7a39c !important; background: #fff6f5 !important; }
.validation-summary-errors { background: var(--rose); color: var(--rose-ink); border-radius: var(--r-md); padding: 12px 18px; margin-bottom: 18px; font-size: .9rem; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 1.2em; }
.validation-summary-valid { display: none; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--pill); background: var(--bg); font-weight: 600; font-size: .88rem; transition: background .2s, color .2s, transform .2s; }
.choice input:checked + span { background: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--sun); }
.choice label:hover span { transform: translateY(-1px); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; padding: 10px 14px; background: var(--bg); border-radius: var(--r-md); }
.check input { width: 20px; height: 20px; accent-color: var(--navy); margin-top: 4px; flex: none; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.drop-zone { border: 2px dashed #b9c6db; border-radius: var(--r-lg); padding: 22px; text-align: center; background: var(--sky-2); cursor: pointer; transition: background .2s, border-color .2s; position: relative; }
.drop-zone:hover, .drop-zone.over { background: var(--sun-soft); border-color: #d4a900; }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone .i { width: 34px; height: 34px; color: var(--navy-2); margin: 0 auto 6px; }
.drop-zone b { display: block; color: var(--navy); }
.drop-zone small { color: var(--muted); }
.files-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; justify-content: center; }
.files-list span { background: #fff; border-radius: var(--pill); padding: 3px 12px; font-size: .78rem; }
.hp { position: absolute !important; inset-inline-start: -9999px; }
.fsec { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; color: var(--navy); }
.fsec:first-child { margin-top: 0; }
.fsec .n { width: 30px; height: 30px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-size: .9rem; }
.form-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 26px; flex-wrap: wrap; }

/* wizard */
.steps { display: flex; gap: 8px; margin-bottom: 28px; counter-reset: st; }
.steps li { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.steps li::before { content: ""; height: 6px; border-radius: 6px; background: var(--line); transition: background .4s var(--ease); }
.steps li.done::before, .steps li.on::before { background: var(--navy); }
.steps li.on::before { background: linear-gradient(90deg, var(--navy), var(--sun)); }
.steps li.on { color: var(--navy); }
.steps { padding: 0; margin-top: 0; }
.wstep { display: none; animation: stepin .45s var(--ease); }
.wstep.on { display: block; }
@keyframes stepin { from { opacity: 0; transform: translateY(12px); } }
.review { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; font-size: .9rem; background: var(--bg); border-radius: var(--r-md); padding: 16px 20px; }
.review dt { color: var(--muted); }
.review dd { margin: 0 0 6px; font-weight: 600; }

.success { text-align: center; padding: 50px 30px; }
.success .moon { margin: 0 auto 20px; animation: spin 2.5s var(--ease) 1; }
.code { display: inline-block; font-size: 2rem; font-weight: 900; letter-spacing: .15em; background: var(--sun-soft); color: var(--navy); border-radius: var(--r-md); padding: 8px 24px; margin: 10px 0; direction: ltr; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); font-weight: 700; font-size: .88rem; }
.status--New { background: var(--sky); color: var(--navy); }
.status--InProgress { background: var(--sun-soft); color: var(--sun-ink); }
.status--Answered { background: var(--mint); color: var(--mint-ink); }
.status--Closed, .status--Spam { background: #e8e8ea; color: #555; }

/* ---------- IPD theme ---------- */
[data-theme="ipd"] body, body[data-theme="ipd"] { background: var(--bg); }
.ipd-hero { background: var(--navy-ink); color: #c9d3e6; position: relative; overflow: hidden; margin-top: -84px; padding-top: 84px; }
.ipd-hero__bg { position: absolute; inset: 0; }
.ipd-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transform: scale(1.08); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.18) translate(-2%, -2%); } }
.ipd-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 51, .35), var(--navy-ink) 92%); }
.ipd-hero__in { position: relative; z-index: 2; padding: 110px 0 90px; max-width: 760px; }
.ipd-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.25; margin: 14px 0 18px; }
.ipd-hero p { font-size: 1.1rem; color: #b7c4dc; max-width: 560px; }
.ipd-hero .moon { opacity: .9; }
.ipd-hero__moon { position: absolute; z-index: 1; inset-inline-end: -120px; inset-block-start: 190px; }
.ipd-hero__moon .moon { --size: 400px; }
.ipd-hero__langs { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.ipd-hero__langs span { border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--pill); padding: 4px 14px; font-size: .82rem; }
.hdr--dark .hdr__in { background: rgba(10, 26, 51, .55); box-shadow: none; }
body.theme-ipd .hdr:not(.is-scrolled) .hdr__in { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
body.theme-ipd .hdr:not(.is-scrolled) .nav__btn, body.theme-ipd .hdr:not(.is-scrolled) .brand__txt b { color: #fff; }
body.theme-ipd .hdr:not(.is-scrolled) .brand__txt small { color: #a9b7d0; }
body.theme-ipd .hdr:not(.is-scrolled) .nav__btn:hover, body.theme-ipd .hdr:not(.is-scrolled) .nav__item.open > .nav__btn { background: rgba(255, 255, 255, .12); }
body.theme-ipd .hdr:not(.is-scrolled) .icon-btn { background: rgba(255, 255, 255, .12); color: #fff; }

.journey { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.journey::before { content: ""; position: absolute; top: 34px; inset-inline: 8%; height: 2px; background: repeating-linear-gradient(90deg, #c4cfe2 0 8px, transparent 8px 16px); }
.journey__line { position: absolute; top: 34px; inset-inline-start: 8%; height: 2px; width: 0; background: var(--navy); transition: width 2.2s var(--ease); }
.journey.in .journey__line { width: 84%; }
.jstep { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jstep .ic { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); box-shadow: var(--shadow); position: relative; z-index: 1; transition: background .4s, transform .4s var(--ease); }
.jstep .ic .i { width: 28px; height: 28px; }
.jstep:hover .ic { background: var(--sun); transform: scale(1.08); }
.jstep .n { position: absolute; top: -4px; inset-inline-end: calc(50% - 44px); width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; z-index: 2; }
.jstep b { color: var(--navy); font-size: .95rem; }
.jstep small { color: var(--muted); font-size: .8rem; line-height: 1.7; }

.pkg { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pkg__top { background: var(--navy); color: #cdd8ea; padding: 24px; position: relative; overflow: hidden; }
.pkg__top .moon { position: absolute; inset-inline-end: -30px; inset-block-start: -30px; --size: 110px; opacity: .9; transition: transform 1s var(--ease); }
.pkg:hover .pkg__top .moon { transform: rotate(180deg); }
.pkg__top .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: var(--sun); margin-bottom: 14px; }
.pkg__top h3 { color: #fff; font-size: 1.12rem; margin: 0; position: relative; }
.pkg__body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.pkg__body p { color: var(--muted); font-size: .9rem; margin: 0; }
.pkg__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg__price { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.pkg__price b { font-size: 1.4rem; color: var(--navy); font-weight: 900; }
.pkg__price small { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li .i { color: var(--mint-ink); margin-top: 5px; }

.team { background: #fff; border-radius: var(--r-xl); padding: 22px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow-sm); }
.team .ini .i { width: 30px; height: 30px; }
.team img, .team .ini { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; background: var(--sky); display: grid; place-items: center; font-weight: 900; color: var(--navy); font-size: 1.4rem; flex: none; }
.team b { display: block; color: var(--navy); }
.team small { color: var(--muted); display: block; }
.team .acts { display: flex; gap: 6px; margin-top: 8px; }
.team .acts a { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--navy); transition: background .2s; }
.team .acts a:hover { background: var(--sun); }

.quote { background: #fff; border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-sm); position: relative; }
.quote .i-q { position: absolute; inset-inline-end: 20px; inset-block-start: 16px; width: 44px; height: 44px; color: var(--sun); }
.quote p { font-size: .95rem; }
.quote footer { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.stars { color: #e0a800; letter-spacing: 2px; }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* ---------- gallery ---------- */
.masonry { columns: 3 260px; column-gap: 16px; }
.masonry a { display: block; margin-bottom: 16px; border-radius: var(--r-lg); overflow: hidden; position: relative; break-inside: avoid; }
.masonry img { width: 100%; transition: transform .8s var(--ease); }
.masonry a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(7, 20, 42, .94); display: none; place-items: center; padding: 30px; }
.lightbox.on { display: grid; animation: pagein .25s; }
.lightbox img { max-height: 86vh; border-radius: var(--r-lg); }
.lightbox button { position: absolute; top: 20px; inset-inline-end: 20px; background: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ccard { background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.ccard .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--sun-soft); display: grid; place-items: center; color: var(--navy); margin-bottom: 4px; }
.ccard small { color: var(--muted); }
.ccard b, .ccard a { color: var(--navy); font-weight: 700; }
.map-card { border-radius: var(--r-xl); overflow: hidden; min-height: 320px; background: var(--sky); position: relative; display: grid; place-items: center; text-align: center; padding: 30px; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: #fff; border-radius: var(--r-xl); }
.empty .moon { margin: 0 auto 14px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-weight: 700; box-shadow: var(--shadow-sm); }
.pager .on { background: var(--navy); color: #fff; }

/* ---------- footer ---------- */
.ftr { background: var(--navy-deep); color: #a9b7d0; margin-top: 80px; position: relative; overflow: hidden; border-radius: var(--r-xxl) var(--r-xxl) 0 0; }
.ftr__moon { position: absolute; inset-inline-end: -180px; inset-block-start: -160px; opacity: .06; pointer-events: none; }
.ftr__moon .moon::after { opacity: 0; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding: 64px 0 40px; position: relative; }
.ftr h5 { color: #fff; font-size: 1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ftr h5::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--sun) 50%, #5e79a6 50%); }
.ftr__grid > div > a { display: block; padding: 4px 0; font-size: .92rem; transition: color .2s, padding .2s; }
.ftr__grid > div > a:hover { color: var(--sun); padding-inline-start: 6px; }
.ftr__brand p { margin: 16px 0; font-size: .9rem; line-height: 1.9; }
.ftr__contact p { display: flex; gap: 10px; font-size: .9rem; margin-bottom: 10px; }
.ftr__contact .i { color: var(--sun); margin-top: 5px; }
.ftr__contact a:hover { color: #fff; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--sun); color: var(--navy); transform: translateY(-3px); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.ftr__bottom a:hover { color: var(--sun); }

.fab { position: fixed; z-index: 40; inset-block-end: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.fab:hover { transform: scale(1.08); }
.fab .i { width: 26px; height: 26px; }
.fab--wa { inset-inline-start: 20px; background: #25d366; color: #fff; }
.fab--call { inset-inline-start: 20px; background: #e5483d; color: #fff; display: none; }

/* ---------- reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal="left"] { transform: translateX(30px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }
.mask-in { display: inline-block; overflow: hidden; vertical-align: bottom; }
.mask-in > span { display: inline-block; animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
@keyframes rise { from { transform: translateY(105%); } }
.parallax { will-change: transform; }

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

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__btn { padding: 10px 10px; font-size: .88rem; }
  .brand__txt small { display: none; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .journey::before, .journey__line { display: none; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: inline-grid; }
  .nav {
    position: fixed; inset: 0; z-index: 60; margin: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 90px 20px 30px; overflow-y: auto;
    transform: translateY(-100%); transition: transform .45s var(--ease); visibility: hidden;
  }
  body.nav-open .nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .burger { position: fixed; top: 22px; inset-inline-end: 22px; z-index: 70; background: var(--sun); }
  .nav__btn { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: 14px 16px; background: var(--bg); border-radius: var(--r-md); color: var(--text) !important; }
  .drop, .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; width: auto; min-width: 0; padding: 6px; }
  .nav__item.open > .drop { display: block; }
  .nav__item.open > .mega { display: grid; grid-template-columns: 1fr; }
  .nav__item:hover > .drop, .nav__item:hover > .mega { opacity: 1; }
  .mega__feature { display: none; }
  .nav__mobile-extra { display: block; margin-top: 16px; }
  .langs--block { display: flex; background: var(--bg); }
  .langs--block a { flex: 1; text-align: center; padding: 10px; color: var(--text); }
  .hide-sm { display: none !important; }
  .hero__card, .ipd-band__grid, .split, .layout, .phead--img .phead__card { grid-template-columns: 1fr; }
  .hero__media { min-height: 300px; order: -1; }
  .hero__media::before { display: none; }
  .hero__text { padding: 30px 26px; }
  .hero__moon { display: none; }
  .ipd-band__media { min-height: 260px; order: -1; }
  .ipd-band__media::after { background: linear-gradient(0deg, var(--navy-ink), transparent 60%) !important; }
  .ipd-band__text { padding: 30px 26px 40px; }
  .aside { position: static; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post--wide { grid-column: auto; }
  .topbar__links { display: none; }
  .topbar__in { justify-content: space-between; }
  .fab--call { display: grid; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .btn--lg { white-space: normal; text-align: center; justify-content: center; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero__text h1 { font-size: 1.9rem; }
  .phead__card .moon { --size: 120px; inset-inline-end: -40px; inset-block-start: -40px; opacity: .7; }
  .fab { width: 48px; height: 48px; inset-block-end: 16px; inset-inline-start: 14px; }
  .fab .i { width: 22px; height: 22px; }
  main { padding-bottom: 40px; }
  .doc-head { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .doc-head .crumbs, .doc-head__chips { justify-content: center; }
  .doc-head__ph { width: 140px; height: 140px; }
  .doc-head__acts { width: 100%; }
  .doc-head__acts .btn { justify-content: center; }
  .week { grid-template-columns: 1fr; overflow: visible; }
  .week .day { min-height: 0; }
  .week .day.today { order: -1; }
  .week .day:not(:has(.slot)) { display: none; }
  .slot { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
  .slot b { grid-column: 1 / -1; }
  .sec { padding: 48px 0; }
  .grid--2, .grid--3, .grid--4, .fgrid, .fgrid--3, .checks, .review, .ipd-feats { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .content-card, .form-card { padding: 24px 20px; border-radius: var(--r-xl); }
  .phead__card { padding: 28px 22px; }
  .hdr__in { padding-inline-start: 12px; }
  .brand__txt b { font-size: 1rem; }
  .topbar .langs a { padding: 2px 8px; }
  .topbar__em { font-size: .78rem; }
  .steps li span { display: none; }
  .hide-xs { display: none !important; }
  .ipd-hero__in { padding: 70px 0 60px; }
}

/* IPD "why" list inside the dark band */
.ipd-why ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ipd-why li { display: flex; gap: 12px; align-items: center; color: #dfe6f2; }
.ipd-why li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--sun) 50%, #3d5a8c 50%); }
