/* ============================================
   STICKY HEADER 
   ============================================ */

/* Default state - header stays in normal position */
.custom-sticky-header {
  position: relative;
  width: 100%;
  transition: all 0.4s ease;
}

/* Clone/sticky version that appears on scroll */
.custom-sticky-header-clone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  color: var(--lb-sticky-color, #333) !important;
  background-color: var(--lb-sticky-bg, #fff);
  box-shadow: var(--lb-sticky-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));
  transform: translateY(var(--lb-sticky-hidden-offset, -100%));
  transition:
    transform var(--lb-sticky-transition-duration, 0.4s)
      var(--lb-sticky-transition-easing, ease),
    box-shadow var(--lb-sticky-transition-duration, 0.4s)
      var(--lb-sticky-transition-easing, ease);
  padding: 0 var(--lb-sticky-padding-right, 20px) 0 0 !important;
}

.custom-sticky-header-clone.is-visible {
  transform: translateY(0);
}

/* Topbar stripe — toggled and colored via Lorraine Baker > Sticky Header */
.custom-sticky-header-clone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--lb-topbar-height, 3px);
  display: var(--lb-topbar-display, block);
  background: repeating-linear-gradient(
    to right,
    var(--lb-topbar-color-1, #ff6600) 0%,
    var(--lb-topbar-color-1, #ff6600) 16.66%,
    var(--lb-topbar-color-2, #ffcc00) 16.66%,
    var(--lb-topbar-color-2, #ffcc00) 33.33%,
    var(--lb-topbar-color-1, #ff6600) 33.33%,
    var(--lb-topbar-color-1, #ff6600) 50%,
    var(--lb-topbar-color-2, #ffcc00) 50%,
    var(--lb-topbar-color-2, #ffcc00) 66.66%,
    var(--lb-topbar-color-1, #ff6600) 66.66%,
    var(--lb-topbar-color-1, #ff6600) 83.33%,
    var(--lb-topbar-color-2, #ffcc00) 83.33%,
    var(--lb-topbar-color-2, #ffcc00) 100%
  );
  background-size: 1299px 100%;
}

.custom-sticky-header-clone figure {
  flex-shrink: 0;
  margin: 0;
}

.custom-sticky-header-clone nav {
  flex: 1;
  margin: -5px 0 0 0px;
}

.custom-sticky-header-clone .wp-block-group:empty {
  display: none;
}

.custom-sticky-header-clone
  .custom-nav-menu
  .wp-block-navigation-item
  > .wp-block-navigation-item__content,
.custom-sticky-header-clone .custom-nav-menu {
  color: black !important;
}

/* Mobile class */
@media (max-width: 768px) {
  .mobile-margin-nav-reset {
    margin-left: 0 !important;
  }
}

/* Or if you want to keep some negative margin but less aggressive: */
@media (max-width: 768px) {
  .mobile-margin-nav-adjust {
    margin-left: -10px !important;
  }
}
@media (max-width: 768px) {
  .custom-sticky-header {
    margin-left: 0 !important;
  }
}

/* Or if you need different spacing: */
@media (max-width: 768px) {
  .custom-sticky-header {
    margin-left: -10px !important;
  }
}
/* Colored top border - Orange Yellow Pattern */
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    #ff6600 0%,
    #ff6600 16.66%,
    #ffcc00 16.66%,
    #ffcc00 33.33%,
    #ff6600 33.33%,
    #ff6600 50%,
    #ffcc00 50%,
    #ffcc00 66.66%,
    #ff6600 66.66%,
    #ff6600 83.33%,
    #ffcc00 83.33%,
    #ffcc00 100%
  );
  background-size: 1299px 100%;
}

@keyframes borderSlide {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 300px 0;
  }
}

/* Hero Content Margin */
.hero {
  margin-top: -18%;
  padding-bottom: 40px;
}

@media (min-width: 480px) and (max-width: 1279px) {
  .hero {
    margin-top: -10%;
    padding-bottom: 60px;
  }
}

@media (min-width: 1280px) {
  .hero {
    margin-top: -9%;
    padding-bottom: 70px;
  }
}

.header-margin {
  margin-top: 45% !important;
}

@media (min-width: 480px) and (max-width: 1279px) {
  .header-margin {
    margin-top: 15% !important;
  }
}

@media (min-width: 1280px) {
  .header-margin {
    margin-top: 20% !important;
  }
}

/* Hero Typography with Animations */
@keyframes slideFromTop {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animtion-from-top-o {
  animation: slideFromTop 0.1s ease-out forwards;
  opacity: 0;
}

.animtion-from-top-1 {
  animation: slideFromTop 0.8s ease-out forwards;
  opacity: 0;
}

.animtion-from-top-1o5 {
  animation: slideFromTop 1.1s ease-out forwards;
  opacity: 0;
}
.animtion-from-top-2o5 {
  animation: slideFromTop 1.5s ease-out forwards;
  opacity: 0;
}

.header-title {
  font-weight: 600;
  font-style: normal;
  color: #fff;
  font-size: 32px;
  line-height: 37px;
  width: 90%;
  animation: slideFromTop 2s ease-out forwards;
  opacity: 0;
}

@media (min-width: 480px) and (max-width: 1023px) {
  .header-title {
    font-size: 48px;
    line-height: 55px;
    width: 80%;
  }
}

@media (min-width: 1024px) {
  .header-title {
    font-size: 66px;
    line-height: 76px;
    width: 75%;
  }
}

.paragraph-text {
  font-family: "Fira Sans", sans-serif;
  font-style: normal;
  font-weight: 300;
  color: #fff;
  font-size: 16px;
  line-height: 27px;
  animation: slideFromTop 2.2s ease-out forwards;
  opacity: 0;
}

@media (min-width: 640px) {
  .paragraph-text {
    font-size: 20px;
    line-height: 34px;
  }
}

/* Button Hero */
.btn-hero {
  background: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.btn-hero a {
  text-decoration: none;
}

.btn-hero:hover {
  background-color: #e92d28;
  color: white;
}

/* Utility Classes - Padding */
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}

/* Utility Classes - Margin */
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.my-5 {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-5 {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}
.mx-6 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.m-1 {
  margin: 0.25rem;
}
.m-2 {
  margin: 0.5rem;
}
.m-3 {
  margin: 0.75rem;
}
.m-4 {
  margin: 1rem;
}
.m-5 {
  margin: 1.25rem;
}
.m-6 {
  margin: 1.5rem;
}

.special-left {
  margin-left: -4rem;
}

@media (min-width: 480px) {
  .special-left {
    margin-left: 0.05rem;
  }
}

/* Modal Open States - Force sticky header visibility */
.custom-sticky-header-clone.is-visible[style] {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
}

body.has-modal-open .custom-sticky-header-clone.is-visible,
html.has-modal-open .custom-sticky-header-clone.is-visible,
body.is-modal-open .custom-sticky-header-clone.is-visible,
html.is-modal-open .custom-sticky-header-clone.is-visible {
  min-height: 100vh !important;
  transform: translateY(0) !important;
  z-index: 100000 !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

.custom-sticky-header-clone {
  border-bottom: var(--lb-sticky-border-bottom, none);
}

.custom-sticky-header-clone .custom-nav-menu a,
.custom-sticky-header-clone
  .custom-nav-menu
  .wp-block-navigation-item__content {
  text-decoration: var(--lb-sticky-link-decoration, none);
}
