/* ============================================
   Integrative Resets -- Premium Styles
   Progress bar, scroll-top, reveals, kinetic,
   search overlay, dividers, nav enhancements
   ============================================ */

/* --- Reading Progress Bar --- */
.ir-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--color-main);
  z-index: 9999;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.ir-progress-bar.active { opacity: 1; }

/* --- Scroll-to-Top --- */
.ir-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-main);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 9000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  pointer-events: none;
}
.ir-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ir-scroll-top:hover { background: var(--color-darker); }
.ir-scroll-top svg { fill: none; stroke: currentColor; }

/* --- Directional Reveals --- */
.reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* --- Blur-to-Focus Reveal --- */
.blur-reveal {
  filter: blur(8px);
  opacity: 0.3;
  transition: filter 0.8s ease-out, opacity 0.8s ease-out;
}
.blur-reveal.revealed {
  filter: blur(0);
  opacity: 1;
}

/* --- Kinetic Quote Animation --- */
.kinetic-quote .kinetic-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.kinetic-quote.active .kinetic-word {
  opacity: 1;
  transform: translateY(0);
}

/* --- Full-Page Search Overlay --- */
.ir-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(29,64,38,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.ir-search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.ir-search-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ir-search-close:hover { opacity: 1; }
.ir-search-box { width: 90%; max-width: 600px; }
.ir-search-input {
  width: 100%;
  padding: 14px 20px;
  font-size: 18px;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  font-family: 'Lato', sans-serif;
  outline: none;
  box-sizing: border-box;
}
.ir-search-input::placeholder { color: rgba(255,255,255,0.4); }
.ir-search-input:focus { border-bottom-color: var(--color-main); }
.ir-search-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
  font-family: 'Lato', sans-serif;
}
.ir-search-results {
  width: 90%;
  max-width: 600px;
  margin-top: 24px;
  max-height: 50vh;
  overflow-y: auto;
}
.ir-search-group-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-main);
  padding: 12px 0 6px;
  font-family: 'Lato', sans-serif;
}
.ir-search-item {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.ir-search-item:hover { background: rgba(255,255,255,0.08); }
.ir-search-item-title {
  font-family: 'Philosopher', serif;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.ir-search-item-snippet {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.ir-search-empty {
  color: rgba(255,255,255,0.5);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  padding: 16px 0;
}

/* --- Search Trigger Button --- */
.ir-search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ir-search-trigger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ir-search-trigger:hover svg { stroke: var(--color-main); }

/* --- Header Bar Icons (text chat, voice chat, search) --- */
.ir-header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ir-header-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ir-header-icon-btn:hover svg { stroke: var(--color-main); }

/* --- Nav Active Indicator --- */
.navbar-nav .nav-link.ir-active {
  color: var(--color-main) !important;
  position: relative;
}

/* --- Section Dividers --- */
.ir-divider {
  width: 100%;
  height: 50px;
  overflow: hidden;
  line-height: 0;
}
.ir-divider svg { width: 100%; height: 100%; display: block; }
.ir-divider.dark svg path { fill: var(--color-darker); }
.ir-divider.main svg path { fill: var(--color-main); opacity: 0.15; }
.ir-divider.light svg path { fill: var(--color-subtle); }

/* --- View Transitions --- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ir-vt-out 0.25s ease-in forwards; }
::view-transition-new(root) { animation: ir-vt-in 0.3s ease-out forwards; }
@keyframes ir-vt-out { from{opacity:1;transform:translateY(0)} to{opacity:0;transform:translateY(-6px)} }
@keyframes ir-vt-in { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* --- Hero Side-by-Side (Desktop) --- */
.hero-split { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 992px) {
  .hero-split {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hero-split-text { flex: 1; }
  .hero-split-media { flex: 1; }
}

/* --- Compact Inner-Page Heroes (half height) --- */
.about-bg { height: 280px; }
.about-bg .large-padding { padding-bottom: 0; margin-top: 1rem; }

/* Service-specific hero backgrounds */
.hero-bg-sound-bath {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/showcase-3.jpg');
  background-size: cover; background-position: center;
}
.hero-bg-yoga {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/service-2.jpg');
  background-size: cover; background-position: center;
}
.hero-bg-coaching {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/service-3.jpg');
  background-size: cover; background-position: center;
}
.hero-bg-retreats {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/showcase-5.jpg');
  background-size: cover; background-position: center;
}
.hero-bg-events {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/showcase-1.jpg');
  background-size: cover; background-position: center;
}
.hero-bg-blog {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/showcase-2.jpg');
  background-size: cover; background-position: center;
}
.hero-bg-shop {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/service-4.jpg');
  background-size: cover; background-position: center;
}
.hero-bg-media {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/service-1.jpg');
  background-size: cover; background-position: center;
}
.hero-bg-about {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/about-1.png');
  background-size: cover; background-position: center;
}
.hero-bg-contact {
  background-image: linear-gradient(rgba(17, 32, 21, 0.55), rgba(17, 32, 21, 0.55)), url('../img/contact-image.jpg');
  background-size: cover; background-position: center;
}

/* --- Page Banner (Donate-style sub-page hero) --- */
.page-banner {
  background-image: linear-gradient(rgba(17, 32, 21, 0.65), rgba(17, 32, 21, 0.65)), url('../img/bg-1.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0 60px;
  text-align: center;
}
.page-banner h1 {
  color: white;
  font-size: 56px;
  margin-bottom: 12px;
}
.page-banner p {
  color: var(--text-color-2);
  font-family: 'Lato';
  font-size: 18px;
}

/* Responsive */
@media (max-width: 992px) {
  .page-banner h1 { font-size: 40px; }
}
@media (max-width: 768px) {
  .about-bg { height: 220px; }
  .ir-scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
  .ir-divider { height: 35px; }
  .ir-search-overlay { padding-top: 8vh; }
}
@media (max-width: 576px) {
  .page-banner { padding: 80px 0 40px; }
  .page-banner h1 { font-size: 32px; }
}
