/* =========================================================
ATVOF – Header CSS
Owner-fil för header / meny / sökikon / klubb-CTA
========================================================= */

/* =========================================================
1. Header-ram
========================================================= */

.elementor-location-header{
  background: #ffffff;
}

.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-element,
.elementor-location-header .e-con,
.elementor-location-header .e-con-inner{
  box-sizing: border-box;
}

.elementor-location-header > .e-con-boxed > .e-con-inner,
.elementor-location-header .e-con.e-parent > .e-con-inner,
.elementor-location-header .elementor-section.elementor-section-boxed > .elementor-container{
  max-width: 1200px;
  min-height: 108px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.elementor-location-header .e-con-inner > .e-con.e-child{
  display: flex;
  align-items: center;
}

.elementor-location-header .elementor-widget{
  margin-bottom: 0 !important;
}

/* =========================================================
2. Kolumner
========================================================= */

.elementor-location-header .e-con-inner > .e-con.e-child:has(.atvof-header-logo){
  flex: 0 0 auto;
}

.elementor-location-header .e-con-inner > .e-con.e-child:has(.atvof-header-nav){
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.elementor-location-header .e-con-inner > .e-con.e-child:has(.atvof-header-club){
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* fallback if :has would not be supported somewhere in editor preview */
.atvof-header-logo{ flex: 0 0 auto; }
.atvof-header-nav.elementor-widget-nav-menu{ flex: 1 1 auto; min-width: 0; }
.atvof-header-club{ flex: 0 0 auto; }

/* =========================================================
3. Logo
========================================================= */

.atvof-header-logo,
.atvof-header-logo .elementor-widget-container{
  display: flex;
  align-items: center;
}

.atvof-header-logo img,
.elementor-location-header .custom-logo,
.elementor-location-header .custom-logo-link img{
  display: block;
  width: auto;
  max-width: 240px;
  max-height: 68px;
  height: auto;
}

/* =========================================================
4. Navigation
========================================================= */

.atvof-header-nav .elementor-widget-container{
  display: flex;
  align-items: center;
  justify-content: center;
}

.atvof-header-nav .elementor-nav-menu__container,
.atvof-header-nav .elementor-nav-menu{
  display: flex;
  align-items: center;
}

.atvof-header-nav .elementor-nav-menu--main .elementor-item{
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  color: #2B2B2B;
  padding: 0 16px;
}

.atvof-header-nav .elementor-nav-menu--main .elementor-item:hover,
.atvof-header-nav .elementor-nav-menu--main .elementor-item:focus,
.atvof-header-nav .elementor-item.elementor-item-active{
  color: var(--color-primary);
}

.atvof-header-nav .sub-arrow{
  font-size: 11px;
  margin-left: 4px;
}

.atvof-header-nav .elementor-nav-menu--dropdown{
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 8px 0;
}

.atvof-header-nav .elementor-nav-menu--dropdown a{
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 16px;
}

.atvof-header-nav .elementor-menu-toggle{
  margin-left: auto;
}

/* =========================================================
5. Search – ikon-only
========================================================= */

.atvof-header-search{
  flex: 0 0 auto;
  margin-left: 18px;
}

.atvof-header-search .e-search-form{
  display: flex;
  align-items: center;
}

.atvof-header-search .e-search-input-wrapper,
.atvof-header-search .e-search-label,
.atvof-header-search .e-search-results-container{
  display: none !important;
}

.atvof-header-search .e-search-submit{
  width: auto !important;
  min-width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #2B2B2B !important;
}

.atvof-header-search .e-search-submit span{
  display: none !important;
}

.atvof-header-search .e-search-submit i,
.atvof-header-search .e-search-submit svg{
  font-size: 18px;
}

.atvof-header-search .e-search-submit:hover,
.atvof-header-search .e-search-submit:focus{
  color: var(--color-primary) !important;
}

/* =========================================================
6. Klubb-CTA
Markupen visar shortcode med .atvof-header-cta > a.atvof-btn--primary
========================================================= */

.atvof-header-club,
.atvof-header-club .elementor-widget-container,
.atvof-header-club .elementor-shortcode,
.atvof-header-club .atvof-header-cta{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.atvof-header-club .atvof-header-cta a,
.atvof-header-club .atvof-btn,
.atvof-header-club .atvof-btn--primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: 5px !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  white-space: normal;
}

.atvof-header-club .atvof-header-cta a:hover,
.atvof-header-club .atvof-header-cta a:focus{
  background: var(--color-primary-hover) !important;
  color: #ffffff !important;
}

/* =========================================================
7. Mobil / tablet
========================================================= */

@media (max-width: 1024px){
  .elementor-location-header > .e-con-boxed > .e-con-inner,
  .elementor-location-header .e-con.e-parent > .e-con-inner,
  .elementor-location-header .elementor-section.elementor-section-boxed > .elementor-container{
    min-height: 92px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 18px;
  }

  .atvof-header-logo img,
  .elementor-location-header .custom-logo,
  .elementor-location-header .custom-logo-link img{
    max-width: 210px;
    max-height: 60px;
  }

  .atvof-header-nav .elementor-nav-menu--main .elementor-item{
    font-size: 15px;
    padding: 0 10px;
  }

  .atvof-header-search{
    margin-left: 12px;
  }

  .atvof-header-club .atvof-header-cta a,
  .atvof-header-club .atvof-btn,
  .atvof-header-club .atvof-btn--primary{
    min-height: 50px;
    padding: 8px 12px;
    font-size: 16px;
  }
}

@media (max-width: 767px){
  .elementor-location-header > .e-con-boxed > .e-con-inner,
  .elementor-location-header .e-con.e-parent > .e-con-inner,
  .elementor-location-header .elementor-section.elementor-section-boxed > .elementor-container{
    min-height: 80px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }

  .atvof-header-logo img,
  .elementor-location-header .custom-logo,
  .elementor-location-header .custom-logo-link img{
    max-width: 175px;
    max-height: 50px;
  }

  .atvof-header-search{
    margin-left: 8px;
  }

  .atvof-header-club .atvof-header-cta a,
  .atvof-header-club .atvof-btn,
  .atvof-header-club .atvof-btn--primary{
    min-height: 44px;
    padding: 6px 10px;
    font-size: 14px;
  }
}
