/* ==========================================================================
   Prof. Dr. Safa Gürsoy — base: tokens, reset, type, chrome, controls
   World "Tarama": milk-white porcelain, graphite ink, one cobalt.
   ========================================================================== */

:root {
  --milk:    #F6F7F9;
  --white:   #FFFFFF;
  --mist:    #ECEFF4;
  --ink:     #0D1117;
  --ink-2:   #3D4655;   /* 9.9:1 on milk */
  --ink-3:   #5F6B7D;   /* 5.4:1 on milk */
  --seam:    rgb(13 17 23 / .07);
  --seam-2:  rgb(13 17 23 / .12);
  --cobalt:  #092C74;
  --cobalt-2:#0C317F;
  --cobalt-w:rgb(9 44 116 / .08);
  --on-cobalt:#FFFFFF;
  --err:     #B42318;

  --f-sans: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
  --f-display: "Funnel Display", "Funnel Sans", ui-sans-serif, sans-serif;

  --wrap: 1360px;
  --gut: clamp(16px, 4.2vw, 56px);
  --sec: clamp(64px, 8vw, 120px);

  --r-shell: 28px;
  --r-core: 22px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 1px rgb(13 17 23 / .03), 0 12px 32px -12px rgb(13 17 23 / .10), 0 40px 80px -40px rgb(9 44 116 / .12);
  --shadow-lift: 0 2px 2px rgb(13 17 23 / .04), 0 22px 48px -18px rgb(13 17 23 / .16), 0 60px 110px -50px rgb(9 44 116 / .22);

  --ease: cubic-bezier(.32, .72, 0, 1);
  --t-fast: 220ms;
  --t-mid: 520ms;
  --t-slow: 900ms;

  --nav-h: 64px;
  --z-nav: 50; --z-dock: 60; --z-menu: 100;

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--milk); color: var(--ink);
  font: 400 17px/1.62 var(--f-sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- browser surfaces ---------- */
::selection { background: var(--cobalt); color: var(--on-cobalt); }
html { scrollbar-color: #C9CFDA var(--milk); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--milk); }
::-webkit-scrollbar-thumb { background: #C9CFDA; border-radius: 10px; border: 2px solid var(--milk); }
input, textarea { caret-color: var(--cobalt); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 1000; padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--cobalt); color: var(--on-cobalt); text-decoration: none; font-weight: 600;
  transform: translateY(-180%); transition: transform var(--t-fast) var(--ease);
}
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main:focus { outline: none; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); line-height: 1.02;
  letter-spacing: -.035em; text-wrap: balance; margin-bottom: .45em;
}
.h2 em, .display em { font-style: normal; color: var(--cobalt); }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.24rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
p { text-wrap: pretty; }

/* ---------- buttons: pill + nested arrow ---------- */
.pill {
  --bg: var(--cobalt); --fg: var(--on-cobalt); --dot: rgb(255 255 255 / .16);
  display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 6px 7px 6px 24px;
  border-radius: var(--r-pill); background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgb(9 44 116 / .55);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease);
  touch-action: manipulation;
}
.pill__ico {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--dot);
  transition: transform var(--t-mid) var(--ease);
}
.pill__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { background: var(--cobalt-2); box-shadow: 0 16px 34px -14px rgb(9 44 116 / .6); }
.pill:hover .pill__ico { transform: translate(3px, -2px) scale(1.05); }
.pill:active { transform: scale(.98); }
.pill--ghost { --bg: var(--white); --fg: var(--ink); --dot: var(--mist); box-shadow: inset 0 0 0 1px var(--seam-2); }
.pill--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1px rgb(9 44 116 / .35), 0 14px 30px -18px rgb(13 17 23 / .25); }
.pill--sm { min-height: 44px; padding: 4px 5px 4px 18px; font-size: .9rem; gap: 10px; }
.pill--sm .pill__ico { width: 34px; height: 34px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--cobalt); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px;
  transition: background-size var(--t-mid) var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform var(--t-fast) var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- double-bezel shell ---------- */
.shell { padding: 6px; border-radius: var(--r-shell); background: rgb(13 17 23 / .035); box-shadow: inset 0 0 0 1px var(--seam); }
.core { border-radius: var(--r-core); background: var(--white); box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / .9); }

/* ---------- floating island nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: var(--z-nav); transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gut)), calc(var(--wrap) - 2 * var(--gut))); /* same edges as the page content (.x__in: --wrap with --gut padding) */
  display: flex; align-items: center; gap: 10px; height: var(--nav-h); padding: 0 8px 0 22px;
  border-radius: var(--r-pill); background: rgb(255 255 255 / .74);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: inset 0 0 0 1px rgb(13 17 23 / .06), 0 10px 30px -18px rgb(13 17 23 / .25);
  transition: transform var(--t-mid) var(--ease);
}
.mark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.mark__t { font-size: .78rem; font-weight: 500; color: var(--ink-3); }
.mark__n { font-size: 1.12rem; font-weight: 600; letter-spacing: -.03em; }
.mark__n i { font-style: normal; color: var(--cobalt); }
.nav__links { display: flex; gap: 2px; margin: 0 auto; }
.nav__links a {
  display: grid; place-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__links a:hover { background: var(--mist); color: var(--ink); }
.nav__links a[aria-current] { color: var(--cobalt); background: var(--cobalt-w); }
.nav__act { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: var(--r-pill); background: var(--mist); }
.lang a { display: grid; place-items: center; min-width: 38px; height: 32px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--ink-3); }
.lang a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgb(13 17 23 / .12); }
.burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); flex: none; }
.burger span { position: absolute; left: 15px; width: 18px; height: 1.6px; background: var(--white); border-radius: 2px; transition: transform var(--t-mid) var(--ease); }
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 26.4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.2px) rotate(-45deg); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: rgb(246 247 249 / .9);
  backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu__in { min-height: 100dvh; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; padding: 104px var(--gut) calc(28px + env(safe-area-inset-bottom)); }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--seam-2); }
.menu__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; text-decoration: none; }
.menu__n { font-family: var(--f-display); font-size: clamp(1.3rem, 1.05rem + 1.4vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.menu__m { font-size: .85rem; color: var(--ink-3); text-align: right; }
.menu__list a:hover .menu__n, .menu__list a:focus-visible .menu__n { color: var(--cobalt); }
.menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; justify-items: start; }
.menu__close { position: fixed; top: 22px; right: max(20px, calc((100% - var(--wrap) + 2 * var(--gut)) / 2 + 20px)); }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) .menu__list a { animation: menu-in var(--t-slow) var(--ease) both; }
  .menu__list li:nth-child(2) a { animation-delay: 50ms; }
  .menu__list li:nth-child(3) a { animation-delay: 100ms; }
  .menu__list li:nth-child(4) a { animation-delay: 150ms; }
  .menu__list li:nth-child(5) a { animation-delay: 200ms; }
  .menu__list li:nth-child(6) a { animation-delay: 250ms; }
  .menu__list li:nth-child(7) a { animation-delay: 300ms; }
  @keyframes menu-in { from { transform: translateY(110%); opacity: 0; } }
}
html.is-menu { overflow: hidden; }
/* the bar stays above the open menu, so the burger (now a close "X") is always reachable */
html.is-menu .nav { z-index: calc(var(--z-menu) + 1); transform: translateX(-50%); }
html.is-menu .nav .pill--sm { visibility: hidden; }
html.is-menu .dock { visibility: hidden; }
.burger[aria-expanded="true"] { background: var(--cobalt); }
.menu__foot { width: 100%; }
.menu__foot .pill { width: 100%; justify-content: space-between; }
.menu__lang { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 8px; padding: 4px; border-radius: var(--r-pill); background: var(--mist); }
.menu__lang a { display: grid; place-items: center; height: 42px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink-3); }
.menu__lang a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgb(13 17 23 / .12); }

/* ---------- placeholder frame (photo/video not delivered yet) ---------- */
.ph {
  position: relative; display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; height: 100%;
  min-height: 160px; padding: 24px; text-align: center; color: var(--ink-3); font-size: .86rem;
  background: var(--mist); outline: 1px dashed rgb(13 17 23 / .18); outline-offset: -14px;
}
.ph svg { width: 30px; height: 30px; fill: none; stroke: var(--ink-3); stroke-width: 1.4; }

/* ---------- reveal: native scroll-driven where supported, IO fallback ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes rv-in { from { opacity: .55; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
  @supports not (animation-timeline: view()) {
    .js .rv { opacity: .55; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
    .js .rv.is-in { opacity: 1; transform: none; }
  }
}

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--ink); color: #E8ECF3; padding: var(--sec) 0 clamp(16px, 3vw, 32px); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.foot__lead p { color: #AAB3C2; max-width: 38ch; margin: 14px 0 26px; }
.foot__lead .foot__big { font-family: var(--f-display); font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; color: #FFFFFF; margin: 0; }
.foot__h { font-size: .8rem; font-weight: 500; color: #8C96A7; margin-bottom: 14px; }
.foot__col ul { display: grid; gap: 10px; }
.foot__col a { text-decoration: none; color: #E8ECF3; }
.foot__col a:hover { color: #8FD3F4; }
.foot__col p { color: #AAB3C2; margin-bottom: 12px; }
.foot__col .num { font-size: 1.3rem; }
.foot__legal { max-width: var(--wrap); margin: 72px auto 0; padding: 22px var(--gut); display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .84rem; color: #8C96A7; }
.foot__legal p:first-child { max-width: 64ch; }
.foot__legal b { color: #C9D1DE; font-weight: 600; }
.foot .pill { --bg: var(--white); --fg: var(--ink); --dot: var(--mist); box-shadow: none; }
.foot__col .foot__book, .foot__col .foot__book:hover { color: var(--fg); margin-top: 6px; }
.foot .pill:hover { background: #fff; }

/* ---------- mobile dock ---------- */
.dock { display: none; }

@media (max-width: 1100px) {
  .nav__links, .nav__act .lang { display: none; }
  .burger { display: block; }
  .nav__act { margin-left: auto; }
}
@media (max-width: 900px) {
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__lead { grid-column: 1 / -1; }
  .foot__legal { flex-direction: column; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --nav-h: 58px; }
  .nav { top: 10px; padding-left: 18px; }
  .nav__act .pill { display: none; }
  .foot__in { grid-template-columns: 1fr; gap: 32px; }
  .foot { padding-bottom: 88px; }
  .dock {
    display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-dock);
    padding: 6px; border-radius: var(--r-pill); background: rgb(255 255 255 / .82);
    backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: inset 0 0 0 1px var(--seam), 0 14px 36px -16px rgb(13 17 23 / .35);
    transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
  }
  .dock.is-hidden { transform: translateY(140%); opacity: 0; }
  .dock .pill { justify-content: space-between; }
  .dock__call { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; }
  .dock__call svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- phone / WhatsApp pill: the second booking path ---------- */
.pill--tel { gap: 10px; padding-left: 20px; padding-right: 20px; }
.pill--tel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.pill--tel span { font-variant-numeric: tabular-nums; }

/* ---------- MRI attachment inside the booking form ---------- */
.mrup { display: grid; gap: 12px; margin: -4px 0 4px; }
.mrup[hidden] { display: none; }
.drop {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: var(--cobalt-w); box-shadow: inset 0 0 0 1px rgb(9 44 116 / .22);
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.drop:hover, .drop.is-over { background: rgb(9 44 116 / .12); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.drop:focus-within { box-shadow: inset 0 0 0 2px var(--cobalt); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--cobalt); box-shadow: 0 6px 16px -10px rgb(9 44 116 / .6); }
.drop__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop__t { display: grid; gap: 2px; }
.drop__t b { font-size: .95rem; font-weight: 600; color: var(--ink); }
.drop__t span { font-size: .8rem; color: var(--ink-3); }
.drop__list { list-style: none; display: grid; gap: 6px; }
.drop__list:empty { display: none; }
.drop__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--seam); font-size: .84rem; }
.drop__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.drop__list li small { flex: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.field__hint { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
em.field__opt { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 4px; }

/* ---------- menu v3: languages accordion, CTAs side by side, open + close motion ---------- */
.menu__langs { margin-top: 18px; border-bottom: 1px solid var(--seam-2); }
.menu__langs summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; font-size: .95rem; color: var(--ink-3); }
.menu__langs summary::-webkit-details-marker { display: none; }
.menu__langs summary b { margin-left: auto; font-weight: 600; color: var(--ink); }
.menu__langs summary::after { content: ""; width: 9px; height: 9px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform var(--t-mid) var(--ease); }
.menu__langs[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.menu__langs ul { list-style: none; display: grid; gap: 4px; padding: 0 0 14px; }
.menu__langs a { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.menu__langs a:hover { background: var(--white); color: var(--ink); }
.menu__langs a[aria-current] { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam); }
.menu__langs a[aria-current] .menu__check { width: 16px; height: 9px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: translateY(-3px) rotate(-45deg); }
.menu__langs[open] ul { animation: langs-in .35s var(--ease) both; }
@keyframes langs-in { from { opacity: 0; transform: translateY(-6px); } }
.menu__foot { grid-template-columns: 1fr 1fr; justify-items: stretch; }
.menu__foot .pill { width: auto; }
.menu__foot .pill--tel { justify-content: center; }
@media (max-width: 380px) { .menu__foot { grid-template-columns: 1fr; } }

/* open / close: the sheet fades and lifts; links rise in, then fall back on close */
.menu { opacity: 0; transition: opacity .38s var(--ease); }
.menu.is-open { opacity: 1; }
.menu .menu__in { transform: translateY(14px); transition: transform .5s var(--ease); }
.menu.is-open .menu__in { transform: none; }
.menu.is-closing .menu__list a, .menu.is-closing .menu__foot, .menu.is-closing .menu__langs { transition: opacity .22s ease, transform .3s var(--ease); opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu .menu__in { transition: none; transform: none; }
  .menu.is-closing .menu__list a, .menu.is-closing .menu__foot, .menu.is-closing .menu__langs { transition: none; }
}

/* no grey/blue flash when tapping on phones; keyboard users still get a clear focus ring */
html { -webkit-tap-highlight-color: transparent; }
summary, button, a { -webkit-tap-highlight-color: transparent; }
.q summary:focus { outline: none; }
.q summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 10px; }

/* =====================================================================
   More theme blue: calls to action and the footer carry the cobalt
   ===================================================================== */
/* booking cards (home "first step", interior closers) */
.mrband { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(9 44 116 / .25); }
.mrband .mrband__core {
  color: #fff; background: radial-gradient(80% 120% at 100% 0%, #1479A8 0%, transparent 60%), var(--cobalt);
  box-shadow: 0 30px 60px -34px rgb(8 20 90 / .6);
}
.mrband .mrband__core p { color: rgb(255 255 255 / .84); }
.mrband .pill:not(.pill--ghost) { --bg: #fff; --fg: var(--cobalt); --dot: var(--cobalt-w); }
.mrband .pill:not(.pill--ghost):hover { background: #fff; box-shadow: 0 16px 34px -14px rgb(8 20 90 / .55); }
.mrband .pill--ghost { --bg: transparent; --fg: #fff; --dot: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); }
.mrband .pill--ghost:hover { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px #fff; }
/* footer: deep blue instead of near-black */
.foot { background: radial-gradient(70% 60% at 100% 0%, #0E4F8F 0%, transparent 60%), #061A47; }
.foot__lead p, .foot__col p { color: #B8C6DD; }
.foot__h, .foot__legal { color: #8FA3C4; }
.foot__legal { border-top-color: rgb(255 255 255 / .14); }

/* bottom dock: no container behind the two buttons, each button carries its own shadow instead */
@media (max-width: 680px) {
  .dock { padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dock .pill { box-shadow: 0 14px 30px -12px rgb(9 44 116 / .6); }
  .dock__call { box-shadow: 0 14px 30px -12px rgb(13 17 23 / .55); }
}
/* dock over a blue section: white booking button, white call button */
.dock.on-blue .pill { --bg: #fff; --fg: var(--cobalt); --dot: var(--cobalt-w); box-shadow: 0 14px 30px -12px rgb(8 20 90 / .55); }
.dock.on-blue .dock__call { background: #fff; color: var(--cobalt); }
.dock .pill, .dock__call { transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }

/* ---------- nav: sub-pages under a primary item (Treatments -> Patient guide) ----------
   opens on hover and on keyboard focus; a transparent bridge keeps it open while the pointer travels down */
.navdrop { position: relative; display: flex; }
.navdrop > a { display: flex; align-items: center; gap: 4px; }
.navdrop__car { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .55; transition: transform var(--t-fast) var(--ease); }
.navdrop__panel {
  position: absolute; left: 50%; top: 100%; padding-top: 12px; min-width: 300px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.navdrop:hover .navdrop__panel, .navdrop:focus-within .navdrop__panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.navdrop:hover .navdrop__car, .navdrop:focus-within .navdrop__car { transform: rotate(180deg); }
.navdrop__list {
  list-style: none; display: grid; gap: 2px; padding: 8px; border-radius: 22px;
  background: rgb(255 255 255 / .96); box-shadow: inset 0 0 0 1px var(--seam), 0 22px 48px -20px rgb(13 17 23 / .3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav__links .navdrop__list a {
  display: grid; place-items: start; gap: 2px; height: auto; padding: 12px 14px; border-radius: 14px; text-align: left;
}
.navdrop__list b { font-weight: 600; font-size: .94rem; color: var(--ink); }
.navdrop__list span { font-size: .8rem; font-weight: 400; color: var(--ink-3); }
.nav__links .navdrop__list a:hover { background: var(--mist); }
.nav__links .navdrop__list a[aria-current] { background: var(--cobalt-w); }
.nav__links .navdrop__list a[aria-current] b { color: var(--cobalt); }
@media (prefers-reduced-motion: reduce) { .navdrop__panel, .navdrop__car { transition: none; } }

/* mobile menu: the sub-page sits under its parent, indented */
.menu__sub a { padding-left: 22px; position: relative; }
.menu__sub a::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 1px; background: var(--seam-2); }
.menu__sub .menu__n { font-size: clamp(1.05rem, .95rem + .8vw, 1.3rem); color: var(--ink-2); white-space: nowrap; }
.menu__sub .menu__m { font-size: .78rem; }

/* page changes: a short cross-document fade (Chromium, Safari 18.2+); the header stays put between pages */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
.nav { view-transition-name: sg-nav; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- back to top: a ball-and-socket joint (the hip, his specialty) ----------
   A white disc on the page. The cobalt socket closes around the femoral head from the top down both sides as the page
   is read; at 100% the head is fully seated. Hover lifts the head into the socket. */
.totop {
  position: fixed; right: max(20px, calc((100vw - 1240px) / 2 - 80px)); bottom: 28px; z-index: calc(var(--z-dock) - 1);
  width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: var(--white); color: var(--cobalt);
  box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 0 0 1px var(--seam), 0 18px 36px -20px rgb(9 44 116 / .55), 0 4px 10px -6px rgb(13 17 23 / .18);
  opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease), box-shadow .3s var(--ease);
}
.totop[hidden] { display: none; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 0 0 1px rgb(9 44 116 / .18), 0 22px 40px -18px rgb(9 44 116 / .6), 0 4px 10px -6px rgb(13 17 23 / .2); }
.totop:active { transform: scale(.96); }
.totop:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.joint { width: 58px; height: 58px; overflow: visible; }
.joint__track { fill: none; stroke: rgb(9 44 116 / .1); stroke-width: 2.2; }
.joint__cup { fill: none; stroke: var(--cobalt); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .25s linear; }
.joint__head { transition: transform .45s var(--ease); }
.joint__head circle { fill: rgb(9 44 116 / .06); stroke: rgb(9 44 116 / .22); stroke-width: 1.2; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.joint__head path { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease); }
.totop:hover .joint__head { transform: translateY(-2.5px); }
.totop:hover .joint__head circle, .totop.is-full .joint__head circle { fill: var(--cobalt); stroke: var(--cobalt); }
.totop:hover .joint__head path, .totop.is-full .joint__head path { stroke: var(--on-cobalt); }
html.is-menu .totop, html.has-consent .totop { opacity: 0; pointer-events: none; }
@media (max-width: 680px) {
  .totop { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .joint { width: 50px; height: 50px; }
}

/* ---------- cookie consent: a non-modal card, bottom-left on desktop, a bottom sheet on phones ----------
   Accept and Reject share one button style (equal weight, as the KVKK cookie guidance asks). */
.consent { position: fixed; left: max(16px, calc((100vw - 1240px) / 2)); bottom: 24px; z-index: calc(var(--z-dock) + 2); width: min(440px, calc(100vw - 32px));
  opacity: 0; transform: translateY(18px); transition: opacity .32s var(--ease), transform .45s var(--ease); }
.consent.is-in { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__card { box-shadow: inset 0 0 0 1px var(--seam), 0 30px 60px -28px rgb(9 44 116 / .45); background: rgb(255 255 255 / .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.consent__core { padding: 22px 22px 18px; }
.consent__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.consent__ico { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cobalt); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.consent__ico circle { fill: var(--cobalt); stroke: none; }
.consent__h { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.015em; margin: 0; color: var(--ink); }
.consent__p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.consent__p a { color: var(--cobalt); font-weight: 600; text-underline-offset: 3px; }
.consent__prefs { display: grid; gap: 2px; margin-top: 16px; border-top: 1px solid var(--seam-2); }
.consent__prefs[hidden] { display: none; }
.ctog { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--seam-2); cursor: pointer; }
.ctog--locked { cursor: default; }
.ctog__txt { display: grid; gap: 2px; }
.ctog__txt b { font-size: .92rem; font-weight: 600; color: var(--ink); }
.ctog__txt small { font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.ctog__state { font-size: .76rem; font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.ctog__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctog__sw { position: relative; flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--seam-2); transition: background .25s var(--ease); }
.ctog__sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgb(13 17 23 / .25); transition: transform .3s var(--ease); }
.ctog__in:checked + .ctog__sw { background: var(--cobalt); }
.ctog__in:checked + .ctog__sw::after { transform: translateX(18px); }
.ctog__in:focus-visible + .ctog__sw { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.consent__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.cbtn { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), transform .15s var(--ease); }
.cbtn:hover { background: var(--cobalt); }
.cbtn:active { transform: scale(.98); }
.cbtn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.cbtn--save { grid-column: 1 / -1; background: var(--cobalt); }
.cbtn--save[hidden] { display: none; }
.cbtn--sm { min-height: 38px; font-size: .84rem; }
.consent__more { grid-column: 1 / -1; justify-self: center; margin-top: 4px; padding: 6px 4px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent__more:hover { color: var(--cobalt); }
.foot__cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.prose button.link { padding: 0; border: 0; background: none; font: inherit; color: var(--cobalt); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* YouTube: inline consent prompt over the poster */
.vid .shell { position: relative; }
.ytask { position: absolute; inset: 6px; z-index: 2; display: grid; align-content: center; gap: 14px; padding: clamp(16px, 4vw, 32px); border-radius: var(--r-core); background: rgb(6 26 71 / .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; text-align: center; }
.ytask p { margin: 0 auto; max-width: 42ch; font-size: .9rem; line-height: 1.55; }
.ytask__act { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; }
.ytask .cbtn { background: #fff; color: var(--ink); }
.ytask .cbtn:hover { background: var(--mist); }
.ytask__out { color: #fff; font-size: .84rem; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .consent { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; }
  html.has-consent .dock { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .consent, .totop, .joint__cup, .joint__head, .ctog__sw::after { transition: none; } }
