/* Rahawan social icons — navy / royal gold (#26 namespaced: .rh-social*) */
.rh-social-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.rh-social {
  --rh-soc-gold: #d4af37;
  --rh-soc-gold-hi: #f3dd8e;
  --rh-soc-gold-lo: #9c7a1e;
  --rh-soc-navy: #0a1426;
  --rh-soc-size: 2rem;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.rh-social__item {
  display: block;
  margin: 0;
  padding: 0;
}

.rh-social .rh-social__link {
  position: relative;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--rh-soc-size);
  height: var(--rh-soc-size);
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: linear-gradient(145deg, rgba(20, 34, 60, 0.95) 0%, rgba(8, 14, 28, 0.98) 100%);
  color: var(--rh-soc-gold-hi);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(243, 221, 142, 0.14), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rh-social .rh-social__ico {
  display: block;
  width: 52%;
  height: 52%;
}

.rh-social .rh-social__link:hover,
.rh-social .rh-social__link:focus-visible {
  color: var(--rh-soc-navy);
  border-color: var(--rh-soc-gold-hi);
  background: linear-gradient(145deg, var(--rh-soc-gold-hi) 0%, var(--rh-soc-gold) 55%, var(--rh-soc-gold-lo) 100%);
  box-shadow: 0 0 0 1px rgba(243, 221, 142, 0.25), 0 4px 14px rgba(212, 175, 55, 0.38);
  text-decoration: none;
  transform: translateY(-2px);
}

.rh-social .rh-social__link:focus-visible {
  outline: 2px solid var(--rh-soc-gold-hi);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rh-social .rh-social__link {
    transition: none;
  }

  .rh-social .rh-social__link:hover,
  .rh-social .rh-social__link:focus-visible {
    transform: none;
  }
}

/* Header row — fixed height (no layout shift), lives inside sticky .rh-chrome */
.rh-social-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem 0.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.6) 0%, rgba(5, 8, 15, 0.9) 100%);
}

/* Pill spans the same width as the slogan banner above (em tracks the banner font size). */
.rh-social--header {
  --rh-soc-size: 2.2rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  width: min(100%, 27em);
  padding: 0.3rem 0.5rem;
  font-size: clamp(0.98rem, 1.4vw, 1.14rem);
}

html[lang="en"] .rh-social--header {
  width: min(100%, 30.5em);
}

.rh-social--header .rh-social__item,
.rh-social--menu .rh-social__item {
  display: flex;
  justify-content: center;
}

.rh-social--header .rh-social__link,
.rh-social--menu .rh-social__link {
  width: min(100%, var(--rh-soc-size));
  height: auto;
  aspect-ratio: 1 / 1;
}

/* Mobile drawer block (hidden on desktop) */
.rh-nav__social {
  display: none;
}

/* Footer block */
.rh-footer__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.35rem;
}

.rh-footer__social-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: var(--rh-muted, #94a3b8);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rh-footer__social-title::before,
.rh-footer__social-title::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65));
}

.rh-footer__social-title::after {
  transform: scaleX(-1);
}

.rh-social--footer {
  --rh-soc-size: 2.025rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, var(--rh-soc-size)));
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.rh-social--footer .rh-social__item {
  display: flex;
  justify-content: center;
}

.rh-social--footer .rh-social__link {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 480px) {
  .rh-social--footer {
    gap: 0.3rem;
  }
}

@media (max-width: 768px) {
  /* Same side margins as the mobile slogan pill (15px) so both share one width */
  .rh-social-bar {
    padding: 0.4rem 15px 0.5rem;
  }

  .rh-social--header,
  html[lang="en"] .rh-social--header {
    --rh-soc-size: 2.3rem;
    width: 100%;
    padding: 0.28rem 0.4rem;
  }

  .rh-nav .rh-nav__social {
    display: block;
    margin-top: 0.55rem;
    padding: 0.85rem 0.5rem 0.2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
  }

  .rh-nav__social-title {
    margin: 0 0 0.65rem;
    text-align: center;
    color: var(--rh-soc-gold-hi, #f3dd8e);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
  }

  /* All 7 icons on one row, "Follow us" label precedes them */
  .rh-nav .rh-social--menu {
    /* scaled down 22%: 2.6rem -> 2.028rem, container 100% -> 78% */
    --rh-soc-size: 2.028rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.195rem;
    width: 78%;
    margin-inline: auto;
  }

  .rh-nav .rh-social--menu .rh-social__link {
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 50%;
    font-size: inherit;
  }

  .rh-nav .rh-social--menu .rh-social__link:hover,
  .rh-nav .rh-social--menu .rh-social__link:focus-visible {
    border-color: var(--rh-soc-gold-hi, #f3dd8e);
  }
}

@media (max-width: 340px) {
  .rh-social--header {
    --rh-soc-size: 2.1rem;
  }
}

/* Hero login button — sits directly under the audit box (.rh-hero-login*) */
.rh-hero-login {
  display: flex;
  justify-content: center;
  width: min(720px, 100%);
  margin: 1.1rem auto 0;
}

.rh-hero-login__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 15rem;
  min-height: 3rem;
  padding: 0.65rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.6);
  background: linear-gradient(145deg, rgba(20, 38, 66, 0.88) 0%, rgba(8, 16, 30, 0.95) 100%);
  color: #f0f9ff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 26px rgba(0, 0, 0, 0.38);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

html[lang="ar"] .rh-hero-login__btn {
  font-family: "Tajawal", var(--font-body-ar);
}

.rh-hero-login__ico {
  flex: 0 0 auto;
  color: #7dd3fc;
}

html[dir="rtl"] .rh-hero-login__ico {
  transform: scaleX(-1);
}

.rh-hero-login__btn:hover,
.rh-hero-login__btn:focus-visible {
  border-color: rgba(186, 230, 253, 0.95);
  background: linear-gradient(145deg, rgba(34, 62, 104, 0.92) 0%, rgba(12, 24, 44, 0.97) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 30px rgba(34, 211, 238, 0.22);
  text-decoration: none;
  transform: translateY(-1px);
}

.rh-hero-login__btn:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

.rh-hero-login__btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .rh-hero-login {
    width: 100%;
    margin-top: 0.95rem;
    box-sizing: border-box;
  }

  /* Mobile login button scaled down 10% (AR + EN) */
  .rh-hero-login__btn {
    width: 90%;
    max-width: 19.8rem;
    min-width: 0;
    min-height: 2.79rem;
    gap: 0.54rem;
    padding-inline: 1.125rem;
    font-size: clamp(0.855rem, 3.6vw, 0.945rem);
  }

  .rh-hero-login__ico {
    width: 1.01rem;
    height: 1.01rem;
  }

  /* AR mobile: the two top buttons stay on one row, scaled up 20% */
  html[lang="ar"] .rh-hero-actions .rh-hero-btn {
    min-height: 48px;
    padding-block: 0.6rem;
    padding-inline: 9.6px;
    font-size: clamp(0.936rem, 3.84vw, 1.056rem);
  }
}

/* Desktop: top buttons + login button scaled up 20%, top buttons shifted down 30px */
@media (min-width: 769px) {
  .rh-hero-actions {
    margin-top: 30px;
  }

  .rh-hero-actions .rh-hero-btn {
    min-height: 50.4px;
    padding: 0.66rem 1.5rem;
    font-size: 1.104rem;
  }

  .rh-hero-login__btn {
    min-width: 18rem;
    min-height: 3.6rem;
    gap: 0.72rem;
    padding: 0.78rem 2.28rem;
    font-size: 1.176rem;
  }

  .rh-hero-login__ico {
    width: 21.6px;
    height: 21.6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-hero-login__btn {
    transition: none;
  }

  .rh-hero-login__btn:hover,
  .rh-hero-login__btn:focus-visible {
    transform: none;
  }
}