[data-global-brand] {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  text-decoration: none;
}

.global-brand__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.global-brand__name {
  color: inherit;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.global-brand__tagline {
  margin-top: .18rem;
  color: var(--global-brand-tagline-color, #334155);
  font-size: clamp(.625rem, 1.1vw, .75rem);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

/* Header/footer shells in this project are dark (or overlay darkened hero
   media). Light surfaces can keep the dark default or opt in explicitly. */
#main-header,
.viewer-header,
[data-global-footer-brand] {
  --global-brand-tagline-color: #e2e8f0;
}

[data-brand-contrast="dark"] {
  --global-brand-tagline-color: #334155;
}

.global-brand__mark {
  display: grid;
  width: clamp(2.75rem, 5vw, 3rem);
  height: clamp(2.75rem, 5vw, 3rem);
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, .3);
  border-radius: .75rem;
  background: linear-gradient(145deg, #2563eb, #1e293b);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.global-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-brand-variant="compact"] { gap: .55rem; }
[data-brand-variant="compact"] .global-brand__mark { width: 2.35rem; height: 2.35rem; }
[data-brand-variant="compact"] .global-brand__name { font-size: .9rem; }
[data-brand-variant="compact"] .global-brand__tagline { font-size: .62rem; }

.social-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 auto 1.15rem;
}

.social-footer-link {
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 211, 238, .5);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, .88);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .08), 0 0 18px rgba(34, 211, 238, .08);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.social-footer-link:hover {
  transform: translateY(-2px);
  border-color: #22d3ee;
  background: rgba(30, 58, 138, .6);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .24), 0 0 22px rgba(34, 211, 238, .22);
}

.social-footer-link:focus-visible {
  outline: 3px solid rgba(34, 211, 238, .65);
  outline-offset: 3px;
}

.social-footer-link i {
  font-size: 1.08rem;
  line-height: 1;
}

.social-haraj-symbol {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
}

.global-footer-shell {
  padding: 2rem 1rem !important;
  border-top: 1px solid #0f172a !important;
  color: #64748b;
  background: #020617 !important;
  text-align: center;
}

[data-global-footer-brand] {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.global-footer-brand__identity {
  color: #f8fafc;
}

.global-footer-brand__copyright {
  margin: 0;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.6;
}

.global-footer-brand__year {
  font-family: "Roboto", sans-serif;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .social-footer-links {
    gap: .55rem;
  }

  .social-footer-link {
    width: 2.5rem;
    height: 2.5rem;
  }

  .global-footer-shell {
    padding: 1.75rem 1rem !important;
  }

  [data-global-footer-brand] {
    gap: .875rem;
  }
}

/* Shared public-header behavior. The contrast color aliases the approved Al-Oraini navy token. */
:root {
  --aloraini-brand-dark-blue: var(--aloraini-navy-800, #102a4b);
}

#main-header [data-public-nav] a {
  color: #fff !important;
}

#main-header [data-public-nav] a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
  text-underline-offset: .4em;
}

@media (max-width: 767px) {
  #main-header.public-header--flow {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  #main-header {
    background: rgba(3, 7, 18, .12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, .04) !important;
    transition: background .55s ease, border-color .55s ease, box-shadow .55s ease, backdrop-filter .55s ease;
  }

  #main-header.scrolled {
    background: rgba(3, 7, 18, .88) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: rgba(59, 130, 246, .3) !important;
    box-shadow: 0 14px 35px -18px rgba(0, 0, 0, .9), 0 0 22px -12px rgba(59, 130, 246, .25);
  }

  #main-header .global-brand__tagline { color: var(--global-brand-tagline-color) !important; }

  #main-header [data-public-nav] a {
    color: #fff !important;
  }

  #main-header [data-public-nav] a[aria-current="page"] {
    text-decoration-line: underline;
    text-decoration-color: #fff;
    text-decoration-thickness: 2px;
    text-underline-offset: .4em;
  }
}

@media (max-width: 360px) {
  #main-header.public-header--flow {
    padding-inline: .5rem !important;
  }

  #main-header.public-header--flow > div:first-child {
    gap: .125rem;
  }

  #main-header.public-header--flow > div:first-child > .flex.items-center.gap-2 {
    gap: .25rem;
  }

  #main-header.public-header--flow .share-header-btn,
  #main-header.public-header--flow .whatsapp-header-btn {
    padding-inline: .625rem !important;
  }
}
