/* CorpoMap — site styles. Tokens first; cool palette taken from the brand mark (navy arcs, red pin). */
:root {
  --ink: #04172C;
  --harbour: #0E3A5F;
  --pin: #862D39;
  --pin-bright: #B5404F;
  --paper: #F4F6F8;
  --fog: #DCE3EA;
  --slate: #334155;
  --mute: #5B6B7E;
  --white: #FFFFFF;
  --silver: #C7D2DD;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-lg: 18px;
}
html[lang="fa"] {
  --font-display: "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Vazirmatn", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0; background: var(--paper); color: var(--slate);
  font: 400 1.0625rem/1.7 var(--font-body);
  text-rendering: optimizeLegibility;
}
html[lang="fa"] body { line-height: 1.95; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pin); text-underline-offset: 3px; }
a:hover { color: var(--pin-bright); }
:focus-visible { outline: 3px solid var(--pin-bright); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.008em; margin: 0 0 .5em; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 99; }

/* ---------- header ---------- */
.site-head { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 700 1.25rem/1 "Public Sans", system-ui, sans-serif; letter-spacing: -0.01em; direction: ltr; }
.brand:hover { color: var(--white); }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; opacity: .85; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--silver); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.07); }
.lang { color: var(--silver); text-decoration: none; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; padding: 5px 12px; font-size: .9rem; }
.lang:hover { color: var(--white); border-color: var(--white); }
.lang[lang="fa"] { font-family: "Vazirmatn", Tahoma, sans-serif; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--pin); color: var(--white); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 99px; border: 0; font-size: 1rem; line-height: 1.2; }
.btn:hover { background: var(--pin-bright); color: var(--white); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.08); color: inherit; }
.head-cta { padding: 9px 18px; font-size: .93rem; }
.menu { display: none; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; color: var(--white); padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-sm); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; position: absolute; inset-inline: 0; top: 72px; background: var(--ink); flex-direction: column; padding: 8px var(--gutter) 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.menu-panel a { color: var(--white); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.menu-panel .btn { margin-top: 14px; justify-content: center; border: 0; }
@media (max-width: 960px) {
  .nav, .head-cta { display: none; }
  .menu { display: block; }
}

/* ---------- hero (home): the one bold element — a contour map with a route to the pin ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 75% 40%, #0B2A47 0%, var(--ink) 62%); color: var(--white); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; min-height: min(78vh, 720px); padding-top: 56px; padding-bottom: 72px; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.012em; line-height: 1.08; max-width: 15ch; }
html[lang="fa"] .hero h1 { letter-spacing: 0; line-height: 1.3; max-width: 14ch; }
.hero .lede { color: #D5DEE8; font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { color: var(--silver); font-size: .92rem; margin-top: 14px; }
.hero-map { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.hero-map .contour { fill: none; stroke: #8FA6BD; stroke-width: 1; }
.hero-map .route { fill: none; stroke: var(--pin-bright); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 9; }
.hero-map .route-draw { fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; opacity: .0; }
.hero-pin { position: relative; z-index: 2; justify-self: center; width: min(100%, 360px); }
@media (prefers-reduced-motion: no-preference) {
  .hero-map .route { stroke-dashoffset: 0; animation: route-in 2.4s cubic-bezier(.4,.1,.2,1) both .3s; }
  .hero-pin .pin-drop { animation: pin-drop .7s cubic-bezier(.3,1.5,.6,1) both 2.3s; transform-origin: 100px 118px; }
  .hero-pin .ring { animation: ring 3.2s ease-out infinite 3s; transform-origin: 100px 98px; }
}
@keyframes route-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html[dir="rtl"] .hero-map .route { animation-name: route-in-rtl; }
@keyframes route-in-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes pin-drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-pin { width: 180px; order: -1; justify-self: start; }
}

/* ---------- page heads (inner pages) ---------- */
.page-head { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; }
.page-head h1 { color: var(--white); max-width: 20ch; }
.page-head .lede { color: #D5DEE8; max-width: 60ch; font-size: 1.15rem; margin: 0; }
.page-head .hero-map { opacity: .55; }
.crumbs { font-size: .9rem; color: var(--silver); margin-bottom: 18px; }
.crumbs a { color: var(--silver); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: .6; }
.page-head.with-image .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.page-head.with-image figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--harbour); }
.page-head.with-image figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-head.with-image .wrap { grid-template-columns: 1fr; } }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.08); display: grid; place-items: center; margin-bottom: 18px; color: #F0B3BB; }
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--white); border-block: 1px solid var(--fog); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--mute); font-size: 1.1rem; }

/* "why" statement */
.statement { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.statement h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.statement .body { font-size: 1.12rem; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* paths: a legend, not cards */
.legend { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fog); }
.legend li { border-bottom: 1px solid var(--fog); }
.legend a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 4px; text-decoration: none; color: var(--slate); }
.legend a:hover h3 { color: var(--pin); }
.legend .ico { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--fog); display: grid; place-items: center; color: var(--pin); background: var(--white); }
.legend .ico svg { width: 24px; height: 24px; }
.legend h3 { margin: 0 0 4px; font-size: 1.3rem; }
.legend p { margin: 0; color: var(--mute); }
.legend .go { color: var(--pin); font-weight: 600; white-space: nowrap; font-size: .95rem; }
@media (max-width: 640px) { .legend a { grid-template-columns: 44px minmax(0, 1fr); } .legend .go { display: none; } }

/* services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--fog); border: 1px solid var(--fog); border-radius: var(--r-lg); overflow: hidden; }
.svc { background: var(--white); padding: 30px 28px 28px; text-decoration: none; color: var(--slate); display: flex; flex-direction: column; min-height: 230px; }
.svc:hover { background: #FBFCFD; }
.svc:hover h3 { color: var(--pin); }
.svc .ico { color: var(--pin); margin-bottom: 18px; }
.svc .ico svg { width: 30px; height: 30px; }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--mute); margin: 0 0 18px; font-size: 1rem; }
.svc .more { margin-top: auto; color: var(--pin); font-weight: 600; font-size: .95rem; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* engagement steps — a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); font: 700 2rem/1 var(--font-display); color: var(--pin); display: block; margin-bottom: 12px; }
html[lang="fa"] .steps li::before { content: counter(step, persian); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--mute); margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* article cards */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post { display: flex; flex-direction: column; text-decoration: none; color: var(--slate); }
.post figure { margin: 0 0 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--fog); }
.post figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post:hover figure img { transform: scale(1.03); }
.post:hover h3 { color: var(--pin); }
.post .cat { font-size: .88rem; color: var(--pin); font-weight: 600; margin-bottom: 6px; }
.post h3 { font-size: 1.18rem; margin-bottom: 8px; }
.post p { color: var(--mute); font-size: .98rem; margin: 0 0 10px; }
.post .meta { margin-top: auto; font-size: .88rem; color: var(--mute); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { border: 1px solid var(--fog); background: var(--white); color: var(--slate); padding: 7px 16px; border-radius: 99px; font: inherit; font-size: .95rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- long-form ---------- */
.layout { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 300px); gap: clamp(32px, 6vw, 80px); justify-content: space-between; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } }
/* Reading rhythm — one system for EN and FA.
   Paragraph leading is airy; list items are set tighter than paragraphs and sit inside a light frame,
   indented from the text edge, so a list reads as one unit. */
.prose { max-width: var(--measure); font-size: 1.09rem; --lead: 1.72; --lead-tight: 1.55; --gap: 1.15em; }
html[lang="fa"] .prose { --lead: 1.95; --lead-tight: 1.75; }
.prose p { line-height: var(--lead); margin: 0 0 var(--gap); }
.prose h2 { margin: 2.1em 0 .55em; }
.prose h3 { margin: 1.7em 0 .4em; font-size: 1.18rem; }
.prose h2 + h3 { margin-top: .9em; }
.prose > :first-child, .prose .article-hero + * { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 650; }

/* lists: framed, indented, tight */
.prose ul, .prose ol {
  list-style: none; margin: 0 0 1.5em; padding: 14px 20px;
  background: var(--white); border: 1px solid var(--fog); border-radius: 12px;
}
.prose p:has(+ ul), .prose p:has(+ ol) { margin-bottom: .6em; }
.prose li { position: relative; padding-inline-start: 1.55em; line-height: var(--lead-tight); margin: 0; }
.prose li + li { margin-top: .5em; }
.prose ul > li::before {
  content: ""; position: absolute; inset-inline-start: .45em; top: calc(var(--lead-tight) * .5em - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: var(--pin);
}
.prose ol { counter-reset: item; }
.prose ol > li { counter-increment: item; padding-inline-start: 2.3rem; }
.prose ol > li + li { margin-top: .7em; }
/* sized in rem (not em) so the badge does not shrink with its own small font; centred on the first line */
.prose ol > li::before {
  content: counter(item); position: absolute; inset-inline-start: 0;
  top: calc(var(--lead-tight) * 0.545rem - 0.8rem);
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--fog);
  color: var(--pin); font: 700 .82rem/1.6rem var(--font-display); text-align: center;
}
html[lang="fa"] .prose ol > li::before { content: counter(item, persian); font-size: .9rem; line-height: 1.7rem; }
.prose li ul, .prose li ol { background: none; border: 0; padding: 0; margin: .45em 0 0; }
.prose li ul > li::before { background: none; border: 1.5px solid var(--pin); width: 5px; height: 5px; }

/* quotes, tables, rules */
.prose blockquote {
  margin: 1.6em 0; padding: 16px 22px; background: var(--white); border: 1px solid var(--fog);
  border-inline-start: 3px solid var(--pin); border-radius: 12px; font-size: 1.1rem; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--fog); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.6em; font-size: .97rem;
  display: block; overflow-x: auto; background: var(--white); border: 1px solid var(--fog); border-radius: 12px; }
.prose th, .prose td { padding: 11px 14px; text-align: start; vertical-align: top; line-height: var(--lead-tight); border-bottom: 1px solid var(--fog); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--ink); background: var(--paper); font-weight: 650; }

/* FAQ */
.prose .faq { margin-top: .4em; background: var(--white); border: 1px solid var(--fog); border-radius: 12px; padding: 0 22px; }
.prose details + details { border-top: 1px solid var(--fog); }
.prose summary { cursor: pointer; list-style: none; font: 600 1.06rem/1.5 var(--font-display); color: var(--ink); padding: 16px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--pin); font-size: 1.35rem; line-height: 1; flex: none; }
.prose details[open] summary::after { content: "–"; }
.prose details > :not(summary) { margin-top: 0; }
.prose details > :last-child { padding-bottom: 6px; }
.prose details ul, .prose details ol { background: var(--paper); }
.aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 20px; }
.aside .box { background: var(--white); border: 1px solid var(--fog); border-radius: var(--r-lg); padding: 24px; }
.aside .box.dark { background: var(--ink); color: #D5DEE8; border-color: var(--ink); }
.aside .box.dark h3 { color: var(--white); }
.aside h3 { font-size: 1.1rem; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { border-top: 1px solid var(--fog); }
.aside li a { display: block; padding: 10px 0; text-decoration: none; color: var(--slate); font-size: .98rem; }
.aside li a:hover { color: var(--pin); }
@media (max-width: 1000px) { .aside { position: static; } }
.article-hero { margin: 0 0 40px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--fog); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.meta-line { color: var(--silver); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.sources { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--fog); font-size: .93rem; color: var(--mute); }
.sources h3 { font-size: 1rem; margin: 0 0 .6em; }
.prose .sources ul { background: none; border: 0; padding: 0; }
.prose .sources li { line-height: 1.5; font-size: .9rem; }
.prose .sources li + li { margin-top: .35em; }
.sources a { word-break: break-all; }
.prose .disclaimer { font-size: .9rem; line-height: 1.6; color: var(--mute); background: var(--white); border: 1px solid var(--fog); border-inline-start: 3px solid var(--silver); border-radius: 12px; padding: 14px 18px; margin: 2em 0 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--fog); border: 1px solid var(--fog); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 40px; }
.contact-grid a, .contact-grid div { background: var(--white); padding: 26px 28px; text-decoration: none; color: var(--slate); display: block; }
.contact-grid a:hover strong { color: var(--pin); }
.contact-grid small { display: block; color: var(--mute); font-size: .9rem; margin-bottom: 4px; }
.contact-grid strong { color: var(--ink); font: 600 1.15rem/1.4 var(--font-display); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--harbour); color: var(--white); position: relative; overflow: hidden; }
.cta-band .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { margin: 0; color: #D5DEE8; max-width: 52ch; }
.cta-band .hero-map { opacity: .35; }
.site-foot { background: var(--ink); color: var(--silver); font-size: .95rem; }
.site-foot .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: var(--silver); text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.site-foot .ltr { direction: ltr; unicode-bidi: isolate; }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
