.about-page {
  background: #fff;
}

.about-page .header {
  min-height: 94px;
  border: 0;
}

.about-brand {
  color: var(--navy);
}

.about-brand strong {
  border-inline: 2px solid var(--amber);
  padding-inline: 14px;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1;
}

.about-brand small {
  font-size: clamp(.7rem, 1.45vw, 1rem);
  line-height: 1.1;
  letter-spacing: .03em;
}

.about-page nav > :is(a, span) {
  position: relative;
  font-weight: 700;
}

.about-page nav a[aria-current="page"]::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -8px;
  height: 4px;
  background: var(--amber);
  content: "";
}

.about-title,
.about-contact {
  background: var(--navy);
  color: white;
}

.about-title {
  padding-block: clamp(30px, 5vw, 56px);
  background-image: linear-gradient(118deg, #102b43, #19425d);
}

.about-title h1,
.about-page h2 {
  margin: 0;
  line-height: 1.15;
}

.about-title h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
}

.about-page h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-title h1::after,
.about-page h2::after {
  display: block;
  width: 2em;
  height: 5px;
  margin-block: .32em .55em;
  background: var(--amber);
  content: "";
}

.company-profile {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(32px, 5vw, 64px);
}

.company-copy,
.profile-copy {
  max-width: 72ch;
}

.company-name {
  text-align: start;
  direction: rtl;
  color: var(--muted);
  font-weight: 700;
}

.company-mark {
  display: grid;
  justify-items: center;
  align-content: center;
  padding-inline-start: 24px;
  border-inline-start: 1px solid #a0aab2;
  color: var(--navy);
  font-size: 3rem;
  line-height: 1;
}

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

.profile {
  display: grid;
  gap: 30px;
  padding: clamp(24px, 4vw, 52px);
  margin-block-end: clamp(28px, 5vw, 56px);
  border-radius: 12px;
  background: #eef2f5;
}

/* Approved images can be added later using these classes. */
.about-title:has(.about-title-image) {
  background-image: linear-gradient(118deg, transparent 48%, var(--navy) 48%);
  position: relative;
  isolation: isolate;
}

.about-title-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 56% 0, 46% 100%, 0 100%);
  z-index: -1;
}

.profile:has(.profile-portrait) {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.profile-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.about-contact .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
}

.about-contact .contact-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-inline-start: 1px solid #adc0cd;
  min-height: 44px;
  font-weight: 700;
}

.about-contact .contact-option > span {
  color: var(--amber);
  font-size: 1.4em;
}

.contact-option .whatsapp-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: var(--amber);
}

a.contact-option:hover bdi {
  text-decoration: underline;
}

a.contact-option:focus-visible {
  outline-color: var(--amber);
}

.mobile-phone-icon {
  position: relative;
  box-sizing: border-box;
  width: 16px;
  height: 24px;
  flex: none;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.mobile-phone-icon::after {
  position: absolute;
  inset-inline: 4px;
  bottom: 2px;
  border-bottom: 2px solid currentColor;
  content: "";
}

@media (max-width: 720px) {
  .about-page .header {
    min-height: 84px;
  }

  .about-brand {
    gap: 8px;
  }

  .about-brand strong {
    padding-inline: 7px;
  }

  .about-brand small {
    padding: 0;
  }

  .company-profile,
  .profile:has(.profile-portrait) {
    grid-template-columns: 1fr;
  }

  .company-mark {
    border-inline-start: 0;
    padding-inline-start: 0;
    font-size: 2rem;
  }

  .company-mark img {
    width: 96px;
  }

  .profile-portrait {
    grid-row: 1;
    max-width: 320px;
    justify-self: center;
  }

  .about-contact .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }

  .about-contact h2 {
    grid-column: 1 / -1;
  }

  .about-contact .contact-option:nth-child(2) {
    border-inline-start: 0;
  }
}

@media (max-width: 390px) {
  .about-page .header {
    width: calc(100% - 24px);
  }

  .about-brand .brand-emblem {
    width: 36px;
    height: 36px;
  }
}
