/* FORVISA Immigration Services — interim page
   Palette, type and layout tokens live in :root. Mobile-first; logical properties
   (inline/block) are used throughout so the Persian (RTL) layout mirrors itself. */

/* ---------- Fonts (self-hosted, subset) ---------- */
@font-face { font-family: "Fraunces"; src: url(assets/fonts/fraunces.woff2) format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(assets/fonts/fraunces-italic.woff2) format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(assets/fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url(assets/fonts/vazirmatn.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFC; }
/* Metric-matched fallbacks so the swap to web fonts doesn't shift layout */
@font-face { font-family: "Fraunces Fallback"; src: local("Times New Roman"), local("Times"), local("Liberation Serif"), local("Noto Serif");
  size-adjust: 94.5%; ascent-override: 103.5%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 102.4%; ascent-override: 94.7%; descent-override: 24.4%; line-gap-override: 0%; }

:root {
  --paper: #F4EFE6;
  --card: #FBF8F2;
  --sand: #EBE3D4;
  --mrz: #EFE8DB;
  --ink: #0F1A2E;
  --ink-2: #3B4558;
  --ink-3: #5A6273;
  --line: rgba(15, 26, 46, .14);
  --red: #C0141C;
  --red-deep: #9A0F16;
  --red-bright: #E3141D;
  --coral: #FF6B6B;
  --gold: #E9C98F;
  --night: #0F1A2E;
  --night-2: #172338;
  --on-night: #F4EFE6;
  --on-night-2: #C9CFDA;
  --on-night-3: #A9B1C2;
  --open: #1E7A46;
  --closed: #8A93A3;
  --focus: #0F1A2E;

  --serif: "Fraunces", "Vazirmatn", "Fraunces Fallback", Georgia, serif;
  --sans: "Instrument Sans", "Vazirmatn", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[lang="fa"] {
  --serif: "Vazirmatn", "Fraunces", "Fraunces Fallback", Tahoma, serif;
  --sans: "Vazirmatn", "Instrument Sans", "Instrument Fallback", Tahoma, system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-synthesis: none; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
bdi { unicode-bidi: isolate; }
main { overflow-x: clip; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.consult :focus-visible, .foot :focus-visible, .dock :focus-visible { --focus: var(--on-night); }
.btn:focus-visible { border-radius: var(--radius); }

.skip {
  position: absolute; inset-inline-start: 12px; inset-block-start: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px;
  font-weight: 600; text-decoration: none; transition: inset-block-start .2s;
}
.skip:focus { inset-block-start: 12px; }

/* Returning Persian visitors: hide until strings swap (fails open after 1.2s) */
.i18n-wait body { visibility: hidden; animation: i18n-reveal 0s 1.2s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }

/* ---------- Shared type ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 700 .8125rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-block-end: 18px;
}
.kicker::before { content: ""; inline-size: 28px; block-size: 1.5px; background: currentColor; }
.h2 {
  font: 400 clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem)/1.04 var(--serif);
  letter-spacing: -.018em; text-wrap: balance; margin-block-end: 18px;
}
.muted { color: var(--ink-2); max-inline-size: 34em; text-wrap: pretty; }
.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.textlink:hover { text-decoration-thickness: 2px; }

html[lang="fa"] .kicker, html[lang="fa"] .doc__title, html[lang="fa"] dt, html[lang="fa"] .chip,
html[lang="fa"] .big15__u, html[lang="fa"] .stamp__text, html[lang="fa"] .stamp__mid { letter-spacing: 0; text-transform: none; }
html[lang="fa"] .h2 { font-weight: 800; letter-spacing: 0; line-height: 1.3; font-size: clamp(1.8rem, 1.25rem + 2.8vw, 3rem); }
html[lang="fa"] body { line-height: 1.85; }
[dir="rtl"] .btn__arrow, [dir="rtl"] .textlink .ic { transform: scaleX(-1); }

/* ---------- Header ---------- */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px 6px;
}
.brand { display: block; border-radius: 6px; }
.brand img { block-size: 46px; inline-size: auto; }
.top__end { display: flex; align-items: center; gap: 10px; }
.top__call {
  display: none; align-items: center; gap: 8px; min-block-size: 44px; padding-inline: 6px;
  font-weight: 600; font-size: .9375rem; text-decoration: none; font-variant-numeric: tabular-nums;
}
.top__call:hover { color: var(--red); }
.lang {
  display: inline-flex; align-items: center; gap: 8px;
  min-block-size: 44px; padding-inline: 14px 16px;
  font: 600 .9375rem/1 var(--sans); color: var(--ink);
  background: rgba(251, 248, 242, .8); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; transition: border-color .2s, background .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lang:hover { border-color: var(--ink); background: var(--card); }
.lang .ic { inline-size: 18px; block-size: 18px; }
/* English page: render the Persian word with system Arabic fonts (no 44 KB download) */
.lang__label:lang(fa) { font-family: Tahoma, "Segoe UI", "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 6vw, 56px) clamp(48px, 8vw, 104px); }
.hero__art {
  position: absolute; z-index: 0; pointer-events: none;
  inset-block-start: -120px; inset-inline-end: calc(-1 * var(--gutter) - 190px);
  inline-size: 400px; aspect-ratio: 1; opacity: .55;
}
.hero__art .seal { display: none; }
.rosette { inline-size: 100%; block-size: 100%; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.js .rosette { -webkit-mask: conic-gradient(#000 var(--sweep), transparent 0); mask: conic-gradient(#000 var(--sweep), transparent 0); }
.js .rosette:not(.is-drawn) { --sweep: 0deg; }
.js .rosette.is-drawn { animation: sweep 2.2s var(--ease) .15s both, spin 180s linear infinite; }
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
.seal {
  position: absolute; inset: 0; margin: auto; inline-size: 31%; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(192, 20, 28, .35), 0 0 0 7px var(--paper), 0 0 0 8px rgba(15, 26, 46, .18);
}
.seal img { inline-size: 70%; block-size: auto; }
.hero__copy { position: relative; z-index: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; margin-block-end: 22px;
  font: 600 .8125rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(251, 248, 242, .78); border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chip__dot { position: relative; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--red); }
.chip__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--red); animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.display {
  font: 380 clamp(2.55rem, 1.1rem + 7vw, 5.6rem)/1.0 var(--serif);
  letter-spacing: -.025em; margin-block-end: 26px; max-inline-size: 13.5em;
}
.ln { display: block; overflow: hidden; padding-block-end: .1em; margin-block-end: -.06em; }
.ln > * { display: block; text-wrap: balance; }
.ln--em em { font-style: italic; font-weight: 340; color: var(--red); }
.js .ln > * { transform: translateY(45%); animation: rise 1.1s var(--ease) both; }
.js .ln + .ln > * { animation-delay: .1s; }
@keyframes rise { to { transform: none; } }
html[lang="fa"] .display { font-weight: 800; letter-spacing: 0; line-height: 1.32; font-size: clamp(2.1rem, 1.1rem + 5.4vw, 4.4rem); }
html[lang="fa"] .ln--em em { font-style: normal; font-weight: 800; }

.lead { font-size: 1.125rem; color: var(--ink-2); max-inline-size: 32em; text-wrap: pretty; margin-block-end: 30px; }
.js .lead, .js .cta, .js .hero .status, .js .free { animation: fade-up .9s var(--ease) both; }
.js .lead { animation-delay: .32s; }
.js .cta { animation-delay: .42s; }
.js .hero .status, .js .free { animation-delay: .55s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Buttons ---------- */
.cta { display: grid; gap: 12px; margin-block-end: 26px; max-inline-size: 640px; }
.btn {
  display: flex; align-items: center; gap: 14px;
  min-block-size: 70px; padding-block: 10px; padding-inline: 10px 20px;
  border-radius: var(--radius); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s;
}
.btn__ic {
  display: grid; place-items: center; flex: none;
  inline-size: 50px; block-size: 50px; border-radius: 13px; background: rgba(255, 255, 255, .14);
}
.btn__ic svg { inline-size: 24px; block-size: 24px; }
.btn__txt { display: flex; flex-direction: column; line-height: 1.25; min-inline-size: 0; }
.btn__txt strong { font-size: 1.0625rem; font-weight: 650; }
.btn__txt small { font-size: .875rem; opacity: .92; font-variant-numeric: tabular-nums; }
.btn__arrow { inline-size: 20px; block-size: 20px; margin-inline-start: auto; flex: none; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translate(2px, -2px); }
.btn:active { transform: translateY(0); }
.btn--wa { background: var(--red); color: #fff; box-shadow: 0 14px 30px -16px rgba(192, 20, 28, .8); }
.btn--wa:hover { background: var(--red-deep); box-shadow: 0 20px 36px -18px rgba(192, 20, 28, .9); }
.btn--call { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -18px rgba(15, 26, 46, .8); }
.btn--call:hover { background: #1C2944; }
.btn--ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--ink); inline-size: 100%; }
.btn--ghost .btn__ic { background: var(--ink); color: var(--paper); }
.btn--ghost .btn__txt small { color: var(--ink-2); opacity: 1; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost:hover .btn__ic { background: var(--paper); color: var(--ink); }
.btn--ghost:hover .btn__txt small { color: var(--on-night-2); }
.btn--compact { min-block-size: 62px; }
.btn--compact .btn__ic { inline-size: 42px; block-size: 42px; border-radius: 11px; }

/* ---------- Live status ---------- */
.status {
  display: flex; align-items: center; gap: 10px; min-block-size: 26px;
  font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.status__dot { position: relative; flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--closed); }
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(30, 122, 70, .16); }
.status.is-open .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--open);
  animation: ping 2.4s var(--ease) infinite;
}
.status__text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .45em; }
.status__sep { color: var(--ink-3); }
.status__nw { white-space: nowrap; }
.status strong { color: var(--ink); font-weight: 650; }
.status.is-open strong { color: var(--open); }
.free {
  display: flex; align-items: flex-start; gap: 10px; margin-block-start: 12px;
  font-size: .9375rem; color: var(--ink-2);
}
.free .ic { margin-block-start: 3px; color: var(--red); }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line); padding-block: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; inline-size: max-content; animation: marquee 60s linear infinite; }
[dir="rtl"] .ticker__track { animation-name: marquee-rtl; }
.ticker__list { display: flex; flex: none; }
.ticker__list li {
  display: flex; align-items: center; white-space: nowrap;
  font: italic 340 clamp(1.35rem, 1rem + 1.4vw, 1.9rem)/1.2 var(--serif); color: var(--ink);
}
.ticker__list li::after {
  content: ""; inline-size: .62em; block-size: .68em; margin-inline: .9em; background: var(--red);
  -webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat;
}
html[lang="fa"] .ticker__list li { font-style: normal; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
:root { --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1900 -2050 3800 4120'%3E%3Cpath d='m-90 2030 45-863a95 95 0 0 0-111-98l-859 151 116-320a65 65 0 0 0-20-73l-941-762 212-99a65 65 0 0 0 34-79l-186-572 542 115a65 65 0 0 0 73-38l105-247 423 454a65 65 0 0 0 111-57l-204-1052 327 189a65 65 0 0 0 91-27l332-652 332 652a65 65 0 0 0 91 27l327-189-204 1052a65 65 0 0 0 111 57l423-454 105 247a65 65 0 0 0 73 38l542-115-186 572a65 65 0 0 0 34 79l212 99-941 762a65 65 0 0 0-20 73l116 320-859-151a95 95 0 0 0-111 98l45 863z'/%3E%3C/svg%3E"); }

/* ---------- Free consultation band ---------- */
.consult {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(227, 20, 29, .18), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(233, 201, 143, .1), transparent 60%),
    var(--night);
  color: var(--on-night);
  padding-block: clamp(64px, 10vw, 128px);
}
.consult::before { /* fine engraved lines, like security paper */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-radial-gradient(circle at 85% 20%, transparent 0 14px, rgba(244, 239, 230, .05) 14px 15px);
}
.consult__grid { display: grid; gap: 36px; align-items: center; }
.consult__visual { position: relative; display: flex; align-items: flex-end; gap: 4px; }
.big15 { display: flex; align-items: flex-end; gap: 12px; }
.big15__n {
  font: italic 300 clamp(9rem, 6rem + 18vw, 17rem)/.78 var(--serif);
  letter-spacing: -.05em; color: var(--coral);
  background: linear-gradient(170deg, #FF8A80 10%, #E3141D 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-inline-end: .06em;
}
.big15__u {
  font: 700 .8125rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-night-3); padding-block-end: .8em;
}
html[lang="fa"] .big15__n { font-style: normal; font-weight: 800; letter-spacing: 0; line-height: 1; }
.stamp {
  position: absolute; inset-block-start: -20px; inset-inline-end: 0;
  inline-size: clamp(118px, 30vw, 176px); color: var(--gold); overflow: visible;
}
.stamp__spin { transform-origin: 100px 100px; animation: spin 36s linear infinite; }
[dir="rtl"] .stamp__spin { animation-direction: reverse; }
.stamp__text { direction: ltr; unicode-bidi: plaintext; font: 700 13px var(--sans); letter-spacing: .16em; text-transform: uppercase; fill: currentColor; }
html[lang="fa"] .stamp__text { font-size: 14px; font-weight: 700; }
.stamp__leaf { color: var(--red-bright); }
.stamp__mid { font: 700 11px var(--sans); letter-spacing: .32em; fill: currentColor; }
.consult__copy p:not(.kicker) { color: var(--on-night-2); max-inline-size: 34em; font-size: 1.0625rem; text-wrap: pretty; }
.consult .kicker { color: var(--coral); }
.consult__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-block-start: 30px; }
.consult .textlink { color: var(--on-night); font-variant-numeric: tabular-nums; min-block-size: 44px; }

/* ---------- Services ---------- */
.services { display: grid; gap: 36px; padding-block: clamp(72px, 10vw, 140px); }
.svc { border-block-end: 1px solid var(--line); }
.svc li { border-block-start: 1px solid var(--line); }
.svc__item {
  display: grid; grid-template-columns: 2.4em 1fr auto; gap: 14px; align-items: start;
  padding-block: 22px; padding-inline: 2px; text-decoration: none; border-radius: 4px;
  transition: background-color .3s, padding .4s var(--ease);
}
.svc__n { font: italic 400 1.0625rem/1.9 var(--serif); color: var(--red); font-variant-numeric: tabular-nums; }
.svc__body { display: grid; gap: 6px; }
.svc__name { font: 420 clamp(1.35rem, 1.1rem + .9vw, 1.65rem)/1.18 var(--serif); letter-spacing: -.01em; }
.svc__desc { font-size: .9375rem; line-height: 1.55; color: var(--ink-3); }
.svc__go { inline-size: 22px; block-size: 22px; margin-block-start: 6px; color: var(--ink-3); transition: transform .35s var(--ease), color .2s; }
.svc__item:hover { background: var(--card); padding-inline: 14px; }
.svc__item:hover .svc__go { color: var(--red); transform: translate(3px, -3px); }
.svc__item:hover .svc__name { color: var(--red-deep); }
[dir="rtl"] .svc__go { transform: scaleX(-1); }
[dir="rtl"] .svc__item:hover .svc__go { transform: scaleX(-1) translate(3px, -3px); }
html[lang="fa"] .svc__name { font-weight: 700; letter-spacing: 0; line-height: 1.5; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); }
html[lang="fa"] .svc__n { font-style: normal; }

/* ---------- Contact ---------- */
.contact { background: var(--sand); padding-block: clamp(72px, 10vw, 140px); scroll-margin-block-start: 0; }
.contact:focus { outline: none; }
.contact__grid { display: grid; gap: 40px; align-items: start; }
.contact__ctas { display: grid; gap: 12px; margin-block-start: 28px; max-inline-size: 460px; }

.doc {
  container-type: inline-size;
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid rgba(15, 26, 46, .12); border-radius: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 40px 70px -40px rgba(15, 26, 46, .45), 0 2px 6px rgba(15, 26, 46, .05);
}
.doc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px clamp(20px, 5cqi, 32px);
  border-block-end: 1px dashed rgba(15, 26, 46, .22);
  background:
    repeating-linear-gradient(115deg, rgba(192, 20, 28, .07) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(65deg, rgba(15, 26, 46, .05) 0 1px, transparent 1px 7px),
    var(--card);
}
.doc__title { font: 700 .8125rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.doc__code { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: var(--ink-3); white-space: nowrap; }
.doc__rows { padding-inline: clamp(20px, 5cqi, 32px); }
.doc__row { display: grid; gap: 8px; padding-block: 20px; border-block-end: 1px solid var(--line); }
.doc__row:last-child { border-block-end: 0; }
.doc dt { font: 650 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.doc__big {
  display: inline-block; font: 420 clamp(1.45rem, 6.4cqi, 1.85rem)/1.2 var(--serif);
  letter-spacing: -.01em; text-decoration: none; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere;
}
.doc__big:hover { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.doc__mini { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; min-block-size: 40px; padding-inline: 14px 16px;
  font-size: .875rem; font-weight: 600; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s;
}
.pill:hover { border-color: var(--ink); background: #fff; }
.doc__addr { font-size: 1.0625rem; margin-block-end: 6px; }
.hours { display: grid; gap: 2px; margin-block-end: 12px; }
.hours li {
  display: flex; justify-content: space-between; gap: 16px; padding: 7px 12px; margin-inline: -12px;
  border-radius: 10px; font-variant-numeric: tabular-nums;
}
.hours li.is-today { background: rgba(192, 20, 28, .07); font-weight: 650; box-shadow: inset 3px 0 0 var(--red); }
[dir="rtl"] .hours li.is-today { box-shadow: inset -3px 0 0 var(--red); }
.status--doc { font-size: .875rem; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 9px; min-block-size: 44px; padding-inline: 14px 18px;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); transition: background .2s, color .2s, border-color .2s;
}
.social svg { inline-size: 19px; block-size: 19px; }
.social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.doc__foot { padding: 8px clamp(20px, 5cqi, 32px) 26px; }
.mrz {
  display: grid; gap: 2px; direction: ltr; text-align: left;
  padding: 16px clamp(20px, 5cqi, 32px) 18px; background: var(--mrz); border-block-start: 1px solid var(--line);
  font: 500 clamp(9px, calc((100cqi - 2 * clamp(20px, 5cqi, 32px)) / 25.5), 17px)/1.5 var(--mono);
  letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; overflow: hidden;
}
.mrz span { overflow: hidden; text-overflow: clip; }

/* ---------- Footer ---------- */
.foot {
  background: var(--night); color: var(--on-night-2);
  padding-block: 56px calc(56px + 88px + env(safe-area-inset-bottom));
}
.foot__grid { display: grid; gap: 18px; }
.foot__logo { inline-size: 168px; block-size: auto; }
.foot__note { font: italic 340 clamp(1.3rem, 1rem + 1vw, 1.6rem)/1.3 var(--serif); color: var(--on-night); max-inline-size: 26em; }
html[lang="fa"] .foot__note { font-style: normal; font-weight: 600; }
.foot__legal { font-size: .875rem; color: var(--on-night-3); padding-block-start: 18px; border-block-start: 1px solid rgba(244, 239, 230, .14); }

/* ---------- Mobile quick-contact dock ---------- */
.dock {
  position: fixed; z-index: 50; inset-inline: 12px; inset-block-end: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; padding: 8px;
  background: rgba(15, 26, 46, .94); border-radius: 22px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -12px rgba(15, 26, 46, .55);
  transform: translateY(calc(100% + 40px)); transition: transform .5s var(--ease);
}
.dock.is-on, html:not(.js) .dock { transform: none; }
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; min-block-size: 52px;
  border-radius: 15px; font-weight: 650; text-decoration: none;
}
.dock__btn svg { inline-size: 21px; block-size: 21px; }
.dock__btn--wa { background: var(--red); color: #fff; }
.dock__btn--call { background: var(--paper); color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .cta { grid-template-columns: 1fr 1fr; }
  .doc__row { grid-template-columns: minmax(130px, 32%) 1fr; gap: 20px; align-items: baseline; }
  .doc dt { padding-block-start: 4px; }
}
@media (min-width: 720px) {
  .top__call { display: inline-flex; }
  .brand img { block-size: 54px; }
  .svc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-block-end: 0; }
  .svc li:nth-last-child(-n + 2) { border-block-end: 1px solid var(--line); }
}
@media (max-width: 719.98px) {
  .svc li:last-child { border-block-end: 0; }
}
@media (min-width: 900px) {
  .dock { display: none; }
  .foot { padding-block-end: 56px; }
  .foot__grid { grid-template-columns: auto 1fr; align-items: end; column-gap: 56px; }
  .foot__legal { grid-column: 1 / -1; }
  .consult__grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .consult__visual { justify-content: center; }
  .stamp { inset-block-start: -40px; inset-inline-end: -10px; }
}
@media (min-width: 1000px) {
  .top { padding-block-start: 26px; }
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center;
    column-gap: 48px; min-block-size: min(760px, calc(100svh - 90px));
  }
  .hero__art {
    position: relative; inset: auto; grid-column: 2; grid-row: 1;
    inline-size: 100%; max-inline-size: 560px; justify-self: center; opacity: 1;
  }
  .hero__art .seal { display: grid; }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .services { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .services__head { position: sticky; inset-block-start: 40px; }
  .contact__grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .contact__intro { position: sticky; inset-block-start: 40px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rosette, .js .rosette.is-drawn, .stamp__spin, .ticker__track, .chip__dot::after, .status.is-open .status__dot::after { animation: none !important; }
  .js .ln > *, .js .reveal { transform: none; opacity: 1; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { inline-size: auto; }
  .ticker__list { flex-wrap: wrap; justify-content: center; row-gap: 6px; flex: 1; }
  .ticker__list + .ticker__list { display: none; }
}

@media print {
  .dock, .lang, .hero__art, .ticker, .stamp { display: none !important; }
  .consult, .foot { background: none; color: #000; }
}
