/* Bidayat Premium Phase 04 – Header & Footer, Preview ONLY
   No public-page side effects; target only .bdp-preview.
*/
body.bdp-preview{--bdp-header-height:82px}
body.bdp-preview #masthead{position:relative;z-index:900}
body.bdp-preview #masthead #ast-desktop-header .ast-above-header-wrap{position:relative}
body.bdp-preview #masthead #ast-desktop-header .ast-above-header-bar{
  min-height:var(--bdp-header-height)!important;
  background:linear-gradient(112deg,#08182d 0%,#102744 64%,#132d4a 100%)!important;
  border:0!important;border-bottom:1px solid rgba(232,202,144,.22)!important;
  transition:box-shadow .35s var(--bdp-ease),background .35s var(--bdp-ease);
}
body.bdp-preview #masthead #ast-desktop-header .site-above-header-wrap{
  max-width:1500px;width:min(100%,calc(100% - 42px));margin-inline:auto;padding:0!important
}
body.bdp-preview #masthead #ast-desktop-header .ast-builder-grid-row{
  display:flex!important;flex-direction:row-reverse;align-items:center;
  justify-content:space-between;gap:clamp(14px,2vw,30px);
}
body.bdp-preview #masthead #ast-desktop-header .site-header-above-section-left{
  flex:1 1 auto;min-width:0;justify-content:flex-start
}
body.bdp-preview #masthead #ast-desktop-header .site-header-above-section-right{
  flex:0 0 auto;min-width:116px;justify-content:flex-end;display:flex
}
body.bdp-preview #masthead #ast-desktop-header .bdp-desktop-brand{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  padding:5px 2px;transition:transform .45s var(--bdp-ease)
}
body.bdp-preview #masthead #ast-desktop-header .bdp-desktop-brand:hover{transform:translateY(-2px)}
body.bdp-preview #masthead #ast-desktop-header .bdp-desktop-brand img{
  display:block;width:auto;height:auto;max-height:57px;max-width:130px;object-fit:contain
}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1{
  display:flex!important;align-items:center;gap:clamp(0px,.5vw,8px);flex-wrap:nowrap
}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li{position:relative;flex:0 0 auto}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li>.menu-link{
  position:relative;display:inline-flex;align-items:center;white-space:nowrap;
  min-height:54px;padding:12px clamp(7px,.9vw,15px)!important;
  color:rgba(255,255,255,.89)!important;font-family:Almarai,Cairo,Tahoma,sans-serif;
  font-size:clamp(11px,.95vw,14px);font-weight:700;line-height:1.3;
  transition:color .25s,transform .3s var(--bdp-ease)
}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li>.menu-link::after{
  content:"";position:absolute;bottom:5px;right:12px;left:12px;height:2px;
  background:linear-gradient(90deg,transparent,#dec28d,transparent);
  transform:scaleX(0);transition:transform .35s var(--bdp-ease)
}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li:hover>.menu-link::after,
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li.current-menu-item>.menu-link::after,
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li.current-menu-ancestor>.menu-link::after{transform:scaleX(1)}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li:hover>.menu-link,
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li:focus-within>.menu-link{
  color:var(--bdp-gold-light)!important;transform:translateY(-1px)
}
/* Existing WordPress/Astra submenu structure and semantics remain untouched. */
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li>.sub-menu{
  min-width:255px;padding:10px!important;
  background:rgba(255,255,255,.985)!important;
  border:1px solid rgba(17,47,74,.09)!important;
  border-radius:18px!important;box-shadow:0 26px 68px rgba(8,25,45,.20)!important;
  backdrop-filter:blur(18px);
  transform-origin:top center;
}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1 .sub-menu .menu-link{
  padding:11px 13px!important;margin:2px 0;border-radius:10px;
  font-size:13px;font-weight:700;line-height:1.7;color:#20364d!important;
  transition:background-color .22s,color .22s,transform .22s
}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1 .sub-menu .menu-link:hover,
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1 .sub-menu .menu-link:focus-visible{
  background:#f3f6fa!important;color:#0b3b73!important;transform:translateX(-3px)
}
/* Last contact link is treated as the primary header CTA. */
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li:last-child>.menu-link{
  color:#11253d!important;background:linear-gradient(135deg,#efddbb,#cba76d)!important;
  padding:13px 19px!important;border-radius:12px;font-weight:900;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  transition:transform .3s var(--bdp-ease),box-shadow .3s var(--bdp-ease)
}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li:last-child>.menu-link::after{display:none}
body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li:last-child>.menu-link:hover{
  transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.2)
}
body.bdp-preview.bdp-scrolled #masthead #ast-desktop-header .ast-above-header-bar{
  box-shadow:0 15px 40px rgba(4,18,32,.2)!important
}
/* Mobile – keep Astra's native menu toggle/dropdown behavior. */
body.bdp-preview #masthead #ast-mobile-header .ast-primary-header-bar{
  background:rgba(9,26,48,.98)!important;min-height:68px!important;
  border-bottom:1px solid rgba(213,179,121,.2)!important;
  box-shadow:0 12px 32px rgba(5,20,40,.1)
}
body.bdp-preview #masthead #ast-mobile-header .ast-builder-grid-row{
  min-height:68px;align-items:center;gap:10px
}
body.bdp-preview #masthead #ast-mobile-header .site-logo-img img{
  max-height:48px;max-width:125px;object-fit:contain
}
body.bdp-preview #masthead #ast-mobile-header .main-header-menu-toggle{
  width:45px;height:45px;min-width:45px;min-height:45px;display:inline-flex;align-items:center;
  justify-content:center;color:#ead6af!important;border:1px solid rgba(232,209,167,.3);
  border-radius:12px;background:rgba(255,255,255,.07);
  transition:background .24s,border-color .24s,transform .24s
}
body.bdp-preview #masthead #ast-mobile-header .main-header-menu-toggle:hover{
  background:rgba(255,255,255,.13);border-color:rgba(232,209,167,.6)
}
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content{
  background:#fff!important;max-height:calc(100dvh - 76px);
  overflow-y:auto;overscroll-behavior:contain;
  box-shadow:0 22px 40px rgba(7,22,40,.15);
  scrollbar-width:thin
}
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content .main-header-menu{
  padding:12px 15px 20px
}
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content .menu-link{
  color:#233950!important;min-height:47px;line-height:1.7;
  font-size:14px;font-weight:750;
  padding:11px 15px!important;border-radius:10px;
  transition:background .25s,color .25s
}
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content .menu-link:hover,
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content .current-menu-item>.menu-link{
  color:#0e3e70!important;background:#f3f7fc
}
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content .sub-menu{
  padding:4px 11px 12px!important;border:0!important;
  border-inline-start:2px solid rgba(201,166,107,.35)!important;
  background:#f9fafc!important
}
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content .ast-menu-toggle{
  min-width:42px;min-height:42px;border-radius:10px
}
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content .main-header-menu>li:last-child>.menu-link{
  background:linear-gradient(125deg,#e8d0a5,#c9a66b)!important;color:#11263f!important;
  text-align:center;display:flex;justify-content:center;margin-top:13px;font-weight:900
}
body.bdp-preview #masthead #ast-mobile-header .ast-mobile-header-content .main-header-menu>li:last-child>.menu-link:hover{
  background:#f1dfbc!important
}
/* Server-supplied footer block, scoped to preview and to existing Astra footer. */
body.bdp-preview #colophon.bdp-has-footer{
  position:relative;color:#e8eef5;background:#091b32;
  border-top:1px solid rgba(232,208,167,.21);isolation:isolate
}
body.bdp-preview #colophon.bdp-has-footer::before{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 10% 5%,rgba(201,166,107,.11),transparent 50%),
             radial-gradient(ellipse at 86% 77%,rgba(44,95,150,.16),transparent 44%)
}
body.bdp-preview .bdp-footer-shell{
  width:min(1320px,calc(100% - 48px));margin-inline:auto;
  padding:clamp(55px,6vw,92px) 0 26px;direction:rtl;font-family:Almarai,Cairo,Tahoma,sans-serif
}
body.bdp-preview .bdp-footer-cta{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  gap:25px;border:1px solid rgba(231,199,143,.22);
  border-radius:25px;padding:clamp(22px,3vw,39px);
  background:linear-gradient(110deg,rgba(22,53,87,.84),rgba(10,28,52,.9));
  box-shadow:0 22px 45px rgba(0,0,0,.1);
  margin-bottom:clamp(40px,6vw,75px);overflow:hidden
}
body.bdp-preview .bdp-footer-cta .bdp-eyebrow{
  display:block;color:var(--bdp-gold-light);font-size:12px;font-weight:800;margin-bottom:10px;letter-spacing:.05em
}
body.bdp-preview .bdp-footer-cta h2{
  margin:0 0 12px;color:#fff;font-size:clamp(25px,3vw,40px);font-weight:900;line-height:1.42
}
body.bdp-preview .bdp-footer-cta p{margin:0;line-height:1.9;color:#c6d1dd;font-size:14px}
body.bdp-preview .bdp-footer-cta>a{
  display:inline-flex;gap:10px;align-items:center;justify-content:center;
  min-height:54px;padding:13px 23px;white-space:nowrap;border-radius:12px;
  color:#10243b!important;background:linear-gradient(135deg,#f0dfbd,#cca86f);
  font-weight:900;font-size:14px;text-decoration:none;
  transition:transform .3s var(--bdp-ease),box-shadow .3s
}
body.bdp-preview .bdp-footer-cta>a:hover{transform:translateY(-4px);box-shadow:0 15px 32px rgba(0,0,0,.2)}
body.bdp-preview .bdp-footer-grid{
  display:grid;grid-template-columns:minmax(260px,1.55fr) repeat(3,minmax(155px,1fr));
  column-gap:clamp(20px,3vw,55px);row-gap:35px;align-items:start
}
body.bdp-preview .bdp-footer-brand>a{display:inline-flex;align-items:center;gap:14px;text-decoration:none;color:#fff}
body.bdp-preview .bdp-footer-brand img{height:62px;width:auto;max-width:150px;object-fit:contain}
body.bdp-preview .bdp-footer-brand p{max-width:380px;margin:18px 0 24px;line-height:2;color:#aebdd1;font-size:13px}
body.bdp-preview .bdp-footer-kicker{font-size:11px;color:#d2ac72;letter-spacing:.08em;display:block}
body.bdp-preview .bdp-footer-brand strong{display:block;color:#fff;font-size:18px;line-height:1.65;font-weight:900}
body.bdp-preview .bdp-footer-col h3{
  margin:8px 0 19px;padding-bottom:13px;border-bottom:1px solid rgba(239,222,187,.12);
  color:#fff;font-size:16px;font-weight:900;line-height:1.5
}
body.bdp-preview .bdp-footer-col ul{list-style:none!important;padding:0!important;margin:0!important}
body.bdp-preview .bdp-footer-col li{margin:0!important;padding:0!important}
body.bdp-preview .bdp-footer-col a{
  position:relative;display:inline-flex;align-items:center;min-height:36px;
  padding:5px 0;color:#aebfd2!important;font-size:13px;font-weight:600;
  text-decoration:none;line-height:1.85;
  transition:color .22s,transform .22s
}
body.bdp-preview .bdp-footer-col a:hover{color:#f1dcae!important;transform:translateX(-4px)}
body.bdp-preview .bdp-footer-col a:focus-visible,
body.bdp-preview .bdp-footer-brand a:focus-visible,
body.bdp-preview .bdp-footer-cta a:focus-visible{outline:3px solid #eac891;outline-offset:4px}
body.bdp-preview .bdp-footer-bottom{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;
  margin-top:60px;padding-top:25px;border-top:1px solid rgba(231,199,143,.14);
  font-size:12px;color:#aebfd0;line-height:1.8
}
body.bdp-preview .bdp-footer-bottom a{color:#d5bb8b!important;text-decoration:none}
body.bdp-preview .bdp-footer-bottom a:hover{text-decoration:underline}
@media(min-width:922px) and (max-width:1260px){
 body.bdp-preview #masthead #ast-desktop-header .site-above-header-wrap{width:calc(100% - 24px)}
 body.bdp-preview #masthead #ast-desktop-header .site-header-above-section-right{min-width:80px}
 body.bdp-preview #masthead #ast-desktop-header .bdp-desktop-brand img{max-width:95px;max-height:48px}
 body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li>.menu-link{padding-inline:6px!important;font-size:11px}
 body.bdp-preview #masthead #ast-desktop-header #ast-hf-menu-1>li:last-child>.menu-link{padding-inline:10px!important}
}
@media(max-width:1060px){
 body.bdp-preview .bdp-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.bdp-preview .bdp-footer-brand{grid-column:1 / -1}
 body.bdp-preview .bdp-footer-brand p{max-width:650px}
}
@media(max-width:767px){
 body.bdp-preview .bdp-footer-shell{width:calc(100% - 34px);padding:55px 0 22px}
 body.bdp-preview .bdp-footer-cta{grid-template-columns:minmax(0,1fr);gap:21px;margin-bottom:44px;border-radius:21px;padding:24px 20px}
 body.bdp-preview .bdp-footer-cta h2{font-size:clamp(24px,7vw,33px)}
 body.bdp-preview .bdp-footer-cta>a{width:100%;min-height:52px}
 body.bdp-preview .bdp-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:27px 18px}
 body.bdp-preview .bdp-footer-brand{grid-column:1/-1}
 body.bdp-preview .bdp-footer-col:last-child{grid-column:1/-1}
 body.bdp-preview .bdp-footer-col h3{margin-bottom:12px;font-size:15px}
 body.bdp-preview .bdp-footer-col a{font-size:12px;min-height:36px}
 body.bdp-preview .bdp-footer-bottom{margin-top:40px;gap:10px}
}
@media(max-width:380px){
 body.bdp-preview .bdp-footer-grid{grid-template-columns:minmax(0,1fr)}
 body.bdp-preview .bdp-footer-col:last-child{grid-column:auto}
 body.bdp-preview .bdp-footer-brand img{height:54px}
}
/* Reveal is progressive and never hides footer content when JS is unavailable. */
body.bdp-preview #colophon .bdp-footer-col.bdp-p4-ready{
  transform:translate3d(0,12px,0);
  transition:transform .78s var(--bdp-ease-soft);
  transition-delay:var(--bdp-p4-delay,0ms);
}
body.bdp-preview #colophon .bdp-footer-col.bdp-p4-ready.bdp-p4-appeared{
  transform:translate3d(0,0,0);
}
@media(prefers-reduced-motion:reduce){
 body.bdp-preview #masthead *,body.bdp-preview .bdp-footer-shell *{animation:none!important;transition:none!important;transform:none!important}
}
