@font-face {
  font-family: Vazir;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Vazir-Regular.woff2") format("woff2");
}

@font-face {
  font-family: Vazir;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Vazir-Bold.woff2") format("woff2");
}

:root {
  --purple: #402683;
  --gray: #c7cdd6;
  --cyan: #00b4d8;
  --white: #ffffff;
  --line: rgba(199, 205, 214, 0.28);
  --header-h: 4.75rem;
  --shadow: 0 22px 50px rgba(16, 8, 36, 0.28);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.6rem;
}

body {
  margin: 0;
  font-family: Vazir, Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--gray);
  background-color: var(--purple);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--purple);
  background-image: url("../nmKia_bg1.webp");
  background-repeat: repeat;
  background-position: center top;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.75rem;
  z-index: 30;
  transform: translateY(-150%);
  background: var(--cyan);
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(64, 38, 131, 0.94);
  border-top: 4px solid var(--cyan);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--white);
}

.brand img {
  width: auto;
  height: 2.75rem;
  max-width: min(52vw, 14.5rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--gray);
  padding: 0.35rem 0.15rem;
}

.site-nav a:hover {
  color: var(--white);
}

.header-call {
  text-decoration: none;
  font-weight: 700;
  color: var(--purple);
  background: var(--cyan);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  line-height: 1.4;
}

.header-call:hover {
  filter: brightness(1.06);
}

.hero {
  padding-block: 2.25rem 1rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--gray);
  color: var(--purple);
  border-radius: 1.75rem;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  box-shadow: var(--shadow);
}

.hero-panel:has(.hero-mark) {
  grid-template-columns: minmax(0, 1.45fr) minmax(11rem, 0.72fr);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  background: var(--cyan);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  line-height: 1.35;
  font-weight: 700;
}

.latin-name {
  margin-top: 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.credentials {
  list-style: none;
  margin-top: 1.35rem;
  display: grid;
  gap: 0.35rem;
}

.credentials li {
  position: relative;
  padding-inline-start: 1.15rem;
}

.credentials li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
}

.btn-accent {
  background: var(--cyan);
  color: var(--purple);
}

.btn-accent:hover {
  filter: brightness(1.05);
}

.btn-accent:focus-visible {
  outline-color: var(--purple);
}

.btn-solid {
  background: var(--purple);
  color: var(--gray);
}

.btn-solid:hover {
  background: #311d68;
}

.hero-logo {
  width: min(100%, 16.5rem);
  margin-inline: auto;
}

.section {
  padding-block: 3.4rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.4;
  color: var(--white);
}

.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.services li {
  min-height: 100%;
  background: rgb(0 180 216 / 40%);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.35rem 1.2rem 1.45rem;
  color: #c7cdd6;
}

.services p {
  font-size: 1.08rem;
}

.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 100%;
  text-decoration: none;
  background: rgba(64, 38, 131, 0.42);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.1rem 1.2rem;
}

.contact-list a:hover {
  border-color: var(--cyan);
  background: rgba(64, 38, 131, 0.62);
}

.contact-list svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  color: var(--white);
  font-weight: 700;
}

.contact-value {
  color: var(--gray);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.3rem 1.6rem;
}

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

.to-top {
  text-decoration: none;
}

.to-top:hover {
  text-decoration: underline;
  text-decoration-color: var(--cyan);
}

.credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.credit img {
  height: 2.4rem;
  width: auto;
}

.credit-tip {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  inset-inline-start: 0;
  background: var(--gray);
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  padding: 0.28rem 0.7rem;
  border-radius: 0.45rem;
  opacity: 0;
  pointer-events: none;
}

.credit:hover .credit-tip,
.credit:focus-visible .credit-tip {
  opacity: 1;
}

@media (max-width: 680px) {
  .hero-panel,
  .hero-panel:has(.hero-mark) {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    order: -1;
  }

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

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}

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

  .btn-accent:hover,
  .header-call:hover {
    filter: none;
  }
}

