/* ==========================================================================
   SpinaFX Header & Top Banner
   Shared across all SpinaFX pages
   ========================================================================== */

/* Hide Astra & Elementor default headers (SpinaFX custom header replaces them) */
body.spinafx-site .ast-above-header-wrap,
body.spinafx-site #ast-desktop-header,
body.spinafx-site .ast-mobile-header-wrap,
body.spinafx-site header.elementor-location-header {
  display: none !important;
}

/* Hide Elementor default footer (SpinaFX custom footer replaces it) */
body.spinafx-site footer.elementor-location-footer {
  display: none !important;
}

/* ===== TOP BANNER ===== */
.spinafx-top-banner {
  position: relative;
  height: 39px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #DBFE87;
  line-height: 1.5;
  @media screen and (min-width: 450px){
    gap: 1.875rem;
  }
}

.spinafx-top-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.spinafx-top-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spinafx-top-banner p {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--spinafx-primary-950);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  @media screen and (min-width: 450px){
      font-size: 14px;
  }
  @media screen and (min-width: 600px){
      font-size: 1rem;
  }
}

.spinafx-top-banner a {
  position: relative;
  z-index: 1;
  color: var(--spinafx-primary-950);
  font-weight: 400;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: var(--spinafx-space-1);
}
.spinafx-top-banner-link-text{
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0 0.5rem;
  background-color: #fff;
}

.spinafx-top-banner-link-icon {
  display: none;
}

/* ===== DESKTOP HEADER ===== */
.spinafx-header {
  position: absolute;
  z-index: 100;
  width: 100%;
  margin-top: 63px;
  display: none;
  padding: 0 1rem;
  @media screen and (min-width: 768px){
      display: unset;
  }
}

.spinafx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.spinafx-header-logo {
  height: 60px;
  width: 206px;
}

.spinafx-header-logo img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: left;
}

.spinafx-header-nav {
  display: flex;
  align-items: center;
  color: #fff;
}

.spinafx-header-nav > a {
  padding: 13px var(--spinafx-space-5);
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-gray-50);
  line-height: 1.4;
  white-space: nowrap;
  transition: opacity var(--spinafx-transition-fast);
}

.spinafx-header-nav > a:hover {
  opacity: 0.8;
  background: none;
}

.spinafx-header-nav > a:focus {
  outline: none;
  background: none;
}

/* ===== SEARCH BUTTON ===== */
.spinafx-header-search-btn,
.spinafx-mobile-search-btn {
  background-color: transparent;
  border: unset;
  padding: 0;
  cursor: pointer;
}

.spinafx-header-search-btn:hover,
.spinafx-mobile-search-btn:hover,
.spinafx-header-search-btn:focus,
.spinafx-mobile-search-btn:focus {
  background-color: transparent;
  border: unset;
  outline: none;
}

.spinafx-search-icon {
  display: block;
}

.spinafx-header-search-btn .spinafx-search-icon svg,
.spinafx-mobile-search-btn .spinafx-search-icon svg {
  width: 24px;
  height: 24px;
}

/* ===== NAV DROPDOWN ===== */
.spinafx-nav-dropdown {
  position: relative;
}

.spinafx-nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px var(--spinafx-space-5);
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-gray-50);
  line-height: 1.4;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--spinafx-font-body);
  outline: none;
  &:hover{
      background: none;
      opacity: 0.8;
  }
  &:focus{
      background: none;
      color: var(--spinafx-gray-50);
      outline: none;
  }
}

.spinafx-nav-dropdown-trigger svg {
  width: 16px;
  height: 16px;
  fill: var(--spinafx-gray-50);
  margin-top: 2px;
  transition: transform var(--spinafx-transition-fast);
}

.spinafx-nav-dropdown.open .spinafx-nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.spinafx-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--spinafx-white);
  border-radius: var(--spinafx-radius-md);
  overflow: hidden;
  min-width: 115px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 100;
}

.spinafx-nav-dropdown.open .spinafx-nav-dropdown-menu {
  display: block;
}

.spinafx-nav-dropdown-menu a {
  display: block;
  padding: 6px var(--spinafx-space-4);
  font-size: var(--spinafx-text-base);
  color: var(--spinafx-primary-950);
  text-align: center;
  line-height: 1.7;
  transition: background var(--spinafx-transition-fast);
}

.spinafx-nav-dropdown-menu a:hover {
  background: var(--spinafx-primary-50);
}

.spinafx-nav-dropdown-menu a:focus {
  outline: none;
  background: var(--spinafx-primary-50);
}

/* ===== MOBILE HEADER ===== */
.spinafx-mobile-header {
  display: block;
  z-index: 10;
  width: 100%;
  position: absolute;
  padding: 0 1rem;
  margin-top: 41px;
  @media screen and (min-width: 768px){
    display: none;
  }
}

.spinafx-mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.spinafx-mobile-logo {
  height: 32px;
  width: 112px;
}

.spinafx-mobile-logo img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.spinafx-hamburger-btn {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.spinafx-hamburger-btn span {
  width: 24px;
  height: 3px;
  background: var(--spinafx-white);
  border-radius: 2px;
}

.spinafx-hamburger-btn:hover,
.spinafx-hamburger-btn:focus,
.spinafx-hamburger-btn:active {
  background: none;
  border: none;
  outline: none;
}

.spinafx-hamburger-btn:hover span,
.spinafx-hamburger-btn:focus span,
.spinafx-hamburger-btn:active span {
  background: var(--spinafx-white);
}

/* ===== MOBILE NAV OVERLAY ===== */
.spinafx-mobile-nav-overlay {
  display: none;
  position: fixed;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--spinafx-overlay-darker);
  z-index: 1000;
  flex-direction: column;
  padding: var(--spinafx-space-4);
  padding-top: 51px;
}

.spinafx-mobile-nav-overlay.open {
  display: flex;
}

.spinafx-mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spinafx-space-8);
}

.spinafx-mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  outline: none;
  padding: 0;
}

.spinafx-mobile-nav-close:hover,
.spinafx-mobile-nav-close:focus,
.spinafx-mobile-nav-close:active {
  background: none;
  border: none;
  outline: none;
}

.spinafx-mobile-nav-close::before,
.spinafx-mobile-nav-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--spinafx-white);
  top: 50%;
  left: 50%;
  transition: opacity var(--spinafx-transition-fast);
}

.spinafx-mobile-nav-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.spinafx-mobile-nav-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.spinafx-mobile-nav-close:hover::before,
.spinafx-mobile-nav-close:focus::before,
.spinafx-mobile-nav-close:active::before,
.spinafx-mobile-nav-close:hover::after,
.spinafx-mobile-nav-close:focus::after,
.spinafx-mobile-nav-close:active::after {
  background: var(--spinafx-white);
}

.spinafx-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--spinafx-space-2);
}

.spinafx-mobile-nav-links a {
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-gray-50);
  padding: var(--spinafx-space-3) 0;
  line-height: 1.4;
}

.spinafx-mobile-nav-links a:focus {
  outline: none;
}

/* ===== SEARCH DROPDOWN ===== */
.spinafx-header-nav {
  position: relative;
}

.spinafx-search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 300px;
  max-width: 400px;
  z-index: 100;
}

.spinafx-search-overlay.open {
  display: block;
}

.spinafx-search-inner {
  width: 100%;
}

.spinafx-search-form {
  width: 100%;
}

.spinafx-search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--spinafx-gray-50);
  border-radius: var(--spinafx-radius-md);
  padding: var(--spinafx-space-2) var(--spinafx-space-4);
  gap: var(--spinafx-space-2);
}

.spinafx-search-input-wrapper:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--spinafx-primary-500);
}

.spinafx-search-input-icon {
  flex-shrink: 0;
}

.spinafx-search-input {
  flex: 1;
  border: none !important;
  outline: none;
  font-size: var(--spinafx-text-base);
  color: var(--spinafx-gray-500);
  font-family: var(--spinafx-font-body);
  background: transparent;
  padding: 0 !important;
}

.spinafx-search-input::placeholder {
  color: var(--spinafx-gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .spinafx-top-banner {
    padding: var(--spinafx-space-2) var(--spinafx-container-padding-mobile);
  }

  .spinafx-top-banner a {
    border: none;
  }
}

@media (max-width: 600px) {
  .spinafx-top-banner-link-text {
    display: none;
  }

  .spinafx-top-banner-link-icon {
    display: inline-flex;
  }

  .spinafx-top-banner-link-icon svg {
    width: 16px;
    height: 16px;
  }


}




