:root {
  color-scheme: light;
  --ink: #13201c;
  --muted: #60716b;
  --line: #dbe5df;
  --paper: #f8faf6;
  --white: #ffffff;
  --teal: #0b6b5a;
  --teal-dark: #06483e;
  --gold: #f3b52b;
  --sky: #dff1f4;
  --shadow: 0 24px 60px rgba(12, 38, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(248, 250, 246, 0.88);
  border-bottom: 1px solid rgba(219, 229, 223, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #3a2c04;
  font-size: 1.25rem;
}

.nav {
  gap: clamp(12px, 3vw, 34px);
  color: #354941;
  font-weight: 600;
}

.nav a {
  transition: color 0.2s ease;
}

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

.header-action,
.button,
.contact-form button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--teal);
  color: var(--white);
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(18px, 6vw, 86px) 72px;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 35, 31, 0.15), rgba(4, 35, 31, 0.85)),
    linear-gradient(0deg, rgba(10, 36, 31, 0.42), rgba(10, 36, 31, 0.08));
}

.hero-content {
  max-width: 720px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero h1,
.section h2,
.cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.25;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.button.primary {
  background: var(--gold);
  color: #2d2406;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: -44px auto 0;
  padding: 0 clamp(18px, 4vw, 32px);
  position: relative;
  z-index: 3;
}

.stats div {
  min-height: 118px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats strong {
  display: block;
  color: var(--teal);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.stats span {
  color: var(--muted);
  font-weight: 600;
}

.section,
.cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px clamp(18px, 4vw, 32px) 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.section h2,
.cta h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-weight: 800;
}

.intro > p,
.cta p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 30px;
}

.service-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.project-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card span,
.project-grid span {
  color: var(--gold);
  font-weight: 800;
}

.service-card h3,
.project-grid h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  line-height: 1.45;
}

.service-card p,
.project-grid p,
.timeline span {
  margin: 0;
  color: var(--muted);
}

.process {
  max-width: none;
  margin-top: 92px;
  padding: 84px clamp(18px, 6vw, 86px);
  background: var(--teal-dark);
  color: var(--white);
}

.process .section-heading,
.timeline {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.timeline li::before {
  counter-increment: step;
  content: "۰" counter(step);
  display: block;
  margin-bottom: 32px;
  color: var(--gold);
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.timeline span {
  color: rgba(255, 255, 255, 0.72);
}

.projects {
  padding-top: 86px;
}

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

.project-grid article {
  min-height: 220px;
  background: linear-gradient(180deg, var(--white), var(--sky));
}

.cta {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  padding-bottom: 92px;
}

.cta > div {
  padding-top: 24px;
}

.cta p {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #344740;
  font-weight: 700;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
}

.contact-form button {
  border: 0;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  font: inherit;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-top: 4px;
  }

  .stats,
  .service-grid,
  .timeline,
  .project-grid,
  .cta,
  .intro {
    grid-template-columns: 1fr 1fr;
  }

  .cta {
    padding-bottom: 70px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 168px 18px 56px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 35, 31, 0.2), rgba(4, 35, 31, 0.9)),
      linear-gradient(0deg, rgba(10, 36, 31, 0.58), rgba(10, 36, 31, 0.18));
  }

  .stats,
  .service-grid,
  .timeline,
  .project-grid,
  .cta,
  .intro {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: 0;
  }

  .section,
  .cta {
    padding-top: 64px;
  }

  .process {
    margin-top: 64px;
    padding: 64px 18px;
  }

  .service-card,
  .project-grid article,
  .timeline li {
    min-height: auto;
  }

  .footer {
    display: grid;
  }
}
