/*
 * DrAlaa Clinic — Header V16 (16 Nov 2026)
 * Flat medical topbar, purposeful outline SVG icons, classic logo, EN control.
 * Scoped to the Arabic front page only by the MU loader body class.
 * The actual clinic details, links, Woodmart menus and images are untouched.
 */
body.dc16-active {
  --dc16-background:#123e35;
  --dc16-background-deep:#103a32;
  --dc16-white:#f7fcf8;
  --dc16-soft:#d9ebe0;
  --dc16-gold:#edc892;
  --dc16-mint:#8fe1c0;
  --dc16-sky:#a9ddf1;
}
body.dc16-active .whb-header .whb-top-bar {
  position:relative;
  background:linear-gradient(110deg,#113b32 0%,#174a3d 57%,#123d33 100%) !important;
  color:var(--dc16-white) !important;
  border:0 !important;
  border-bottom:1px solid rgba(226,242,231,.18) !important;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.035) !important;
}
body.dc16-active .whb-header .whb-top-bar .container {
  max-width:1480px !important;
  width:calc(100% - 48px) !important;
  box-sizing:border-box;
  padding:6px 0 !important;
}
body.dc16-active .whb-header .whb-top-bar .whb-top-bar-inner.dc16-topbar {
  box-sizing:border-box;
  display:grid !important;
  direction:rtl;
  grid-template-columns:minmax(74px,88px) minmax(0,1fr) minmax(155px,190px) 66px;
  min-height:79px;
  gap:clamp(12px,1.9vw,31px);
  align-items:center !important;
  justify-content:stretch !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar > .whb-col-left,
body.dc16-active .whb-header .whb-top-bar .dc16-topbar > .whb-col-center,
body.dc16-active .whb-header .whb-top-bar .dc16-topbar > .whb-col-right {
  box-sizing:border-box;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  flex:none !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar > .whb-col-left {
  display:flex !important;justify-content:center !important;align-items:center !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar > .whb-col-center {
  display:grid !important;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  align-items:center !important;
  gap:clamp(10px,2.3vw,35px);
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar > .whb-col-right {
  display:flex !important;align-items:center !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .info-box-wrapper {
  box-sizing:border-box;
  width:100% !important;
  max-width:100%;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
}
/* Important: text sits on the header itself. No information cards. */
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box {
  box-sizing:border-box;
  display:flex !important;
  flex-direction:row !important;
  direction:rtl;
  align-items:center !important;
  gap:11px;
  min-height:58px !important;
  min-width:0;
  max-width:100%;
  width:100%;
  margin:0 !important;
  padding:0 !important;
  background:none !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--dc16-white) !important;
  text-align:right !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .box-icon-wrapper {
  display:grid !important;
  place-items:center;
  order:0;
  flex:0 0 43px !important;
  width:43px !important;
  height:45px !important;
  min-width:43px !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .info-box-icon {
  display:grid !important;
  place-items:center;
  box-sizing:border-box;
  width:43px !important;
  height:43px !important;
  max-width:43px !important;
  margin:0 !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .info-svg-wrapper {
  position:relative;
  display:grid !important;
  place-items:center;
  width:43px !important;
  height:43px !important;
  max-width:43px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible;
}
/* Original SVG asset is the fallback; only hidden when our inline SVG exists. */
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .info-svg-wrapper img {
  display:block;
  width:31px !important;
  height:31px !important;
  max-width:31px !important;
  max-height:31px !important;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(88%) sepia(18%) saturate(690%) hue-rotate(112deg);
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-icon-ready > img {
  display:none !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar svg.dc16-icon {
  width:35px;
  height:35px;
  display:block;
  color:var(--dc16-mint);
  overflow:visible;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.10));
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-hours svg.dc16-icon {
  color:var(--dc16-gold);
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-location svg.dc16-icon {
  color:var(--dc16-mint);
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-phone svg.dc16-icon {
  color:var(--dc16-sky);
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .info-box-content {
  box-sizing:border-box;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  gap:3px;
  margin:0 !important;
  padding:0 !important;
  text-align:right !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .info-box-subtitle {
  display:none !important; /* Woodmart repeats the title as a subtitle */
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .info-box-title {
  margin:0 !important;
  color:var(--dc16-white) !important;
  font-family:"Almarai",Tahoma,Arial,sans-serif;
  font-size:clamp(12.5px,.95vw,15px) !important;
  line-height:1.5 !important;
  font-weight:800 !important;
  text-align:right !important;
  text-shadow:none !important;
  opacity:1 !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .info-box-inner,
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .info-box-inner p {
  margin:0 !important;
  padding:0 !important;
  color:var(--dc16-soft) !important;
  font-family:"Almarai",Tahoma,Arial,sans-serif;
  font-size:clamp(10.7px,.81vw,12.4px) !important;
  line-height:1.75 !important;
  font-weight:500;
  text-align:right !important;
  text-shadow:none !important;
  opacity:1 !important;
  overflow-wrap:normal;
  word-break:normal;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-hours .info-box-title {
  color:#ffe1b3 !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-hours .info-box-inner p {
  color:#f3f7ef !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-phone .info-box-inner p {
  direction:ltr !important;
  unicode-bidi:plaintext;
  text-align:right !important;
  font-size:clamp(12px,1vw,14.5px) !important;
  color:#fbfffc !important;
  font-weight:800;
}
/* Gold is for tiny hierarchy accents, not low-contrast body text. */
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-hours .info-box-title::after {
  content:"";
  display:block;
  width:33px;
  height:1.5px;
  margin:4px 0 0 auto;
  border-radius:3px;
  background:var(--dc16-gold);
  opacity:.85;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-location .info-box-title::after {
  content:none !important;
}
/* Classic doctor-logo marker: slightly prominent, no giant 3D card. */
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .site-logo {
  position:relative;
  isolation:isolate;
  box-sizing:border-box;
  display:flex !important;
  justify-content:center;
  align-items:center;
  width:77px !important;
  height:74px !important;
  padding:5px !important;
  margin:0 !important;
  border:1px solid rgba(211,179,116,.75) !important;
  border-radius:14px !important;
  background:linear-gradient(155deg,#fffef9,#f1f8f3) !important;
  box-shadow:0 6px 16px rgba(5,29,24,.16),inset 0 1px 0 rgba(255,255,255,.85) !important;
  transform:none !important;
  animation:dc16LogoReveal .75s ease-out both;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .site-logo::before {
  content:none !important;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .site-logo::after {
  content:"";position:absolute;bottom:2px;left:26%;width:48%;height:2px;
  background:linear-gradient(90deg,transparent,#ad874f,transparent);
  border-radius:8px;pointer-events:none;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .site-logo .wd-main-logo {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  width:100%;
  height:100%;
  z-index:1;
}
body.dc16-active .whb-header .whb-top-bar .dc16-topbar .site-logo .wd-main-logo img {
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:65px !important;
  max-height:61px !important;
  object-fit:contain;
  margin:auto;
  filter:contrast(1.07) saturate(1.04) !important;
}
/* Language selection at the left edge of the RTL top strip. */
body.dc16-active .whb-header .whb-top-bar .dc16-language-slot {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:66px;
  min-width:0;
  grid-column:4;
  justify-self:end;
  direction:ltr;
}
body.dc16-active .whb-header .whb-top-bar .dc16-language {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:35px;
  padding:6px 9px;
  color:#f6fbf8 !important;
  border:1px solid rgba(225,241,231,.36);
  border-radius:9px;
  background:rgba(255,255,255,.055);
  font:800 12px/1.4 Arial,Tahoma,sans-serif;
  text-decoration:none !important;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
body.dc16-active .whb-header .whb-top-bar .dc16-language svg {
  width:15px;height:15px;fill:none;stroke:#f1c990;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
body.dc16-active .whb-header .whb-top-bar .dc16-language:focus-visible,
body.dc16-active .whb-header .whb-top-bar .dc16-topbar a:focus-visible {
  outline:2px solid #f3dba8 !important;outline-offset:3px !important;
}
@media(hover:hover) and (pointer:fine) {
  body.dc16-active .whb-header .whb-top-bar .dc16-language:hover {
    color:#133f34 !important;background:#f7e9cb;
    border-color:#f0d7a3;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-language:hover svg {
    stroke:#996d31;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar .site-logo:hover {
    box-shadow:0 8px 20px rgba(5,29,24,.2),inset 0 1px 0 white !important;
    border-color:#d8b777 !important;
  }
}
/* Short, periodic micro-interactions only. */
body.dc16-active .whb-header .whb-top-bar .dc16-phone .dc16-phone-shape {
  transform-origin:48% 50%;transform-box:fill-box;
  animation:dc16PhoneRing 20s ease-in-out infinite;
}
body.dc16-active .whb-header .whb-top-bar .dc16-location .dc16-location-shape {
  transform-origin:center 78%;transform-box:fill-box;
  animation:dc16LocationBounce 25s ease-in-out infinite;
}
body.dc16-active .whb-header .whb-top-bar .dc16-location .dc16-ripple {
  transform-origin:center;transform-box:fill-box;
  opacity:0;animation:dc16LocationRipple 25s ease-out infinite;
}
body.dc16-active .whb-header .whb-top-bar .dc16-hours .dc16-hour-hand,
body.dc16-active .whb-header .whb-top-bar .dc16-hours .dc16-minute-hand {
  transform-box:view-box;transform-origin:24px 24px;
}
body.dc16-active .whb-header .whb-top-bar .dc16-hours .dc16-hour-hand {
  animation:dc16HourTick 28s ease-in-out infinite;
}
body.dc16-active .whb-header .whb-top-bar .dc16-hours .dc16-minute-hand {
  animation:dc16MinuteTick 28s ease-in-out infinite;
}
@keyframes dc16PhoneRing {
  0%,1.5%,2.5%,3.5%,5.5%,100% {transform:rotate(0)}
  1%,3%,5% {transform:rotate(-12deg)}
  2%,4% {transform:rotate(12deg)}
}
@keyframes dc16LocationBounce {
  0%,1%,4%,7%,100% {transform:translateY(0)}
  2.5% {transform:translateY(-5px)}
  5.5% {transform:translateY(-2px)}
}
@keyframes dc16LocationRipple {
  0%,1%,8%,100% {opacity:0;transform:scale(.7)}
  3% {opacity:.65;transform:scale(.8)}
  7% {opacity:0;transform:scale(1.8)}
}
@keyframes dc16HourTick {
  0%,2%,100% {transform:rotate(0deg)}
  5%,8% {transform:rotate(13deg)}
  11% {transform:rotate(0deg)}
}
@keyframes dc16MinuteTick {
  0%,2%,100% {transform:rotate(0deg)}
  5%,8% {transform:rotate(55deg)}
  11% {transform:rotate(0deg)}
}
@keyframes dc16LogoReveal {
  from {opacity:0;transform:translateY(7px) scale(.965)}
  to {opacity:1;transform:translateY(0) scale(1)}
}
/* Woodmart hides this desktop strip on mobile; never force it open. */
@media(min-width:1025px) and (max-width:1279px) {
  body.dc16-active .whb-header .whb-top-bar .container {width:calc(100% - 28px) !important}
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar {
    grid-template-columns:76px minmax(0,1fr) 145px 57px;
    gap:11px;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar > .whb-col-center {
    gap:12px;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box {
    gap:6px;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .box-icon-wrapper {
    flex-basis:34px !important;width:34px !important;min-width:34px !important;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar .wd-info-box .info-svg-wrapper {
    width:34px !important;height:38px !important;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar svg.dc16-icon {
    width:29px;height:29px;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar .site-logo {
    width:72px !important;height:69px !important;
  }
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar .dc16-language-slot {width:57px}
}
@media(max-width:1024px) {
  body.dc16-active .whb-header .whb-top-bar.whb-hidden-mobile {display:none !important}
}
/* Accessible motion policy and no animation for touch-only devices. */
@media(prefers-reduced-motion:reduce) {
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar .site-logo,
  body.dc16-active .whb-header .whb-top-bar .dc16-topbar svg *,
  body.dc16-active .whb-header .whb-top-bar .dc16-language {
    animation:none !important;transition:none !important;transform:none !important;
  }
}
/* V40: mobile EN switch in the previously empty left-side header column. */
body.dc16-active .whb-header .whb-general-header .dc16-mobile-language {
  display:none;
}
@media(max-width:1024px) {
  body.dc16-active .whb-header .whb-general-header .whb-mobile-right {
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center!important;
    min-width:41px!important;
  }
  body.dc16-active .whb-header .whb-general-header a.dc16-mobile-language {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    width:42px!important;
    min-width:42px!important;
    height:36px!important;
    min-height:36px!important;
    padding:6px 7px!important;
    margin:0!important;
    background:#f4f8f3!important;
    border:1px solid #bd9d6e!important;
    border-radius:9px!important;
    box-shadow:0 2px 8px rgba(7,56,40,.09)!important;
    color:#135441!important;
    font:800 12px/1 Arial,Tahoma,sans-serif!important;
    letter-spacing:.2px!important;
    text-decoration:none!important;
    direction:ltr!important;
    touch-action:manipulation;
  }
  body.dc16-active .whb-header .whb-general-header a.dc16-mobile-language:focus-visible {
    outline:3px solid #c29a60!important;
    outline-offset:3px!important;
  }
}
/* Avoid layout disruption on unrecognized header variants. */
