@font-face {
  font-display: swap;
  font-family: "Hacen Maghreb";
  src: url("assets/fonts/hacen-maghreb/Hacen-Maghreb.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-display: swap;
  font-family: "Hacen Maghreb";
  src: url("assets/fonts/hacen-maghreb/Hacen-Maghreb-Lt.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-display: swap;
  font-family: "Hacen Maghreb";
  src: url("assets/fonts/hacen-maghreb/Hacen-Maghreb-Bd.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-display: swap;
  font-family: "Hacen Tehran";
  src: url("assets/fonts/hacen-tehran/Hacen-Tehran.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

:root {
  --ink: #163349;
  --muted: #627484;
  --line: #dbe8f2;
  --soft: #f4fbff;
  --blue: #3775ba;
  --blue-dark: #2f6faa;
  --sky: #72b8dc;
  --pale: #d5eefb;
  --green: #2f8f77;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(22, 51, 73, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hacen Maghreb", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: linear-gradient(180deg, #eef8fe 0%, #f8fcff 42%, #ffffff 100%);
  line-height: 1.7;
}

body[dir="rtl"] {
  font-family: "Hacen Maghreb", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px clamp(20px, 5vw, 96px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-logo {
  width: auto;
  max-width: clamp(310px, 34vw, 660px);
  height: 82px;
  object-fit: contain;
  object-position: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 34px);
  font-size: 17px;
  font-weight: 300;
  font-family: "Hacen Maghreb", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--blue-dark);
  white-space: nowrap;
}

.nav a:not(.lang-switch) {
  padding: 10px 0;
  border-bottom: 3px solid transparent;
}

.nav a:not(.lang-switch):hover {
  color: var(--blue);
  border-color: var(--sky);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 48px;
  border-radius: 8px;
  color: var(--white);
  background: #3775ba;
}

.header-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 7px 18px;
  border: 1px solid rgba(55, 117, 186, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(55, 117, 186, 0.18);
  line-height: 1.2;
}

.header-phone:hover {
  color: var(--white);
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.header-phone span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.header-phone strong {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  min-height: calc(100vh - 112px);
  padding: clamp(44px, 8vw, 108px) clamp(20px, 5vw, 96px);
  background:
    linear-gradient(115deg, rgba(210, 237, 250, 0.92), rgba(255, 255, 255, 0.42) 46%, rgba(238, 248, 254, 0.96)),
    #d5eefb;
}

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

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #123c63;
  font-family: "Hacen Tehran", "Hacen Maghreb", Tahoma, Arial, sans-serif;
  font-weight: 300;
  text-shadow: none;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.25;
  letter-spacing: 0;
  font-family: "Hacen Tehran", "Hacen Maghreb", Tahoma, Arial, sans-serif;
  font-weight: 300;
}

h3 {
  font-size: 22px;
  line-height: 1.35;
  font-family: "Hacen Tehran", "Hacen Maghreb", Tahoma, Arial, sans-serif;
  font-weight: 300;
}

.hero p,
.intro p,
.section-heading p {
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 300;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(55, 117, 186, 0.25);
}

.button.ghost {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.button.dark {
  width: 100%;
  background: var(--blue);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  padding: 14px;
  border-radius: 8px;
  overflow: visible;
  border: 1px solid rgba(114, 184, 220, 0.34);
  background:
    linear-gradient(135deg, rgba(213, 238, 251, 0.96), rgba(255, 255, 255, 0.74)),
    #d5eefb;
  box-shadow: 0 24px 58px rgba(55, 117, 186, 0.18);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset-block: 34px -18px;
  inset-inline: -18px 34px;
  z-index: -1;
  border-radius: 8px;
  background: #72b8dc;
  opacity: 0.32;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset-block-end: 26px;
  inset-inline: 42px -22px;
  z-index: 1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #72b8dc, #3775ba);
  opacity: 0.82;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1.46 / 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(1.05) contrast(1.02);
  opacity: 0;
  animation: heroSlide 10s infinite;
}

.hero-slider .slide-two {
  animation-delay: 5s;
  object-position: center;
}

@keyframes heroSlide {
  0%,
  42% {
    opacity: 1;
    transform: scale(1);
  }

  50%,
  92% {
    opacity: 0;
    transform: scale(1.018);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.band,
.section,
.features,
.faq-section,
.contact-section,
.map-section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 96px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
  gap: clamp(26px, 5vw, 74px);
  align-items: start;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.map-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(22, 51, 73, 0.06);
}

.service-card.featured {
  color: var(--white);
  background: linear-gradient(135deg, #68b4dc, var(--blue));
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.84);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--pale);
  font-weight: 300;
}

.service-card.featured .service-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.features {
  background: #eef7fc;
}

.important-links {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 96px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(248, 251, 253, 0.84), rgba(248, 251, 253, 0.9)),
    url("assets/earth-map.webp") center bottom / min(100%, 1240px) auto no-repeat;
}

.important-links .section-heading {
  margin-inline: auto;
  text-align: center;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 228px;
  padding: 28px 24px;
  color: #2f6faa;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(55, 117, 186, 0.11);
  text-align: center;
  font-weight: 300;
  font-size: 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(114, 184, 220, 0.72);
  box-shadow: 0 24px 52px rgba(55, 117, 186, 0.16);
}

.link-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 92px;
}

.link-logo img {
  width: min(100%, 230px);
  max-height: 112px;
  object-fit: contain;
}

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

.feature-grid div {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(55, 117, 186, 0.18);
}

.feature-grid strong {
  font-size: 20px;
}

.feature-grid span {
  color: var(--muted);
}

.faq-section {
  background: var(--white);
}

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

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 300;
  color: var(--blue-dark);
}

details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.contact-section {
  position: relative;
  display: block;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 72px);
  color: var(--ink);
  background:
    linear-gradient(rgba(248, 251, 253, 0.9), rgba(248, 251, 253, 0.92)),
    url("assets/earth-map.webp") center / min(100%, 1160px) auto no-repeat;
}

.contact-section .section-kicker,
.contact-section .section-heading p {
  color: var(--muted);
}

.contact-section .section-heading {
  margin-inline: auto;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 22px;
  width: min(100%, 960px);
  margin-inline: auto;
  padding: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 300;
}

.contact-form label span {
  color: #2f6faa;
  font-weight: 300;
}

input,
textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(47, 111, 170, 0.16);
  border-radius: 999px;
  padding: 16px 22px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  box-shadow: 0 10px 24px rgba(55, 117, 186, 0.08);
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
  border-radius: 24px;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(114, 184, 220, 0.28);
  border-color: var(--sky);
}

.map-section {
  background: var(--soft);
}

.map-section iframe {
  width: 100%;
  min-height: 430px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 7vw, 72px);
  background:
    linear-gradient(115deg, rgba(210, 237, 250, 0.92), rgba(255, 255, 255, 0.72)),
    #d5eefb;
}

.thanks-panel {
  width: min(100%, 720px);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(114, 184, 220, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.thanks-panel img {
  width: min(100%, 300px);
  margin-bottom: 28px;
}

.thanks-panel p {
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
}

.site-footer {
  padding: clamp(42px, 6vw, 72px) clamp(20px, 5vw, 96px) 28px;
  color: #173a55;
  background: #d5eefb;
  border-top: 1px solid rgba(55, 117, 186, 0.18);
  font-weight: 300;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.7fr));
  gap: 30px;
}

.footer-brand img {
  width: min(360px, 100%);
  margin-bottom: 18px;
  border-radius: 8px;
}

.site-footer h3 {
  color: #2f6faa;
  font-size: 18px;
  font-weight: 300;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 300;
}

.footer-brand p,
.footer-bottom {
  font-weight: 300;
}

.site-footer a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(55, 117, 186, 0.18);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .feature-grid,
  .link-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 14px 16px;
  }

  .brand-logo {
    width: auto;
    max-width: min(calc(100vw - 118px), 330px);
    height: 54px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .nav {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 15px;
  }

  .header-phone {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 14px;
    align-items: center;
  }

  .header-phone span {
    display: none;
  }

  .header-phone strong {
    font-size: 15px;
  }

  .lang-switch {
    min-width: 50px;
    height: 42px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    padding: 10px;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }

  h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .service-grid,
  .feature-grid,
  .link-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .feature-grid div {
    min-height: auto;
  }

  .footer-bottom {
    display: grid;
  }
}
