/*
 * This Is Behrad — final layout corrections
 * Direct language access, one consistent roadmap frame, and image-free
 * BEHRAD/contact chapters.
 */

/* The header is no longer a menu. It is only identity + language choice. */
.nav-inner {
  justify-content: space-between;
  gap: clamp(18px, 3vw, 44px);
}

.wordmark {
  margin: 0;
}

.nav-inner > .lang-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  padding: 0;
}

.nav-inner > .lang-switch a {
  display: grid;
  min-width: 44px;
  min-height: 40px;
  padding: 0 10px;
  place-items: center;
}

/* Every visual roadmap entry occupies exactly the same landscape field. */
.road-item.major .road-content,
.road-item.major.flip .road-content,
html[dir="ltr"] .road-item.major .road-content,
html[dir="ltr"] .road-item.major.flip .road-content {
  width: 100%;
  max-width: none;
}

.road-photo,
.road-photo.portrait {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 10;
  justify-self: stretch;
  overflow: hidden;
}

.road-photo img,
.road-photo.portrait img,
.road-photo.media-beginning img,
.road-photo.media-iran-zamin img,
.road-photo.media-today img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

/* Crop anchors preserve the subject while the frame stays identical. */
.road-photo.media-beginning img { object-position: center 34%; }
.road-photo.media-alborz img { object-position: center 48%; }
.road-photo.media-startup-weekend img { object-position: center 50%; }
.road-photo.media-ashna img { object-position: center 43%; }
.road-photo.media-military img { object-position: center 49%; }
.road-photo.media-iran-zamin img { object-position: center 27%; }
.road-photo.media-construction img { object-position: center 46%; }
.road-photo.media-today img { object-position: center 34%; }

/* BEHRAD is now a concise typographic chapter. */
.behrad {
  min-height: auto;
  padding-bottom: clamp(100px, 13vw, 184px);
}

/* Contact closes the story with type and direct links only. */
.contact {
  min-height: min(78svh, 860px);
  display: block;
}

.contact-copy {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  grid-template-rows: auto auto auto;
  align-items: end;
  column-gap: clamp(56px, 10vw, 160px);
}

.contact-copy .section-no {
  grid-column: 1 / -1;
  grid-row: 1;
}

.contact-copy h2 {
  grid-column: 1;
  grid-row: 2 / span 2;
  margin: 0;
}

.contact-copy > p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: end;
}

.contact-links {
  grid-column: 2;
  grid-row: 3;
  margin-top: 34px;
  align-self: start;
}

@media (max-width: 980px) {
  .nav-inner {
    min-height: 70px;
  }

  .nav-inner > .lang-switch {
    position: static;
    border: 1px solid var(--line);
    background: transparent;
  }

  .contact-copy {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
    column-gap: 46px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    min-height: 64px;
    padding-inline: 12px;
  }

  .wordmark {
    padding: 0;
    font-size: 1.08rem;
  }

  .nav-inner > .lang-switch a {
    min-width: 38px;
    min-height: 36px;
    padding-inline: 7px;
    font-size: .62rem;
  }

  .road-photo,
  .road-photo.portrait {
    aspect-ratio: 16 / 10;
  }

  .contact {
    min-height: auto;
  }

  .contact-copy {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 0;
  }

  .contact-copy .section-no,
  .contact-copy h2,
  .contact-copy > p,
  .contact-links {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-copy h2 {
    margin-bottom: 28px;
  }

  .contact-copy > p {
    margin-bottom: 28px;
  }

  .contact-links {
    margin-top: 0;
  }
}
