/*
 * Pandit Shyam Sharma Theme v1.1.84
 * Inner-page header contrast & responsive alignment.
 * Homepage's hero-overlaid glass header remains unchanged.
 * Existing ticker, optional booking info, controls, menu and URLs remain intact.
 */

/* Inner pages have light content behind the transparent home-style glass header.
   Give that glass the same dark devotional environment as the homepage hero. */
body:not(.home):not(.page-template-template-homepage) .site-header.fx-header.pj-header-premium {
  background:linear-gradient(180deg,#4a1120 0%,#2a0711 100%)!important;
  border-bottom:1px solid rgba(229,178,81,.17)!important;
  box-shadow:0 8px 22px rgba(36,6,14,.15)!important;
  margin:0!important;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__inner::before {
  background:linear-gradient(110deg,rgba(29,5,13,.94),rgba(57,12,26,.92) 56%,rgba(29,5,13,.94))!important;
  border-color:rgba(244,202,115,.28)!important;
  box-shadow:0 14px 34px rgba(20,2,8,.22),inset 0 1px 0 rgba(255,227,161,.06)!important;
  backdrop-filter:blur(12px) saturate(1.06);
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium.is-scrolled .pj-header-premium__inner::before{
  background:linear-gradient(110deg,rgba(23,4,11,.98),rgba(48,8,21,.98),rgba(23,4,11,.98))!important;
  border-color:rgba(244,202,115,.31)!important;
}

/* Give the inner-page bar the same generous horizontal alignment as home. */
@media(min-width:1281px){
  body:not(.home):not(.page-template-template-homepage) .pj-top-info__inner,
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__inner{
    width:min(calc(100% - 64px),1560px)!important;
    max-width:1560px!important;
    margin-inline:auto!important;
  }
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__inner{
  grid-template-columns:minmax(255px,1fr) max-content minmax(245px,.8fr)!important;
  gap:clamp(10px,1.15vw,22px)!important;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-brand-premium{
  min-width:0;
  padding-left:clamp(12px,1.25vw,24px)!important;
  gap:clamp(9px,1vw,16px);
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-brand-premium__logo{
  min-width:0;
  overflow:visible;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-brand-premium__copy strong{
  color:#ffe29a!important;
  font-size:clamp(.96rem,1.05vw,1.16rem)!important;
  line-height:1.18;
  letter-spacing:.006em;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-brand-premium__copy small{
  color:#efcb89!important;
  font-size:clamp(.66rem,.7vw,.77rem)!important;
  line-height:1.4;
  opacity:.94;
}

/* Remove the tiny old .fx-nav font and CTA sizing, only on inner pages. */
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-premium-nav{
  margin:0;
  min-width:0;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-premium-nav .primary-menu{
  gap:clamp(1px,.28vw,5px)!important;
  flex-wrap:nowrap!important;
  justify-content:center;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-premium-nav .primary-menu>li>a{
  min-height:42px!important;
  padding:9px clamp(9px,.8vw,13px)!important;
  font-size:clamp(.81rem,.8vw,.94rem)!important;
  line-height:1.3!important;
  font-weight:650!important;
  border-bottom:1px solid transparent;
  color:#fff2d2!important;
  white-space:nowrap;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-premium-nav .primary-menu>li>a:hover,
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-premium-nav .primary-menu>li.current-menu-item>a,
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-premium-nav .primary-menu>li.current_page_item>a{
  color:#ffdf8d!important;
  border-color:rgba(245,194,86,.45);
  background:rgba(255,222,142,.10)!important;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__actions{
  justify-self:end;
  gap:10px!important;
  min-width:0;
  padding-right:clamp(12px,1.1vw,20px)!important;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__actions .language-switcher{
  flex-shrink:0;
  background:rgba(255,245,213,.08)!important;
  border-color:rgba(255,226,168,.33)!important;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__actions .language-switcher a{
  font-size:.79rem!important;
  color:#ffe3a3!important;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__actions .language-switcher a[aria-current="true"]{
  background:linear-gradient(135deg,#f6d589,#d4a247)!important;
  color:#321014!important;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__cta{
  min-height:42px!important;
  padding:10px 17px!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#f7d98b,#dba848)!important;
  color:#3a1b10!important;
  font-size:.83rem!important;
  font-weight:800!important;
  line-height:1.2!important;
  border-color:rgba(255,229,167,.55)!important;
  white-space:nowrap;
  box-shadow:0 10px 22px rgba(9,2,7,.22)!important;
}
body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__cta:hover{
  background:linear-gradient(135deg,#ffe4a3,#e6b552)!important;
  box-shadow:0 12px 26px rgba(9,2,7,.26)!important;
}

/* Narrower desktop: use the existing accessible vertical mobile navigation;
   don't squeeze six links between the logo and the controls. */
@media(min-width:981px) and (max-width:1240px){
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__inner{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:10px!important;
  }
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-premium-nav{
    display:none!important;
  }
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-menu-toggle{
    display:inline-flex!important;
    grid-column:3;
    grid-row:1;
    justify-self:end;
    align-items:center;
    justify-content:center;
    margin:0 16px 0 0!important;
  }
}

/* Mobile keeps the approved navigation drawer and responsive language controls. */
@media(max-width:980px){
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__inner{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:10px!important;
    width:min(calc(100% - 24px),100%)!important;
    max-width:none!important;
    margin-inline:auto!important;
  }
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-brand-premium{
    grid-column:1;
    grid-row:1;
    padding-left:12px!important;
  }
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-brand-premium__copy strong{
    font-size:.91rem!important;
  }
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-menu-toggle{
    grid-column:2;
    grid-row:1;
    margin:0 12px 0 0!important;
  }
}
@media(max-width:420px){
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-brand-premium__copy strong{
    font-size:.81rem!important;
  }
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-brand-premium__copy small{
    font-size:.62rem!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body:not(.home):not(.page-template-template-homepage) .site-header.pj-header-premium .pj-header-premium__inner::before{
    transition:none!important;
  }
}

/* Inner-page tablet drawer. The historic menu skin activates only below
   980px; extending desktop readability requires an equivalent drawer on
   981–1240px, without altering the homepage's original breakpoint. */
@media(min-width:981px) and (max-width:1240px){
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu.menu-overlay-shell{
    position:fixed!important;
    top:calc(var(--pj-ticker-height) + var(--pj-header-row))!important;
    inset-inline:0!important;
    bottom:0!important;
    z-index:10050!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    overflow:auto!important;
    padding:22px!important;
    background:rgba(15,3,9,.86)!important;
    opacity:0;
    pointer-events:none;
    transition:opacity .22s ease;
  }
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu.menu-overlay-shell[hidden]{display:none!important}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu.menu-overlay-shell.is-open{opacity:1;pointer-events:auto}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .menu-overlay{
    width:100%;max-width:400px;max-height:calc(100dvh - var(--pj-ticker-height) - var(--pj-header-row) - 44px);
    overflow-y:auto;overflow-x:hidden;
    border:1px solid rgba(227,176,74,.36);border-radius:24px;
    background:linear-gradient(180deg,#4a0e0e 0%,#2d0808 50%,#1a0505 100%);
    box-shadow:0 22px 64px rgba(0,0,0,.48);color:#f0dcb8;
    padding:21px 20px;
  }
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .menu-header{display:flex;align-items:center;gap:13px;padding-bottom:15px;border-bottom:1px solid rgba(221,177,82,.26)}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .logo-icon{width:56px;height:56px;flex:0 0 56px;display:grid;place-items:center}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .logo-icon img{width:100%;height:100%;object-fit:contain}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .header-text{flex:1;min-width:0}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .header-text h2{font-size:1.25rem;color:#f7d991;margin:0}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .header-text p{font-size:.72rem;color:#e4c590;margin:0}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .close-btn{width:36px;height:36px;flex:0 0 36px;border-radius:50%;border:1px solid rgba(234,190,84,.45);color:#f7d991;background:rgba(255,255,255,.04);cursor:pointer}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .menu-label{margin:14px 0 9px;font-size:.75rem;letter-spacing:.16em;color:#e8b849;font-weight:800}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .nav-list{display:grid!important;gap:5px!important;list-style:none!important;padding:0!important;margin:0!important}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .nav-list li{list-style:none!important;margin:0!important;padding:0!important}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .nav-list a{display:block!important;padding:11px 15px!important;border-radius:11px!important;border:1px solid rgba(234,190,84,.1)!important;background:rgba(255,255,255,.035)!important;color:#fff0cf!important;font-size:.98rem!important;line-height:1.3!important}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .nav-list a:hover,
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .nav-list a:focus-visible{background:rgba(255,218,124,.12)!important;border-color:rgba(234,190,84,.38)!important}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .cta-wrapper{margin-top:17px}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .btn-book{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:45px;padding:10px 18px;border-radius:12px;background:#e5b95c;color:#321013;font-weight:800}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .lang-wrapper{display:flex;justify-content:center;margin-top:12px}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .lang-wrapper .language-switcher{background:transparent;border-color:rgba(234,190,84,.4)}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .lang-wrapper .language-switcher a{color:#f7d991}
  body:not(.home):not(.page-template-template-homepage) #mobile-primary-menu .om-decor{display:none}
  body.admin-bar:not(.home):not(.page-template-template-homepage) #mobile-primary-menu.menu-overlay-shell{top:calc(32px + var(--pj-ticker-height) + var(--pj-header-row))!important}
}
