/* ═══════════════════════════════════════
   GLOBAL CINEMATIC HERO (Unified per user request)
═══════════════════════════════════════ */
@keyframes heroBgDrift {
  0% { transform: scale(1.00) translateX(0px); }
  100% { transform: scale(1.06) translateX(-12px); }
}

.hero, .page-hero, .honour-hero, section[id="main-content"], .error-hero, header.hero-section, .book-hero, .exp-hero, .contact-hero, .gallery-hero, .hero-spread, .at-hero {
  position: relative;
  isolation: isolate;
  background-color: #0a0f1e !important;
  background-image: none !important; /* override old inline backgrounds */
  overflow: hidden;
}

/* Image background on ::before */
.hero::before, .page-hero::before, .honour-hero::before, section[id="main-content"]::before, .error-hero::before, header.hero-section::before, .book-hero::before, .exp-hero::before, .contact-hero::before, .gallery-hero::before, .hero-spread::before, .at-hero::before {
  content: "";
  position: absolute;
  inset: -5%; /* prevent edge popping during drift */
  z-index: -2;
  background-image: var(--hero-bg-url, url('../images/30.jpg'));
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  animation: heroBgDrift 20s ease-in-out infinite alternate;
  transform-origin: center center;
  pointer-events: none;
}

/* Dark gradient overlay on ::after */
.hero::after, .page-hero::after, .honour-hero::after, section[id="main-content"]::after, .error-hero::after, header.hero-section::after, .book-hero::after, .exp-hero::after, .contact-hero::after, .gallery-hero::after, .hero-spread::after, .at-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    rgba(10, 15, 30, 0.95) 0%,
    rgba(10, 15, 30, 0.82) 35%,
    rgba(10, 15, 30, 0.40) 70%,
    rgba(10, 15, 30, 0.15) 100%
  );
  pointer-events: none;
}

/* Ensure text is white for contrast only within the direct hero container */
.hero > .container *, 
.page-hero > .container *, 
.honour-hero > .container *, 
section[id="main-content"] > .container *, 
.error-hero > .container *, 
header.hero-section > .container *, 
.book-hero > .container *, 
.exp-hero > .container *, 
.contact-hero > .container *, 
.gallery-hero > .container *, 
.hero-spread > .container *, 
.at-hero > .container * {
  color: white !important;
}

/* Ensure inner containers are above the background */
.hero > .container, .page-hero > .container, .honour-hero > .container, section[id="main-content"] > .container, .error-hero > .container, header.hero-section > .container, .book-hero > .container, .exp-hero > .container, .contact-hero > .container, .gallery-hero > .container, .hero-spread > .container, .at-hero > .container {
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════
   BOOTSTRAP OFFCANVAS POLYFILL
   (Since Bootstrap CSS is not loaded globally)
═══════════════════════════════════════ */
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  z-index: 9998;
  background: linear-gradient(180deg, #090d1a 0%, #0c1428 100%);
  color: rgba(255,255,255,0.92);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  visibility: hidden;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.offcanvas.show, .offcanvas.showing {
  transform: translateX(0);
  visibility: visible;
}
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.offcanvas-backdrop.show {
  opacity: 1;
}
.offcanvas .list-group {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}
.offcanvas .list-group-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  min-height: 48px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.offcanvas .list-group-item:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}
.offcanvas .list-group-item i {
  width: 20px;
  text-align: center;
  margin-right: 10px;
  font-size: 14px;
  opacity: 0.7;
}
.offcanvas .btn-close-white {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0;
  position: relative;
  transition: background 0.2s ease;
}
.offcanvas .btn-close-white:hover {
  background: rgba(255,255,255,0.1);
}
.offcanvas .btn-close-white::before,
.offcanvas .btn-close-white::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: white;
  border-radius: 1px;
}
.offcanvas .btn-close-white::before { transform: rotate(45deg); }
.offcanvas .btn-close-white::after { transform: rotate(-45deg); }

/* ═══════════════════════════════════════
   SEARCH MODAL FIX (ensure hidden by default)
═══════════════════════════════════════ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.search-modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}


/* ═══════════════════════════════════════
   A|O FOOTER CREDIT
═══════════════════════════════════════ */
.ao-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(13, 110, 253, 0.05);
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ao-credit span {
  opacity: 0.8;
}

.ao-credit strong {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 12px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.ao-credit:hover {
  background: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.3);
  transform: translateY(-2px);
  color: rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.ao-credit:hover strong {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ═══ GLOBAL MOBILE QUICK ACTION BAR ═══ */
.mobile-action-bar {
  display: none; /* hidden on desktop */
}

@media (max-width: 991px) {
  .mobile-action-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .mab-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px;
  }
  
  .mab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted, #888);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    flex: 1;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
  }
  
  .mab-btn i {
    font-size: 18px;
    margin-bottom: 2px;
  }
  
  .mab-btn:hover, .mab-btn:focus {
    color: var(--blue, #0077b6);
  }
  
  .mab-btn.primary-action {
    color: #fff;
  }
  
  .mab-btn.primary-action i {
    background: linear-gradient(135deg, var(--green, #0a3d0f), #0d5d28);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: -16px;
    box-shadow: 0 4px 12px rgba(10, 61, 15, 0.4);
    border: 2px solid var(--bg, #000);
    color: white;
  }
  
  /* Add padding to body so content isn't hidden behind the bar */
  body {
    padding-bottom: 70px;
  }
}


/* ═══ GLOBAL SMOOTH SCROLL ═══ */
html {
  scroll-behavior: smooth;
}
