/* Custom structural classes and design variables */
.pfh-wrapper {
  position: relative;
  z-index: 999;
  width: 100%;
  box-sizing: border-box;
}

body.admin-bar .pfh-wrapper.pfh-is-sticky {
  top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--pfh-sticky-top, 20px)) !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .pfh-wrapper.pfh-is-sticky {
    top: calc(46px + var(--pfh-sticky-top, 20px)) !important;
  }
}

/* Rounded container inside */
.pfh-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 auto;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, padding, background, box-shadow, border-radius, height;
  background-color: rgba(235, 245, 238, 0.9);
}

/* Horizontal alignment wrappers */
.pfh-align-left .pfh-container { margin-left: 0; }
.pfh-align-right .pfh-container { margin-right: 0; }
.pfh-align-center .pfh-container { margin: 0 auto; }

/* Menu Styling and SPECIFIC resetting to override any aggressive theme styles */
.pfh-menu-desktop {
  display: flex !important;
  flex: 1 !important;
  justify-content: center !important;
}

ul.pfh-menu,
.pfh-menu-desktop ul.pfh-menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: center !important;
}

li.pfh-menu-item,
.pfh-menu-desktop ul.pfh-menu li.pfh-menu-item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

/* Overriding theme-specific pseudo-elements that force bullet symbols */
li.pfh-menu-item::before,
li.pfh-menu-item::after,
.pfh-menu-desktop ul.pfh-menu li.pfh-menu-item::before,
.pfh-menu-desktop ul.pfh-menu li.pfh-menu-item::after {
  content: none !important;
  display: none !important;
}

.pfh-menu-link {
  text-decoration: none !important;
  font-weight: 600;
  padding: 8px 16px;
  display: inline-block !important;
  color: #1a3c22;
  position: relative;
  transition: color 0.3s ease;
  outline: none;
}

/* Active Indicators styles */
.pfh-active-ind {
  position: absolute;
  pointer-events: none;
  transition: all 0.3s ease;
}
.pfh-ind-underline {
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: #1a3c22;
}
.pfh-ind-background {
  top: 4px;
  bottom: 4px;
  left: 8px;
  right: 8px;
  background-color: rgba(26,60,34,0.1);
  border-radius: 20px;
  z-index: -1;
}
.pfh-ind-border {
  top: 4px;
  bottom: 4px;
  left: 8px;
  right: 8px;
  border: 1.5px solid #1a3c22;
  border-radius: 20px;
  z-index: -1;
}
.pfh-ind-dot {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #1a3c22;
}

/* Logo image classes */
.pfh-logo {
  display: flex !important;
  align-items: center !important;
}
.pfh-logo-link {
  display: block;
}
.pfh-logo-img {
  display: block;
  height: auto;
  max-height: 50px;
  transition: max-height 0.4s ease;
}
.pfh-logo-sticky {
  display: none;
}
.pfh-wrapper.pfh-is-sticky .pfh-logo-sticky {
  display: block;
}
.pfh-wrapper.pfh-is-sticky .pfh-logo-default-has-sticky {
  display: none;
}
.pfh-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: #1a3c22;
}

/* CTA Button Styles */
.pfh-cta {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pfh-cta-icon {
  display: flex;
  align-items: center;
}
.pfh-cta-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Mobile Dropdown & burger defaults */
.pfh-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}
.pfh-burger-line {
  display: block;
  width: 60%;
  background-color: #1a3c22;
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

/* Dropdown layout */
.pfh-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
}
.pfh-dropdown-menu {
  display: flex;
  flex-direction: column;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.pfh-dropdown-menu li {
  list-style: none !important;
}
.pfh-dropdown-menu li::before {
  content: none !important;
}
.pfh-dropdown .pfh-menu-link {
  display: block;
  padding: 10px 0;
}
.pfh-dropdown-cta {
  margin-top: 15px;
  display: flex;
}
.pfh-dropdown-cta .pfh-cta {
  width: 100%;
  justify-content: center;
}

/* Underline slide effect */
.pfh-anim-underline-slide .pfh-menu-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pfh-anim-underline-slide .pfh-menu-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Text Swap / Reveal base styles */
.pfh-text-wrap {
  display: inline-block;
  overflow: hidden;
  position: relative;
  vertical-align: bottom;
}
.pfh-text-wrap::after {
  content: attr(data-hover);
  position: absolute;
  left: 0;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pfh-text-inner {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reveal Up */
.pfh-anim-reveal-up .pfh-text-wrap::after {
  top: 100%;
}
.pfh-anim-reveal-up .pfh-menu-link:hover .pfh-text-inner {
  transform: translateY(-100%);
}
.pfh-anim-reveal-up .pfh-menu-link:hover .pfh-text-wrap::after {
  transform: translateY(-100%);
}

/* Reveal Down */
.pfh-anim-reveal-down .pfh-text-wrap::after {
  bottom: 100%;
}
.pfh-anim-reveal-down .pfh-menu-link:hover .pfh-text-inner {
  transform: translateY(100%);
}
.pfh-anim-reveal-down .pfh-menu-link:hover .pfh-text-wrap::after {
  transform: translateY(100%);
}

/* Letter Slide */
.pfh-letters-wrap {
  display: inline-block;
  overflow: hidden;
}
.pfh-letter {
  display: inline-block;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pfh-letter::after {
  content: attr(data-letter);
  position: absolute;
  left: 0;
  top: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pfh-menu-link:hover .pfh-letter {
  transform: translateY(-100%);
}

/* Fade animation */
.pfh-anim-fade .pfh-menu-link {
  transition: opacity 0.3s ease;
}
.pfh-anim-fade:hover .pfh-menu-link:not(:hover) {
  opacity: 0.5;
}

/* Line Grow Animation */
.pfh-anim-line-grow .pfh-menu-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.pfh-anim-line-grow .pfh-menu-link:hover::after {
  width: calc(100% - 32px);
}

/* Scale effect */
.pfh-anim-scale .pfh-menu-link {
  transition: transform 0.3s ease;
}
.pfh-anim-scale .pfh-menu-link:hover {
  transform: scale(1.1);
}

/* Background Fill style */
.pfh-anim-bg-fill .pfh-menu-link {
  border-radius: 20px;
}
.pfh-anim-bg-fill .pfh-menu-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background-color: rgba(26, 60, 34, 0.08);
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}
.pfh-anim-bg-fill .pfh-menu-link:hover::before {
  transform: scale(1);
  opacity: 1;
}

/* Button hover anims */
.pfh-btn-anim-lift:hover {
  transform: translateY(-3px);
}
.pfh-btn-anim-scale:hover {
  transform: scale(1.06);
}
.pfh-btn-anim-glow:hover {
  box-shadow: 0 0 15px rgba(26,60,34,0.4);
}
.pfh-btn-anim-arrow-slide .pfh-cta-icon.icon-after svg {
  transition: transform 0.3s ease;
}
.pfh-btn-anim-arrow-slide:hover .pfh-cta-icon.icon-after svg {
  transform: translateX(4px);
}

/* Wave Ripple style */
.pfh-ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Sticky Transitions */
.pfh-wrapper.pfh-is-sticky {
  position: fixed !important;
  left: 0;
  right: 0;
  top: var(--pfh-sticky-top, 20px);
}
.pfh-wrapper.pfh-is-sticky .pfh-container {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Sticky Entrance animations */
.pfh-anim-fade.pfh-is-sticky {
  animation: pfh-fade 0.4s ease forwards;
}
.pfh-anim-slide.pfh-is-sticky {
  animation: pfh-slide-down 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.pfh-anim-scale.pfh-is-sticky {
  animation: pfh-scale 0.4s ease forwards;
}

@keyframes pfh-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pfh-slide-down {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pfh-scale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Overlay overlaying classes */
.pfh-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.pfh-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Screen Size Specific Hamburger Rules */
@media screen and (max-width: 1024px) {
  .pfh-menu-desktop, .pfh-cta-wrapper {
    display: none !important;
  }
  .pfh-burger-btn {
    display: flex !important;
  }
  /* Burger Animation States */
  .pfh-burger-morph.active .line-1 {
    transform: translateY(7px) rotate(45deg);
  }
  .pfh-burger-morph.active .line-2 {
    opacity: 0;
  }
  .pfh-burger-morph.active .line-3 {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .pfh-burger-rotate.active {
    transform: rotate(90deg);
  }
  
  .pfh-burger-fade.active .line-2 {
    opacity: 0;
  }
  
  /* Open Mobile Dropdowns states */
  .pfh-dropdown.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Transition types for Mobile Dropdowns */
  .pfh-drop-anim-scale {
    transform: translate(-50%, -10px) scale(0.95);
  }
  .pfh-drop-anim-scale.active {
    transform: translate(-50%, 0) scale(1);
  }
  
  .pfh-drop-anim-slide {
    transform: translate(-50%, -20px);
  }
  .pfh-drop-anim-slide.active {
    transform: translate(-50%, 0);
  }
}
