/* ================================================================
   Boulevard Riyadh City ??? Premium Header & Footer Styles
   Targets Kadence Theme native header (.site-header) and footer (#colophon)
   ================================================================ */

/* ========== PREMIUM HEADER ??? Glassmorphism Dark Luxury ========== */

/* Base header - transparent glass on dark pages */
.site-header {
  background: rgba(10, 13, 20, 0.55) !important;
  backdrop-filter: blur(22px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
  border-bottom: 1px solid rgba(212, 168, 67, 0.10) !important;
  transition: background 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.45s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}

/* Sticky header - solidified on scroll */
.item-is-fixed:not(.item-at-start):not(.item-hidden-above) .site-header,
.kadence-sticky-header .site-header.item-is-stuck {
  background: rgba(10, 13, 20, 0.92) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45),
              0 2px 10px rgba(0, 0, 0, 0.2) !important;
  border-bottom-color: rgba(212, 168, 67, 0.18) !important;
}

/* Header container inner padding */
.site-header .site-header-row-container-inner {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* ---------- Logo ---------- */
.site-header .custom-logo {
  transition: transform 0.35s ease, filter 0.35s ease !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)) !important;
}
.site-header:hover .custom-logo {
  transform: scale(1.03) !important;
}

.site-header .site-branding .site-title {
  color: #F0EBE0 !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  letter-spacing: 0.03em !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25) !important;
}

/* ---------- Primary Navigation ---------- */
.site-header .header-navigation .menu > li > a,
.site-header .header-menu-container .menu > li > a {
  color: rgba(240, 235, 224, 0.88) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  padding: 0.5rem 0.85rem !important;
  position: relative !important;
  transition: color 0.32s ease !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}

.site-header .header-navigation .menu > li > a:hover,
.site-header .header-menu-container .menu > li > a:hover {
  color: #D4A843 !important;
  text-shadow: 0 1px 8px rgba(212,168,67,0.2) !important;
}

.site-header .header-navigation .menu > li.current-menu-item > a,
.site-header .header-menu-container .menu > li.current-menu-item > a,
.site-header .header-navigation .menu > li.current_page_item > a,
.site-header .header-menu-container .menu > li.current_page_item > a {
  color: #D4A843 !important;
}

/* Gold underline indicator - hover & active */
.site-header .header-navigation .menu > li > a::after,
.site-header .header-menu-container .menu > li > a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #D4A843, #B8922F) !important;
  border-radius: 2px !important;
  transition: width 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              left 0.35s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}

.site-header .header-navigation .menu > li > a:hover::after,
.site-header .header-menu-container .menu > li > a:hover::after,
.site-header .header-navigation .menu > li.current-menu-item > a::after,
.site-header .header-menu-container .menu > li.current-menu-item > a::after,
.site-header .header-navigation .menu > li.current_page_item > a::after,
.site-header .header-menu-container .menu > li.current_page_item > a::after {
  width: 80% !important;
  left: 10% !important;
}

/* ---------- Header CTA Button ---------- */
.site-header .header-button .kb-button,
.site-header .header-button a.button,
.site-header .header-button .button {
  background: linear-gradient(135deg, #d6b860 0%, #b48d36 100%) !important;
  color: #1A1B2E !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.52rem 1.35rem !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 4px 18px rgba(184, 146, 47, 0.30),
              inset 0 1px 0 rgba(255,255,255,0.25) !important;
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94) !important;
  text-shadow: none !important;
}

.site-header .header-button .kb-button:hover,
.site-header .header-button a.button:hover,
.site-header .header-button .button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(184, 146, 47, 0.42),
              inset 0 1px 0 rgba(255,255,255,0.35) !important;
  background: linear-gradient(135deg, #e0c46c 0%, #c49b3e 100%) !important;
}

/* ---------- Mobile Trigger (Hamburger) ---------- */
.site-header .menu-toggle-icon .kadence-svg-iconset,
.site-header .mobile-toggle-open-container .menu-toggle-icon {
  color: #F0EBE0 !important;
}

.site-header .menu-toggle-open {
  border-color: rgba(212, 168, 67, 0.35) !important;
  transition: border-color 0.3s, background 0.3s !important;
}

.site-header .menu-toggle-open:hover {
  border-color: #D4A843 !important;
  background: rgba(212, 168, 67, 0.08) !important;
}

/* ---------- Mobile Drawer / Off-canvas ---------- */
.mobile-navigation .drawer-inner,
.popup-drawer .drawer-inner {
  background: linear-gradient(180deg, #0d0f16 0%, #0a0c12 100%) !important;
}

.mobile-navigation .drawer-header,
.popup-drawer .drawer-header {
  border-bottom: 1px solid rgba(212, 168, 67, 0.12) !important;
  background: rgba(10, 13, 20, 0.6) !important;
}

.mobile-navigation .mobile-menu-container .menu li a,
.popup-drawer .menu li a {
  color: rgba(226, 232, 240, 0.9) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  padding: 0.7rem 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  transition: color 0.25s ease, padding-left 0.25s ease !important;
}

.mobile-navigation .mobile-menu-container .menu li a:hover,
.popup-drawer .menu li a:hover {
  color: #D4A843 !important;
  padding-left: 8px !important;
}

.mobile-navigation .mobile-menu-container .menu li.current-menu-item > a,
.popup-drawer .menu li.current-menu-item > a {
  color: #D4A843 !important;
}

.mobile-navigation .drawer-inner .close-toggle,
.popup-drawer .drawer-inner .close-toggle {
  color: #F0EBE0 !important;
}

.mobile-navigation .drawer-inner .close-toggle:hover,
.popup-drawer .drawer-inner .close-toggle:hover {
  color: #D4A843 !important;
}

/* Mobile drawer overlay */
.drawer-overlay {
  background: rgba(10, 13, 20, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* ========== PREMIUM FOOTER ??? Deep Obsidian Luxury ========== */

/* Main footer container */
#colophon.site-footer,
.site-footer {
  background: linear-gradient(180deg, #0A0D14 0%, #070911 100%) !important;
  border-top: 1px solid rgba(212, 168, 67, 0.14) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Ambient gold glow line at top */
#colophon.site-footer::before,
.site-footer::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 15% !important;
  width: 70% !important;
  height: 1px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(212,168,67,0.5) 30%, 
    rgba(212,168,67,0.65) 50%,
    rgba(212,168,67,0.5) 70%, 
    transparent 100%) !important;
  z-index: 1 !important;
}

/* Decorative radial glow */
#colophon.site-footer::after,
.site-footer::after {
  content: '' !important;
  position: absolute !important;
  top: -120px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 600px !important;
  height: 240px !important;
  background: radial-gradient(ellipse, rgba(184,146,47,0.06) 0%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Footer rows background */
#colophon .site-footer-wrap,
#colophon .site-middle-footer-wrap,
#colophon .site-bottom-footer-wrap,
#colophon .site-top-footer-wrap {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Footer containers */
#colophon .site-container,
#colophon .site-footer-row-container-inner,
#colophon .footer-widget-area,
#colophon .footer-widget-area-inner,
#colophon .widget,
#colophon .site-info-inner {
  background: transparent !important;
  background-color: transparent !important;
}

/* Middle footer spacing */
#colophon .site-middle-footer-wrap {
  padding-top: 3.2rem !important;
  padding-bottom: 2.5rem !important;
}

/* ---------- Widget Titles (Gold Uppercase) ---------- */
#colophon h1,
#colophon h2,
#colophon h3,
#colophon h4,
#colophon h5,
#colophon h6,
#colophon .widget-title {
  color: #D4A843 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  font-weight: 700 !important;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1.1rem !important;
  border-bottom: 1px solid rgba(212, 168, 67, 0.14) !important;
  position: relative !important;
}

/* Small gold accent under title */
#colophon .widget-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1px !important;
  left: 0 !important;
  width: 32px !important;
  height: 2px !important;
  background: linear-gradient(90deg, #D4A843, transparent) !important;
  border-radius: 2px !important;
}

/* RTL: accent on right */
body.rtl #colophon .widget-title::after,
body.blvd-rtl #colophon .widget-title::after {
  left: auto !important;
  right: 0 !important;
  background: linear-gradient(270deg, #D4A843, transparent) !important;
}

/* ---------- Footer Text & Links ---------- */
#colophon,
#colophon p,
#colophon li,
#colophon span,
#colophon small,
#colophon div {
  color: #9B978E !important;
}

/* Footer brand description */
#colophon .footer-widget-area:first-child p {
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
  max-width: 300px !important;
}

/* Footer links */
#colophon a {
  color: #9B978E !important;
  font-size: 0.9rem !important;
  transition: color 0.3s ease, padding-left 0.3s ease !important;
  text-decoration: none !important;
}

#colophon a:hover,
#colophon a:focus {
  color: #F0EBE0 !important;
  padding-left: 4px !important;
}

/* RTL: shift right on hover */
body.rtl #colophon a:hover,
body.blvd-rtl #colophon a:hover {
  padding-left: 0 !important;
  padding-right: 4px !important;
}

/* Footer menu items */
#colophon .widget_nav_menu ul,
#colophon .menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#colophon .widget_nav_menu li,
#colophon .menu li {
  margin-bottom: 0.45rem !important;
}

#colophon .widget_nav_menu li a,
#colophon .menu li a {
  display: inline-block !important;
  position: relative !important;
}

/* Dot indicator on hover */
#colophon .widget_nav_menu li a::before,
#colophon .menu li a::before {
  content: '' !important;
  position: absolute !important;
  left: -12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #D4A843 !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

#colophon .widget_nav_menu li a:hover::before,
#colophon .menu li a:hover::before {
  opacity: 1 !important;
}

/* RTL dot indicator */
body.rtl #colophon .widget_nav_menu li a::before,
body.blvd-rtl #colophon .widget_nav_menu li a::before {
  left: auto !important;
  right: -12px !important;
}

/* ---------- Footer Social Icons ---------- */
#colophon .kadence-social-widget .social-button,
#colophon .footer-social-inner-wrap a {
  color: #9B978E !important;
  border-color: rgba(155,151,142,0.2) !important;
  transition: all 0.32s ease !important;
}

#colophon .kadence-social-widget .social-button:hover,
#colophon .footer-social-inner-wrap a:hover {
  color: #D4A843 !important;
  border-color: rgba(212,168,67,0.4) !important;
  transform: translateY(-2px) !important;
  background: rgba(212,168,67,0.06) !important;
}

/* ---------- Bottom Footer (Copyright Bar) ---------- */
#colophon .site-bottom-footer-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(0, 0, 0, 0.22) !important;
  padding-top: 1.2rem !important;
  padding-bottom: 1.2rem !important;
}

#colophon .site-bottom-footer-wrap,
#colophon .site-bottom-footer-wrap * {
  font-size: 0.82rem !important;
  color: #6B6862 !important;
}

#colophon .site-bottom-footer-wrap a {
  color: #9B978E !important;
}

#colophon .site-bottom-footer-wrap a:hover {
  color: #D4A843 !important;
}

/* ---------- Footer Logo ---------- */
#colophon .footer-widget-area .custom-logo-link img,
#colophon .site-branding .custom-logo {
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.3)) !important;
  max-width: 160px !important;
  transition: transform 0.35s ease !important;
}

#colophon .footer-widget-area .custom-logo-link:hover img {
  transform: scale(1.03) !important;
}

/* ========== KADENCE HEADER/FOOTER OVERRIDES ========== */

/* Remove the old mu-plugin hide rules - these now need to show */
/* Kadence's native .site-header and .site-footer ARE the active header/footer */

/* Ensure no content-area padding overlaps header */
.blvd-premium .entry-content {
  padding-top: 0 !important;
}

/* ========== LIGHT PAGE HEADER VARIANT ========== */
/* For pages that are NOT dark (blog posts, etc.) */
body.blvd-premium:not(.blvd-dark-page) .site-header {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
  border-bottom: 1px solid rgba(26, 27, 46, 0.06) !important;
}

body.blvd-premium:not(.blvd-dark-page) .item-is-fixed:not(.item-at-start) .site-header {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 4px 30px rgba(26, 27, 46, 0.08) !important;
}

body.blvd-premium:not(.blvd-dark-page) .site-header .header-navigation .menu > li > a,
body.blvd-premium:not(.blvd-dark-page) .site-header .header-menu-container .menu > li > a {
  color: #4A4D66 !important;
  text-shadow: none !important;
}

body.blvd-premium:not(.blvd-dark-page) .site-header .header-navigation .menu > li > a:hover,
body.blvd-premium:not(.blvd-dark-page) .site-header .header-menu-container .menu > li > a:hover {
  color: #1A1B2E !important;
}

body.blvd-premium:not(.blvd-dark-page) .site-header .header-navigation .menu > li.current-menu-item > a,
body.blvd-premium:not(.blvd-dark-page) .site-header .header-menu-container .menu > li.current-menu-item > a {
  color: #B8922F !important;
}

body.blvd-premium:not(.blvd-dark-page) .site-header .site-branding .site-title {
  color: #1A1B2E !important;
  text-shadow: none !important;
}

body.blvd-premium:not(.blvd-dark-page) .site-header .menu-toggle-icon .kadence-svg-iconset {
  color: #1A1B2E !important;
}

body.blvd-premium:not(.blvd-dark-page) .site-header .menu-toggle-open {
  border-color: rgba(26, 27, 46, 0.15) !important;
}

/* ========== RESPONSIVE ??? MOBILE & TABLET ========== */

@media (max-width: 1024px) {
  .site-header .site-header-row-container-inner {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }
  
  #colophon .site-middle-footer-wrap {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Stack footer columns on mobile */
  #colophon .site-footer-row-container-inner {
    text-align: center !important;
  }
  
  #colophon .footer-widget-area {
    margin-bottom: 1.5rem !important;
  }
  
  #colophon .widget-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  #colophon .footer-widget-area:first-child p {
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Center the dot indicators */
  #colophon .widget_nav_menu li a::before {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #colophon .site-middle-footer-wrap {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .site-header .custom-logo {
    max-height: 32px !important;
  }
}
