/* Use the same bundled Arabic font in every browser for these section labels. */
@font-face {
  font-family: 'SAMA Arabic Labels';
  src: url('/fonts/ibm-plex-sans-arabic-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

html[lang='ar'] .kicker[lang='ar'] {
  font-family: 'SAMA Arabic Labels', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  letter-spacing: normal;
  word-spacing: normal;
}

/* Keep the Arabic select aligned consistently in Firefox and other browsers. */
html[lang='ar'] .contact select {
  direction: rtl;
  text-align: right;
  text-align-last: right;
}

html[lang='ar'] .contact select option {
  direction: rtl;
  text-align: right;
}

/* Leave room for the sticky header when navigating to the consultation form. */
#contact {
  scroll-margin-top: 148px;
}

html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

header {
  top: 0 !important;
  margin-top: 0 !important;
}

/* Five primary service cards: balanced rows on desktop and tablet. */
.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards article:nth-child(2n) {
    border-left: 0;
  }

  .cards article:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #cbd3d6;
  }
}

@media (max-width: 680px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .cards article:last-child {
    grid-column: auto;
    border-top: 0;
  }
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  grid-column: 2;
}

.contact-channels a {
  display: inline-flex;
  flex: 1 1 230px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 16px;
  border: 1px solid #ffffff28;
  border-radius: 12px;
  background: #ffffff08;
  color: #B88934;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.contact-channels a:hover,
.contact-channels a:focus-visible {
  border-color: #B8893499;
  background: #ffffff12;
  color: #fff;
}

.contact-channels a:focus-visible {
  outline: 2px solid #B88934;
  outline-offset: 3px;
}

.contact-channels svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: #B88934;
}

.contact-channels small {
  display: block;
  margin-bottom: 2px;
  color: #c2cdd4;
  font-size: 11px;
}

.contact-channels bdi {
  font-size: 14px;
  letter-spacing: 0.15px;
}

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 18px #0004;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 22px #0005;
}

.whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
}

@media (max-width: 900px) {
  .contact-channels {
    grid-column: 1;
  }
}

#consultation button:disabled { opacity: .7; cursor: wait; }
#consultation [aria-invalid="true"] { border-color: #f2b8a8; }
#form-status { display: block; min-height: 1.7em; margin-top: 12px; }
#form-status[data-state="success"] { color: #d3ecd7; }
#form-status[data-state="error"] { color: #ffd3c8; }
#consultation .form-privacy { display: block; margin-top: 12px; line-height: 1.7; }
#consultation .form-privacy a { color: inherit; text-decoration: underline; }
.insight-link { color: inherit; text-decoration: none; }
.insight-link:hover { text-decoration: underline; }
.insight-link:focus-visible { outline: 2px solid #B88934; outline-offset: 4px; }
.article-language { display: block; margin-top: 12px; }
