/* Al Arwa 2.2.0 — header refinements: announcement marquee + centred logo. Loaded sitewide. */

/* ---------- Announcement marquee (top bar) ---------- */
.whb-top-bar-inner.arwa-has-marquee > .whb-column{display:none!important}
.whb-top-bar-inner.arwa-has-marquee{justify-content:center}
.whb-top-bar .whb-column:has(> .arwa-marquee),
.whb-top-bar .whb-column:has(.wd-header-text .arwa-marquee){flex:1 1 100%;max-width:100%;min-width:0}
.arwa-marquee{
  --mq-gap:34px;
  position:relative;flex:1 1 100%;min-width:0;width:100%;overflow:hidden;
  font:500 12px/1.2 Inter,Arial,sans-serif;letter-spacing:.045em;color:#EFE8DA;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);
}
.arwa-mq-track{display:flex;width:max-content;will-change:transform;animation:arwaMarquee var(--arwa-mq-dur,38s) linear infinite}
.arwa-marquee:hover .arwa-mq-track,
.arwa-marquee:focus-within .arwa-mq-track{animation-play-state:paused}
.arwa-mq-group{display:flex;flex-shrink:0;align-items:center;margin:0!important;padding:0!important;list-style:none!important}
.arwa-mq-item{display:flex;align-items:center;margin:0!important;padding:0!important;white-space:nowrap;list-style:none!important}
.arwa-mq-item::before{display:none!important}
.arwa-mq-item > a,.arwa-mq-item > span:first-child{display:inline-block;line-height:30px;color:inherit!important;text-decoration:none!important}
.arwa-mq-item strong{font-weight:600;color:#fff}
.arwa-mq-item > a{line-height:1.3;border-bottom:1px solid rgba(205,176,122,.55);padding:1px 0}
.arwa-mq-item > a:hover,.arwa-mq-item > a:focus-visible{color:#E5C996!important;border-color:#E5C996}
.arwa-mq-sep{display:inline-block;width:6px;height:6px;margin:0 calc(var(--mq-gap) / 2);background:#CDB07A;transform:rotate(45deg);border-radius:1px;opacity:.85}
@keyframes arwaMarquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@media (max-width:640px){.arwa-marquee{font-size:11.5px;--mq-gap:26px}}
@media (prefers-reduced-motion:reduce){
  .arwa-mq-track{animation:none!important;width:100%;justify-content:center}
  .arwa-mq-group[aria-hidden="true"]{display:none!important}
  .arwa-marquee{overflow-x:auto;-webkit-mask-image:none;mask-image:none;scrollbar-width:none}
  .arwa-marquee::-webkit-scrollbar{display:none}
}

/* ---------- Centred logo (desktop) ----------
   Applies only while the Header Builder still has the logo in the LEFT column, so it switches itself off
   if the logo is later moved to the centre column in the Header Builder. */
@media (min-width:1025px){
  .whb-header_arwa_main .whb-general-header-inner:has(> .whb-col-left .site-logo){
    display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:32px;
  }
  .whb-header_arwa_main .whb-general-header-inner:has(> .whb-col-left .site-logo) > .whb-col-left{grid-column:2;grid-row:1;justify-self:center;justify-content:center;width:auto;max-width:none;margin-inline:0}
  .whb-header_arwa_main .whb-general-header-inner:has(> .whb-col-left .site-logo) > .whb-col-center{grid-column:1;grid-row:1;justify-self:start;justify-content:flex-start;width:100%;max-width:400px;min-width:0;margin-inline:0}
  .whb-header_arwa_main .whb-general-header-inner:has(> .whb-col-left .site-logo) > .whb-col-right{grid-column:3;grid-row:1;justify-self:end;justify-content:flex-end;min-width:0;margin-inline:0}
  .whb-header_arwa_main .whb-general-header-inner:has(> .whb-col-left .site-logo) > .whb-col-center .wd-search-form{width:100%;max-width:400px;margin:0}
  .whb-header_arwa_main .whb-general-header-inner:has(> .whb-col-left .site-logo) .site-logo{padding:0;text-align:center}
  .whb-header_arwa_main .whb-general-header-inner:has(> .whb-col-left .site-logo) .site-logo img{margin-inline:auto}
}

/* ---------- Logo slot sized for the final Concept C header lockups ----------
   Header height is unchanged (desktop row 113px, mobile row 64px); legibility comes from a tighter logo:
   WoodMart pads logo images 5px top/bottom (border-box), so padding is zeroed to let the lockup fill its slot.
   Desktop: compact horizontal lockup (emblem + AL ARWA / ISLAMIC STORE), viewBox cropped to the ink, 96px tall (~368px wide).
   Mobile: compact leafless lockup 54px tall (~178px wide) inside the 64px row.
   Sticky clone: same lockup at 50px. Matching Header Builder values are listed in INSTALL-2.2.0.md. */
:root:has(.whb-header_arwa_main){--arwa-logo-h:96px;--arwa-logo-sm-h:54px;--arwa-logo-sticky-h:50px;--wd-header-general-h:113px;--wd-header-general-sm-h:64px}
@media (min-width:1025px){
  .whb-header_arwa_main .whb-general-header .whb-flex-row{height:var(--wd-header-general-h);max-height:none}
  .whb-header_arwa_main .whb-general-header .whb-visible-lg .site-logo{padding-block:0}
  .whb-header_arwa_main .whb-general-header .whb-visible-lg .site-logo img{height:var(--arwa-logo-h);padding:0!important;max-height:var(--arwa-logo-h);width:auto!important;max-width:none!important;object-fit:contain}
  .whb-header_arwa_main .whb-general-header .whb-visible-lg .site-logo .wd-logo{display:block;line-height:0;padding:0}
}
@media (max-width:1024px){
  .whb-header_arwa_main .whb-general-header .whb-flex-row{height:var(--wd-header-general-sm-h)}
  .whb-header_arwa_main .whb-general-header .whb-hidden-lg .site-logo{padding-block:0}
  .whb-header_arwa_main .whb-general-header .whb-hidden-lg .site-logo .wd-logo{display:block;line-height:0;padding:0}
  .whb-header_arwa_main .whb-general-header .whb-hidden-lg .site-logo img{height:var(--arwa-logo-sm-h);padding:0!important;max-height:var(--arwa-logo-sm-h);width:auto!important;max-width:min(178px,calc(100vw - 190px))!important;object-fit:contain}
}
.whb-clone .site-logo img,.whb-sticked .site-logo img{padding:0!important;height:var(--arwa-logo-sticky-h,50px)!important;max-height:var(--arwa-logo-sticky-h,50px)!important;width:auto!important}
