/* Vazirmatn, Fraunces, and Estedad are used under the SIL Open Font License. */

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/vazirmatn-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/vazirmatn-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/vazirmatn-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/vazirmatn-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/vazirmatn-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/vazirmatn-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/vazirmatn-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/vazirmatn-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/estedad-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --bg: #090a0d;
  --bg-raise: #12141a;
  --ink: #f4efe6;
  --muted: #b7b1a6;
  --dim: #8f897f;
  --amber: #e8a84a;
  --amber-soft: #f6d7a4;
  --orange: #e07a3d;
  --line: rgba(244, 239, 230, 0.12);
  --danger: #e7a091;
  --ok: #9dccb0;
  --nav-h: 4.75rem;
  --max: 72rem;
  --serif: "Fraunces", "Vazirmatn", Georgia, serif;
  --sans: "Vazirmatn", Tahoma, sans-serif;
  color-scheme: dark;
}

html[lang="fa"] {
  --serif: "Vazirmatn", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(880px 480px at 88% -8%, rgba(224, 122, 61, 0.18), transparent 58%),
    radial-gradient(640px 420px at -12% 18%, rgba(232, 168, 74, 0.1), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 72%);
  z-index: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(232, 168, 74, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--amber);
  color: #1a1208;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 10, 13, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a[aria-current="true"] {
  color: var(--ink);
  background: rgba(244, 239, 230, 0.06);
}

.lang-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.03);
  color: var(--ink);
  cursor: pointer;
}

.lang-toggle {
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
}

.lang-toggle:hover,
.nav-toggle:hover,
.btn-ghost:hover,
.socials a:hover {
  border-color: rgba(232, 168, 74, 0.55);
  color: var(--amber-soft);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex: none;
}

.nav-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.eyebrow {
  display: inline-flex;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(232, 168, 74, 0.35);
  border-radius: 999px;
  background: rgba(232, 168, 74, 0.1);
  color: var(--amber-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="fa"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.92rem;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 7.4vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

html[lang="fa"] .hero h1 {
  font-family: "Estedad", "Vazirmatn", Tahoma, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  gap: 0.04em;
}

html[lang="fa"] .hero h1 span:last-child {
  padding-inline-start: 0.32em;
}

.hero h1 span {
  background: linear-gradient(100deg, #f8d7a1 0%, #f0a44a 42%, #e06a32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #f0b35a;
  -webkit-text-fill-color: transparent;
}

.role {
  max-width: 18em;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(100deg, #f0b35a, #e07a3d);
  color: #1a1208;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(244, 239, 230, 0.03);
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.7);
  color: var(--ink);
}

.socials svg {
  width: 1.05rem;
  height: 1.05rem;
}

.portrait-wrap {
  position: relative;
  width: min(100%, 430px);
  margin-inline-start: auto;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 61, 0.5), transparent 68%);
  filter: blur(26px);
}

.portrait-ring {
  padding: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f6d7a4, #e07a3d 58%, rgba(224, 122, 61, 0.25));
  box-shadow: 0 28px 70px rgba(224, 122, 61, 0.16);
}

.portrait-crop {
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1;
}

.portrait-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  transform: scale(1.08);
  transform-origin: 62% 46%;
}

.section {
  padding: clamp(4.25rem, 8vw, 6.75rem) 0;
}

.section h2,
.steps h3,
.focus-grid h3,
.services-grid h3 {
  font-family: var(--serif);
}

.section h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

html[lang="fa"] .section h2,
html[lang="fa"] .steps h3,
html[lang="fa"] .focus-grid h3,
html[lang="fa"] .services-grid h3 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.lead {
  max-width: 38rem;
  margin-top: 0.85rem;
  color: var(--muted);
}

.prose-card,
.focus-grid li,
.services-grid li,
.contact-panel {
  border: 1px solid var(--line);
  background: rgba(18, 20, 26, 0.78);
}

.prose-card {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.4rem;
}

.prose-card p {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.85;
}

.focus-grid,
.services-grid,
.steps {
  display: grid;
  gap: 1rem;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.focus-grid li,
.services-grid li {
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 1.15rem;
}

.focus-grid h3,
.services-grid h3,
.steps h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.focus-grid p,
.services-grid p,
.steps p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.band {
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.03), transparent 28%);
  border-block: 1px solid var(--line);
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.75rem;
  counter-reset: service;
}

.services-grid li {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.services-grid li:hover {
  border-color: rgba(232, 168, 74, 0.5);
  transform: translateY(-3px);
}

.num,
.step-index {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.step-index {
  position: relative;
  z-index: 1;
  width: max-content;
  margin-bottom: 1rem;
  padding: 0.12rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #12141a;
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  margin-top: 2rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  inset-inline: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 168, 74, 0.75), transparent);
}

html[dir="rtl"] .steps::before {
  background: linear-gradient(270deg, transparent, rgba(232, 168, 74, 0.75), transparent);
}

.steps li {
  position: relative;
  padding-top: 0.15rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
}

.details {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  margin: 0;
}

.details div {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.details dt {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="fa"] .details dt {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

.details dd {
  margin: 0.25rem 0 0;
  font-size: 1.12rem;
}

.details a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.details a:hover {
  color: var(--amber-soft);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(9, 10, 13, 0.55);
}

.field textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(232, 168, 74, 0.7);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 168, 74, 0.16);
}

[aria-invalid="true"] {
  border-color: var(--danger) !important;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 0.85rem;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-ok {
  color: var(--ok);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1.5rem;
}

.footer-bar p {
  color: var(--muted);
}

.footer-bar .socials {
  margin-top: 0;
}

.hero-copy,
.portrait-wrap {
  animation: rise 0.7s ease both;
}

.portrait-wrap {
  animation-delay: 0.08s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .services-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps::before {
    display: none;
  }

  .focus-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .lang-toggle {
    margin-inline-start: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0.85rem 1rem 1.1rem;
    background: #0c0d11;
    border-bottom: 1px solid var(--line);
    z-index: 5;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .hero h1,
  .hero-actions,
  .socials {
    justify-content: center;
  }

  .role {
    margin-inline: auto;
  }

  .portrait-wrap {
    order: -1;
    width: min(72vw, 280px);
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .services-grid,
  .steps,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer-bar {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
  }

  .footer-bar {
    text-align: center;
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .services-grid li:hover {
    transform: none;
  }
}
