/* ═══════════════════════════════════════════════════════════════
   MEDMATCH GLOBAL — THE ACADEMY
   Mediterranean edition: turquoise sea, white light, quiet luxury.
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: only light; /* stop mobile browsers force-darkening the palette */
  --foam:       #F4FAF9;   /* light background        */
  --shell:      #FFFFFF;
  --sand:       #F2EFE7;   /* warm secondary bg       */
  --sea-deep:   #06333B;   /* darkest — footer, cards */
  --sea:        #0B4A54;   /* deep teal               */
  --teal:       #12707B;
  --turquoise:  #2FA9A4;   /* primary accent          */
  --aqua:       #8FD6D0;
  --ink:        #0C2B30;
  --ink-soft:   #4E6A6D;
  --line:       rgba(12, 43, 48, 0.15);
  --line-soft:  rgba(12, 43, 48, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Segoe UI", sans-serif;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--turquoise); color: var(--shell); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════ TYPO PRIMITIVES ═══════════ */

.eyebrow {
  font-size: 11px; letter-spacing: 0.42em; font-weight: 500;
  color: var(--turquoise); text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow--light { color: var(--aqua); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 26px 0 0;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--teal); }
.display--light { color: var(--shell); }

.lede {
  max-width: 560px; margin-top: 28px;
  font-size: 17px; font-weight: 300; color: var(--ink-soft);
}
.lede--light { color: rgba(244, 250, 249, 0.78); }

.rule {
  height: 1px; background: linear-gradient(90deg, var(--turquoise), transparent);
  margin-top: 34px; width: 100%; max-width: 420px;
  transform-origin: left center;
}

.section-head { padding: 0 7vw; max-width: 1200px; }

.word, .char { display: inline-block; will-change: transform; }
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* ═══════════ BUTTONS ═══════════ */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 38px;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; border-radius: 999px;
  overflow: hidden; transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
  white-space: nowrap;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
  border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }

.btn--gold { background: linear-gradient(120deg, var(--turquoise), var(--teal)); color: var(--shell); box-shadow: 0 12px 32px -12px rgba(18, 112, 123, 0.55); }
.btn--gold::before { background: var(--sea-deep); }

.btn--ghost { border-color: rgba(255,255,255,0.55); color: var(--shell); background: rgba(6, 51, 59, 0.12); backdrop-filter: blur(4px); }
.btn--ghost::before { background: var(--shell); }
.btn--ghost:hover { color: var(--sea-deep); border-color: var(--shell); }

.btn--ivory { background: var(--shell); color: var(--sea-deep); }
.btn--ivory::before { background: var(--turquoise); }
.btn--ivory:hover { color: var(--shell); }

/* ═══════════ PRELOADER ═══════════ */

.loader { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; }
.loader__curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--sea-deep); }
.loader__curtain--l { left: 0; }
.loader__curtain--r { right: 0; }
.loader__center { position: relative; z-index: 2; text-align: center; color: var(--aqua); }
.loader__emblem { width: 110px; height: 110px; }
.loader__ring { stroke-dasharray: 352; stroke-dashoffset: 352; }
.loader__mono { font-family: var(--serif); font-size: 30px; fill: var(--aqua); letter-spacing: 2px; }
.loader__word { margin-top: 18px; font-size: 11px; letter-spacing: 0.5em; color: rgba(244, 250, 249, 0.65); }
.loader__pct { margin-top: 10px; font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--aqua); }

/* ═══════════ CURSOR ═══════════ */

.cursor { position: fixed; top: 0; left: 0; z-index: 3500; pointer-events: none; }
.cursor__dot {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--turquoise); transform: translate(-50%, -50%);
}
.cursor__ring {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(47, 169, 164, 0.6); transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s;
}
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; border-color: rgba(47, 169, 164, 0.95); }
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }

/* ═══════════ NAV ═══════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 4vw;
  color: var(--shell);
  transition: padding 0.5s var(--ease), background 0.5s, box-shadow 0.5s, color 0.5s;
}
.nav.is-solid {
  padding: 14px 4vw;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft);
  color: var(--ink);
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.25; }
.nav__brand-name { font-size: 15px; letter-spacing: 0.28em; font-weight: 500; }
.nav__brand-sub { font-size: 9px; letter-spacing: 0.6em; color: var(--aqua); font-weight: 500; }
.nav.is-solid .nav__brand-sub { color: var(--turquoise); }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400;
  position: relative; padding: 4px 0; opacity: 0.9;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav__cta { padding: 13px 28px; }
.nav__burger { display: none; background: none; border: 0; width: 34px; height: 24px; position: relative; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: 0.4s var(--ease); }
.nav__burger span:first-child { top: 7px; } .nav__burger span:last-child { top: 16px; }
.nav__burger.is-open span:first-child { top: 11px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child { top: 11px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 1900; background: var(--sea-deep);
  display: grid; place-items: center; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease); visibility: hidden;
}
.mmenu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; }
.mmenu nav { display: flex; flex-direction: column; gap: 26px; text-align: center; }
.mmenu a { font-family: var(--serif); font-size: 34px; font-style: italic; color: var(--foam); }
.mmenu a:last-child { color: var(--aqua); }
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ═══════════ HERO — the Mediterranean ═══════════ */

.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: var(--sea-deep);
  color: var(--shell);
}
.hero__bg {
  position: absolute; inset: -6% 0; background-size: cover; background-position: center 40%;
  background-color: #0E5560;
  will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 51, 59, 0.55) 0%, rgba(6, 51, 59, 0.22) 40%, rgba(6, 51, 59, 0.66) 100%),
    linear-gradient(90deg, rgba(6, 51, 59, 0.55) 0%, rgba(6, 51, 59, 0.06) 65%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mix-blend-mode: screen; opacity: 0.75; }
.hero__inner {
  position: relative; z-index: 2;
  padding: 16vh 7vw 0; max-width: 1250px;
}
.hero__eyebrow {
  font-size: 11px; letter-spacing: 0.42em; font-weight: 500; color: var(--aqua);
  display: flex; align-items: center; gap: 14px;
}
.crest { width: 22px; height: 22px; color: var(--aqua); flex: none; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(54px, 8.6vw, 132px);
  line-height: 1.0; letter-spacing: -0.015em;
  margin-top: 34px;
  color: var(--shell);
  text-shadow: 0 2px 40px rgba(6, 51, 59, 0.4);
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.06em; }
.hero__line--em { font-style: italic; color: var(--aqua); }
.hero__sub { max-width: 540px; margin-top: 34px; color: rgba(244, 250, 249, 0.94); font-size: 17px; text-shadow: 0 1px 18px rgba(6, 51, 59, 0.55); }
.hero__cta { display: flex; gap: 18px; margin-top: 44px; flex-wrap: wrap; }

.hero__foot {
  position: relative; z-index: 2;
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 7vw 42px;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--shell); }
.hero__stat span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 250, 249, 0.65); }
.hero__scrollcue { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__scrollcue span { font-size: 10px; letter-spacing: 0.5em; color: rgba(244, 250, 249, 0.65); }
.hero__scrollcue i {
  width: 1px; height: 62px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; display: block;
}
.hero__scrollcue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--aqua); animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { top: -50%; } 60%, 100% { top: 110%; } }

@media (max-width: 700px) {
  .hero__foot .hero__stat:last-child { display: none; }
  .hero__inner { padding-top: 20vh; }
}

@media (max-width: 480px) {
  .hero__inner { padding-left: 6vw; padding-right: 6vw; }
  .hero__eyebrow { font-size: 9.5px; letter-spacing: 0.18em; line-height: 1.6; gap: 10px; }
  .hero__title { font-size: clamp(38px, 11vw, 60px); letter-spacing: -0.01em; }
  .hero__sub { font-size: 15px; max-width: 100%; }
  .hero__cta { gap: 12px; }
  .hero__cta .btn { padding: 15px 24px; font-size: 11px; flex: 1 1 auto; }
  .hero__foot { padding: 0 6vw 28px; flex-wrap: wrap; gap: 18px; }
  .hero__stat strong { font-size: 24px; }
  .display { overflow-wrap: break-word; }
}

/* ═══════════ MARQUEE ═══════════ */

.marquee {
  padding: 22px 0; overflow: hidden; background: var(--sea-deep);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--serif); font-size: 22px; font-style: italic; white-space: nowrap;
  color: rgba(244, 250, 249, 0.75); padding-right: 12px;
}
.marquee__track i { color: var(--turquoise); font-style: normal; font-size: 14px; vertical-align: 3px; padding: 0 18px; }

/* ═══════════ THE STANDARD ═══════════ */

.standard { padding: 16vh 0 14vh; background: var(--shell); }
.standard__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 10vh;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.pillar {
  padding: 54px 40px 64px; position: relative;
  border-right: 1px solid var(--line-soft);
  transition: background 0.6s var(--ease);
}
.pillar:first-child { border-left: 1px solid var(--line-soft); }
.pillar::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--turquoise), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.pillar:hover { background: var(--foam); }
.pillar:hover::after { transform: scaleX(1); }
.pillar__num { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--turquoise); }
.pillar h3 { font-family: var(--serif); font-size: 27px; font-weight: 500; margin: 18px 0 14px; }
.pillar p { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 1080px) { .standard__grid { grid-template-columns: 1fr 1fr; } .pillar { border-bottom: 1px solid var(--line-soft); } }
@media (max-width: 640px)  { .standard__grid { grid-template-columns: 1fr; } }

/* ═══════════ INTERLUDES — full-bleed photo bands ═══════════ */

.interlude {
  position: relative; height: 74vh; overflow: hidden;
  display: grid; place-items: center;
}
.interlude--short { height: 58vh; }
.interlude__img {
  position: absolute; inset: -14% 0;
  background-size: cover; background-position: center;
  background-color: var(--sea);
  will-change: transform;
}
.interlude__veil { position: absolute; inset: 0; background: rgba(6, 51, 59, 0.58); }
.interlude__quote {
  position: relative; z-index: 2; text-align: center; padding: 0 7vw;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.35; color: var(--shell);
  text-shadow: 0 2px 30px rgba(6, 51, 59, 0.5);
}

/* ═══════════ TREATMENTS — HORIZONTAL ═══════════ */

.treatments { background: linear-gradient(180deg, var(--foam), var(--sand)); }
.hwrap { overflow: hidden; }
.htrack { display: flex; height: 100vh; align-items: stretch; width: max-content; }

.tpanel {
  width: min(88vw, 1000px); height: 100%;
  flex: none; display: flex; align-items: center; gap: 5vw;
  padding: 0 6vw; position: relative;
  border-right: 1px solid var(--line-soft);
}
.tpanel--intro {
  width: min(70vw, 760px); flex-direction: column; align-items: flex-start; justify-content: center;
  background-size: cover; background-position: center; position: relative;
}
.tpanel--intro::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--foam) 0%, rgba(244, 250, 249, 0.94) 55%, var(--sand) 100%);
  opacity: 0.96; pointer-events: none;
}
.tpanel--intro > * { position: relative; z-index: 1; }
.tpanel--intro .lede { margin-top: 24px; color: var(--ink); font-weight: 400; }
.tpanel__arrow { font-size: 44px; color: var(--turquoise); margin-top: 7vh; }

.tpanel__plate {
  flex: none; width: clamp(220px, 26vw, 360px); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 30%, #10606C 0%, var(--sea) 60%, var(--sea-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(143, 214, 208, 0.3), 0 30px 60px -30px rgba(6, 51, 59, 0.55);
  color: var(--aqua);
  position: relative;
}
.tpanel__plate svg { width: 72%; height: 72%; }
.tpanel__platenum {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(143, 214, 208, 0.75);
  letter-spacing: 0.3em;
}

.tpanel__body { max-width: 480px; }
.tpanel__num { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--turquoise); letter-spacing: 0.2em; }
.tpanel__title { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; line-height: 1.05; margin: 12px 0 20px; }
.tpanel__body > p { color: var(--ink-soft); font-size: 15px; max-width: 430px; }

.tpanel__meta { display: flex; align-items: flex-end; gap: 26px; margin: 30px 0 26px; flex-wrap: wrap; }
.tpanel__meta em { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft); }
.tpanel__meta strong { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; color: var(--sea); }
.tpanel__meta div > span { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.tpanel__save {
  font-size: 9px; letter-spacing: 0.14em; font-weight: 500; color: var(--teal);
  border: 1px solid rgba(47, 169, 164, 0.5); border-radius: 999px; padding: 9px 14px;
  margin-bottom: 6px; background: rgba(47, 169, 164, 0.08);
  white-space: nowrap;
}
.tpanel__includes {
  margin: -14px 0 22px; font-family: var(--sans); font-size: 0.72rem;
  color: var(--ink-soft); opacity: 0.8; max-width: 380px;
}
.tpanel__link {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
  color: var(--teal); display: inline-flex; gap: 10px; align-items: center;
  border-bottom: 1px solid rgba(47, 169, 164, 0.55); padding-bottom: 6px;
  transition: gap 0.4s var(--ease);
}
.tpanel__link:hover { gap: 16px; }
@media (max-width: 480px) { .tpanel__save { font-size: 8.5px; letter-spacing: 0.08em; padding: 8px 12px; } }

@media (max-width: 900px) {
  .htrack { height: auto; flex-direction: column; width: 100%; }
  .tpanel { width: 100%; height: auto; flex-direction: column; align-items: flex-start; padding: 14vw 8vw; border-right: 0; border-bottom: 1px solid var(--line-soft); gap: 40px; }
  .tpanel--intro { width: 100%; }
  .tpanel__arrow { display: none; }
  .tpanel__plate { width: 200px; }
}

/* ═══════════ NUMBERS ═══════════ */

.numbers { background: var(--sea-deep); color: var(--foam); padding: 13vh 7vw; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1250px; margin: 0 auto; }
.numbers__item { text-align: center; }
.numbers__item strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 4.6vw, 74px); color: var(--aqua); line-height: 1;
}
.numbers__item > span { display: block; margin-top: 14px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(244, 250, 249, 0.55); }
@media (max-width: 900px) { .numbers__grid { grid-template-columns: 1fr 1fr; gap: 56px 20px; } }

/* ═══════════ THE FACULTY ═══════════ */

.faculty { padding: 16vh 0 14vh; background: var(--shell); }

/* partner clinic / hospital cards */
.partners__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin: 8vh 4vw 0; max-width: 1500px;
}
@media (max-width: 1080px) { .partners__grid { grid-template-columns: 1fr; max-width: 640px; margin-left: 7vw; margin-right: 7vw; } }
.partner {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--foam); border: 1px solid var(--line-soft); border-radius: 22px;
  box-shadow: 0 30px 60px -48px rgba(6, 51, 59, 0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.partner:hover { transform: translateY(-6px); box-shadow: 0 44px 72px -46px rgba(6, 51, 59, 0.5); }
.partner__img {
  height: 200px; background-size: cover; background-position: center;
  background-color: var(--sea);
}
.partner__img--soon {
  display: grid; place-items: center;
  background: radial-gradient(120% 100% at 30% 0%, rgba(47,169,164,0.5) 0%, transparent 55%),
              linear-gradient(160deg, var(--sea) 0%, var(--sea-deep) 85%);
}
.partner__img--soon span {
  color: var(--aqua); font-size: 11px; letter-spacing: 0.34em; font-weight: 500;
  border: 1px solid rgba(143,214,208,0.5); border-radius: 999px; padding: 9px 20px;
}
.partner__body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 26px; }
.partner__type { font-size: 10px; letter-spacing: 0.3em; font-weight: 500; color: var(--turquoise); }
.partner h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-top: 12px; line-height: 1.1; }
.partner__desc { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.partner__addr {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
}
.partner__addr::before { content: "📍 "; }
.partner__link {
  margin-top: 16px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; color: var(--teal); transition: color 0.3s;
}
.partner__link:hover { color: var(--turquoise); }

.faculty__subhead { margin-top: 10vh; }

/* Acıbadem doctor grid + hospital hero band (partner pages) */
.faculty__grid--acb { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 1200px; }
.doctor__photo--acb { background-color: #2c4249; background-position: center top; }
.phero {
  height: 42vh; min-height: 300px; background-size: cover; background-position: center;
  background-color: var(--sea);
}

/* language picker (in the header, inherits nav color via currentColor) */
.lang-pick { display: inline-flex; align-items: center; gap: 5px; }
.lang-pick svg { width: 15px; height: 15px; opacity: 0.85; }
.lang-pick select {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: currentColor; background: transparent; border: 0; cursor: pointer;
  padding: 4px 2px; -webkit-appearance: none; appearance: none; outline: none;
}
.lang-pick select option { color: var(--ink); background: var(--shell); }
@media (max-width: 1080px) { .lang-pick { margin-left: auto; margin-right: 18px; } }

/* right-to-left (Persian) */
[dir="rtl"] .nav__links { direction: rtl; }
[dir="rtl"] .hero__eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .hero__sub, [dir="rtl"] .partner__desc, [dir="rtl"] .partner__type,
[dir="rtl"] .partner__addr, [dir="rtl"] .footer__desc { direction: rtl; text-align: right; }
[dir="rtl"] .partner__addr::before { content: ""; }
[dir="rtl"] .partner__addr { padding-right: 0; }
.faculty__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
  margin: 9vh 4vw 0; max-width: 1500px;
}
@media (max-width: 1350px) { .faculty__grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; } }
.doctor { display: flex; flex-direction: column; }
.doctor__photo {
  aspect-ratio: 3 / 3.7; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center top;
  background-color: var(--sea);
  position: relative; display: flex; align-items: flex-end;
  box-shadow: 0 30px 60px -40px rgba(6, 51, 59, 0.5);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.doctor__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,51,59,0) 45%, rgba(6,51,59,0.72) 100%);
}
.doctor:hover .doctor__photo { transform: translateY(-8px); box-shadow: 0 44px 70px -40px rgba(6, 51, 59, 0.65); }
.doctor__field {
  position: relative; z-index: 2; margin: 0 0 18px 20px;
  font-size: 9.5px; letter-spacing: 0.34em; font-weight: 500; color: var(--aqua);
}
.doctor h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; margin: 22px 0 4px; }
.doctor__title { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.doctor__bio { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 1080px) { .faculty__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .faculty__grid { grid-template-columns: 1fr; max-width: 440px; } }

/* ═══════════ THE LEDGER — CALCULATORS ═══════════ */

.ledger { padding: 16vh 0 12vh; background: var(--foam); }

.ledger__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 8vh 7vw 0; max-width: 1250px;
}
.tabs {
  position: relative; display: inline-flex; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px;
  background: var(--shell);
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
.tab {
  position: relative; z-index: 2; border: 0; background: none;
  padding: 13px 30px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft); transition: color 0.4s;
}
.tab[aria-selected="true"] { color: var(--shell); }
.tabs__ink {
  position: absolute; z-index: 1; top: 5px; bottom: 5px; left: 0; width: 100px;
  border-radius: 999px; background: linear-gradient(120deg, var(--turquoise), var(--teal));
  box-shadow: 0 8px 20px -8px rgba(18, 112, 123, 0.6);
}
.currency { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--shell); }
.currency__btn {
  border: 0; background: none; padding: 9px 20px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.18em; font-weight: 500; color: var(--ink-soft);
  transition: 0.35s;
}
.currency__btn.is-active { background: var(--sea-deep); color: var(--foam); }

.calc { margin: 6vh 7vw 0; max-width: 1250px; }
.calc__panel {
  display: none; grid-template-columns: 1fr 0.92fr; gap: clamp(30px, 4vw, 70px);
  background: var(--shell); border: 1px solid var(--line-soft); border-radius: 28px;
  padding: clamp(30px, 4vw, 60px);
  box-shadow: 0 40px 80px -50px rgba(6, 51, 59, 0.35);
}
.calc__panel.is-active { display: grid; }
@media (max-width: 900px) { .calc__panel { grid-template-columns: 1fr; } }

.calc__inputs { display: flex; flex-direction: column; gap: 34px; }

.field__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.field__label label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.field__label output { font-family: var(--serif); font-size: 24px; font-style: italic; color: var(--teal); }
.field__hint { margin-top: 10px; color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 14px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: linear-gradient(90deg, var(--teal) var(--fill, 50%), var(--line) var(--fill, 50%));
  border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px;
  border-radius: 50%; background: var(--shell);
  border: 1.5px solid var(--teal);
  box-shadow: 0 4px 12px rgba(6, 51, 59, 0.35);
  transition: transform 0.25s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--teal); border-radius: 2px; }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--shell);
  border: 1.5px solid var(--teal); box-shadow: 0 4px 12px rgba(6, 51, 59, 0.35);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 8px; height: 8px; border-right: 1.4px solid var(--teal); border-bottom: 1.4px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--foam); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 48px 16px 20px; font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  outline: none; cursor: pointer; transition: border-color 0.3s;
}
.select-wrap select:focus { border-color: var(--turquoise); }

.switch { display: flex; align-items: center; gap: 16px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch__track {
  flex: none; width: 52px; height: 28px; border-radius: 999px;
  background: var(--sand); border: 1px solid var(--line);
  position: relative; transition: background 0.4s var(--ease), border-color 0.4s;
}
.switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--shell); box-shadow: 0 2px 6px rgba(12, 43, 48, 0.3);
  transition: transform 0.4s var(--ease);
}
.switch input:checked + .switch__track { background: linear-gradient(120deg, var(--turquoise), var(--teal)); border-color: var(--teal); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(24px); }
.switch__text { font-size: 14px; color: var(--ink-soft); }

/* — result panel — */
.calc__result {
  border-radius: 20px; padding: clamp(28px, 3vw, 46px);
  background:
    radial-gradient(140% 110% at 85% -10%, rgba(47, 169, 164, 0.4) 0%, transparent 55%),
    var(--sea-deep);
  color: var(--foam);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.calc__result::before {
  content: ""; position: absolute; inset: 10px; border-radius: 14px;
  border: 1px solid rgba(143, 214, 208, 0.28); pointer-events: none;
}
.res__label { font-size: 10px; letter-spacing: 0.34em; color: rgba(244,250,249,0.55); text-transform: uppercase; }
.res__price { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 4.4vw, 66px); line-height: 1.05; color: var(--aqua); margin: 10px 0 2px; }
.res__range { font-family: var(--serif); font-style: italic; font-size: 16px; color: rgba(244,250,249,0.68); }

.res__bars { margin: 34px 0 8px; display: flex; flex-direction: column; gap: 18px; }
.res__bar span { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244,250,249,0.62); margin-bottom: 8px; }
.res__bar i {
  display: block; height: 6px; border-radius: 6px;
  transform-origin: left center;
}
.res__bar--home i { background: rgba(244, 250, 249, 0.28); }
.res__bar--tr i { background: linear-gradient(90deg, var(--aqua), var(--turquoise)); box-shadow: 0 0 18px rgba(47, 169, 164, 0.55); }

.res__save { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(244,250,249,0.15); display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.res__save strong { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--shell); }
.res__save em { font-style: normal; font-size: 12px; letter-spacing: 0.24em; color: var(--aqua); text-transform: uppercase; }
.res__includes { margin-top: 22px; color: rgba(244,250,249,0.55); font-style: italic; font-family: var(--serif); font-size: 14px; }
.res__cta { margin-top: 26px; align-self: flex-start; }

.ledger__note { margin: 5vh 7vw 0; max-width: 640px; font-size: 12.5px; color: var(--ink-soft); opacity: 0.85; }

/* ═══════════ THE PASSAGE ═══════════ */

.passage { padding: 16vh 0; background: var(--shell); }
.passage__layout { position: relative; margin: 10vh 7vw 0; max-width: 1100px; display: flex; gap: clamp(30px, 6vw, 90px); }
.passage__line { flex: none; width: 1px; background: var(--line-soft); position: relative; }
.passage__line i { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(180deg, var(--aqua), var(--teal)); display: block; }
.passage__steps { list-style: none; display: flex; flex-direction: column; gap: 11vh; }
.pstep { display: flex; gap: clamp(24px, 4vw, 60px); align-items: flex-start; }
.pstep__num {
  flex: none; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(48px, 5vw, 76px); line-height: 0.9; color: rgba(47, 169, 164, 0.35);
  transition: color 0.6s var(--ease);
}
.pstep.is-active .pstep__num { color: var(--teal); }
.pstep h3 { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; margin-bottom: 12px; }
.pstep p { color: var(--ink-soft); font-size: 15px; max-width: 520px; }
.pstep__media {
  margin-top: 22px; width: 220px; max-width: 60vw; border-radius: 16px; overflow: hidden;
  position: relative; box-shadow: 0 24px 50px -30px rgba(6, 51, 59, 0.5);
}
.pstep__media img { display: block; width: 100%; height: 140px; object-fit: cover; }
.pstep__media-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--shell); background: linear-gradient(0deg, rgba(6,51,59,0.75), transparent);
}

/* ═══════════ VOICES ═══════════ */

.voices { padding: 16vh 0 12vh; background: var(--sand); }
.voices__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin: 9vh 7vw 0; max-width: 1300px;
}
.voice {
  background: var(--shell); border: 1px solid var(--line-soft); border-radius: 22px;
  padding: 44px 38px 38px; position: relative;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.voice:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -45px rgba(6, 51, 59, 0.45); }
.voice__mark { font-family: var(--serif); font-size: 84px; line-height: 0.6; color: var(--turquoise); margin-bottom: 26px; }
.voice blockquote { font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.5; color: var(--ink); }
.voice figcaption { margin-top: 28px; display: flex; flex-direction: column; }
.voice figcaption strong { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.voice figcaption span { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 1000px) { .voices__grid { grid-template-columns: 1fr; max-width: 640px; } }

.accreditation {
  margin: 10vh 7vw 0; padding-top: 40px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; justify-content: center;
  font-size: 10.5px; letter-spacing: 0.32em; color: var(--ink-soft); font-weight: 500;
}
.accreditation i { color: var(--turquoise); font-style: normal; }

/* ═══════════ FAQ ═══════════ */

.faq { padding: 16vh 0 14vh; background: var(--shell); }
.faq__list { margin: 9vh 7vw 0; max-width: 880px; }
.faq__item {
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
}
.faq__item:first-child { border-top: 1px solid var(--line-soft); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 26px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-size: clamp(19px, 2vw, 25px); font-weight: 500; color: var(--ink);
  transition: color 0.35s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--teal); }
.faq__item summary span { flex: 1; }
.faq__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(47, 169, 164, 0.45); display: grid; place-items: center;
  font-style: normal; font-size: 16px; color: var(--turquoise);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(135deg); background: var(--turquoise); color: var(--shell); }
.faq__answer { overflow: hidden; }
.faq__answer p {
  padding: 0 4px 28px; max-width: 720px;
  font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--ink-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .faq__item summary { transition: color 0.35s var(--ease); }
}

/* ═══════════ INVITATION ═══════════ */

.invitation { padding: 14vh 4vw 16vh; background: var(--sand); }
.invitation__card {
  max-width: 1250px; margin: 0 auto; border-radius: 32px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(47, 169, 164, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, #0B4A54 0%, var(--sea-deep) 60%);
  box-shadow: 0 60px 120px -60px rgba(6, 51, 59, 0.75);
}
.invitation__left { padding: clamp(40px, 5vw, 80px); }
.invitation__points { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.invitation__points li {
  color: rgba(244, 250, 249, 0.78); font-size: 14px; display: flex; align-items: center; gap: 14px;
}
.invitation__points li::before { content: "✦"; color: var(--aqua); font-size: 11px; }

.invitation__form {
  padding: clamp(40px, 5vw, 80px);
  background: rgba(244, 250, 249, 0.04);
  border-left: 1px solid rgba(143, 214, 208, 0.22);
  display: flex; flex-direction: column; gap: 22px; position: relative;
}
.ffield { display: flex; flex-direction: column; gap: 9px; }
.ffield label { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(143, 214, 208, 0.9); font-weight: 500; }
.ffield input, .ffield textarea {
  background: rgba(244, 250, 249, 0.07); border: 1px solid rgba(244, 250, 249, 0.18);
  border-radius: 12px; padding: 15px 18px; color: var(--shell);
  font-family: var(--sans); font-size: 15px; font-weight: 300; outline: none; resize: none;
  transition: border-color 0.35s, background 0.35s;
}
.ffield input::placeholder, .ffield textarea::placeholder { color: rgba(244, 250, 249, 0.35); }
.ffield input:focus, .ffield textarea:focus { border-color: var(--turquoise); background: rgba(244, 250, 249, 0.1); }
.select-wrap--light select { background: rgba(244, 250, 249, 0.07); border-color: rgba(244, 250, 249, 0.18); color: var(--shell); border-radius: 12px; }
.select-wrap--light select option { color: var(--ink); }
.invitation__form .btn { margin-top: 10px; }
.invitation__form .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.invitation__microcopy {
  margin-top: -8px; text-align: center; font-size: 11.5px; letter-spacing: 0.08em;
  color: rgba(244, 250, 249, 0.55);
}
.invitation__success {
  display: none; text-align: center; font-family: var(--serif); font-size: 19px; font-style: italic;
  color: var(--aqua); line-height: 1.6; padding: 20px 0;
}
.invitation__success em { display: block; margin-top: 10px; font-size: 15px; color: rgba(244, 250, 249, 0.65); }
.invitation__error {
  display: none; text-align: center; padding: 20px 0;
}
.invitation__error p {
  font-family: var(--serif); font-style: italic; font-size: 17px; color: #E8B4B0; margin-bottom: 18px;
}
.invitation__error-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) { .invitation__card { grid-template-columns: 1fr; } .invitation__form { border-left: 0; border-top: 1px solid rgba(143, 214, 208, 0.22); } }

/* ═══════════ FOOTER ═══════════ */

.footer { background: var(--sea-deep); color: var(--foam); padding: 10vh 7vw 5vh; overflow: hidden; }
.footer__word { overflow: hidden; line-height: 0.82; margin-bottom: 9vh; }
.footer__word span {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(80px, 14.5vw, 260px); letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(143, 214, 208, 0.4), rgba(143, 214, 208, 0.06));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: center; white-space: nowrap;
}
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 8vh; }
.footer__brand { font-size: 14px; letter-spacing: 0.28em; font-weight: 500; display: flex; flex-direction: column; }
.footer__brand span { font-size: 9px; letter-spacing: 0.5em; color: var(--aqua); margin-top: 6px; }
.footer__desc { margin-top: 20px; font-size: 13.5px; color: rgba(244, 250, 249, 0.6); max-width: 300px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--aqua); font-weight: 500; margin-bottom: 8px; }
.footer__col a { font-size: 14px; color: rgba(244, 250, 249, 0.65); transition: color 0.3s; width: fit-content; }
.footer__col a:hover { color: var(--aqua); }
.footer__loc { font-size: 12.5px; color: rgba(244, 250, 249, 0.6); letter-spacing: 0.1em; margin-top: 8px; }
.footer__base {
  border-top: 1px solid rgba(244, 250, 249, 0.12); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; color: rgba(244, 250, 249, 0.5);
}
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* ═══════════ MOBILE STICKY CTA BAR ═══════════ */

.mobilebar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1800;
  background: var(--sea-deep);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -8px 30px -10px rgba(6, 51, 59, 0.5);
  transition: transform 0.4s var(--ease);
}
.mobilebar.is-hidden { transform: translateY(110%); }
.mobilebar__btn {
  flex: 1; text-align: center; padding: 14px 10px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}
.mobilebar__btn--wa { background: rgba(244, 250, 249, 0.1); color: var(--foam); border: 1px solid rgba(244, 250, 249, 0.25); }
.mobilebar__btn--cta { background: linear-gradient(120deg, var(--turquoise), var(--teal)); color: var(--shell); }
@media (max-width: 900px) {
  .mobilebar { display: flex; }
  body { padding-bottom: 74px; }
}

/* ═══════════ CHAT WIDGET ═══════════ */

.chat-launcher {
  position: fixed; right: 26px; bottom: 26px; z-index: 1950;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--turquoise), var(--teal));
  color: var(--shell); display: grid; place-items: center;
  box-shadow: 0 16px 40px -14px rgba(18, 112, 123, 0.7);
  cursor: pointer; transition: transform 0.35s var(--ease);
}
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(47, 169, 164, 0.55);
  animation: chatPulse 2.6s var(--ease) infinite;
}
.chat-launcher:hover { transform: scale(1.06); }
@keyframes chatPulse {
  0%   { transform: scale(0.92); opacity: 0.9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (max-width: 900px) {
  .chat-launcher { right: 16px; bottom: calc(74px + 16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
}

.chat-panel {
  position: fixed; right: 26px; bottom: 100px; z-index: 1960;
  width: 372px; max-width: calc(100vw - 32px); height: min(560px, 70vh);
  background: var(--shell); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 90px -30px rgba(6, 51, 59, 0.55);
  border: 1px solid var(--line-soft);
  transform: translateY(16px) scale(0.98); opacity: 0; pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.chat-panel.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  .chat-panel {
    right: 0; left: 0; bottom: 0; width: 100%; max-width: none;
    height: min(78vh, 620px); border-radius: 22px 22px 0 0;
  }
}

.chat-panel__header {
  padding: 20px 22px; background: linear-gradient(120deg, var(--sea-deep), var(--sea));
  color: var(--foam); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.chat-panel__header h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.chat-panel__header p { font-size: 11.5px; color: var(--aqua); margin-top: 4px; letter-spacing: 0.02em; }
.chat-panel__close {
  background: none; border: 0; color: rgba(244, 250, 249, 0.7); font-size: 20px; line-height: 1;
  cursor: pointer; padding: 4px;
}
.chat-panel__close:hover { color: var(--shell); }

.chat-panel__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-bubble {
  max-width: 88%; padding: 13px 16px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink);
  background: var(--foam); border: 1px solid var(--line-soft);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.chat-bubble--user {
  align-self: flex-end; background: linear-gradient(120deg, var(--turquoise), var(--teal));
  color: var(--shell); border: none; border-bottom-right-radius: 4px; border-bottom-left-radius: 16px;
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip {
  border: 1px solid rgba(47, 169, 164, 0.5); background: rgba(47, 169, 164, 0.08);
  color: var(--teal); font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  padding: 9px 15px; border-radius: 999px; cursor: pointer; transition: 0.3s;
}
.chat-chip:hover { background: var(--teal); color: var(--shell); }
.chat-chip--action { display: inline-flex; align-items: center; gap: 6px; }

.chat-panel__quick { padding: 0 18px 6px; display: flex; flex-wrap: wrap; gap: 8px; }

.chat-panel__form {
  display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line-soft); background: var(--shell);
}
.chat-panel__form input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px;
  font-family: var(--sans); font-size: 13.5px; outline: none; transition: border-color 0.3s;
}
.chat-panel__form input:focus { border-color: var(--turquoise); }
.chat-panel__form button {
  border: 0; border-radius: 50%; width: 42px; height: 42px; flex: none;
  background: linear-gradient(120deg, var(--turquoise), var(--teal)); color: var(--shell);
  display: grid; place-items: center; cursor: pointer;
}
.chat-panel__form button svg { width: 18px; height: 18px; }

/* ═══════════ MISC ═══════════ */

[data-fade] { opacity: 0; }
.no-js [data-fade], .reduced [data-fade] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  [data-fade] { opacity: 1; }
}

/* ═══════════ MOBILE OVERFLOW FIXES ═══════════ */

@media (max-width: 700px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.5; padding: 15px 24px; font-size: 11px; letter-spacing: 0.18em; }
  .res__cta { align-self: stretch; display: flex; width: 100%; }
  .invitation__form .btn { width: 100%; }
  .invitation__microcopy { white-space: normal; line-height: 1.7; }
  .ledger__bar { justify-content: center; }
  .tabs { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 12px 16px; letter-spacing: 0.14em; flex: none; }
  .calc__panel { border-radius: 20px; }
  .calc__result { min-width: 0; }
}
