:root {
  --navy: #0b1826;
  --navy-2: #11263a;
  --steel: #7f9cad;
  --logo-blue: #82b8c4;
  --logo-blue-soft: #d7eef3;
  --line: rgba(255, 255, 255, 0.14);
  --muted: #657586;
  --text: #101820;
  --gold: #c8a85a;
  --bg: #f4f7f9;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(10, 24, 38, 0.16);
  --max: 1180px;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body[dir="ltr"] {
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 82px;
  padding: 10px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(11, 24, 38, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 235px;
}

.brand img {
  width: 92px;
  height: 64px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: #b7c8d2;
  font-size: 0.78rem;
}

.brand strong {
  font-size: 1rem;
  font-weight: 850;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #d8e3e9;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.lang-toggle {
  width: 46px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 116px 22px 70px;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

body[dir="rtl"] .hero-image {
  transform: scaleX(-1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 24, 38, 0.95) 0%, rgba(11, 24, 38, 0.72) 46%, rgba(11, 24, 38, 0.24) 100%),
    linear-gradient(0deg, rgba(11, 24, 38, 0.88) 0%, rgba(11, 24, 38, 0) 42%);
}

body[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(11, 24, 38, 0.95) 0%, rgba(11, 24, 38, 0.72) 46%, rgba(11, 24, 38, 0.24) 100%),
    linear-gradient(0deg, rgba(11, 24, 38, 0.88) 0%, rgba(11, 24, 38, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-copy {
  max-width: 740px;
}

body[dir="rtl"] .hero-copy {
  margin-inline-end: auto;
  text-align: right;
}

body[dir="ltr"] .hero-copy {
  margin-inline-end: auto;
  text-align: left;
}

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

.section-kicker::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold), var(--logo-blue));
}

body[dir="rtl"] .section-kicker::after {
  margin-right: 0;
  margin-left: auto;
}

body[dir="rtl"] .eyebrow {
  font-size: 17px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 720px;
  font-size: clamp(34px, 4.7vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  color: #d7e3e9;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  color: #111a21;
  background: var(--gold);
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(130, 184, 196, 0.6);
  background: rgba(130, 184, 196, 0.12);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: rgba(130, 184, 196, 0.18);
  border: 1px solid rgba(130, 184, 196, 0.24);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 24px 55px rgba(11, 24, 38, 0.2),
    0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}

.intro-band div {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 26px clamp(20px, 4vw, 42px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(130, 184, 196, 0.13), rgba(200, 168, 90, 0.04)),
    rgba(11, 24, 38, 0.96);
}

.intro-band div::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: linear-gradient(180deg, var(--logo-blue), var(--gold));
}

.intro-band strong,
.intro-band span,
.intro-band b {
  display: block;
}

.intro-band b {
  color: var(--logo-blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.intro-band strong {
  color: var(--white);
  font-size: 1.18rem;
  line-height: 1.4;
}

.intro-band span {
  color: #c7d7df;
  font-size: 0.95rem;
  line-height: 1.75;
}

.section {
  padding: clamp(70px, 9vw, 120px) 22px;
}

.section > .section-head,
.section > .solution-grid,
.section > .service-list,
.section > .industry-tags {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 850px;
  margin-bottom: 34px;
}

.split {
  width: calc(100% - 44px);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}

.intro-band + .split {
  padding-top: clamp(86px, 10vw, 132px);
  margin-top: 0;
}

.copy {
  color: #d8e3e9;
  font-size: 1.06rem;
}

.copy p + p {
  margin-top: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--logo-blue);
  font-weight: 850;
}

.text-link:hover {
  color: var(--gold);
}

.subpage-hero {
  padding: 150px 22px 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 24, 38, 0.94), rgba(11, 24, 38, 0.78)),
    url("assets/industrial-hero.png") center / cover;
}

body[dir="rtl"] .subpage-hero {
  background:
    linear-gradient(270deg, rgba(11, 24, 38, 0.94), rgba(11, 24, 38, 0.78)),
    url("assets/industrial-hero.png") center / cover;
}

.subpage-hero > div,
.article-copy {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.subpage-hero h1 {
  margin: 0;
}

.about-detail {
  background: #eef4f7;
}

.article-copy {
  max-width: 920px;
  padding: 34px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #d7e4ea;
  box-shadow: var(--shadow);
}

.article-copy p {
  margin: 0;
  color: #384b5d;
  font-size: 1.06rem;
  line-height: 2.05;
}

.article-copy p + p {
  margin-top: 20px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  min-height: 250px;
  position: relative;
  overflow: hidden;
  padding: 0 26px 26px;
  border-radius: 8px;
  background: var(--white);
  border-top: 3px solid var(--logo-blue);
  box-shadow: var(--shadow);
}

.solution-card img {
  display: block;
  width: calc(100% + 52px);
  height: 168px;
  margin: 0 -26px 22px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}

.solution-card span {
  position: absolute;
  top: 140px;
  inset-inline-start: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  color: var(--navy);
  border: 1px solid rgba(130, 184, 196, 0.5);
  border-radius: 50%;
  background: rgba(215, 238, 243, 0.96);
  box-shadow: 0 10px 24px rgba(11, 24, 38, 0.18);
  font-weight: 700;
}

.solution-card h3 {
  margin: 14px 0 12px;
  color: var(--navy);
}

.solution-card p {
  color: var(--muted);
}

.services {
  background: #e9eef2;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-list div {
  padding: 20px 22px;
  color: var(--navy);
  background: var(--white);
  border-inline-start: 4px solid var(--logo-blue);
  border-radius: 6px;
  font-weight: 700;
}

.service-list div:nth-child(even) {
  border-inline-start-color: var(--gold);
}

.industries {
  background: linear-gradient(135deg, var(--navy-2), #0c2c3a);
  color: var(--white);
}

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

.industry-tags span {
  padding: 12px 17px;
  color: #dce8ee;
  border: 1px solid rgba(130, 184, 196, 0.28);
  border-radius: 999px;
  background: rgba(130, 184, 196, 0.08);
}

.contact {
  width: calc(100% - 44px);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.contact-info {
  position: static;
}

.legacy-contact {
  display: none;
}

.direct-contact {
  display: grid;
  gap: 4px;
  margin: 28px 0 18px;
  padding: 18px 20px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--white), var(--logo-blue-soft));
  border: 1px solid rgba(130, 184, 196, 0.45);
  border-radius: 8px;
}

.direct-contact span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.direct-contact a {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 850;
}

.office-list {
  display: grid;
  gap: 12px;
}

.office-list article {
  padding: 16px 18px;
  border: 1px solid #d7e4ea;
  border-inline-start: 4px solid var(--logo-blue);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.office-list article:nth-child(3n + 1) {
  border-inline-start-color: var(--gold);
}

.office-list h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

.office-list p {
  margin: 0;
  color: #405365;
  font-size: 0.94rem;
  line-height: 1.8;
}

.office-list a {
  display: inline-flex;
  margin-top: 8px;
  color: #0f5262;
  font-weight: 800;
}

dl {
  margin: 28px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.9rem;
}

dd {
  margin: 0 0 20px;
  color: var(--navy);
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 700;
}

.contact-form .wide {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d3dde4;
  border-radius: 6px;
  color: var(--text);
  background: #fbfdfe;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(200, 168, 90, 0.35);
  border-color: var(--gold);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px max(22px, calc((100vw - var(--max)) / 2));
  color: #cbd8df;
  background: #08121d;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
}

.site-footer img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[dir="rtl"] .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 850px;
  }

  .intro-band {
    width: calc(100% - 36px);
    margin-top: 0;
  }

  .intro-band,
  .solution-grid,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    padding: 10px 14px;
  }

  .brand img {
    width: 72px;
    height: 66px;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 780px;
    padding: 150px 18px 54px;
  }

  .intro-band {
    width: calc(100% - 28px);
    margin-top: 0;
  }

  .intro-band div {
    min-height: auto;
    padding: 22px 18px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
