:root {
  color-scheme: light;
  --page: #f7f2e8;
  --paper: #fffdf8;
  --ink: #171512;
  --muted: #6d6459;
  --line: #d9cfbd;
  --accent: #2f6f52;
  --accent-soft: #dce8dd;
  --clay: #9b684d;
  --surface: rgba(255, 253, 248, 0.82);
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(116deg, rgba(47, 111, 82, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 242, 232, 0.74) 48%, rgba(240, 231, 216, 0.9)),
    var(--page);
  color: var(--ink);
  font-family:
    "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
}

html[lang="fa"] body {
  font-family:
    Vazirmatn, Estedad, Dana, Shabnam, "Noto Sans Arabic", "Noto Naskh Arabic",
    Arial, sans-serif;
}

html[lang="en"] body {
  font-family:
    "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 10;
  transform: translateY(-180%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  padding: 0.55rem 0.8rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  padding-block: clamp(0.7rem, 1.8vh, 1.15rem);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(47, 111, 82, 0.18);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--paper), var(--accent-soft));
  color: var(--accent);
  font-weight: 700;
}

.language-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.42);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.78rem;
}

.language-toggle:hover {
  border-color: #cfc6b6;
  color: var(--ink);
}

.page-shell {
  display: grid;
  min-height: calc(100svh - 64px);
  grid-template-rows: 1fr auto;
  gap: clamp(0.7rem, 1.9vh, 1.2rem);
  padding-block: clamp(0.45rem, 1.8vh, 1rem) clamp(0.75rem, 2.1vh, 1.25rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(1.45rem, 4.2vw, 3.4rem);
  align-items: center;
  min-height: 0;
}

.hero-copy {
  max-width: 650px;
  padding-block: clamp(0.2rem, 1vh, 0.7rem);
}

.status-label {
  margin: 0 0 clamp(0.65rem, 1.7vh, 0.95rem);
  color: var(--clay);
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  font-weight: 650;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.55rem, 10.5vw, 7.8rem);
  font-weight: 620;
  letter-spacing: 0;
  line-height: 0.92;
}

html[lang="en"] .hero h1 {
  font-size: clamp(3.15rem, 8.8vw, 6.8rem);
  font-weight: 650;
}

.hero-subtitle {
  max-width: 630px;
  margin: clamp(0.75rem, 2vh, 1.22rem) 0 0;
  color: #2f2d29;
  font-size: clamp(1.12rem, 2.5vw, 1.7rem);
  font-weight: 420;
  line-height: 1.46;
  text-wrap: balance;
}

.hero-note {
  max-width: 540px;
  margin: clamp(0.52rem, 1.4vh, 0.78rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem 0.8rem;
  max-width: 640px;
  margin-block-start: clamp(0.9rem, 2.4vh, 1.2rem);
}

.info-grid article {
  min-height: 86px;
  margin: 0;
  border-block-start: 1px solid var(--line);
  padding-block-start: 0.62rem;
}

.info-grid h2 {
  margin: 0 0 0.18rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.35;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.84rem, 1.05vw, 0.93rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-block-start: clamp(0.95rem, 2.8vh, 1.35rem);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.button-primary {
  background: var(--ink);
  color: #fffdf8;
  box-shadow: 0 10px 24px rgba(23, 21, 18, 0.1);
}

.button-primary:hover {
  background: #2a2824;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.36);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #cfc6b6;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 384px);
  max-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 0.78;
  background: #e7e1d5;
  box-shadow:
    0 26px 58px rgba(38, 30, 20, 0.16),
    0 0 0 1px rgba(82, 67, 45, 0.1);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 248, 0.32);
  content: "";
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.96) sepia(0.03);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1.25rem;
  border-block-start: 1px solid var(--line);
  padding-block-start: clamp(0.72rem, 1.9vh, 1rem);
}

.contact-copy {
  max-width: 690px;
}

.contact h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
}

.contact p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  line-height: 1.62;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.58rem;
}

.contact a {
  min-height: 42px;
  min-width: 108px;
  padding-block: 0.62rem;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
}

@media (max-width: 820px) {
  .site-header {
    padding-block: 1rem;
  }

  .page-shell {
    min-height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.05rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    order: -1;
    justify-self: stretch;
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 6.8;
  }

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

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .brand {
    font-size: 0.94rem;
  }

  .language-toggle {
    padding-inline: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 17vw, 4.7rem);
  }

  .hero-subtitle {
    font-size: clamp(1.08rem, 6vw, 1.48rem);
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .info-grid article {
    min-height: 0;
  }

  .hero-actions {
    display: grid;
  }

  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
