@font-face {
  font-family: Vazirmatn;
  src: url("./vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #15293c;
  --dark: #112638;
  --dark-mid: #1e394c;
  --muted: #51616a;
  --paper: #f8f6f0;
  --white: #fffdf8;
  --cream: #efece2;
  --line: #d9d8cc;
  --gold: #e0c38a;
  --bronze: #795326;
  --radius: 15px;
  --width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.95 Vazirmatn, Tahoma, sans-serif; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.45; }
p { color: var(--muted); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, textarea, select, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #98703c; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--width), calc(100% - 88px)); margin-inline: auto; }
.icon { width: 23px; height: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; inset-inline-start: 1rem; top: -10rem; z-index: 10; padding: .55rem 1rem; background: var(--white); }
.skip:focus { top: .7rem; }

.site-header { background: var(--paper); border-block-end: 1px solid #e5e2d7; position: sticky; top: 0; z-index: 3; }
.nav-bar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex: none; font-size: .92rem; font-weight: 810; line-height: 1.5; }
.brand img { width: 43px; height: 43px; }
.brand small { display: block; font-size: .72rem; font-weight: 480; color: var(--muted); margin-top: .16rem; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.6rem); color: var(--muted); font-size: .89rem; font-weight: 670; }
.nav-links a { display: block; position: relative; padding-block: .62rem; white-space: nowrap; }
.nav-links a:is([aria-current], .current, :hover) { color: var(--ink); }
.nav-links a:is([aria-current], .current)::after { content: ""; position: absolute; bottom: .25rem; inset-inline: 20%; height: 2px; background: #9e7540; }
.header-contact, .button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 47px; border: 1px solid transparent; border-radius: 8px; padding: .58rem .98rem; font-size: .9rem; font-weight: 740; line-height: 1.5; transition: background .18s, color .18s, border-color .18s; }
.header-contact { min-height: 42px; padding-inline: .8rem; border-color: #c9c6b8; white-space: nowrap; font-size: .82rem; }
.button .icon, .header-contact .icon, .back-top .icon { width: 17px; height: 17px; }
.primary { background: var(--ink); color: var(--white); }
.primary:hover { background: #29465c; }
.secondary { border-color: #a6aa9d; }
.secondary:hover, .header-contact:hover { background: #ece9df; border-color: #8f9b95; }
.gold { background: var(--gold); color: #142737; }
.gold:hover { background: #f0d7a1; }

.hero { overflow: hidden; background: radial-gradient(ellipse at 12% 45%, #ebe8db 0, transparent 57%), var(--paper); }
.hero-layout { display: grid; grid-template-columns: 1.2fr .94fr; align-items: center; gap: clamp(2.5rem, 7.7vw, 7rem); padding-block: clamp(48px, 5.4vw, 81px); min-height: 528px; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--bronze); font-size: .82rem; font-weight: 760; margin-bottom: .85rem; line-height: 1.65; }
.eyebrow::before { content: ""; width: 23px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.55rem); font-weight: 900; letter-spacing: -.055em; line-height: 1.16; }
.hero-role { color: var(--ink); font-size: clamp(1.03rem, 1.8vw, 1.42rem); font-weight: 720; margin-top: 1rem; }
.hero-intro { max-width: 43ch; margin-top: .65rem; font-size: clamp(.98rem, 1.5vw, 1.12rem); line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.portrait { position: relative; width: min(100% - 20px, 424px); justify-self: center; isolation: isolate; }
.portrait::before { content: ""; position: absolute; z-index: -1; inset: -24px -27px -18px -33px; background-image: linear-gradient(#7b8d8c28 1px, transparent 1px), linear-gradient(90deg, #7b8d8c28 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(115deg, #000 34%, transparent 90%); }
.portrait::after { content: ""; position: absolute; z-index: -1; inset: 13px 14px -11px -13px; border: 1px solid #ab8b56; border-radius: 105px 8px 8px 8px; }
.portrait-frame { overflow: hidden; border-radius: 105px 8px 8px 8px; background: var(--dark); box-shadow: 0 13px 33px #182b3a22; }
.portrait img { width: 100%; aspect-ratio: 1.02; object-fit: cover; object-position: center 33%; }

.facts { background: var(--dark); color: var(--white); }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding-block: 21px; }
.fact { display: flex; align-items: center; gap: .82rem; padding-inline: 1.4rem; min-width: 0; }
.fact:first-child { padding-inline-start: 0; }
.fact + .fact { border-inline-start: 1px solid #435465; }
.fact .icon { color: var(--gold); }
.fact strong, .fact span { display: block; line-height: 1.6; }
.fact strong { font-size: .96rem; }
.fact span { font-size: .76rem; color: #d0d9da; margin-top: .17rem; }

.section { padding-block: clamp(52px, 7.2vw, 99px); }
.section h2 { font-size: clamp(1.75rem, 3.35vw, 2.95rem); font-weight: 850; letter-spacing: -.034em; margin-bottom: .52rem; }
.section-head { margin-bottom: clamp(20px, 3vw, 36px); }
.section-head p { max-width: 54ch; }
.offerings { display: grid; grid-template-columns: 1.48fr 1fr; gap: 18px; }
.service-list { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.service-row { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; min-height: 108px; padding: 1.1rem 1.22rem; }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-icon { width: 49px; height: 49px; flex: none; display: grid; place-items: center; border-radius: 11px; background: #eee8db; color: var(--bronze); }
.service-row h3, .license h3 { font-size: 1.1rem; font-weight: 800; }
.service-row p { font-size: .89rem; margin-top: .25rem; line-height: 1.85; }
.arrow-link { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.arrow-link::after { content: ""; position: absolute; inset: 0; }
.service-row:hover .arrow-link, .arrow-link:focus-visible { background: var(--ink); color: var(--white); }
.arrow-link .icon { width: 19px; }
.expertise { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; color: var(--white); background: radial-gradient(ellipse at 0 100%, #2f4d5f 0, transparent 52%), var(--dark); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.expertise .service-icon { background: #ffffff17; color: var(--gold); }
.expertise h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 800; }
.expertise p { color: #dde5e5; line-height: 1.9; font-size: .96rem; margin-bottom: .3rem; }
.expertise .button { margin-top: auto; }

.bio { background: var(--cream); border-block: 1px solid var(--line); }
.bio-grid { display: grid; grid-template-columns: 1fr .94fr; gap: clamp(2rem, 7vw, 6.5rem); align-items: start; }
.bio-copy p { max-width: 50ch; }
.timeline { margin: 1.55rem 0 0; padding: 0; list-style: none; border-top: 1px solid #d4d0c0; }
.timeline li { display: grid; grid-template-columns: 3.5rem 1fr; place-items: baseline start; gap: .75rem; padding-block: .65rem; border-bottom: 1px solid #d4d0c0; color: var(--muted); font-size: .9rem; }
.timeline .year { color: var(--bronze); font-weight: 840; font-size: 1rem; }
.license { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(15px, 2.5vw, 29px); }
.license-heading { display: flex; align-items: center; gap: .75rem; }
.license-heading p { font-size: .82rem; margin-top: .2rem; }
.credential-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem .7rem; border-block: 1px solid var(--line); margin-block: 1.15rem; padding-block: 1rem; }
.credential-data dt { color: var(--muted); font-size: .76rem; }
.credential-data dd { margin: .1rem 0 0; font-weight: 760; font-size: .89rem; line-height: 1.7; }
.license-details summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 750; min-height: 45px; border: 1px solid #cfcabc; border-radius: 8px; padding: .55rem .65rem; list-style: none; }
.license-details summary::-webkit-details-marker { display: none; }
.license-details summary:hover, .license-details[open] summary { background: var(--cream); }
.license-details summary span { display: flex; align-items: center; gap: .45rem; }
.license-details summary .icon { width: 18px; height: 18px; }
.license-details[open] summary > .icon { transform: rotate(180deg); }
.license-image { display: block; max-width: 500px; margin-top: .95rem; }
.license-image img { width: 100%; border: 1px solid var(--line); border-radius: 5px; }
.license-full { display: inline-block; margin-top: .45rem; color: var(--bronze); font-size: .8rem; font-weight: 720; }

.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.article-card { min-width: 0; }
.article-card > a { display: flex; flex-direction: column; min-height: 100%; padding: clamp(17px, 2.4vw, 29px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .18s, box-shadow .18s; }
.article-card > a:hover { border-color: #b29a70; box-shadow: 0 5px 24px #192e3c0d; }
.reading-label, .reading-label > span { display: flex; align-items: center; gap: .45rem; }
.reading-label { justify-content: space-between; color: var(--bronze); font-size: .76rem; font-weight: 730; margin-bottom: .8rem; }
.reading-label > span + span { color: var(--muted); font-weight: 500; }
.reading-label .icon { width: 17px; height: 17px; }
.article-card h3 { font-size: clamp(1.03rem, 1.8vw, 1.31rem); font-weight: 820; }
.article-card p { font-size: .89rem; margin: .45rem 0 .95rem; }
.read-more { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; font-weight: 750; font-size: .88rem; }
.read-more .icon { width: 17px; }

.contact { background: var(--dark); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .92fr 1.16fr; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.contact-copy > p { color: #dbe4e4; max-width: 45ch; }
.form-note { display: flex; gap: .65rem; align-items: start; padding: .95rem 1rem; background: #ffffff0b; border: 1px solid #53676f; border-radius: 8px; margin-top: 1.2rem; }
.form-note .icon { width: 19px; height: 19px; margin-top: .12rem; color: var(--gold); }
.form-note p { color: #dbe4e4; font-size: .84rem; line-height: 1.75; }
.contact-form { color: var(--ink); border-radius: var(--radius); background: var(--white); padding: clamp(15px, 2.7vw, 30px); }
.contact-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.fields-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; margin-bottom: .75rem; }
.contact-form label { display: block; font-size: .84rem; font-weight: 720; margin-bottom: .28rem; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; padding: .52rem .66rem; width: 100%; min-height: 45px; color: var(--ink); background: var(--paper); border: 1px solid #b9bdaf; border-radius: 7px; font-size: .88rem; line-height: 1.65; }
.contact-form ::placeholder { color: #5b6870; opacity: 1; }
.contact-form textarea { min-height: 90px; resize: vertical; }
.field-hint { font-size: .76rem; margin: .33rem 0 .95rem; }
.form-actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.form-status { font-size: .81rem; }
.form-status:empty { margin: 0; }
.request-output { margin-top: .85rem; border-top: 1px solid var(--line); padding-top: .75rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-row { min-height: 85px; display: flex; justify-content: space-between; gap: .7rem; align-items: center; }
.back-top { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 750; white-space: nowrap; }

.article-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 5.7vw, 73px); }
.article-intro h1 { font-size: clamp(1.95rem, 4.4vw, 3.9rem); font-weight: 880; letter-spacing: -.04em; max-width: 20ch; line-height: 1.37; }
.breadcrumbs { display: flex; align-items: center; gap: .55rem; font-size: .78rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs a:hover, .article-toc a:hover { color: var(--bronze); text-decoration: underline; }
.article-description { margin-top: .65rem; font-size: 1rem; }
.article-layout { display: grid; grid-template-columns: minmax(190px, 245px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: clamp(30px, 5vw, 65px); }
.article-toc { position: sticky; top: 102px; padding: 1rem 1.08rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.article-toc h2 { font-size: 1rem; margin-bottom: .4rem; }
.article-toc ul { padding: 0; margin: 0; list-style: none; }
.article-toc li + li { border-top: 1px solid var(--line); }
.article-toc a { display: block; font-size: .84rem; color: var(--muted); padding-block: .43rem; line-height: 1.7; }
.longform { max-width: 70ch; }
.longform p, .longform li { color: #384e59; line-height: 2.05; }
.longform li + li { margin-top: .45rem; }
.longform h2 { font-size: clamp(1.17rem, 2.2vw, 1.58rem); margin: 1.68rem 0 .45rem; font-weight: 820; }
.longform ul { padding-inline-start: 1.2rem; }
.article-next { display: grid; gap: .25rem; margin-top: 1.65rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.article-next > span { font-size: .78rem; font-weight: 700; color: var(--bronze); }
.article-next a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 760; justify-self: start; }
.article-next a:hover { color: var(--bronze); }
.article-next .icon { width: 17px; }

@media (max-width: 970px) {
  .wrap { width: calc(100% - 50px); }
  .hero-layout { min-height: 0; gap: 2.15rem; }
  .service-row { gap: .7rem; padding-inline: .9rem; }
}

@media (max-width: 660px) {
  html { scroll-padding-top: 14px; }
  .wrap { width: calc(100% - 36px); }
  .site-header { position: static; }
  .nav-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding-block: .62rem .28rem; min-height: 0; }
  .nav-links { order: 3; grid-column: 1/-1; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); font-size: .79rem; gap: .5rem; }
  .nav-links a { padding-block: .53rem; }
  .brand { font-size: .8rem; gap: .4rem; }
  .brand small { font-size: .68rem; }
  .brand img { width: 34px; height: 34px; }
  .header-contact { min-height: 36px; padding-inline: .42rem; font-size: .72rem; }
  .header-contact .icon { display: none; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 31px 29px; }
  .hero h1 { font-size: clamp(2.72rem, 10.3vw, 4.4rem); }
  .hero-role { font-size: .99rem; margin-top: .7rem; }
  .hero-intro { margin-top: .38rem; }
  .hero-actions { margin-top: 1rem; }
  .portrait { width: min(100% - 19px, 430px); }
  .portrait::after, .portrait-frame { border-top-left-radius: 72px; }
  .portrait img { aspect-ratio: 1.34; object-position: center 23%; }
  .fact-grid { padding-block: 12px; }
  .fact { display: block; padding-inline: .35rem; }
  .fact .icon { width: 17px; height: 17px; display: block; margin-bottom: .3rem; }
  .fact strong { font-size: .75rem; }
  .fact span { font-size: .67rem; }
  .offerings, .bio-grid, .article-grid, .contact-grid, .article-layout { grid-template-columns: 1fr; gap: 13px; }
  .bio-grid, .contact-grid { gap: 1.3rem; }
  .service-row { min-height: 86px; padding: .8rem .65rem; gap: .52rem; }
  .service-row h3 { font-size: .92rem; }
  .service-row p { font-size: .8rem; }
  .service-icon { width: 39px; height: 39px; }
  .service-icon .icon { width: 19px; height: 19px; }
  .arrow-link { width: 42px; height: 42px; }
  .fields-pair { grid-template-columns: 1fr; gap: .64rem; }
  .footer-row { min-height: 72px; }
  .article-toc { position: static; }
}

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

.home-fee { padding-bottom: clamp(45px, 6vw, 75px); }
.home-fee-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: clamp(1rem, 2.4vw, 1.65rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.home-fee-card h2 { font-size: clamp(1.13rem, 2.1vw, 1.55rem); margin-bottom: .25rem; }
.home-fee-card p { font-size: .87rem; }
.longform p a { text-decoration: underline; text-underline-offset: .18em; color: var(--bronze); }

@media (max-width: 835px) and (min-width: 661px) {
  .nav-links { gap: .77rem; }
  .nav-bar { gap: .85rem; }
}

@media (max-width: 430px) {
  .nav-links { font-size: .71rem; gap: .3rem; }
  .home-fee-card { grid-template-columns: auto minmax(0,1fr); gap: .65rem; }
  .home-fee-card .button { grid-column: 2; justify-self: start; }
}

@media (min-width: 431px) and (max-width: 660px) {
  .home-fee-card { grid-template-columns: auto minmax(0,1fr); }
  .home-fee-card .button { grid-column: 2; justify-self: start; }
}

.home-tools-title { margin-bottom: .8rem; font-size: clamp(1.32rem, 2.8vw, 1.95rem); }
.home-fee-card + .home-fee-card { margin-top: .7rem; }
.home-fee-card h3 { font-size: clamp(1.13rem, 2.1vw, 1.55rem); margin-bottom: .25rem; }
.property-related { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin-top: 1rem; }
.property-related a { color: var(--bronze); text-decoration: underline; text-underline-offset: .18em; }

.nav-links .lang-link { color: var(--ink); text-decoration: underline; text-underline-offset: .23em; }
html[lang="en"] .icon:has(path[d^="M19 12H5"]) { transform: scaleX(-1); }
@media (max-width: 700px) { .nav-links { overflow-x: auto; } }
