/*
 * M-Dental Clinic — wspolny naglowek desktopowy.
 * Ten plik musi byc ladowany jako ostatni zarowno na stronie glownej,
 * jak i na podstronach. Dzieki temu Bootstrap i starsze reguly szablonu
 * nie zmieniaja geometrii menu.
 */

/* Przycisk jest używany wyłącznie w pośrednim układzie tabletowym. */
#head1 .tablet-menu-trigger {
  display: none !important;
}

/* Tablet / mały laptop: pełne menu nie mieści się już w jednym rzędzie,
   a dolny pasek mobilny byłby zbyt dominujący. */
@media (min-width: 769px) and (max-width: 1024px) {
  #head1,
  #head1 *,
  #head3,
  #head3 * {
    box-sizing: border-box !important;
  }

  #head1 {
    display: block !important;
    width: 100% !important;
    height: 92px !important;
    min-height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  #head1 > .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    height: 92px !important;
    min-height: 92px !important;
    margin: 0 !important;
    padding: 0 30px !important;
    overflow: visible !important;
  }

  #head1 > .container::before,
  #head1 > .container::after {
    display: none !important;
    content: none !important;
  }

  #head1 #logo {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    float: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #head1 #logo a {
    display: block !important;
    line-height: 0 !important;
  }

  #head1 #logo img {
    display: block !important;
    width: auto !important;
    max-width: 220px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #head1 .nav-right {
    display: none !important;
  }

  #head1 .tablet-menu-trigger {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;
    width: auto !important;
    min-width: 104px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 17px !important;
    border: 1px solid rgba(31, 41, 51, .18) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #1f2933 !important;
    box-shadow: none !important;
    font-family: 'Poppins', Arial, Verdana, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
  }

  #head1 .tablet-menu-trigger:hover,
  #head1 .tablet-menu-trigger:focus {
    border-color: #c7a04a !important;
    color: #9b741e !important;
    outline: none !important;
  }

  #head1 .tablet-menu-trigger__icon {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 19px !important;
  }

  #head1 .tablet-menu-trigger__icon i {
    display: block !important;
    width: 19px !important;
    height: 2px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: currentColor !important;
  }

  #head3,
  #head3 > .container {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Na tablecie nawigację zapewnia przycisk w nagłówku, nie dolny pasek. */
  #menu-mobile {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  #head1,
  #head1 *,
  #head3,
  #head3 * {
    box-sizing: border-box !important;
  }

  #head1 {
    height: 118px !important;
    min-height: 118px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  #head1 > .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 92% !important;
    max-width: 1240px !important;
    height: 118px !important;
    min-height: 118px !important;
    margin: 0 auto !important;
    padding: 0 clamp(36px, 4vw, 72px) !important;
    overflow: visible !important;
    text-align: left !important;
  }

  /* Bootstrap dodaje pseudo-elementy do .container. W flexie staja sie
     dodatkowymi elementami i przesuwaja logo oraz menu. */
  #head1 > .container::before,
  #head1 > .container::after {
    display: none !important;
    content: none !important;
  }

  #head1 #logo {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    float: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #head1 #logo a {
    display: block !important;
    line-height: 0 !important;
  }

  #head1 #logo img {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #head1 .nav-right {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    align-self: center !important;
    gap: 18px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #head1 .menu--premium,
  #head1 .menu--premium #menu1 {
    display: block !important;
    float: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
  }

  #head1 .menu--premium ul,
  #head1 .menu--premium #menu1 ul {
    display: flex !important;
    align-items: center !important;
    gap: 26px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #head1 .menu--premium li,
  #head1 .menu--premium #menu1 li {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  #head1 .menu--premium a,
  #head1 .menu--premium #menu1 li a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    color: #1f2933 !important;
    background: none !important;
    font-family: 'Poppins', Arial, Verdana, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: .08em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  #head1 .menu--premium a::after,
  #head1 .menu--premium #menu1 li a::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 2px !important;
    left: 0 !important;
    height: 2px !important;
    background: #c7a04a !important;
    transform: scaleX(0) !important;
    transform-origin: left center !important;
    transition: transform .22s ease !important;
  }

  #head1 .menu--premium a:hover::after,
  #head1 .menu--premium li.selected > a::after,
  #head1 .menu--premium a.active::after {
    transform: scaleX(1) !important;
  }

  #head1 .menu--premium li.selected > a,
  #head1 .menu--premium a.active {
    color: #c7a04a !important;
  }

  #head1 a.nav-cta {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 1px solid rgba(31, 41, 51, .06) !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #c7a04a !important;
    font-family: 'Poppins', Arial, Verdana, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: .02em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  #head1 a.nav-cta:hover {
    color: #fff !important;
    background: #b9994f !important;
  }

  /* Drugie menu jest puste na desktopie, ale starszy szablon potrafi
     pozostawic pod nim kilka pikseli wysokosci. */
  #head3,
  #head3 > .container {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }
}

/* Węższe laptopy: zachowaj jeden rząd menu bez ściskania CTA. */
@media (min-width: 1025px) and (max-width: 1240px) {
  #head1 > .container {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  #head1 #logo img {
    height: 46px !important;
  }

  #head1 .nav-right {
    gap: 12px !important;
  }

  #head1 .menu--premium ul,
  #head1 .menu--premium #menu1 ul {
    gap: 16px !important;
  }

  #head1 .menu--premium a,
  #head1 .menu--premium #menu1 li a {
    font-size: 12px !important;
    letter-spacing: .065em !important;
  }

  #head1 a.nav-cta {
    min-height: 44px !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    font-size: 12px !important;
  }
}
