/* Imperial Law Firm — editorial theme. One stylesheet for RTL (fa, ar) and LTR.
   Logical properties (inline-start/end) keep both directions correct. */

:root {
  --cream: #fcf9f2;
  --paper: #ffffff;
  --ink: #13262a;          /* dark panels, headings */
  --ink-2: #1f3b40;        /* buttons */
  --ink-3: #2c4d53;
  --text: #1c2b2e;
  --muted: #5d696b;
  --on-dark: #c9d4d5;
  --line: #e7e0d2;
  --line-dark: rgb(255 255 255 / .12);
  --gold: #c9a063;
  --gold-text: #8a6424;
  --success: #1f7a4d;
  --error: #b42318;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Noto Serif Display', 'Times New Roman', serif;
  --head-weight: 400;
  --radius: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(19 38 42 / .04), 0 10px 30px rgb(19 38 42 / .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}
:lang(fa) { --font-body: 'Vazirmatn', Tahoma, sans-serif; --font-head: 'Vazirmatn', Tahoma, sans-serif; --head-weight: 600; }
:lang(ar) { --font-body: 'IBM Plex Sans Arabic', Tahoma, sans-serif; --font-head: 'Noto Naskh Arabic', serif; --head-weight: 600; }
:lang(ka) { --font-body: 'Noto Sans Georgian', sans-serif; --font-head: 'Noto Serif Georgian', serif; --head-weight: 500; }
:lang(zh) { --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; --font-head: 'Noto Serif SC', 'Songti SC', serif; --head-weight: 600; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.7 var(--font-body); color: var(--text); background: var(--cream); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
:lang(fa) body, :lang(ar) body { line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--ink-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
:lang(fa) h1, :lang(ar) h1, :lang(fa) h2, :lang(ar) h2 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 1em; }
/* long words (Georgian, German, Russian) must never push layouts wider than the screen */
h1, h2, h3, p, li, .dest-name, .service-title, .post-title, .label, .btn span { overflow-wrap: anywhere; hyphens: auto; }
.process-card, .dest-card, .post-card, .service-row, .info-card, .form-card { min-width: 0; }
.icon { flex-shrink: 0; }
/* arrows point "forward" in the reading direction */
[dir="rtl"] .btn-arrow .icon, [dir="rtl"] .service-desc .icon, [dir="rtl"] .dest-link .icon, [dir="rtl"] .link-list .icon { transform: scaleX(-1); }

.container { width: min(100% - 32px, 1340px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 860px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-serif { font-family: var(--font-head); font-size: 1.15rem; color: var(--text); }
.small { font-size: .875rem; }
.on-dark { color: var(--on-dark); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* label: round badge + text */
.label { display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 1.5rem; font-family: var(--font-head); font-size: 1.05rem; color: var(--text); }
.label-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-2); color: #fff; flex-shrink: 0; }
.label-light { color: #fff; }
.label-light .label-icon { background: rgb(255 255 255 / .14); }

/* buttons: pill + round arrow badge */
.btn { display: inline-flex; align-items: center; gap: .9rem; min-height: 52px; padding-block: .35rem; padding-inline: 1.5rem .35rem; border: 0; border-radius: 999px;
  font: 500 1rem/1.25 var(--font-body); text-decoration: none; cursor: pointer; max-width: 100%; text-align: start; transition: background .25s var(--ease), color .25s var(--ease); }
.btn-arrow { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: rotate(-45deg); }
[dir="rtl"] .btn:hover .btn-arrow { transform: rotate(45deg); }
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-dark .btn-arrow { background: #fff; color: var(--ink-2); }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light .btn-arrow { background: var(--ink-2); color: #fff; }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-block { width: 100%; justify-content: space-between; }
.btn-link-light { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 500; min-height: 44px; }
.btn-link-light:hover { color: var(--gold); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(252 249 242 / .94); backdrop-filter: saturate(1.3) blur(10px); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-emblem { width: 46px; height: 46px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; letter-spacing: .01em; }
.brand-text small { font-size: .72rem; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .dropdown > summary { display: flex; align-items: center; gap: .3rem; min-height: 44px; padding: .5rem .75rem; color: var(--text); text-decoration: none; white-space: nowrap; border-radius: 999px; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav .dropdown > summary:hover { color: var(--ink); background: var(--paper); }
.dropdown { position: relative; }
.dropdown:not([open]) > ul { display: none; }
.dropdown[open] > summary .icon { transform: rotate(180deg); }
.dropdown > ul { list-style: none; margin: 0; padding: .5rem; background: var(--paper); border-radius: var(--radius-md); box-shadow: 0 20px 50px rgb(19 38 42 / .16); min-width: 220px; }
.dropdown > ul a { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.dropdown > ul a:hover, .dropdown > ul a[aria-current] { background: var(--cream); color: var(--ink); }
.lang-switch > summary { display: flex; align-items: center; gap: .45rem; min-height: 46px; padding: .35rem .9rem; border-radius: 999px; background: var(--paper); font-size: .95rem; white-space: nowrap; }
.flag { width: 24px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; font-size: 1.05rem; max-height: 70vh; overflow: auto; }
.lang-menu .flag { width: 32px; }

@media (max-width: 1279px) {
  .nav-toggle { order: 3; }
  .nav-toggle[open] > summary { background: var(--ink-2); color: #fff; }
  /* the open menu drops down as a full-width panel under the sticky header */
  .main-nav { position: absolute; inset-inline: 0; top: 100%; padding: .5rem 16px 1.25rem; background: var(--cream);
    border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgb(19 38 42 / .12); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
  .main-nav .dropdown > ul { box-shadow: none; background: transparent; padding-inline-start: 1rem; }
  .btn-cta { display: none; }
  .header-actions .btn { white-space: nowrap; }
  .lang-switch > summary span { display: none; }
}
@media (max-width: 1279px) {
  /* one row on phones: the brand name shrinks/ellipsizes, the controls never wrap */
  .brand { flex: 1 1 0; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-text strong, .brand-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-toggle:not([open]) { flex-shrink: 0; }
}
/* brand name: one line on desktop; on phones up to two smaller lines instead of an ellipsis */
.brand-text strong { font-size: 1.02rem; }
.header-actions .btn, .header-actions .btn span { white-space: nowrap; overflow-wrap: normal; hyphens: none; }
@media (min-width: 1280px) { .brand { flex-shrink: 0; } .brand-text { max-width: 19rem; } .brand-text strong { line-height: 1.2; font-size: .98rem; } }
/* Russian/Turkish/Georgian menus are long: no header CTA (it is repeated in the hero and on every page) */
:lang(ru) .btn-cta, :lang(ka) .btn-cta, :lang(tr) .btn-cta { display: none; }
/* phones show the short name next to the emblem; the full name from tablet width up */
.name-short { display: none; }
@media (max-width: 767px) { .site-header .name-full { display: none; } .site-header .name-short { display: inline; } }
@media (max-width: 1279px) {
  .brand-text strong { white-space: normal !important; overflow: visible; text-overflow: clip; line-height: 1.2; font-size: .9rem; }
}
@media (max-width: 480px) { .brand-text small { display: none; } .brand-emblem { width: 40px; height: 40px; } .brand-text strong { font-size: 1rem; } .header-row { gap: .5rem; } }
@media (min-width: 1280px) and (max-width: 1439px) { .lang-switch > summary span, .brand-text small { display: none; } }
@media (min-width: 1280px) {
  .nav-toggle { order: 2; margin-inline: auto; }
  .nav-toggle > summary { display: none; }
  .nav-toggle:not([open]) > summary { display: grid; }
  .header-actions { order: 3; margin-inline-start: 0; }
  .main-nav ul { display: flex; gap: .15rem; }
  .main-nav > ul > li > a, .main-nav .dropdown > summary { padding-inline: .6rem; }
  .main-nav .dropdown > ul { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; display: block; }
  .main-nav .dropdown:not([open]) > ul { display: none; }
}

/* hero: photo inside a rounded dark card */
.hero { padding: 0 16px; }
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: #fff; min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(19 38 42 / .94) 0%, rgb(19 38 42 / .78) 45%, rgb(19 38 42 / .35) 100%), linear-gradient(0deg, rgb(19 38 42 / .7), transparent 45%); }
[dir="rtl"] .hero-card::after { background: linear-gradient(-90deg, rgb(19 38 42 / .94) 0%, rgb(19 38 42 / .78) 45%, rgb(19 38 42 / .35) 100%), linear-gradient(0deg, rgb(19 38 42 / .7), transparent 45%); }
.hero-inner { padding: clamp(6rem, 12vw, 9rem) clamp(1.5rem, 8vw, 7.5rem) 2rem; max-width: 960px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 1.5rem; color: #fff; }
.hero-eyebrow .label-icon { background: rgb(255 255 255 / .16); }
.hero h1 { color: #fff; max-width: 15ch; }
:lang(fa) .hero h1, :lang(ar) .hero h1, :lang(zh) .hero h1 { max-width: 18ch; }
.hero-text { font-size: 1.1rem; color: #e3eaeb; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: 0 clamp(1.5rem, 8vw, 7.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero-scroll { display: inline-flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.05rem; }
.hero-scroll span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); }
.hero-side { max-width: 420px; }
.hero-side p { margin: 0; color: #fff; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.35; }
.hero-side .hero-side-title { font-size: 1.05rem; color: var(--on-dark); margin-bottom: .6rem; }
.hero-page .hero-card { min-height: 380px; justify-content: flex-end; }
.hero-page .hero-inner { padding-top: 7rem; padding-bottom: 3.5rem; }
.hero-page h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); max-width: 24ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .92rem; color: var(--on-dark); margin-bottom: 1rem; }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* sections */
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section-panel { padding: 0 16px; }
.panel { border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem); max-width: 1340px; margin-inline: auto; }
.panel-dark { background: var(--ink); color: var(--on-dark); }
.panel-head { max-width: 760px; margin: 0 auto 3rem; }
.display { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem); line-height: 1.22; }
.display.light { color: #fff; }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 4rem; } .sticky { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.col-meta { display: flex; flex-direction: column; }
.group + .group { margin-top: 4rem; }
.head-row { margin-bottom: 3rem; align-items: start; }

/* why + stats */
.stats { margin: 2rem 0 0; }
.stat { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.stat dd { margin: 0; order: -1; font-family: var(--font-head); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--ink); }
.stat dt { font-family: var(--font-head); color: var(--muted); text-align: end; }
.why-foot { display: grid; gap: 1.5rem; margin-top: 2.5rem; align-items: end; }
@media (min-width: 700px) { .why-foot { grid-template-columns: 1fr 1fr; } }
.why-photo { border-radius: var(--radius-md); aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; width: 100%; }

/* about panel */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.about-media { position: relative; margin: 0; }
.about-media img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 20%; }
.about-card { position: absolute; inset-inline: 1rem; bottom: 1rem; background: #fff; color: var(--text); border-radius: var(--radius-md); padding: 1.1rem; box-shadow: var(--shadow); }
.about-card p { font-family: var(--font-head); color: var(--muted); margin-bottom: .8rem; }
.about-badge { display: flex; align-items: center; gap: .6rem; background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: .8rem 1rem; font-family: var(--font-head); }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks .icon { color: var(--gold); margin-top: .35em; }
.ticks strong { color: #fff; font-weight: 600; }

/* service rows */
.service-rows { border-top: 1px solid var(--line); margin-top: 2rem; }
.col-meta + .service-rows { margin-top: 0; }
.service-row { display: grid; gap: 1rem 1.5rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
@media (min-width: 640px) { .service-row { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: start; } .service-kicker { grid-column: 1 / -1; } }
@media (min-width: 1240px) { .service-row { grid-template-columns: 150px minmax(0, 240px) minmax(0, 1fr); } .service-kicker { grid-column: auto; } }
.service-kicker { font-family: var(--font-head); color: var(--text); padding-top: .2rem; }
.service-kicker span { font-size: 1.5rem; line-height: 0; vertical-align: -.25em; color: var(--ink-2); }
.service-img { display: block; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 16 / 10; background: var(--ink); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-img-empty { display: grid; place-items: center; color: var(--gold); }
.service-row:hover .service-img img { transform: scale(1.05); }
.service-title { display: block; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.3; color: var(--ink); margin: .3rem 0 .7rem; transition: color .2s; }
.service-row:hover .service-title { color: var(--gold-text); }
.service-desc { display: flex; gap: .8rem; color: var(--muted); font-size: .96rem; }
.service-desc .icon { color: var(--muted); margin-top: .25em; }
.row-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin-top: 2.5rem; }
.aside-note { color: var(--muted); max-width: 32ch; }

/* destinations */
.dest-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dest-card { position: relative; display: flex; align-items: flex-end; min-height: 280px; overflow: hidden; border-radius: var(--radius-md); text-decoration: none; color: #fff; background: var(--ink-3); isolation: isolate; }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .7s var(--ease); }
.dest-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(19 38 42 / .9), rgb(19 38 42 / .15) 60%); }
.dest-card:hover img { transform: scale(1.06); }
.dest-card:hover { color: #fff; }
.dest-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; }
.dest-name { font-family: var(--font-head); font-size: 1.8rem; line-height: 1.15; }
.dest-subs { font-size: .92rem; color: var(--on-dark); }
/* home: the two office countries large on top, the rest below */
@media (min-width: 900px) {
  .dest-grid-home { grid-template-columns: repeat(6, 1fr); }
  .dest-grid-home > * { grid-column: span 2; }
  .dest-grid-home > :nth-child(-n+2) { grid-column: span 3; min-height: 380px; }
  .dest-grid-home > :nth-child(-n+2) .dest-name { font-size: 2.3rem; }
}
.dest-grid-light { margin-bottom: 4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.main-nav .dropdown li.sub a { padding-inline-start: 1.9rem; font-size: .94rem; color: var(--muted); position: relative; }
.main-nav .dropdown li.sub a::before { content: ""; position: absolute; inset-inline-start: 1rem; top: 50%; width: .45rem; height: 1px; background: var(--gold); }
.dest-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold); font-weight: 500; }

/* process */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .process { grid-template-columns: 1fr 1fr; } .process-card:nth-child(even) { transform: translateY(3rem); } .process { padding-bottom: 3rem; } }
.process-card { position: relative; background: var(--paper); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.process-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--ink-2); color: var(--ink-2); margin-bottom: 1.5rem; }
.process-card h3 { font-size: 1.5rem; }
.process-card p { color: var(--muted); flex-grow: 1; }
.process-num { display: flex; align-items: center; gap: 1rem; font-family: var(--font-head); font-size: 2.3rem; color: var(--ink-2); margin-top: 1rem; }
.process-num::before { content: ""; flex: 1; height: 1px; background: var(--line); }

/* faq */
.narrow-panel { max-width: 1160px; }
.faq-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--paper); border-radius: var(--radius-sm); color: var(--text); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); min-height: 56px; }
.faq-toggle { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: var(--ink); color: #fff; transition: transform .25s var(--ease); }
.faq details[open] .faq-toggle { transform: rotate(180deg); }
.faq-answer { padding: 0 1.1rem 1.1rem; color: var(--muted); }
.section .faq details { border: 1px solid var(--line); }

/* blog */
.blog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.blog-head .display { max-width: 22ch; margin: 0; }
.post-list { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card { display: grid; grid-template-columns: minmax(0, 42%) 1fr; background: var(--paper); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgb(19 38 42 / .1); color: var(--text); }
.post-img { display: grid; place-items: center; min-height: 210px; background: var(--ink); color: var(--gold); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; font-size: .88rem; color: var(--muted); }
.post-meta time { display: inline-flex; align-items: center; gap: .35rem; }
.tag { background: var(--ink-2); color: #fff; font-family: var(--font-head); font-size: .82rem; padding: .3rem .7rem; border-radius: 6px; }
.post-title { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.35; color: var(--ink); }
.post-excerpt { color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) { .post-card { grid-template-columns: 1fr; } .post-img { min-height: 180px; aspect-ratio: 16 / 9; } }

/* cta panel */
.cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
main > .section-panel:last-child { margin-bottom: clamp(4rem, 8vw, 7rem); }
.cta-panel .display { margin-bottom: .4rem; }
.cta-panel .on-dark { margin: 0; max-width: 55ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* detail pages */
.detail-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .sidebar { position: sticky; top: calc(var(--header-h) + 24px); } }
.sidebar { display: grid; gap: 1.25rem; }
.side-card { background: var(--paper); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.4rem; }
.side-dark { background: var(--ink); color: var(--on-dark); }
.side-dark h2 { color: #fff; }
.side-dark .btn { margin-bottom: .75rem; }
.meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .92rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.link-list a:hover { color: var(--gold-text); }
.empty { padding: 2.5rem; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-md); }

/* long-form content from the editor: neutralise legacy inline fonts/colours */
.prose { font-size: 1.07rem; line-height: 1.95; max-width: 76ch; overflow-wrap: anywhere; }
.prose :where(p, span, div, li, td, th, font, strong, b, em, a) { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; background: transparent !important; }
.prose :where(p, span, div, li, td, th, font) { color: inherit !important; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.8em; }
.prose h1 { font-size: 1.9rem; } .prose h2 { font-size: 1.6rem; } .prose h3 { font-size: 1.3rem; } .prose h4 { font-size: 1.1rem; }
.prose img { border-radius: var(--radius-md); margin: 1.75rem auto; height: auto !important; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100% !important; margin: 1.5rem 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .75rem; }
.prose iframe { max-width: 100%; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-inline-start: 3px solid var(--gold); background: var(--paper); border-radius: var(--radius-sm); }

/* pager */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pager a { display: grid; place-items: center; min-width: 46px; height: 46px; border-radius: 50%; background: var(--paper); color: var(--ink); text-decoration: none; }
.pager a[aria-current] { background: var(--ink-2); color: #fff; }

/* contact */
.contact-title { max-width: 22ch; }
.contact-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: 1.5fr .8fr .6fr; align-items: stretch; } }
.form-card { background: var(--paper); border-radius: var(--radius-md); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.contact-photo { margin: 0; }
.contact-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center 25%; border-radius: var(--radius-md); }
@media (max-width: 1099px) { .contact-photo { display: none; } }
.info-cards { display: grid; gap: 1rem; align-content: start; }
.info-card { display: grid; gap: .45rem; background: var(--paper); border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow); }
.info-card a { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); text-decoration: none; font-family: var(--font-head); font-size: 1.05rem; }
.info-card a:hover { color: var(--gold-text); }
.info-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink-2); color: #fff; margin-bottom: .3rem; }
.form { display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: .35rem; color: var(--ink); }
.req { color: var(--error); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: .75rem 1rem; font: inherit; color: var(--text); background: var(--paper); border: 1px solid #d9d2c3; border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px rgb(31 59 64 / .12); }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
.form .btn { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 500; }
.alert-success { background: #e7f5ee; color: var(--success); }
.alert-error { background: #fdecea; color: var(--error); }

/* footer */
.site-footer { padding: 0 16px 16px; }
.footer-panel { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem) 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1.1fr .7fr .7fr; } }
.brand-light { color: #fff; }
.brand-light .brand-emblem { background: #fff; border-radius: 50%; padding: 3px; width: 52px; height: 52px; }
.brand-light small { color: var(--on-dark); }
.footer-tagline { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.3; color: #fff; margin: 1.5rem 0; max-width: 20ch; }
.footer-title { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.3rem; color: #fff; margin-bottom: 1.2rem; }
.footer-contact p { margin: 0 0 .9rem; }
.footer-contact a { font-family: var(--font-head); font-size: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--ink); }
.site-footer .muted { color: var(--on-dark); font-size: .88rem; }
.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--ink-3); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; font-size: .9rem; }

.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px rgb(0 0 0 / .22); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- client portal ---------- */
.login-box { max-width: 520px; margin-inline: auto; }
.login-box .display { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.portal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1.1rem; margin-bottom: 2rem;
  background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow); font-size: .95rem; }
.portal-links { display: flex; align-items: center; gap: 1.25rem; }
.portal-links form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.portal-cases { display: grid; gap: 1rem; }
.portal-case { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; padding: 1.25rem 1.5rem; background: var(--paper); border-radius: var(--radius-md);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.portal-case:hover { color: var(--text); box-shadow: 0 16px 36px rgb(19 38 42 / .1); }
.pc-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.pc-meta { font-size: .9rem; color: var(--muted); }
.status-pill { display: inline-block; font-size: .85rem; padding: .2rem .75rem; border-radius: 999px; background: #eef1f1; color: var(--muted); white-space: nowrap; align-self: start; }
.status-new, .status-documents { background: #fff4de; color: #8a5a00; }
.status-review, .status-submitted, .status-processing { background: #e6f0fb; color: #1f4f8a; }
.status-approved, .status-completed { background: #e7f5ee; color: var(--success); }
.status-rejected { background: #fdecea; color: var(--error); }
.status-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.5rem; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-md); margin: 1.5rem 0 2rem; }
.status-card .muted { color: var(--on-dark); }
.status-now { display: block; font-family: var(--font-head); font-size: 1.8rem; color: #fff; background: none; padding: 0; }
/* progress line */
.steps-line { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: s; }
.steps-line li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; font-size: .85rem; color: var(--muted); }
.steps-line li::before { content: ""; position: absolute; top: 17px; inset-inline-start: calc(-50% + 18px); width: calc(100% - 36px); height: 2px; background: var(--line); }
.steps-line li:first-child::before { display: none; }
.steps-line .dot { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); font-weight: 600; color: var(--muted); }
.steps-line li.done .dot { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.steps-line li.done::before, .steps-line li.current::before { background: var(--ink-2); }
.steps-line li.current .dot { border-color: var(--gold); color: var(--ink); box-shadow: 0 0 0 5px rgb(201 160 99 / .2); }
.steps-line li.current { color: var(--ink); font-weight: 600; }
.steps-line.is-off li.current .dot { border-color: var(--muted); box-shadow: none; }
@media (max-width: 760px) {
  .steps-line { grid-template-columns: 1fr; gap: .9rem; }
  .steps-line li { flex-direction: row; text-align: start; }
  .steps-line li::before { display: none; }
}
.portal-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .portal-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.stack-gap { display: grid; gap: 1.25rem; }
.portal-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.portal-timeline li { border-inline-start: 3px solid var(--gold); padding: .2rem 1rem .4rem; }
.portal-timeline time { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.portal-timeline p { margin: .5rem 0 0; }
.money-card dl { margin: 0 0 1rem; display: grid; gap: .6rem; }
.money-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.money-card dt { color: var(--muted); }
.money-card dd { margin: 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.money-card .due dd { color: var(--error); }
.money-card h3 { font-size: 1.05rem; }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .95rem; }
.pay-list li { display: flex; justify-content: space-between; gap: 1rem; }
.pay-list time { color: var(--muted); }

.country-intro { margin-bottom: 4rem; }
.country-intro .prose h2 { font-size: 1.55rem; }
.prose p, .prose li, .hero-text, .muted, .on-dark { hyphens: manual; }

/* testimonials */
.quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; padding: 2rem; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: .4rem; inset-inline-start: 1.25rem; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--gold); opacity: .5; }
.quote blockquote { margin: 1.25rem 0 0; font-family: var(--font-head); font-size: 1.12rem; line-height: 1.7; color: var(--ink); }
.quote figcaption { display: grid; gap: .15rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.quote figcaption span { font-size: .9rem; color: var(--muted); }
.info-address { display: flex; gap: .45rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.footer-address { font-size: .88rem; color: var(--on-dark); }

/* ---- article page: badge + meta, table of contents, tables, inline CTA, consult form ---- */
.hero-badge { display: inline-block; margin-bottom: .9rem; padding: .3rem .9rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .85rem; font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1.25rem 0 0; color: #cfd9da; font-size: .92rem; }
.toc h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; }
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; max-height: 45vh; overflow: auto; }
.toc-list li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc-list a { text-decoration: none; display: flex; gap: .6rem; padding: .55rem 0; color: var(--text); font-size: .95rem; line-height: 1.6; }
.toc-list a::before { content: counter(toc); flex: 0 0 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--gold-text); font-size: .8rem; }
.toc-list a:hover { color: var(--gold-text); }
.toc-inline { margin-bottom: 2rem; padding: 1rem 1.25rem; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.toc-inline > summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 600; color: var(--ink); }
.toc-inline .toc-list { margin-top: .75rem; max-height: none; }
@media (min-width: 1000px) { .toc-inline { display: none; } }
@media (max-width: 999px) { .toc-side { display: none; } }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose table { border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--paper); font-size: .95rem; line-height: 1.7; }
.prose th { background: var(--ink) !important; color: #fff !important; font-weight: 600; text-align: start; }
.prose th, .prose td { border-width: 0 0 1px; padding: .8rem 1rem; vertical-align: top; min-width: 9rem; }
.prose tr:nth-child(even) td { background: var(--cream) !important; }
.prose td:first-child { font-weight: 600; color: var(--ink) !important; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: 2.5rem 0; padding: 1.5rem 1.75rem; border-radius: var(--radius-md); background: var(--ink); color: var(--on-dark); line-height: 1.7; }
.inline-cta strong { color: #fff; font-size: 1.15rem; }
.inline-cta p { margin: .25rem 0 0; }
.consult-box { margin-top: 3.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.consult-box h2 { margin-top: 0; }
.section-related { background: var(--paper); }
@media (min-width: 1000px) { .post-list-3 { grid-template-columns: repeat(3, 1fr); } }
.detail-grid > * { min-width: 0; }
.prose .inline-cta .btn-light { background: var(--paper) !important; color: var(--ink) !important; text-decoration: none; }

/* ---- mega menus (destinations / routes / services) ---- */
.mega:not([open]) > .mega-panel { display: none; }
.mega[open] > summary .icon { transform: rotate(180deg); }
.mega-side, .main-nav .mega-links, .main-nav .mega-all { display: none; }
.mega-panel { padding-inline-start: 1rem; }
.main-nav .mega-pane-title { position: relative; padding-inline-start: 1.9rem; font-size: .94rem; color: var(--muted); }
.main-nav .mega-pane-title::before { content: ""; position: absolute; inset-inline-start: 1rem; top: 50%; width: .45rem; height: 1px; background: var(--gold); }
.mega .dot { width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold); flex: none; }
@media (min-width: 1280px) {
  .nav-home { display: none; } /* the logo links home */
  .main-nav .mega { position: static; }
  .mega-panel { position: absolute; top: calc(100% - 6px); inset-inline: 0; margin-inline: auto; width: min(1180px, calc(100% - 32px));
    display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; padding: 1rem; background: var(--paper);
    border-radius: var(--radius-md); box-shadow: 0 30px 70px rgb(19 38 42 / .18); max-height: calc(100dvh - var(--header-h) - 24px); overflow: auto; }
  .mega-side { display: block; background: var(--cream); border-radius: var(--radius-md); padding: 1.1rem; }
  .mega-head { margin: 0 0 .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); line-height: 1.6; }
  .mega-head strong { display: block; color: var(--ink); font-size: 1.05rem; }
  .mega-head small { color: var(--muted); font-size: .85rem; }
  .main-nav .mega-tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
  .main-nav .mega-tabs a { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 12px; white-space: normal; color: var(--text); }
  .mega-tabs a span { flex: 1; }
  .mega-tabs a > .icon:last-child { transform: rotate(90deg); opacity: .45; }
  [dir="rtl"] .mega-tabs a > .icon:last-child { transform: rotate(-90deg); }
  .mega-tabs a > .icon:first-child { color: var(--gold-text); }
  .main-nav .mega-tabs a[aria-selected="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
  .mega-pane { grid-area: 1 / 2; padding: 1.1rem 1.25rem; align-self: start; }
  .mega-pane:not(.is-active) { display: none; }
  .main-nav .mega-pane-title { display: block; min-height: 0; padding: 0 0 .9rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); border-radius: 0;
    font-family: var(--font-head); font-size: 1.35rem; color: var(--ink) !important; }
  .main-nav .mega-pane-title::before { content: none; }
  .main-nav .mega-pane-title:hover { background: none; color: var(--gold-text) !important; }
  .main-nav .mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1.5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
  .main-nav .mega-links a { gap: .6rem; padding: .6rem .5rem; border-radius: 10px; white-space: normal; line-height: 1.5; }
  .main-nav .mega-links a:hover { background: var(--cream); }
  .main-nav .mega-all { display: inline-flex; gap: .5rem; padding: .65rem 1.1rem; background: var(--cream); color: var(--gold-text); font-weight: 600; }
  .main-nav .mega-all:hover { background: var(--ink); color: #fff; }
  [dir="rtl"] .mega-all .icon { transform: scaleX(-1); }
}

/* ---- Ana: AI assistant strip (above the footer) and chat dialog ---- */
.ana-strip { padding: 0 16px 16px; }
.ana-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 3rem); border-radius: var(--radius); color: var(--ink);
  background: radial-gradient(rgb(19 38 42 / .07) 1px, transparent 1.2px) 0 0 / 18px 18px, linear-gradient(120deg, #d9b47a, var(--gold) 55%, #d6b27a); }
.ana-id { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 22rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; }
button.ana-id { cursor: pointer; }
.ana-avatar { position: relative; flex: none; display: block; }
.ana-avatar img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgb(255 255 255 / .75); box-shadow: 0 8px 20px rgb(19 38 42 / .25); }
.ana-online { position: absolute; inset-inline-end: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.ana-online::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; opacity: .6; animation: ana-pulse 2s ease-out infinite; }
@keyframes ana-pulse { from { transform: scale(.8); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ana-online::after { animation: none; } }
.ana-id-text { display: grid; gap: .1rem; line-height: 1.5; }
.ana-id-text small, .ana-contact small { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.ana-id-text strong { font-family: var(--font-head); font-size: 1.25rem; }
.ana-id-text span { font-size: .92rem; opacity: .75; }
.ana-status { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.ana-status li { display: flex; align-items: center; gap: .5rem; opacity: .8; }
.ana-status li:first-child { opacity: 1; }
.ana-status li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgb(31 157 85 / .18); }
.ana-contact { display: grid; gap: .15rem; }
.ana-contact a { font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.ana-contact span { font-size: .85rem; opacity: .65; }
.ana-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 1499px) { .ana-contact { display: none; } } /* the phone is in the footer too */
@media (max-width: 767px) { .ana-status { display: none; } .ana-actions { width: 100%; } .ana-actions .btn { flex: 1 1 100%; justify-content: space-between; } }

.ana-chat { width: min(440px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 24px)); padding: 0; border: 0; border-radius: var(--radius-md);
  background: var(--cream); color: var(--text); box-shadow: 0 30px 80px rgb(19 38 42 / .35); position: fixed; inset: auto 12px 12px auto; margin: 0; }
[dir="rtl"] .ana-chat { inset: auto auto 12px 12px; }
.ana-chat[open] { display: flex; flex-direction: column; }
.ana-chat::backdrop { background: rgb(19 38 42 / .35); backdrop-filter: blur(2px); }
.ana-chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: var(--ink); color: #fff; }
.ana-chat-head .ana-avatar img { width: 40px; height: 40px; border-width: 2px; }
.ana-chat-head .ana-online { width: 11px; height: 11px; }
.ana-chat-head > span:nth-child(2) { flex: 1; display: grid; line-height: 1.4; }
.ana-chat-head small { color: var(--on-dark); font-size: .78rem; }
.ana-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .1); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ana-close:hover { background: rgb(255 255 255 / .2); }
.ana-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; min-height: 240px; }
.ana-msg { max-width: 85%; padding: .6rem .9rem; border-radius: 14px; font-size: .95rem; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.ana-msg.bot { align-self: flex-start; background: var(--paper); box-shadow: var(--shadow); border-end-start-radius: 4px; }
.ana-msg.user { align-self: flex-end; background: var(--ink-2); color: #fff; border-end-end-radius: 4px; }
.ana-msg a { color: var(--gold-text); }
.ana-msg.typing::after { content: "• • •"; letter-spacing: .2em; animation: ana-blink 1s infinite; }
@keyframes ana-blink { 50% { opacity: .3; } }
.ana-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.ana-form input { flex: 1; min-width: 0; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: inherit; }
.ana-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--ink-2); color: #fff; cursor: pointer; display: grid; place-items: center; }
[dir="rtl"] .ana-form button .icon { transform: scaleX(-1); }
.ana-form button:disabled { opacity: .5; }
.ana-note { margin: 0; padding: 0 1rem .75rem; font-size: .75rem; color: var(--muted); line-height: 1.6; }

/* ---- home page (2026 redesign): hero with route finder, key figures, services, about, portal, process ---- */
.hero-home .hero-card { min-height: 0; justify-content: flex-start; }
.hero-home .hero-card::after { background: linear-gradient(90deg, rgb(10 22 25 / .9) 0%, rgb(10 22 25 / .72) 55%, rgb(10 22 25 / .55) 100%); }
[dir="rtl"] .hero-home .hero-card::after { background: linear-gradient(-90deg, rgb(10 22 25 / .9) 0%, rgb(10 22 25 / .72) 55%, rgb(10 22 25 / .55) 100%); }
.hx-grid { display: grid; gap: 2.5rem; align-items: center; padding: clamp(6.5rem, 11vw, 9rem) clamp(1.25rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
@media (min-width: 1000px) { .hx-grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr); } }
.hero-home h1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.9rem); max-width: 17ch; }
.hero-home .hero-text { font-size: 1.12rem; line-height: 1.85; }
.hx-finder { display: grid; gap: .55rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius-md); background: rgb(255 255 255 / .96); color: var(--text); box-shadow: 0 30px 60px rgb(0 0 0 / .25); }
.hx-finder-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.2rem; color: var(--ink); }
.hx-finder-title .icon { color: var(--gold-text); }
.hx-finder label { font-size: .85rem; color: var(--muted); }
.hx-finder select { min-height: 48px; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); color: var(--text); font: inherit; }
.hx-finder select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.hx-finder .btn { margin-top: .6rem; }
.hx-trust { list-style: none; margin: 0; padding: 1.25rem clamp(1.25rem, 6vw, 5.5rem) 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 2rem; border-top: 1px solid rgb(255 255 255 / .14); background: rgb(10 22 25 / .45); }
.hx-trust li { display: flex; align-items: flex-start; gap: .75rem; color: var(--on-dark); font-size: .9rem; line-height: 1.6; }
.hx-trust .icon { flex: none; color: var(--gold); margin-top: .2rem; }
.hx-trust strong { display: block; color: #fff; font-weight: 600; }

.hx-head { max-width: 760px; margin-bottom: 2.5rem; }
.hx-head.center { margin-inline: auto; text-align: center; }
.hx-head .display { margin-bottom: .4em; }
.hx-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.hx-head-row .display { margin: 0; max-width: 22ch; }

.hx-figure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.hx-figure { display: grid; gap: .45rem; align-content: start; padding: 1.5rem; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.hx-figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); color: var(--text); }
.hx-figure strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1.15; color: var(--ink); unicode-bidi: plaintext; }
.hx-figure span { color: var(--muted); line-height: 1.6; }
.hx-figure em { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; font-style: normal; font-size: .9rem; font-weight: 600; color: var(--gold-text); }
[dir="rtl"] .hx-figure em .icon { transform: scaleX(-1); }

.hx-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.hx-service { position: relative; display: grid; gap: .6rem; align-content: start; padding: 1.75rem 1.5rem 3.25rem; border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .25s var(--ease); }
.hx-service:hover { transform: translateY(-3px); color: var(--text); }
.hx-service-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--gold); margin-bottom: .4rem; }
.hx-service strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.2rem; color: var(--ink); line-height: 1.4; }
.hx-service span { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.hx-service em { position: absolute; inset-inline-end: 1.25rem; bottom: 1.1rem; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--ink); transition: background .2s, color .2s; }
[dir="rtl"] .hx-service em .icon { transform: scaleX(-1); }
.hx-service:hover em { background: var(--gold); color: var(--ink); }

.hx-about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--paper); box-shadow: var(--shadow); }
@media (min-width: 1000px) { .hx-about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.hx-about .ticks { margin-block: 1.5rem; }
.hx-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0 0 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hx-stats div { display: grid; }
.hx-stats dd { margin: 0; font-family: var(--font-head); font-size: 2.4rem; line-height: 1.1; color: var(--ink); }
.hx-stats dt { color: var(--muted); font-size: .9rem; }

.hx-portal { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hx-portal { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); } }
.hx-mock { padding: 1.5rem; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); box-shadow: 0 30px 60px rgb(19 38 42 / .25); }
.hx-mock-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark); }
.hx-mock-head b { color: #fff; font-weight: 600; }
.hx-pill { padding: .25rem .8rem; border-radius: 999px; background: rgb(201 160 99 / .18); color: var(--gold); font-size: .85rem; font-weight: 600; }
.hx-steps { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .9rem; }
.hx-steps li { display: flex; align-items: center; gap: .8rem; color: var(--on-dark); }
.hx-steps li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-dark); font-size: .85rem; }
.hx-steps li.done > span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.hx-steps li.now { color: #fff; font-weight: 600; }
.hx-steps li.now > span { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px rgb(201 160 99 / .18); }
.hx-mock-note { padding: 1rem; border-radius: var(--radius-sm); background: rgb(255 255 255 / .06); }
.hx-mock-note small { color: var(--gold); font-size: .8rem; }
.hx-mock-note p { margin: .3rem 0 0; color: #fff; line-height: 1.7; }

.hx-process-panel { background: var(--paper); box-shadow: var(--shadow); }
.hx-process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: none; }
.hx-process li { position: relative; padding: 1.5rem; border-radius: var(--radius-md); background: var(--cream); }
.hx-process-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--gold); }
.hx-process-num { position: absolute; inset-inline-end: 1.25rem; top: 1.1rem; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--line); }
.hx-process h3 { margin: 1rem 0 .4rem; font-size: 1.15rem; }
.hx-process p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
@media (max-width: 999px) { .hero-home h1 { max-width: none; } }
@media (min-width: 1000px) { .hx-figure-grid, .hx-services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 999px) { .hx-figure-grid, .hx-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hx-about .ticks li, .hx-portal .ticks li { color: var(--text); }
.hx-about .ticks strong { color: var(--ink); }
@media (max-width: 599px) {
  .hx-figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .hx-figure { padding: 1rem .9rem; }
  .hx-figure strong { font-size: 1.45rem; }
  .hx-figure span { font-size: .85rem; }
  .hx-figure em { font-size: .8rem; }
}

/* ---- home hero v2: one column, route finder as a search bar; Galata sunset kept visible on the far side ---- */
.hero-home .hero-card::after { background: linear-gradient(90deg, rgb(10 22 25 / .88) 0%, rgb(10 22 25 / .62) 50%, rgb(10 22 25 / .18) 100%), linear-gradient(0deg, rgb(10 22 25 / .55), transparent 40%); }
[dir="rtl"] .hero-home .hero-card::after { background: linear-gradient(-90deg, rgb(10 22 25 / .88) 0%, rgb(10 22 25 / .62) 50%, rgb(10 22 25 / .18) 100%), linear-gradient(0deg, rgb(10 22 25 / .55), transparent 40%); }
@media (min-width: 1000px) { .hx-grid { grid-template-columns: minmax(0, 900px); } }
.hero-home .hero-bg { object-position: center 40%; }
.hx-finder { margin-top: 2.25rem; gap: .75rem; background: rgb(255 255 255 / .97); }
.hx-finder-title { margin-bottom: 0; font-size: 1.05rem; }
.hx-field { display: grid; gap: .35rem; min-width: 0; }
@media (min-width: 760px) {
  .hx-finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .hx-finder-title { grid-column: 1 / -1; }
  .hx-finder .btn { margin-top: 0; min-height: 48px; }
}

/* ---- FAQ: full-width section matching the site (home and /faq) ---- */
.hx-faq { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .hx-faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; } .hx-faq-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.hx-faq-intro .display { margin-bottom: .4em; }
.hx-faq-intro .btn { margin-top: 1rem; }
.hx-faq-more { display: flex; align-items: center; gap: .4rem; width: fit-content; margin-top: 1.25rem; color: var(--gold-text); font-weight: 600; text-decoration: none; }
[dir="rtl"] .hx-faq-more .icon { transform: scaleX(-1); }
.faq { display: block; border-top: 1px solid var(--line); }
.faq details { background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
.section .faq details { border-inline: 0; border-top: 0; }
.faq summary { display: flex; align-items: center; gap: 1rem; padding: 1.35rem 0; min-height: 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.faq-num { flex: none; width: 2.2rem; font-family: var(--font-head); font-size: .95rem; color: var(--gold-text); }
.faq-q { flex: 1; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.12rem; color: var(--ink); line-height: 1.55; }
.faq-toggle { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); transition: background .25s, border-color .25s, transform .3s var(--ease); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; inset-inline-start: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: background .25s; }
.faq-toggle::after { transform: rotate(90deg); }
.faq summary:hover .faq-toggle { border-color: var(--gold); }
.faq details[open] .faq-toggle { background: var(--ink); border-color: var(--ink); transform: rotate(45deg); }
.faq details[open] .faq-toggle::before, .faq details[open] .faq-toggle::after { background: #fff; }
.faq-answer { padding: 0 3.2rem 1.5rem; color: var(--muted); line-height: 1.85; max-width: 70ch; }
@media (max-width: 599px) { .faq-num { width: 1.8rem; } .faq-q { font-size: 1.02rem; } .faq-answer { padding-inline: 2.8rem 0; } }

/* guide tables fill the column on desktop; on phones they stay scrollable blocks */
@media (min-width: 760px) { .prose table { display: table; } }
