/* ==========================================================================
   Assert Systems — v2 design (Round 38): light, friendly, clear separate sections, with motion.
   Approved preview: docs/design-previews/new-look-v2-homepage-preview.html. This file styles the site's existing
   markup (same text, same headings, same links); site-v2.js adds the motion. The old dark design (style.css) stays
   in the project for the v36 backup but no page loads it. Logical properties mirror everything on /fa/ (dir="rtl").
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-700.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --blue: #116DFD; --blue2: #0A55D6; --cyan: #08DEF2;
  --ink: #0C1626; --text: #2B3546; --muted: #5F6B7C;
  --bg: #F4F6F9; --white: #fff; --line: #E2E7EE; --tint: #E8F1FF; --navy: #0B1D3A;
  --ok: #117A3D; --ok-bg: #E2F7EB; --fix: #A65800; --fix-bg: #FFEFDF;
  --r: 22px; --r-big: 36px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-fa: "Vazirmatn", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23116DFD' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --arrow-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23116DFD' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
  --arrow-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23116DFD' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  --check-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308DEF2' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  --check-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(fa) body, [dir="rtl"] body { font-family: var(--font-fa); }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.025em; font-weight: 600; }
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3, :lang(fa) h4 { letter-spacing: 0; line-height: 1.45; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
main { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--blue); color: #fff; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 16px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ltr-run { unicode-bidi: isolate; direction: ltr; display: inline-block; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.tri { display: none; }   /* the old triangle bullets: the v2 lists draw their own check marks */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
em { font-style: italic; }

/* ---------- Type ---------- */
.t-display, .t-heading-lg { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; }
.t-heading-sm { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; }
.t-heading-xs { font-size: 19px; line-height: 1.3; }
.t-heading-2xs { font-size: 16px; line-height: 1.35; }
.t-body { color: var(--muted); }
:lang(fa) .t-body { line-height: 1.9; }
.t-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
:lang(fa) .t-label { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* badge pill ("+ LABEL") above section headings, from each section's existing eyebrow */
.section-intro > .t-label, .split > header > .t-label, .hero-copy > .t-label, .dd-copy > .t-label, .welcome-head > .t-label,
.closer .t-label, .contact-head > .t-label, .svc-feature > .t-label, .svc-block header .t-label:not(.svc-idx) {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%;
  font-size: 11.5px; color: var(--ink); background: #fff; border: 1px solid var(--line);
  padding: 6px 12px 6px 10px; border-radius: 999px; margin-bottom: 18px; box-shadow: 0 2px 6px rgba(12,22,38,.04);
}
.section-intro > .t-label::before, .split > header > .t-label::before, .hero-copy > .t-label::before, .dd-copy > .t-label::before,
.welcome-head > .t-label::before, .closer .t-label::before, .contact-head > .t-label::before, .svc-feature > .t-label::before {
  content: "+"; color: var(--blue); font-weight: 700; font-size: 14px; line-height: 1;
}
:lang(fa) .section-intro > .t-label, :lang(fa) .split > header > .t-label, :lang(fa) .hero-copy > .t-label, :lang(fa) .dd-copy > .t-label,
:lang(fa) .welcome-head > .t-label, :lang(fa) .closer .t-label, :lang(fa) .contact-head > .t-label, :lang(fa) .svc-feature > .t-label { font-size: 13px; padding-inline: 10px 14px; }
.band-w .split > header > .t-label, .band-w .section-intro > .t-label { background: var(--bg); }

/* ---------- Buttons and links ---------- */
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px;
  font-weight: 600; font-size: 14px; letter-spacing: .02em; line-height: 1.2; text-align: center;
  padding: 8px 8px 8px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s;
}
[dir="rtl"] .btn-primary, [dir="rtl"] .btn-outline { padding: 8px 22px 8px 8px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(17,109,253,.28); }
.btn-primary::after, .btn-outline::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff var(--arrow) center / 15px no-repeat; transition: transform .3s var(--ease);
}
[dir="rtl"] .btn-primary::after, [dir="rtl"] .btn-outline::after { transform: scaleX(-1); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue2); }
.btn-primary:hover::after { transform: rotate(-45deg); }
[dir="rtl"] .btn-primary:hover::after { transform: scaleX(-1) rotate(-45deg); }
.btn-outline { background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(12,22,38,.08); }
.btn-outline::after { background: var(--blue) var(--arrow-w) center / 15px no-repeat; }
.btn-outline:hover { transform: translateY(-2px); }
.btn-primary .icon, .btn-outline .icon { width: 17px; height: 17px; }
button.btn-primary { font-family: inherit; }
.ghost-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 600; font-size: 14.5px; color: var(--blue);
  transition: color .2s;
}
.ghost-link .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.ghost-link:hover .icon { transform: translateX(4px); }
[dir="rtl"] .ghost-link:hover .icon { transform: scaleX(-1) translateX(4px); }
.svc-more { margin-top: 28px; }
.svc-more-list { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.book-note { display: block; width: 100%; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
main a:not([class]) { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Header: the floating white pill ---------- */
.site-header { position: fixed; top: 16px; inset-inline: 0; z-index: 50; display: flex; justify-content: center; padding-inline: 12px; pointer-events: none; transition: top .35s var(--ease); }
.site-header.is-scrolled { top: 8px; }
.nav-bar {
  pointer-events: auto; width: auto; max-width: 1180px; display: flex; align-items: center; gap: 22px;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 999px; padding: 8px 8px 8px 20px; margin: 0;
  box-shadow: 0 10px 30px rgba(12,22,38,.13); transition: padding .35s var(--ease), box-shadow .3s;
}
[dir="rtl"] .nav-bar { padding: 8px 20px 8px 8px; }
.is-scrolled .nav-bar { padding-block: 6px; box-shadow: 0 8px 24px rgba(12,22,38,.16); }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 30px; width: auto; }
.brand .logo-on-dark, .brand .brand-mark { display: none; }
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 22px; }
.nav-link { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .2s; }
:lang(fa) .nav-link { font-size: 14.5px; letter-spacing: 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue); }
.lang-toggle { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; padding-inline: 2px; }
.lang-toggle:hover { color: var(--blue); }
.lang-toggle .fa-word { font-family: var(--font-fa); }
.call-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 5px 5px 16px; margin-inline-start: auto;
  background: var(--ink); color: #fff; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: none; transition: background-color .2s, transform .2s;
}
[dir="rtl"] .call-pill { padding: 5px 16px 5px 5px; }
.call-pill:hover { background: #18263d; transform: translateY(-1px); }
.call-pill::after { display: none; }
:lang(fa) .call-pill { letter-spacing: 0; font-size: 14px; }
.call-pill .call-ico { display: none; }
.call-pill .call-num { display: none; }
.call-arr { width: 30px; height: 30px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; flex: none; }
.call-arr .icon { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 2.8; }
[dir="rtl"] .call-arr .icon { transform: scaleX(-1); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; flex: none; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), background-color .3s; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-bar { width: calc(100% - 0px); justify-content: flex-start; gap: 12px; }
@media (min-width: 600px) { .lang-toggle { display: inline-flex; } }
@media (min-width: 900px) {
  .nav-bar { width: auto; gap: 24px; }
  .primary-nav { display: block; }
  .nav-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 1180px) { .call-pill .call-word { display: none; } .call-pill .call-num { display: inline; } }
@media (max-width: 359px) { .brand-logo { height: 24px; } .call-pill .call-word { display: none; } .call-pill { padding: 5px; } }

/* Mobile menu: a white panel under the pill; the numbers 01 to 07 and the blue to cyan sweep stay (main.js) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #fff; padding: calc(var(--nav-h) + 34px) 24px 48px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; max-width: 520px; margin-inline: auto; }
.mobile-menu nav > a:not(.btn-primary) {
  display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; min-height: 62px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 30px; font-weight: 600; letter-spacing: -.03em;
}
:lang(fa) .mobile-menu nav > a:not(.btn-primary) { letter-spacing: 0; font-size: 27px; }
.mobile-menu nav > a:not(.btn-primary):hover { color: var(--blue); }
.mobile-menu .lang-mobile { font-family: var(--font-fa); letter-spacing: 0; }
.mobile-menu .btn-primary { margin-top: 30px; align-self: flex-start; font-size: 15px; }
.mobile-menu .btn-primary .icon { display: none; }
.menu-open, .menu-open body { overflow: hidden; }
.mm-num { flex: none; margin-right: 12px; direction: ltr; unicode-bidi: isolate; font: 600 11.5px/1 var(--font); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #A3AEBD; }
[dir="rtl"] .mm-num { margin-right: 0; margin-left: 12px; }
.mm-num.mm-lit { color: var(--blue); }
.mm-num.mm-glow { animation: mm-glow .7s ease-out; }
@keyframes mm-glow { from { text-shadow: 0 0 2px var(--cyan), 0 0 10px var(--cyan); } to { text-shadow: 0 0 0 transparent; } }
.mm-in > * { animation: mm-in .55s var(--ease) both; animation-delay: calc(var(--mm-i, 0) * 70ms); }
@keyframes mm-in { from { opacity: 0; transform: translateY(16px); } }
.mm-txt.mm-sweep {
  background: linear-gradient(90deg, var(--ink) 0 35%, var(--blue) 45%, var(--cyan) 55%, var(--ink) 65% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: mm-sweep 1.4s ease-in-out both; animation-delay: var(--mm-d, 0ms);
}
.mm-txt.mm-soft { background-image: linear-gradient(90deg, var(--ink) 0 38%, var(--blue) 50%, var(--ink) 62% 100%); }
[dir="rtl"] .mm-txt.mm-sweep { animation-name: mm-sweep-rtl; }
@keyframes mm-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes mm-sweep-rtl { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* ---------- Scroll progress bar and section dots (made by site-v2.js) ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
[dir="rtl"] .progress { transform-origin: right; background: linear-gradient(270deg, var(--blue), var(--cyan)); }
.dots { position: fixed; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; gap: 12px; }
.dots a { width: 9px; height: 9px; border-radius: 50%; background: #C3CEDC; position: relative; transition: background-color .3s, transform .3s; }
.dots a.on { background: var(--blue); transform: scale(1.4); }
.dots a span { position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--ink); background: #fff; padding: 3px 9px; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.08); opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a.on span, .dots a:hover span { opacity: 1; }
.dots.dark a { background: rgba(255,255,255,.4); } .dots.dark a.on { background: var(--cyan); }
@media (max-width: 1000px) { .dots { display: none; } }

/* ---------- Sections: alternating bands, so every section is clearly separate ---------- */
.section, .services, .stats, .hz { position: relative; padding-block: 100px; }
.band-w { background: #fff; }
.band-g { background: var(--bg); }
.section-intro { max-width: 760px; margin-bottom: 50px; }
.section-intro .t-heading-lg, .section-intro h2 { margin-bottom: 14px; }
.section-intro > .t-body { font-size: 17.5px; max-width: 640px; margin-top: 10px; }
.split { display: grid; gap: 30px; }
.split > header .t-heading-sm, .split > header h2 { margin-bottom: 10px; }
.split > header > .t-body { font-size: 16.5px; margin-top: 12px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; } .split > header { position: sticky; top: 120px; } }
.prose p { font-size: 16.5px; color: var(--text); max-width: 680px; }
.prose p + p { margin-top: 18px; }
.prose a, .fine-print a, .area-note a, .hero-note a { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }
.dn-after { margin-top: 26px; }

/* check lists */
.item-list { display: grid; }
.item-list li { position: relative; padding: 13px 0; padding-inline-start: 36px; border-bottom: 1px solid var(--line); }
.item-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--tint) var(--check) center / 12px no-repeat; }
.item-list li .t-body { color: var(--ink); font-size: 15.5px; }
.item-list li strong { color: var(--ink); font-weight: 600; }
.item-list a { color: var(--blue); font-weight: 600; }
.band-w .item-list li::before { background-color: var(--tint); }

/* ---------- Homepage hero (photo, dark shade on the text side, soft fade into the light page) ---------- */
.hero { position: relative; overflow: hidden; }
.hero--home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #0e2240; }
.hero-photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-photo picture, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-photo img { object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,20,42,.88) 0%, rgba(8,20,42,.70) 40%, rgba(8,20,42,.26) 75%, rgba(8,20,42,.14) 100%),
              linear-gradient(180deg, rgba(8,20,42,.55) 0, rgba(8,20,42,0) 130px), linear-gradient(180deg, rgba(17,109,253,.18), rgba(17,109,253,0) 40%); }
[dir="rtl"] .hero-shade {
  background: linear-gradient(270deg, rgba(8,20,42,.88) 0%, rgba(8,20,42,.70) 40%, rgba(8,20,42,.26) 75%, rgba(8,20,42,.14) 100%),
              linear-gradient(180deg, rgba(8,20,42,.55) 0, rgba(8,20,42,0) 130px), linear-gradient(180deg, rgba(17,109,253,.18), rgba(17,109,253,0) 40%); }
.hero--home::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(244,246,249,0) 0%, rgba(244,246,249,.55) 45%, rgba(244,246,249,.93) 76%, var(--bg) 100%); }
.hero--home .hero-grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: end; padding-top: 150px; }
@media (min-width: 900px) { .hero--home .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.hero--home .t-display { color: #fff; font-size: clamp(42px, 6.4vw, 80px); line-height: 1.03; letter-spacing: -.035em; margin-bottom: 22px; }
:lang(fa) .hero--home .t-display { font-size: clamp(36px, 5.2vw, 66px); line-height: 1.35; letter-spacing: 0; }
.hero-title .line { display: block; }
.hero-title .line > span { display: inline; }
.words-ready .hero-title .w { display: inline-block; opacity: 0; transform: translateY(46px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--w, 0) * 90ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero--home .hero-copy > .t-label { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.26); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero--home .hero-copy > .t-label::before { color: var(--cyan); }
.hero--home .hero-body { max-width: 580px; color: #DCE6F5; font-size: 17.5px; text-shadow: 0 1px 12px rgba(8,20,42,.35); }
.hero--home .hero-sub { color: #fff; font-size: 18px; margin-bottom: 12px; }
.hero--home .hero-body:not(.hero-sub) { color: #C9D6EA; font-size: 16px; }
:lang(fa) .hero--home .hero-body { font-size: 17px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero--home .ghost-link, .hero--pic .ghost-link { color: #fff; border-bottom: 1px solid rgba(255,255,255,.45); border-radius: 0; min-height: 0; padding-block: 6px; }
.hero--home .ghost-link .icon, .hero--pic .ghost-link .icon { stroke: var(--cyan); }
.hero--home .book-note, .hero--pic .book-note { color: #AFC2E2; }
/* the 3 floating glass cards (hidden under 900px) */
.floaters { display: none; }
@media (min-width: 900px) { .floaters { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; padding-bottom: 10px; } }
.fcard { width: 250px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 18px; padding: 16px 18px; color: #fff; animation: fadeup .9s var(--ease) both, bob 6s ease-in-out infinite; }
.fcard:nth-child(1) { animation-delay: .5s, 1.4s; }
.fcard:nth-child(2) { animation-delay: .65s, 2s; margin-inline-end: 34px; }
.fcard:nth-child(3) { animation-delay: .8s, 2.6s; }
.fcard b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; display: block; line-height: 1.1; text-align: start; }
.fcard small { font-size: 13px; color: #C9D6EA; display: block; }
.fcard .row { display: flex; align-items: center; gap: 12px; }
.fcard .dot { width: 36px; height: 36px; border-radius: 50%; background: rgba(8,222,242,.18); display: grid; place-items: center; flex: none; }
.fcard .dot svg { width: 18px; height: 18px; stroke: var(--cyan); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fcard .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
/* the tools strip at the foot of the hero */
.tools { position: relative; z-index: 2; margin-top: 64px; padding-bottom: 26px; }
.tools-label { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
:lang(fa) .tools-label { letter-spacing: 0; font-size: 13px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; margin-inline: auto; }
.marquee-track.looping { animation: slide 34s linear infinite; margin-inline: 0; }
.marquee-track li { font-size: 18px; font-weight: 600; color: #7E8A9B; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.marquee-track li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--blue), var(--cyan)); opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 899px) {
  .hero--home .hero-grid { padding-top: 130px; }
  .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(8,20,42,.72) 0%, rgba(8,20,42,.82) 55%, rgba(8,20,42,.9) 100%); }
  .hero--home::after { height: 18%; }
  .tools { margin-top: 44px; }
}

/* ---------- Inner page hero (light, slow drifting blue glow; a photo version is ready, see .hero--pic) ---------- */
.hero--page { background: linear-gradient(160deg, var(--bg) 0%, var(--tint) 100%); padding: 150px 0 76px; }
.hero--page::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; top: -320px; inset-inline-end: -180px;
  background: radial-gradient(circle, rgba(17,109,253,.18), transparent 65%); animation: drift 14s ease-in-out infinite; pointer-events: none; }
.hero--page .hero-grid { position: relative; z-index: 1; }
.hero--page .hero-copy { max-width: 860px; }
.hero--page .t-heading-lg { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; margin-bottom: 18px; }
:lang(fa) .hero--page .t-heading-lg { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.4; }
.hero--page .hero-body { font-size: 18px; max-width: 700px; color: var(--text); }
:lang(fa) .hero--page .hero-body { font-size: 17px; line-height: 1.95; }
.hero-note { margin-top: 14px; color: var(--muted); max-width: 700px; }
.hero-price { display: inline-flex; margin-top: 22px; margin-inline-end: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); min-height: 30px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { margin-inline: 8px; color: #B6C1CF; }
/* trust items as small chips */
.hero .dd-points, .la-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero .dd-points li, .la-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }
.hero .dd-points li::before, .la-trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--tint) var(--check) center / 9px no-repeat; flex: none; }
/* the hero photo option for inner pages: class hero--pic + --hero-img (build_site.py adds both when img/pages/<page>/hero.webp exists) */
.hero--pic { background: #0e2240 var(--hero-img) center / cover no-repeat; color: #fff; }
.hero--pic::before { content: ""; inset: 0; width: auto; height: auto; top: 0; border-radius: 0; animation: none;
  background: linear-gradient(90deg, rgba(8,20,42,.88) 0%, rgba(8,20,42,.68) 50%, rgba(8,20,42,.3) 100%); }
[dir="rtl"] .hero--pic::before { background: linear-gradient(270deg, rgba(8,20,42,.88) 0%, rgba(8,20,42,.68) 50%, rgba(8,20,42,.3) 100%); }
.hero--pic .t-heading-lg, .hero--pic .hero-body { color: #fff; }
.hero--pic .crumbs, .hero--pic .crumbs a, .hero--pic .hero-note { color: #C9D6EA; }
.hero--pic .hero-copy > .t-label { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.26); color: #fff; }
@keyframes drift { 50% { transform: translate(-80px, 60px); } }
[dir="rtl"] .hero--page::before { animation-name: drift-rtl; }
@keyframes drift-rtl { 50% { transform: translate(80px, 60px); } }
.lost-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 26px; }

/* ---------- Welcome bento (homepage; the 4 numbers keep their markup) ---------- */
.welcome { padding-top: 70px; }
.welcome-head { display: grid; gap: 10px; margin-bottom: 44px; }
@media (min-width: 860px) { .welcome-head { grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; } }
.welcome-statement { font-size: clamp(22px, 2.8vw, 34px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
:lang(fa) .welcome-statement { letter-spacing: 0; line-height: 1.7; font-size: clamp(20px, 2.4vw, 28px); }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.b-owner { grid-column: span 2; }
@media (max-width: 619px) { .stats-grid li { min-height: 140px; padding: 20px; } .stat-num { font-size: 42px; } }
.bento .stats-grid { display: contents; }
.b-owner { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 360px; padding: 30px;
  border-radius: var(--r); color: #B8C6DC; background: radial-gradient(120% 80% at 100% 0%, rgba(17,109,253,.42), transparent 60%), var(--navy); }
[dir="rtl"] .b-owner { background: radial-gradient(120% 80% at 0% 0%, rgba(17,109,253,.42), transparent 60%), var(--navy); }
.b-owner::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; top: -150px; inset-inline-end: -120px; background: radial-gradient(circle, rgba(8,222,242,.22), transparent 65%); animation: drift 12s ease-in-out infinite; }
.b-owner > * { position: relative; }
.owner-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 6px 12px 6px 10px; border-radius: 999px; }
.owner-pill::before { content: "+"; color: var(--cyan); font-weight: 700; font-size: 14px; line-height: 1; }
:lang(fa) .owner-pill { letter-spacing: 0; text-transform: none; font-size: 13px; }
.owner-title { font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: #fff; max-width: 460px; }
:lang(fa) .owner-title { letter-spacing: 0; line-height: 1.5; font-size: clamp(22px, 2.6vw, 30px); }
.owner-text { font-size: 15.5px; max-width: 480px; }
.owner-phone { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.02em; width: fit-content; }
.owner-phone:hover { color: var(--cyan); }
.owner-hours { font-size: 14px; color: #93A6C4; }
.stats-grid li { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; }
.stat-num { font-size: 52px; font-weight: 700; color: var(--ink); letter-spacing: -.04em; line-height: 1; direction: ltr; unicode-bidi: isolate; text-align: start; }
.stat-label { display: block; font-size: 14px; color: var(--muted); margin-top: 10px; }
.stats-grid li:nth-child(2) { background: linear-gradient(140deg, var(--blue) 0%, #1B8BFF 55%, var(--cyan) 140%); border: 0; }
.stats-grid li:nth-child(2)::after { content: ""; position: absolute; width: 220px; height: 220px; inset-inline-end: -70px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); }
.stats-grid li:nth-child(2) .stat-num { color: #fff; }
.stats-grid li:nth-child(2) .stat-label { color: #E1EEFF; }
.stats-grid li:nth-child(3), .stats-grid li:nth-child(4) { background: var(--tint); border-color: #D6E5FB; }
.stats-grid li:nth-child(3) .stat-num, .stats-grid li:nth-child(4) .stat-num { color: var(--blue); }
@media (min-width: 620px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-owner { grid-column: span 2; }
}
@media (min-width: 960px) {
  .bento { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; }
  .b-owner { grid-column: 1; grid-row: span 2; min-height: 430px; }
}

/* ---------- Services: numbered cards with icons ("Learn more" is drawn here, not in the HTML) ---------- */
.svc-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .svc-cards { grid-template-columns: repeat(3, 1fr); } }
.svc-cards .svc-row {
  position: relative; height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico idx" "name name" "desc desc" "more more";
  gap: 6px 14px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.band-w .svc-cards .svc-row { background: var(--bg); border-color: transparent; }
.svc-cards .svc-row:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(12,22,38,.09); border-color: #CADBF3; background: #fff; }
.svc-cards .v2-ico { grid-area: ico; margin-bottom: 12px; }
.svc-cards .svc-idx { grid-area: idx; justify-self: end; font-size: 13px; font-weight: 600; color: #A3AEBD; }
.svc-cards .svc-name { grid-area: name; font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -.02em; }
:lang(fa) .svc-cards .svc-name { letter-spacing: 0; line-height: 1.5; }
.svc-cards .svc-desc { grid-area: desc; font-size: 15px; color: var(--muted); }
.svc-cards .svc-arrow { display: none; }
/* "Learn more" on each card is drawn here (the HTML text stays the same); the label comes from the page language */
.svc-cards { --learn: "Learn more"; }
:lang(fa) .svc-cards { --learn: "بیشتر بدانید"; }
.svc-cards .svc-row::after { content: var(--learn); grid-area: more; justify-self: start; margin-top: 14px; padding-inline-end: 22px; font-weight: 600; font-size: 14px; color: var(--blue); background: var(--arrow) right center / 14px no-repeat; transition: padding .2s var(--ease); }
[dir="rtl"] .svc-cards .svc-row::after { background-image: var(--arrow-l); background-position: left center; }
.svc-cards .svc-row:hover::after { padding-inline-end: 28px; }
.v2-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; transition: background-color .3s; }
.v2-ico svg { width: 25px; height: 25px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.svc-cards .svc-row:hover .v2-ico { background: var(--blue); }
.svc-cards .svc-row:hover .v2-ico svg { stroke: #fff; }
/* featured packages (New Office Setup navy, Healthcare light) */
.svc-features { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 760px) { .svc-features { grid-template-columns: 1fr 1fr; } }
.svc-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 230px; padding: 30px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.svc-feature:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(12,22,38,.09); }
.svc-feature .t-heading-xs { font-size: 22px; }
.svc-feature .t-body { color: var(--muted); }
.svc-feature-price { margin-top: auto; padding-top: 10px; font-size: 15px; text-transform: none; letter-spacing: 0; }
.services .svc-features .svc-feature:first-child { background: var(--navy); border-color: var(--navy); color: #C5D2E8; }
.services .svc-features .svc-feature:first-child h3 { color: #fff; }
.services .svc-features .svc-feature:first-child .t-body { color: #B3C1D8; }
.services .svc-features .svc-feature:first-child .svc-feature-price { color: var(--cyan); }
.services .svc-features .svc-feature:first-child .ghost-link { color: #fff; }
.services .svc-features .svc-feature:first-child .ghost-link .icon { stroke: var(--cyan); }
.services .svc-features .svc-feature:first-child > .t-label { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.services .svc-features .svc-feature:first-child > .t-label::before { color: var(--cyan); }
.services .svc-features .svc-feature:nth-child(2) { background: linear-gradient(140deg, #E6F0FF, #DDF8FC); border-color: #CFE3FA; }
.services .svc-features .svc-feature::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 40px; transform: rotate(20deg); opacity: .5; pointer-events: none; }
.services .svc-features .svc-feature:first-child::after { background: linear-gradient(135deg, rgba(17,109,253,.5), rgba(8,222,242,.2)); }
.services .svc-features .svc-feature:nth-child(2)::after { background: linear-gradient(135deg, rgba(17,109,253,.15), rgba(8,222,242,.25)); }
.services .svc-feature > * { position: relative; z-index: 1; }
/* cards grids on the inner pages (service lists for areas, clinic types, office types, patient forms ...) */
.la-cards { display: grid; gap: 18px; }
@media (min-width: 620px) { .la-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .la-cards { grid-template-columns: repeat(3, 1fr); } }
.la-cards .svc-feature { min-height: 0; padding: 26px; }
.la-cards .svc-feature .t-heading-xs { font-size: 19px; }
.la-cards .svc-feature .ghost-link { margin-top: auto; }
.band-g .svc-feature { background: #fff; }
.band-w .la-cards .svc-feature, .band-w .svc-features .svc-feature { background: var(--bg); border-color: transparent; }
.band-w .la-cards .svc-feature:hover { background: #fff; border-color: var(--line); }

/* service rows on the inner pages ("Where to start.", prices by service) as clean row cards */
.svc-list:not(.svc-cards) { display: grid; gap: 12px; }
@media (min-width: 760px) { .svc-list:not(.svc-cards) { grid-template-columns: 1fr 1fr; } }
.svc-list:not(.svc-cards) .svc-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "idx name arr" "idx desc arr"; gap: 2px 16px; align-items: center; height: 100%; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.band-w .svc-list:not(.svc-cards) .svc-row { background: var(--bg); border-color: transparent; }
.svc-list:not(.svc-cards) .svc-row:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(12,22,38,.08); border-color: #CADBF3; background: #fff; }
.svc-list:not(.svc-cards) .svc-idx { grid-area: idx; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.svc-list:not(.svc-cards) .svc-name { grid-area: name; font-weight: 600; color: var(--ink); font-size: 16.5px; line-height: 1.35; }
.svc-list:not(.svc-cards) .svc-desc { grid-area: desc; font-size: 14.5px; color: var(--muted); }
.svc-row--price .svc-desc { color: var(--blue); font-weight: 600; }
.svc-list:not(.svc-cards) .svc-arrow { grid-area: arr; width: 18px; height: 18px; color: var(--blue); }

/* ---------- Homepage feature rows (photos and HTML mockups), and the navy blocks on the inner pages ---------- */
.hz { padding-block: 100px; }
.hz .dd { padding-block: 0; margin-bottom: 96px; }
.hz .dd:last-child { margin-bottom: 0; }
.hz .dd-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .hz .dd-grid { grid-template-columns: 1fr 1fr; gap: 56px; } .hz .dd-vis { order: -1; } .hz .dd-flip .dd-vis { order: 2; } }
.dd-copy .t-heading-sm { margin-bottom: 16px; }
.dd-copy > .t-body { font-size: 17px; color: var(--muted); }
.dd-points { margin: 22px 0 24px; }
.dd-points li { position: relative; padding: 10px 0; padding-inline-start: 32px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.dd-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint) var(--check) center / 11px no-repeat; }
.dd-price { display: inline-flex; margin-inline-end: 22px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-transform: none; }
:lang(fa) .dd-price { font-size: 19px; }
.dd-vis { position: relative; overflow: hidden; min-height: 300px; border-radius: 28px; background: #dfe7f2; }
@media (min-width: 900px) { .dd-vis { min-height: 400px; } }
.dd-vis--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.hz .dd:hover .dd-vis--photo img { transform: scale(1.04); }
.mock { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, #E7F0FF, #EAFBFD); font-family: var(--font); }
.mail { width: 78%; max-width: 380px; background: #fff; border-radius: 18px; box-shadow: 0 24px 50px rgba(12,22,38,.12); overflow: hidden; }
.mail .bar, .browser .bar { height: 38px; background: var(--bg); display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.mail .bar i, .browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3DAE4; }
.mail .msg { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.mail .msg:last-child { border-bottom: 0; }
.mail .lns { flex: 1; }
.mail .av { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.mail .ln { height: 8px; border-radius: 4px; background: #E4E9F0; margin: 4px 0; }
.mail .msg.bad { background: #FFF4F2; }
.mail .stamp { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; background: #FFE1DB; color: #B33A26; }
.mfa { position: absolute; right: 8%; bottom: 12%; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; box-shadow: 0 16px 30px rgba(12,22,38,.25); animation: bob 5s ease-in-out infinite; }
.mfa i { width: 26px; height: 26px; border-radius: 50%; background: #1BC47D; display: grid; place-items: center; }
.mfa i svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; fill: none; }
.browser { width: 80%; max-width: 400px; background: #fff; border-radius: 18px; box-shadow: 0 24px 50px rgba(12,22,38,.12); overflow: hidden; }
.browser .bar { height: 34px; border-bottom: 0; }
.browser .bar span { flex: 1; height: 18px; border-radius: 9px; background: #fff; margin-left: 10px; font-size: 10px; color: #4F5B6B; display: flex; align-items: center; padding-left: 10px; }
.browser .hero-m { height: 110px; background: linear-gradient(120deg, var(--navy), var(--blue)); padding: 16px; }
.browser .hero-m div { height: 10px; border-radius: 5px; background: rgba(255,255,255,.8); width: 60%; margin-bottom: 8px; }
.browser .hero-m div + div { width: 40%; background: rgba(255,255,255,.4); }
.browser .rowm { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px; }
.browser .rowm div { height: 46px; border-radius: 10px; background: var(--bg); }
.gbp { position: absolute; left: 7%; bottom: 10%; width: 210px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 18px 34px rgba(12,22,38,.16); animation: bob 6s ease-in-out infinite; }
.gbp b { display: block; font-size: 13.5px; color: var(--ink); }
.gbp small { font-size: 11.5px; color: var(--muted); }
.gbp .pins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gbp .pins span { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--tint); color: #0B4FBF; }

/* the rounded navy block: homepage industries, and the one dd panel on each inner page */
.navy-block, main > .dd { background: var(--navy); border-radius: var(--r-big); margin-inline: 16px; color: #C2CFE6; overflow: hidden; }
main > .dd { position: relative; padding-block: 90px; margin-block: 0; }
.navy-block::before, main > .dd::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; top: -260px; inset-inline-end: -200px; background: radial-gradient(circle, rgba(17,109,253,.35), transparent 65%); animation: drift 12s ease-in-out infinite; pointer-events: none; }
[dir="rtl"] .navy-block::before, [dir="rtl"] main > .dd::before { animation-name: drift-rtl; }
.navy-block > .container, main > .dd > .container { position: relative; z-index: 1; }
.navy-block h2, .navy-block h3, main > .dd h2, main > .dd h3 { color: #fff; }
.navy-block .t-body, main > .dd .t-body { color: #A9BAD6; }
.navy-block .section-intro > .t-label, main > .dd .dd-copy > .t-label { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.navy-block .section-intro > .t-label::before, main > .dd .dd-copy > .t-label::before { color: var(--cyan); }
main > .dd .dd-solo { max-width: 1200px; }   /* v38: same container as the other sections, so the left edge lines up */
main > .dd .dd-solo > .dd-copy { max-width: 880px; }
main > .dd .dd-copy > .t-body { color: #C2CFE6; font-size: 17px; }
main > .dd .dd-copy > .t-body + .t-body { margin-top: 16px; }
main > .dd .dd-points li { color: #E3EAF6; border-color: rgba(255,255,255,.12); }
main > .dd .dd-points li::before { background: rgba(8,222,242,.14) var(--check-c) center / 11px no-repeat; }
main > .dd .ghost-link { color: var(--cyan); }
main > .dd .dd-price { color: #fff; }
/* industries: photo cards, Medical and Dental wide on top */
.why-grid.ind-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid.ind-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .why-grid.ind-grid { grid-template-columns: repeat(6, 1fr); } .ind-card { grid-column: span 2; } .ind-card:nth-child(-n+2) { grid-column: span 3; min-height: 280px; } }
.why-item.ind-card { border: 0; position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; border-radius: var(--r); background: #16305A; transition: transform .35s var(--ease); isolation: isolate; }
.ind-card .ind-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; z-index: -2; transition: transform .7s var(--ease); }
.ind-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,29,58,0) 10%, rgba(11,29,58,.94) 100%); }
.why-item.ind-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(0,0,0,.25); }
.ind-card:hover .ind-ph { transform: scale(1.07); }
.ind-card .t-heading-xs { color: #fff; }
.ind-card .t-body { font-size: 14px; color: #C6D3E8; }
.ind-card .svc-more { margin-top: 6px; }
.ind-card .ghost-link { color: var(--cyan); min-height: 36px; }

/* ---------- Steps (line draws across, circles turn blue) ---------- */
.steps { position: relative; display: grid; gap: 44px; counter-reset: none; }
@media (min-width: 900px) {
  .steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; }
  .steps::before, .steps::after { content: ""; position: absolute; top: 30px; inset-inline: 8%; height: 3px; border-radius: 3px; background: var(--line); }
  .steps::after { background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 2s cubic-bezier(.3,.7,.2,1); }
  [dir="rtl"] .steps::after { transform-origin: right; background: linear-gradient(270deg, var(--blue), var(--cyan)); }
  .steps.is-in::after { transform: scaleX(1); }
}
.steps li { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 72px 20px 24px; margin-top: 31px; text-align: center; }
.band-w .steps li { background: var(--bg); border-color: transparent; }
.steps .svc-idx { position: absolute; top: -31px; left: 50%; transform: translateX(-50%); width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); transition: all .45s var(--ease); }
.steps.is-in .svc-idx { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 0 0 6px rgba(17,109,253,.12); }
.steps.is-in li:nth-child(2) .svc-idx { transition-delay: .4s; } .steps.is-in li:nth-child(3) .svc-idx { transition-delay: .8s; }
.steps.is-in li:nth-child(4) .svc-idx { transition-delay: 1.2s; } .steps.is-in li:nth-child(5) .svc-idx { transition-delay: 1.6s; }
.steps .t-heading-xs { font-size: 17px; margin-bottom: 8px; }
.steps .t-body { font-size: 14.5px; }
.section-intro + .steps, #how-we-work .section-intro { text-align: start; }

/* ---------- Free check: the white card with the scan ---------- */
.check-grid { display: grid; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 32px 22px; }
@media (min-width: 900px) { .check-grid { grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px; } }
.check-grid .t-heading-lg { margin-bottom: 14px; }
.check-grid header > .t-body { font-size: 17px; }
.nocost { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.nocost span { display: inline-flex; gap: 7px; align-items: center; }
.nocost span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.check-rows { background: var(--bg); border-radius: 22px; padding: 10px; }
.check-rows li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "sp q res" "sp s res"; align-items: center; gap: 0 14px; padding: 16px; border-radius: 14px; background: #fff; margin: 6px 0; box-shadow: 0 2px 6px rgba(12,22,38,.03); }
.check-rows li::before { content: ""; grid-area: sp; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--blue); }
.check-rows.scanning li:not(.done)::before { animation: spin .8s linear infinite; }
.check-rows li.done::before { border: 0; background: var(--blue) var(--check-w) center / 12px no-repeat; }
.check-rows .t-heading-2xs { grid-area: q; font-size: 15px; }
.check-rows li .t-body { grid-area: s; font-size: 13px; }
.check-rows .res { grid-area: res; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--bg); color: var(--muted); min-width: 104px; text-align: center; transition: background-color .4s, color .4s; }
:lang(fa) .check-rows .res { letter-spacing: 0; text-transform: none; font-size: 12px; }
.check-rows li.is-ok .res { background: var(--ok-bg); color: var(--ok); }
.check-rows li.is-fix .res { background: var(--fix-bg); color: var(--fix); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .check-rows li { grid-template-areas: "sp q" "sp s" "sp res"; grid-template-columns: auto 1fr; } .check-rows .res { justify-self: start; margin-top: 8px; } }

/* ---------- Why us, and other card grids ---------- */
.why-grid { display: grid; gap: 18px; }
@media (min-width: 620px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.why-item:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12,22,38,.08); }
.band-w .why-item { background: var(--bg); border-color: transparent; }
.why-item .t-heading-xs { margin-bottom: 8px; }
.why-item .t-body { font-size: 15px; }
.why-item .v2-ico { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px; }
.why-item .v2-ico svg { width: 23px; height: 23px; }
@media (min-width: 960px) { .why-sec .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-sec .why-item:first-child { background: var(--ink); border-color: var(--ink); }
.why-sec .why-item:first-child .t-heading-xs { color: #fff; }
.why-sec .why-item:first-child .t-body { color: #AEBBD0; }
.why-sec .why-item:first-child .v2-ico { background: rgba(8,222,242,.14); }
.why-sec .why-item:first-child .v2-ico svg { stroke: var(--cyan); }
.hc-areas .item-list li { padding-block: 9px; }
.hc-areas .item-list li .t-body { font-size: 14.5px; }
.hc-areas .item-list li::before { top: 11px; width: 18px; height: 18px; background-size: 10px; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.band-w .plan { background: var(--bg); border-color: transparent; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(12,22,38,.1); }
.plan .t-heading-sm { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); order: -2; }
:lang(fa) .plan .t-heading-sm { letter-spacing: 0; text-transform: none; font-size: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; order: -1; margin: 10px 0 2px; }
.plan-from { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-big { font-size: 48px; font-weight: 700; color: var(--ink); letter-spacing: -.04em; line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
.plan-monthly { order: -1; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.plan-monthly strong { color: var(--ink); font-weight: 600; }
.plan-desc { font-size: 15px; color: var(--text); padding: 16px 0 18px; border-top: 1px solid var(--line); flex: 1; }
.plan-list { display: grid; gap: 0; margin-bottom: 20px; }
.plan-list li { position: relative; padding: 8px 0; padding-inline-start: 28px; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
.plan-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) var(--check) center / 10px no-repeat; }
.plan-cta { margin-top: auto; }
.plan-cta .ghost-link { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; min-height: 48px; }
.plans .plan:nth-child(2) { background: var(--navy); border-color: var(--navy); }
.plans .plan:nth-child(2) .price-big, .plans .plan:nth-child(2) .plan-monthly strong { color: #fff; }
.plans .plan:nth-child(2) .plan-from, .plans .plan:nth-child(2) .plan-monthly, .plans .plan:nth-child(2) .plan-desc { color: #B3C1D8; }
.plans .plan:nth-child(2) .plan-desc { border-color: rgba(255,255,255,.12); }
.plans .plan:nth-child(2) .t-heading-sm { color: var(--cyan); }
.plans .plan:nth-child(2) .plan-list li { color: #E3EAF6; border-color: rgba(255,255,255,.12); }
.plans .plan:nth-child(2) .plan-list li::before { background: rgba(8,222,242,.14) var(--check-c) center / 10px no-repeat; }
.fine-print { margin-top: 26px; font-size: 14px; color: var(--muted); max-width: 860px; }
.fine-print.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: none; text-align: center; }
.fine-print .chip { font-size: 13.5px; background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; color: var(--text); }
.band-w .fine-print .chip { background: var(--bg); }
.fine-print .chip a { color: var(--blue); font-weight: 600; text-decoration: none; }
/* the price block on the service pages */
.split > header > .plan-price { flex-wrap: wrap; margin: 6px 0 0; }
.split > header > h2.t-label#price { display: inline-flex; }
.split > header .plan-price .t-heading-xs { font-size: 24px; }
/* rates (pricing page) */
.rate-list { display: grid; gap: 10px; }
.rate-list li { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.band-w .rate-list li { background: var(--bg); border-color: transparent; }
.rate-list .t-heading-2xs { color: var(--ink); font-weight: 600; }
.rate-list .t-body { font-size: 14px; }
.rate { flex: none; font-size: 22px; font-weight: 700; color: var(--blue); letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 767px) {   /* v38: Farsi rate rows stack on phones (the long Farsi price line pushed the row off screen) */
  :lang(fa) .rate-list li { flex-direction: column; align-items: stretch; gap: 8px; }
  :lang(fa) .rate-list li > span:first-child { min-width: 0; }
  :lang(fa) .rate { white-space: normal; text-align: start; font-size: 20px; }
}

/* ---------- Where we work ---------- */
.area-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .area-grid { grid-template-columns: 1fr 1fr; } }
.area-col { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.band-w .area-col { background: var(--bg); border-color: transparent; }
.area-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.area-col h3 a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.area-col h3 a:hover { color: var(--blue); }
.area-col h3 .icon { width: 18px; height: 18px; color: var(--blue); }
.no-fee { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: var(--ok-bg); padding: 5px 10px; border-radius: 999px; }
:lang(fa) .no-fee { letter-spacing: 0; text-transform: none; font-size: 13px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; }
.cities li { font-size: 13.5px; font-weight: 500; background: var(--bg); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--text); transition: background-color .2s, color .2s, border-color .2s; }
.area-col .cities li { background: var(--bg); }
.band-w .area-col .cities li { background: #fff; }
.cities li:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.cities li a { color: inherit; text-decoration: none; }
.cities li:hover a { color: #fff; }
.area-note { margin-top: 26px; color: var(--muted); max-width: 760px; }
.section-also { padding-block: 0 50px; }
.section-also .area-note { margin-top: 0; }
.section-also + .closer { margin-top: 0; }
.la-areas { display: grid; gap: 16px; }
@media (min-width: 760px) { .la-areas { grid-template-columns: 1fr 1fr; } }
.la-area { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.band-w .la-area { background: var(--bg); border-color: transparent; }
.la-area .t-heading-xs { margin-bottom: 6px; font-size: 17px; }
.la-area .t-body { font-size: 14.5px; }

/* ---------- FAQ: a clean white accordion ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: box-shadow .25s, border-color .25s; }
.band-w .faq details { background: var(--bg); border-color: transparent; }
.faq details[open] { box-shadow: 0 14px 30px rgba(12,22,38,.07); border-color: #CADBF3; background: #fff; }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 0; padding-inline-end: 40px; font-weight: 600; color: var(--ink); font-size: 16.5px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: absolute; inset-inline-end: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--tint); transition: transform .3s var(--ease), background-color .3s; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--blue); }
.faq .plus::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] .plus { background: var(--blue); transform: rotate(180deg); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: #fff; }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq details > p { padding-bottom: 20px; font-size: 15.5px; color: var(--text); }

/* ---------- The call band (rounded blue) ---------- */
.closer { position: relative; overflow: hidden; margin: 30px 16px 0; padding: 90px 24px; border-radius: var(--r-big); text-align: center; color: #C6D4EC;
  background: linear-gradient(135deg, #0B1D3A 0%, #0D3270 55%, #116DFD 130%); }
[dir="rtl"] .closer { background: linear-gradient(225deg, #0B1D3A 0%, #0D3270 55%, #116DFD 130%); }
.closer::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-start: -160px; bottom: -260px; background: radial-gradient(circle, rgba(8,222,242,.28), transparent 65%); animation: drift 11s ease-in-out infinite; pointer-events: none; }
.closer .container { position: relative; z-index: 1; max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.closer .t-label { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.closer .t-label::before { color: var(--cyan); }
.closer-title { color: #fff; font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 12px; }
.closer-lead { color: #C6D4EC; font-size: 17px; max-width: 620px; margin-bottom: 6px; }
.phone-hero { display: block; font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 6px; direction: ltr; unicode-bidi: isolate; }
.phone-hero:hover { color: var(--cyan); }
.closer-meta { color: #C6D4EC; font-size: 16px; }
.closer-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.closer-actions .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.closer-actions .btn-primary::after { background: var(--blue) var(--arrow-w) center / 15px no-repeat; }
.closer-actions .btn-outline { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.25); }
.closer-actions .btn-outline::after { background: var(--cyan) var(--arrow) center / 15px no-repeat; }
.closer-actions .book-note { color: #AFC2E2; text-align: center; }
.closer .ghost-link { color: #fff; margin-top: 8px; }
.closer-alt { margin-top: 14px; font-size: 16px; color: #AFC2E2; }

/* ---------- Footer (light) ---------- */
.site-footer { padding: 70px 0 40px; font-size: 14.5px; color: var(--muted); background: var(--bg); }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand .brand-logo { height: 40px; width: auto; }
.footer-brand .logo-on-dark { display: none; }
.footer-brand p { margin-top: 16px; max-width: 300px; }
.footer-head { margin-bottom: 14px; color: var(--ink); }
.footer-links ul { display: grid; gap: 2px; }
.footer-links a, .footer-area a, .footer-bottom a { color: var(--muted); display: inline-flex; min-height: 34px; align-items: center; transition: color .2s; }
.footer-links a:hover, .footer-area a:hover, .footer-bottom a:hover { color: var(--blue); }
.footer-sub { margin-top: 26px; }
.footer-note { margin-top: 10px; font-size: 13.5px; }
.footer-area p + p { margin-top: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* ---------- Services index, About, Contact, Our Work ---------- */
.svc-block { padding: 34px; border-radius: 26px; background: #fff; border: 1px solid var(--line); margin-bottom: 18px; }
.band-w .svc-block { background: var(--bg); border-color: transparent; }
.svc-block header .svc-idx { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--tint); color: var(--blue); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.svc-block header h2 { margin-bottom: 8px; }
.svc-block header .t-label { color: var(--blue); }
.svc-block .item-list { margin: 14px 0 6px; }
.svc-block > div > .t-body { font-size: 16.5px; color: var(--text); }
.dd-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .section .dd-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; } }
.portrait { width: 100%; border-radius: 28px; box-shadow: 0 30px 60px rgba(12,22,38,.14); }
.portrait-cap { margin-top: 16px; }
.portrait-cap .t-heading-xs { margin-top: 4px; }
.section .dd-copy > .t-body { font-size: 16.5px; color: var(--text); }
.section .dd-copy > .t-body + .t-body { margin-top: 14px; }
.cred-list { display: grid; gap: 12px; }
@media (min-width: 620px) { .cred-list { grid-template-columns: 1fr 1fr; } }
.cred-list li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.band-w .cred-list li { background: var(--bg); border-color: transparent; }
.cred-list .t-heading-2xs { display: block; font-size: 22px; font-weight: 700; color: var(--blue); letter-spacing: -.02em; }
.cred-list .t-body { font-size: 14.5px; }
.contact-top { position: relative; overflow: hidden; padding: 150px 0 90px; background: linear-gradient(160deg, var(--bg) 0%, var(--tint) 100%); }
.contact-top::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; top: -320px; inset-inline-end: -180px; background: radial-gradient(circle, rgba(17,109,253,.18), transparent 65%); animation: drift 14s ease-in-out infinite; pointer-events: none; }
.contact-grid { position: relative; z-index: 1; display: grid; gap: 30px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "head form" "details form"; gap: 30px 56px; align-items: start; } .contact-head { grid-area: head; } .form-wrap { grid-area: form; } .contact-details { grid-area: details; } }
.contact-head .t-heading-lg { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.contact-lede { font-size: 18px; color: var(--text); max-width: 520px; }
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 30px 24px; box-shadow: 0 24px 50px rgba(12,22,38,.08); }
@media (min-width: 600px) { .form-wrap { padding: 38px; } }
.form-title { margin-bottom: 6px; }
.form-intro { margin-bottom: 22px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid #CFD7E2; background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(17,109,253,.14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C2410C; }
.field-hint { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.field .field-hint { margin: 7px 0 0; }
.field-error { font-size: 13px; color: #B42318; margin-top: 6px; }
.contact-form .btn-primary { margin-top: 6px; }
.form-status .form-error { margin-top: 14px; color: #B42318; }
.form-success { padding: 10px 0; }
.form-success p { color: var(--ink); }
.contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.contact-phone { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.contact-phone:hover { color: var(--blue); }
.contact-actions { margin-top: 14px; }
.fa-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.work-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(12,22,38,.09); }
.work-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-body { padding: 22px; }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; }
.work-type, .work-city { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--blue); }
.work-city { background: var(--bg); color: var(--muted); }
.work-body .t-body + .t-body { margin-top: 6px; }
.work-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 22px 22px; }
.work-ba img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
.work-ba figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Reveal on scroll (main.js adds .is-in) ---------- */
/* v38: section headings, words rise in (site-v2.js splits them and sets html.motion-ok; without it the heading just shows).
   Only transform, opacity and filter move, so the words keep their final space from the start (no layout shift). */
.motion-ok .h2-words .hw { display: inline-block; opacity: 0; transform: translateY(.55em); filter: blur(8px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s;
  transition-delay: calc(var(--i, 0) * 70ms); }
.motion-ok .h2-words.in .hw { opacity: 1; transform: none; filter: blur(0); }
.js.motion-ok .reveal.rv-h2 { opacity: 1; transform: none; }
.js.motion-ok .rv-h2 > .rv-pre, .js.motion-ok .rv-h2 > .rv-post { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js.motion-ok .rv-h2 > .rv-post { transition-delay: .45s; }
.js.motion-ok .rv-h2.words-in > .rv-pre, .js.motion-ok .rv-h2.words-in > .rv-post { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .svc-cards.reveal > li, .js .why-grid.reveal > *, .js .plans.reveal > *, .js .la-cards.reveal > *, .js .svc-features.reveal > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s; transition-delay: calc(var(--i, 0) * 80ms); }
.js .svc-cards.reveal.is-in > li, .js .why-grid.reveal.is-in > *, .js .plans.reveal.is-in > *, .js .la-cards.reveal.is-in > *, .js .svc-features.reveal.is-in > * { opacity: 1; transform: none; }
.js .svc-cards.reveal, .js .why-grid.reveal, .js .plans.reveal, .js .la-cards.reveal, .js .svc-features.reveal { opacity: 1; transform: none; }

/* ---------- Phones ---------- */
@media (max-width: 899px) {
  .section, .services, .stats, .hz { padding-block: 72px; }
  .welcome { padding-top: 56px; }
  .hero--page, .contact-top { padding: 128px 0 60px; }
  .navy-block, main > .dd { padding-block: 70px; margin-inline: 8px; border-radius: 26px; }
  .closer { margin: 24px 8px 0; border-radius: 26px; padding: 70px 18px; }
  .hz .dd { margin-bottom: 70px; }
  .hz .dd-vis { order: -1; }   /* v38: the visual is always above the text on phones */
  .steps li { text-align: start; padding: 26px 22px 22px; padding-inline-start: 92px; margin-top: 0; }
  .steps .svc-idx { top: 22px; left: auto; inset-inline-start: 18px; transform: none; width: 54px; height: 54px; }
}

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal > *, .words-ready .hero-title .w, .fcard { opacity: 1 !important; transform: none !important; }
  .steps::after { transform: scaleX(1); }
  .steps .svc-idx { border-color: var(--blue); color: #fff; background: var(--blue); }
  .mm-txt.mm-sweep { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
}
