:root {
  --brand: #005da4;
  --brand-light: #a4c3e1;
  --brand-soft: #7eafd4;
  --brand-dark: #003a68;
  --brand-deep: #00243f;
  --ink: #12324d;
  --muted: #4d6b82;
  --line: rgba(0, 93, 164, 0.2);
  --cream: #f3f7fb;
  --paper: #ffffff;
  --alt: #dceaf5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 61, 110, 0.1);
  --radius: 22px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  background-repeat: no-repeat;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: none;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.9;
}

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

img.brand-logo {
  width: 168px !important;
  max-width: 168px !important;
  max-height: 56px !important;
  height: auto !important;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 168px;
  max-width: 168px;
  max-height: 56px;
  height: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-cta {
  color: var(--brand);
}

.nav-cta {
  border: 1px solid var(--brand);
  padding: 8px 16px;
  color: var(--white) !important;
  background: var(--brand);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--brand);
  color: var(--brand);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.hero {
  background-color: var(--brand-dark);
  background-image: linear-gradient(160deg, var(--brand-deep), var(--brand) 62%, #0a4f86);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  padding: 72px 0 78px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 8px;
}

.eyebrow {
  color: var(--brand-light);
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.35;
  max-width: 15ch;
}

.tagline {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--brand-light);
  margin: 0 0 22px;
}

.lead {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.menu-btn {
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font: inherit;
}

.btn-primary {
  background: var(--white);
  color: var(--brand);
  font-weight: 700;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.stat {
  border-top: 1px solid rgba(164, 195, 225, 0.4);
  padding-top: 16px;
}

.stat b {
  display: block;
  color: var(--brand-light);
  font-size: 1.7rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.section {
  padding: 84px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-kicker {
  color: var(--brand);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 36px;
}

.about-grid,
.pillars,
.services,
.domains,
.projects,
.facts {
  display: grid;
  gap: 20px;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.card,
.panel {
  background: var(--paper);
  border: 1px solid rgba(0, 93, 164, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.challenges {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.challenges li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 93, 164, 0.08);
}

.challenges li:last-child {
  border-bottom: 0;
}

.challenges strong {
  color: var(--brand);
}

.panel h3 {
  margin-top: 0;
}

.quote {
  background: var(--brand);
  color: var(--white);
}

.quote p {
  color: rgba(255, 255, 255, 0.9);
}

.pillars {
  grid-template-columns: repeat(3, 1fr);
}

.pillar-num {
  color: var(--brand);
  font-weight: 800;
  font-size: 0.9rem;
}

.services {
  grid-template-columns: repeat(3, 1fr);
}

.services h3 {
  margin: 0 0 10px;
}

.services ul {
  margin: 0;
  padding-right: 18px;
  color: var(--muted);
}

.alt {
  background: var(--alt);
}

.domains {
  grid-template-columns: repeat(4, 1fr);
}

.domain {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  color: var(--brand-dark);
}

.projects {
  grid-template-columns: repeat(2, 1fr);
}

.project {
  display: grid;
  gap: 6px;
}

.project small {
  color: var(--brand);
  font-weight: 700;
}

.facts {
  grid-template-columns: repeat(3, 1fr);
}

.fact dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.fact dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.contact {
  background: var(--brand-dark);
  color: var(--white);
}

.contact .section-kicker {
  color: var(--brand-light);
}

.contact .section-intro,
.contact a {
  color: rgba(255, 255, 255, 0.86);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact .card {
  background: rgba(0, 36, 63, 0.35);
  color: var(--white);
  border-color: rgba(164, 195, 225, 0.22);
  box-shadow: none;
}

.contact .card a {
  color: var(--brand-light);
}

.contact .btn-primary {
  background: var(--white);
  color: var(--brand);
  justify-self: start;
  min-width: 160px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.9rem;
  color: var(--brand-light);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(164, 195, 225, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font: inherit;
  padding: 12px 14px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--brand-light);
}

.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 22px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset: 84px 20px auto;
    background: var(--white);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .stats,
  .about-grid,
  .pillars,
  .services,
  .domains,
  .projects,
  .facts,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .brand-logo {
    width: 140px !important;
    max-width: 140px !important;
  }
}
