/* ABC Translation — Afghanistan
   Palette: lapis lazuli (Badakhshan) with pyrite gold, cool paper white.
   One family (Vazirmatn) carries Latin, Dari and Pashto so all three versions feel like one brand. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-var.woff2") format("woff2-variations"), url("/assets/fonts/vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --lapis: #14275E;
  --lapis-2: #1D3A86;
  --lapis-3: #2E4FA8;
  --gold: #D2AA4F;
  --gold-ink: #87661A;
  --tile: #1F7A80;
  --rose: #A3283C;
  --paper: #F6F7FB;
  --white: #FFFFFF;
  --ink: #18213D;
  --muted: #56607D;
  --line: #D9DEEA;
  --tint: #ECEFF7;
  --r-s: 6px;
  --r-m: 14px;
  --wrap: 1180px;
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); }
.rtl { line-height: 1.9; }
img, svg { max-width: 100%; }
a { color: var(--lapis-2); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--lapis); text-wrap: balance; }
.rtl h1, .rtl h2, .rtl h3 { line-height: 1.45; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.rtl h1 { letter-spacing: 0; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); font-weight: 750; letter-spacing: -.01em; }
.rtl h2 { letter-spacing: 0; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--lapis); padding: 10px 14px; z-index: 50; border-radius: var(--r-s); }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em 1.4em;
  border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--lapis); }
.btn-gold:hover { background: #E3BE66; color: var(--lapis); }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--lapis); color: #fff; border-bottom: 1px solid rgba(210,170,79,.35); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.logo b { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; direction: ltr; }
.logo small { display: block; font-size: .78rem; color: #B9C4E4; max-width: 30ch; line-height: 1.35; }
.menu-btn { display: none; font: inherit; font-weight: 600; color: #fff; background: none; cursor: pointer; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 8px 18px; min-height: 42px; }
.top-in { flex-wrap: wrap; }
.menu-panel { width: 100%; padding: 0 0 16px; }
.js .menu-btn { display: inline-block; }
.js .menu-panel { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--lapis); padding: 8px 16px 20px; border-bottom: 2px solid var(--gold); }
.js .menu-panel.open { display: block; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; color: #fff; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--gold); }
.langs { display: flex; gap: 4px; margin: 14px 0; }
.langs a { color: #DDE3F5; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; border: 1px solid transparent; }
.langs a[aria-current] { border-color: var(--gold); color: var(--gold); }
.langs a:hover { color: #fff; background: rgba(255,255,255,.08); }
@media (min-width: 1120px) {
  .top-in { flex-wrap: nowrap; }
  .js .menu-btn, .menu-btn { display: none; }
  .menu-panel, .js .menu-panel { display: flex; position: static; width: auto; align-items: center; gap: 16px; padding: 0; background: none; border: 0; }
  .nav { display: flex; gap: 0; }
  .nav a { border: 0; padding: 8px 9px; font-size: .96rem; }
  .langs { margin: 0; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.2); }
  .menu-panel .btn { min-height: 42px; padding: .4em 1.1em; white-space: nowrap; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 14px 0 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline: 8px; color: #A9B1C8; }
.crumbs a { color: var(--muted); }

/* Home hero */
.hero { position: relative; background: var(--lapis); color: #fff; padding: 56px 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23D2AA4F' stroke-width='1'%3E%3Cpath d='M60 10l14 22 26-4-4 26 22 14-22 14 4 26-26-4-14 22-14-22-26 4 4-26L2 70l22-14-4-26 26 4z'/%3E%3Cpath d='M60 34l9 13 16-2-2 16 13 9-13 9 2 16-16-2-9 13-9-13-16 2 2-16-13-9 13-9-2-16 16 2z'/%3E%3Cpath d='M0 0l20 20M120 0l-20 20M0 120l20-20M120 120l-20-20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px; mask-image: linear-gradient(to bottom, #000 40%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.hero-in { display: grid; gap: 32px; align-items: center; }
.hero h1 { color: #fff; max-width: 17ch; }
.rtl .hero h1 { max-width: 20ch; }
.hero .lead { font-size: 1.18rem; color: #D5DCF0; max-width: 58ch; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { display: flex; justify-content: center; }
.seal { width: min(78vw, 360px); height: auto; }
.seal-o { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.seal-i { fill: var(--lapis-2); stroke: var(--gold); stroke-width: 1; }
.seal-star polygon { fill: none; stroke: rgba(210,170,79,.55); stroke-width: 1.2; }
.seal-t { fill: var(--gold); font-family: var(--font); font-weight: 600; }
.ltr .seal-t { font-size: 17px; letter-spacing: .06em; }
.seal-b { fill: #fff; font: 800 44px var(--font); letter-spacing: .04em; }
.seal-s { fill: var(--gold); font: 600 19px var(--font); }
.seal-ring { transform-origin: 150px 150px; animation: seal-in 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes seal-in { from { transform: rotate(-120deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .seal-ring { animation: none; } }
.points { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.points li { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.points h2 { color: var(--gold); font-size: 1.08rem; margin-bottom: .3em; }
.points p { color: #C9D2EC; margin: 0; font-size: .98rem; }
@media (min-width: 860px) {
  .hero { padding-top: 72px; }
  .hero-in { grid-template-columns: 1.35fr 1fr; }
  .points { grid-template-columns: repeat(3, 1fr); border-bottom: 0; }
  .points li { padding: 28px 28px 32px 0; border-bottom: 0; }
  .rtl .points li { padding: 28px 0 32px 28px; }
  .points li + li { padding-inline-start: 28px; border-inline-start: 1px solid rgba(255,255,255,.12); }
}

/* Sub-page hero */
.hero-s { background: var(--lapis); color: #fff; padding: 40px 0 44px; margin-top: 0; }
.crumbs + main .hero-s { margin-top: 0; }
.hero-s h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); max-width: 24ch; }
.hero-s .lead { color: #D5DCF0; font-size: 1.12rem; max-width: 62ch; margin: 0; }
.hs-icon { display: flex; gap: 20px; align-items: flex-start; }
.ic-xl { width: 64px; height: 64px; flex: none; color: var(--gold); stroke-width: 1.3; padding: 10px; border: 1px solid rgba(210,170,79,.5); border-radius: 50%; }
.tag { display: inline-block; margin: 16px 0 0; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); font-size: .92rem; color: #E9EDF8; }
.tag.h-yes { border-color: #6FC3C7; }
.tag.h-no { border-color: var(--gold); }
/* breadcrumb sits on white above the hero */
body:not(.p-home) .crumbs { background: transparent; }

/* Sections */
.sec { padding: 64px 0; }
.sec-tint { background: var(--tint); }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }
.note { color: var(--muted); font-size: .95rem; margin-top: 24px; padding-inline-start: 14px; border-inline-start: 3px solid var(--gold); }
.two { display: grid; gap: 48px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.mt { margin-top: 40px; }

/* Services grid: a typographic list with hairlines, not a card kit */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.svc-grid li { border-bottom: 1px solid var(--line); }
.svc-grid a { display: flex; gap: 16px; padding: 22px 4px; text-decoration: none; color: var(--ink); height: 100%; }
.svc-grid a:hover b { color: var(--rose); }
.svc-grid .ic { width: 34px; height: 34px; flex: none; color: var(--lapis-3); margin-top: 2px; }
.svc-grid b { display: block; color: var(--lapis); font-size: 1.1rem; margin-bottom: 4px; }
.svc-grid p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 720px) {
  .svc-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1080px) { .svc-grid:not(.compact) { grid-template-columns: repeat(3, 1fr); } }
.svc-grid.compact a { padding: 14px 4px; align-items: center; }
.svc-grid.compact .ic { width: 26px; height: 26px; margin: 0; }
.svc-grid.compact b { margin: 0; font-size: 1rem; }
.with-aside .svc-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .with-aside .svc-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 62px; min-height: 44px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--lapis); display: grid; place-items: center; font-weight: 800; background: #fff; }
.rtl .steps li::before { content: counter(s, persian); }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }
.sec-tint > .wrap > .steps { gap: 28px; }
@media (min-width: 900px) { .sec-tint > .wrap > .steps { grid-template-columns: repeat(4, 1fr); } .sec-tint > .wrap > .steps li { padding: 60px 0 0; } }
.steps-plain p { color: var(--ink); }

/* Chips */
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--lapis); text-decoration: none; font-size: .96rem; }
.chips a:hover { border-color: var(--lapis-3); color: var(--rose); }

/* City / language grid */
.city-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.city-grid a { display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; height: 100%; }
.city-grid a:hover { border-color: var(--lapis-3); }
.city-grid b { display: block; font-size: 1.1rem; color: var(--lapis); }
.city-grid small { color: var(--muted); font-size: .9rem; }

/* Countries */
.country-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.country-list a { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; column-gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.country-list .flag { grid-row: span 2; font-size: 1.3rem; line-height: 1; }
.country-list b { color: var(--lapis); font-weight: 650; }
.country-list a:hover b { color: var(--rose); }
.country-list small { font-size: .86rem; }
.h-yes { color: var(--tile); }
.h-no { color: var(--gold-ink); }

/* Article + aside */
.with-aside { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .with-aside { grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; } .quote-card { position: sticky; top: 96px; } }
.prose { max-width: 760px; }
.prose > h2 { margin-top: 1.8em; }
.prose > h2:first-child { margin-top: 0; }
.big { font-size: 1.2rem; color: var(--lapis); }
.ticks, .docs { list-style: none; margin: 0; padding: 0; }
.ticks li, .docs li { position: relative; padding: 9px 0; padding-inline-start: 30px; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 1.05em; width: 12px; height: 7px; border-left: 2px solid var(--tile); border-bottom: 2px solid var(--tile); transform: rotate(-45deg); }
.docs li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .95em; width: 11px; height: 14px; border: 1.5px solid var(--lapis-3); border-radius: 2px; }
.docs { columns: 2 260px; column-gap: 32px; }
.docs li { break-inside: avoid; }
.route { display: grid; gap: 14px; }
.route p { margin: 0; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--lapis-3); border-radius: var(--r-s); }
.route p + p { border-inline-start-color: var(--gold); }
.quote-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r-s); padding: 24px; }
.qc-h { font-weight: 800; color: var(--lapis); font-size: 1.2rem; margin-bottom: .4em; }
.quote-card .btn { width: 100%; margin: 6px 0 16px; }
.qc-c { font-size: .95rem; margin: 0; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { border-top: 2px solid var(--gold); padding-top: 14px; }
.values p { color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; padding-inline-end: 36px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; color: var(--lapis); }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 8px; top: 26px; width: 10px; height: 10px; border-inline-end: 2px solid var(--lapis-3); border-bottom: 2px solid var(--lapis-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* CTA band */
.band { background: var(--lapis-2); color: #fff; padding: 56px 0; position: relative; }
.band::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 26px); opacity: .7; }
.band-in { display: grid; gap: 28px; align-items: center; }
.band h2 { color: #fff; max-width: 26ch; }
.band p { color: #D5DCF0; max-width: 60ch; margin: 0; }
.band-act { display: grid; gap: 14px; justify-items: start; }
.band-act a:not(.btn) { color: #fff; }
@media (min-width: 900px) { .band-in { grid-template-columns: 1.6fr 1fr; } }

/* Contact form */
.qform { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(20px, 4vw, 40px); }
.qform label { display: block; font-weight: 600; font-size: .96rem; margin-bottom: 18px; color: var(--lapis); }
.qform input:not([type=radio]):not([type=checkbox]), .qform select, .qform textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 11px 13px; min-height: 48px; }
.qform input[type=file] { padding: 9px; background: #fff; }
.qform textarea { resize: vertical; min-height: 140px; }
.qform input:focus, .qform select:focus, .qform textarea:focus { border-color: var(--lapis-3); outline: 3px solid rgba(46,79,168,.18); outline-offset: 0; }
.qform [aria-invalid=true] { border-color: var(--rose) !important; }
.row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.pref { border: 0; padding: 0; margin: 0 0 18px; }
.pref legend { font-weight: 600; color: var(--lapis); font-size: .96rem; margin-bottom: 8px; }
.pref label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; margin-inline-end: 20px; color: var(--ink); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; }
.consent input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--r-s); margin-bottom: 18px; font-weight: 600; }
.alert.ok { background: #E3F3F1; color: #11585C; border: 1px solid #9ED3CF; }
.alert.err { background: #FBE9EC; color: #7C1828; border: 1px solid #E7A9B3; }
.qform button[disabled] { opacity: .65; cursor: progress; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--lapis); margin-top: 14px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; }

.thanks { padding: 90px 0; text-align: center; }
.thanks .narrow { margin-inline: auto; }
.thanks h1 { margin-inline: auto; }
.thanks .lead { margin: 0 auto 28px; }

/* Footer */
.foot { background: #0F1E4A; color: #C3CBE4; padding: 56px 0 0; font-size: .96rem; }
.foot a { color: #E3E8F6; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot-brand { font-weight: 800; color: #fff; font-size: 1.15rem; margin-bottom: 10px; direction: ltr; text-align: start; }
.foot-grid { display: grid; gap: 36px; }
.foot .langs { margin-top: 18px; padding: 0; border: 0; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0; font-size: .88rem; }
.foot-base p { margin: 0; }
.foot .btn { margin-top: 10px; }

/* Language chooser + 404 */
.chooser { background: var(--lapis); color: #fff; min-height: 100vh; display: grid; place-items: center; }
.choose { width: min(100% - 32px, 720px); text-align: center; padding: 48px 0; }
.choose h1 { color: #fff; font-size: 1.6rem; }
.choose-logo { width: 72px; fill: none; stroke: var(--gold); stroke-width: 1.4; margin-bottom: 16px; }
.choose nav { display: grid; gap: 12px; margin-top: 24px; }
.choose nav a { display: block; padding: 18px 22px; border: 1px solid rgba(210,170,79,.5); border-radius: var(--r-m); color: #fff; text-decoration: none; }
.choose nav a:hover { background: rgba(255,255,255,.06); }
.choose nav b { display: block; font-size: 1.3rem; color: var(--gold); }
.choose nav span { color: #C9D2EC; font-size: .95rem; }
.nf section { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.nf h1 { color: #fff; }
.nf .chips { justify-content: center; }

@media print { .top, .foot, .band, .quote-card, .hero-art { display: none !important; } .hero, .hero-s { background: none; color: #000; } .hero h1, .hero-s h1 { color: #000; } }
.hero-s .tag, .hero-s .tag.h-yes, .hero-s .tag.h-no { color: #E9EDF8; }
