/* Critical performance + layout stability overrides */
html,
:root {
  scroll-behavior: auto !important;
}

body {
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.parallax {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* fixed attachment breaks native scroll on many browsers */
  background-attachment: scroll !important;
}

.hero-bg-carousel {
  position: absolute;
  inset: 0;
  z-index: -100;
  overflow: hidden;
}

.hero-bg-slide,
.hero-lcp-image {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%);
}

.hero-bg-slide {
  opacity: 0;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.parallax-placeholder {
  display: none !important;
}

.parallax .row {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Prevent overlap section from shifting layout */
main > section.text-center {
  margin-top: 0 !important;
  padding-top: 28px !important;
}

/* Accessible nav contrast on brown navbar */
.navbar .nav-link {
  color: #ffffff !important;
}

.navbar .nav-link.active,
.navbar .nav-link-light {
  color: #faf3d6 !important;
}

.navbar .nav-link:not(.active) {
  opacity: 0.95;
}

/* Prevent logo overlap shift */
main > section.text-center > .display-3 {
  margin-top: 0 !important;
}
