/* Hamiyan Paydar website. Visual system: the owner's 2026 site theme (white page, near-black pill buttons, 16px cards,
   grey bands, dark footer), rewritten as one small sheet for a static site. Fonts are local
   (Vazirmatn, Open Sans; both SIL Open Font License) so nothing loads from a third-party host. */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/open-sans/open-sans-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/open-sans/open-sans-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/open-sans/open-sans-700-latin.woff2") format("woff2"); }

:root {
  --bg: #fff; --surface: #fff; --surface-2: #f9f9f9; --surface-3: #f4f4f4;
  --text: #0d0d0d; --text-2: #5d5d5d; --muted: #8e8e8e;
  --line: #e5e5e5; --line-strong: #d4d4d4;
  --btn: #171717; --btn-hover: #2f2f2f; --btn-text: #fff;
  --footer: #1f1f1f; --footer-2: #2a2a2a; --footer-text: #cfcfcf;
  --shadow-hover: 0 10px 30px -18px rgba(0,0,0,.28);
  --radius-card: 16px; --radius-control: 12px; --pill: 999px;
  --page: 1200px;
  --font: "Vazirmatn", system-ui, Tahoma, Arial, sans-serif;
}
html[lang="en"] { --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.85; color: var(--text); background: var(--bg); }
html[lang="en"] body { line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(var(--page), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--btn); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid rgba(13,13,13,.45); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--pill);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-dark { background: var(--btn); color: var(--btn-text); }
.btn-dark:hover { background: var(--btn-hover); }
.btn-light { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--text); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--btn); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; flex: none; }
html[lang="en"] .brand-mark { font-size: 16px; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-2); letter-spacing: .08em; line-height: 1.2; }
.brand span { line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.hdr-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 13px; font-weight: 600; }
.lang:hover { border-color: var(--text); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; overflow: hidden; background: #222; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.7) 100%); }
html[dir="ltr"] .hero::after { background: linear-gradient(270deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.7) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 80px 0; }
.hero-text { max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; margin: 14px 0 14px; }
.hero p { font-size: 17px; color: rgba(255,255,255,.88); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions .btn-light { border-color: #fff; }

/* stats row */
.stats { border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 14px; padding: 22px 8px; }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.stat svg { width: 26px; height: 26px; flex: none; color: var(--text); }
.stat .btn svg { width: 16px; height: 16px; color: inherit; }
.stat b { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--text-2); }

/* sections */
.sec { padding: 72px 0; }
.sec-grey { background: var(--surface-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 6px; }
.more { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.more:hover { color: var(--text); }
.page-hd { padding: 56px 0 8px; }
.page-hd h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-top: 8px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }

/* project cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: #b5b5b5;
  background: repeating-linear-gradient(135deg, #f6f6f6 0 14px, #f0f0f0 14px 28px); }
.ph svg { width: 54px; height: 54px; }
.badge { position: absolute; top: 12px; inset-inline-end: 12px; background: #fff; color: var(--text); border-radius: var(--pill); font-size: 12px; font-weight: 600; padding: 3px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 16.5px; font-weight: 700; }
.meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.meta svg { width: 15px; height: 15px; flex: none; }
.progress { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.progress-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.progress-top b { color: var(--text); font-weight: 700; }
.bar { height: 6px; background: var(--surface-3); border-radius: var(--pill); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--btn); border-radius: var(--pill); }

/* services */
.svc-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.svc .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 16px; }
.svc .ic svg { width: 24px; height: 24px; }
.svc h3 { font-size: 18px; margin-bottom: 8px; }
.svc p { color: var(--text-2); font-size: 14.5px; }
.svc ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.svc li::before { content: "•"; margin-inline-end: 8px; color: var(--text); }

/* about split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split-img { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-3); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 8px 0 14px; }
.split p { color: var(--text-2); }
.split .hero-actions { margin-top: 24px; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 26px; }
.why div { display: flex; gap: 12px; }
.why .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; flex: none; }
.why .ic svg { width: 19px; height: 19px; }
.why b { display: block; font-size: 14.5px; }
.why span { font-size: 13px; color: var(--text-2); }

/* CTA */
.cta { background: var(--surface-2); border-radius: 22px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta p { color: var(--text-2); margin-top: 6px; }

/* project page */
.p-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; padding-bottom: 72px; }
.p-cover { border-radius: var(--radius-card); overflow: hidden; background: var(--surface-3); aspect-ratio: 16 / 10; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.p-gallery a { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--surface-3); }
.p-gallery img { width: 100%; height: 100%; object-fit: cover; }
.p-side { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; position: sticky; top: 92px; }
.p-side p { color: var(--text-2); margin-bottom: 18px; }
.facts { display: grid; gap: 0; margin: 0 0 20px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; font-weight: 600; text-align: end; }
.p-side .progress { border-top: 0; padding-top: 0; margin-bottom: 20px; }
.p-side .btn { width: 100%; }

/* about page */
.prose { max-width: 760px; color: var(--text-2); font-size: 16px; display: grid; gap: 16px; }
.prose h2 { color: var(--text); font-size: 22px; margin-top: 18px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; padding-bottom: 72px; }
.c-box { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.c-box h2 { font-size: 19px; margin-bottom: 14px; }
.c-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.c-row:last-child { border-bottom: 0; }
.c-row svg { width: 20px; height: 20px; flex: none; }
.c-row a { font-weight: 600; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-size: 14.5px; font-weight: 400; border: 1px solid var(--line-strong); border-radius: var(--radius-control); padding: 11px 14px; background: #fff; color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form textarea { min-height: 130px; resize: vertical; }
.form .note { font-size: 13px; color: var(--text-2); min-height: 1em; }

/* 404 */
.nf { text-align: center; padding: 110px 0; }
.nf b { font-size: 84px; font-weight: 800; line-height: 1; display: block; }
.nf h1 { font-size: 26px; margin: 16px 0 24px; }

/* footer */
.ftr { background: var(--footer); color: var(--footer-text); margin-top: 0; }
.ftr .wrap { padding: 56px 0 26px; }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--footer-2); }
.ftr .brand { color: #fff; }
.ftr .brand-mark { background: #fff; color: var(--btn); }
.ftr .brand small { color: #9a9a9a; }
.ftr-about { margin-top: 16px; font-size: 13.5px; color: #a8a8a8; max-width: 300px; }
.ftr h4 { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 700; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.ftr a:hover { color: #fff; }
.ftr-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 12.5px; color: #8f8f8f; }

/* responsive */
@media (max-width: 1000px) {
  .grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .p-top, .contact-grid { grid-template-columns: 1fr; }
  .p-side { position: static; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; background: #fff; flex-direction: column; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 15px; }
  .menu-btn { display: inline-flex; }
  .hdr-tools { margin-inline-start: auto; }
  .hdr .btn-dark { display: none; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 8px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .wrap { width: calc(100% - 32px); }
  .hero { min-height: 520px; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.72) 100%) !important; }
  .hero .wrap { padding: 56px 0; }
  .grid, .svc-grid, .why { grid-template-columns: 1fr; }
  .sec { padding: 52px 0; }
  .sec-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .cta { padding: 28px 22px; }
  .ftr-top { grid-template-columns: 1fr; }
  .stat { padding: 16px 4px; gap: 10px; }
  .stat + .stat { padding-inline-start: 14px; }
  .stat b { font-size: 20px; }
  .brand small { display: none; }
}
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-2 { grid-template-columns: 1fr; } }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -9999px; }
.form .chk { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; color: var(--text-2); }
.form .chk input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--text); }
.form .note.bad { color: #b42318; }
.form button[disabled] { opacity: .6; cursor: wait; }
