/* ============================================================
   poprawki.css - uzupelnienia do style-default.css (Bar Maja)
   Ladowany PO style-default.css. Nie zmienia wygladu strony,
   poprawia responsywnosc, dostepnosc i drobne bledy szablonu.
   ============================================================ */

/* 1. Menu glowne ma 5 pozycji (szablon byl na 4) - "Kontakt" byl
      niewidoczny bez przewijania. Teraz wszystkie 5 miesci sie na ekranie. */
.strokes ul li {
  height: 20vh;
}
@supports (height: 1dvh) {
  .strokes ul li {
    height: 20dvh; /* poprawne 100% wysokosci na telefonach z paskiem adresu */
  }
}
@media only screen and (max-width: 667px) and (orientation: landscape) {
  .strokes ul li {
    height: 35vh; /* w poziomie na telefonie - jak w szablonie, z przewijaniem */
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape),
       only screen and (min-width: 1025px) {
  .strokes ul li {
    width: 20vw;
    height: 100vh;
  }
  @supports (height: 1dvh) {
    .strokes ul li {
      height: 100dvh;
    }
  }
}

/* 2. Podmenu w "Menu" (ul. Wiejska / Leszczynskiego / Castorama)
      bylo ucinane na telefonie - teraz zawija sie do kilku wierszy. */
@media only screen and (max-width: 767px) {
  .content header.with-subnav ul {
    white-space: normal;
    overflow: visible;
    text-align: center;
  }
  .content header.with-subnav ul li {
    margin: 4px 2px;
  }
}

/* 3. Kolory z atrybutow style="" przeniesione do klas */
.hl      { color: #dacc13; }
.fb-blue { color: #627aac; }
.pyszne  { color: #EA8200; }

/* 4. Ikony social: poprawna struktura <li><a> (link wypelnia cale pole) */
.ulsocial .lisocial a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 5. Pole-pulapka na spam w formularzu (niewidoczne dla ludzi) */
.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 6. Widoczny fokus dla klawiatury (dostepnosc, WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #dacc13;
  outline-offset: 2px;
}

/* 7. Mniej animacji dla osob, ktore wylaczyly je w systemie */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 8. Obrazy nigdy nie wychodza poza swoj kontener */
.content img,
figure img {
  max-width: 100%;
  height: auto;
}

/* 9. Pole komunikatu pod formularzem pokazuje sie dopiero, gdy jest tresc */
.form .message:empty {
  display: none;
}

/* 10. Menu glowne ma teraz 6 pozycji (doszlo "Zamow online") */
.strokes ul li {
  height: calc(100vh / 6);
}
@supports (height: 1dvh) {
  .strokes ul li {
    height: calc(100dvh / 6);
  }
}
@media only screen and (max-width: 667px) and (orientation: landscape) {
  .strokes ul li {
    height: 35vh;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape),
       only screen and (min-width: 1025px) {
  .strokes ul li {
    width: calc(100vw / 6);
    height: 100vh;
  }
  @supports (height: 1dvh) {
    .strokes ul li {
      height: 100dvh;
    }
  }
}
