/*
 Theme Name: Zarychta
 Theme URI: https://sylwiazarychta.pl/
 Description: Szablon przygotowany specjalnie dla strony -> https://sylwiazarychta.pl/
 Author: Natalia Pluta
 Author URI: https://sylwiazarychta.pl/
 Version: 1.0.21.03.2025
 License: 
 License URI: 
 Text Domain: 
*/

/* Fonty */
/* Podstawowe style */
.site-header {
    background: #333;
    color: white;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}
.site-header .logo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}
.main-nav .menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
}
.main-nav .menu li a {
    color: white;
    text-decoration: none;
}

/* Przycisk hamburgera */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    display: none;
    cursor: pointer;
}

/* Mobilne menu */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
    }
    .main-nav.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}
.site-header {
    overflow: unset;
    background: white;
    height: 93px;
    display: flex
;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
}

.navbar-container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  width: 147px;
  height: auto;
}

.navbar-menu .menu-items {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu .menu-items li a {
  color: #3F61A6;
  font-size: 20px;
  font-family: 'Baskervville', serif;
  font-weight: 400;
  line-height: 28px;
  text-decoration: none;
}

.navbar-inner {

  display: flex
;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    width: 100%;
}



/* Ukrycie elementu przed animacją */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Klasa aktywna po wejściu w viewport */
.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}


/* Ukrycie submenu domyślnie */
.navbar-menu .sub-menu {
    display: none;
    position: absolute; /* dla dropdown */
    margin-top: 0.5rem;
    background-color: white; /* możesz dopasować */
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
}

/* Kontener dla pozycji z submenu */
.navbar-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 30px; /* miejsce na plusik */
    cursor: pointer;
}

/* Linia pozioma (plus/minus) */
.navbar-menu li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 1px;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

/* Linia pionowa dla plusika */
.navbar-menu li.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 19px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Po aktywowaniu (menu otwarte) - linia pionowa znika */
.navbar-menu li.menu-item-has-children.open > a::before {
    opacity: 0;
}


/* Mobile domyślnie ukryte */
.navbar-menu {
  display: none;
}



/* Od md w górę menu zawsze widoczne */
@media (min-width: 768px) {
  .navbar-menu {
    display: inline-flex !important;
  }
}

/* Gdy aktywne na mobile */
.navbar.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  position: absolute;
  top: 60px; /* dopasuj do wysokości headera */
  right: 0;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: inline-flex !important;

}


  
}

@media (max-width: 768px) {

.navbar.active {
width: 100%;
}

.navbar-menu li:last-child a {
width: 100%;
    margin-left: 0 !important;
    text-align: center;
}

.navbar-menu li:last-child {
width: 100%;
}



/* Mobile domyślnie ukryte */
footer .navbar-menu {
  display: flex;
}


footer #menu-menu-stopka{
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 1.5rem;
}

footer .navbar-menu a {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

footer .navbar-menu li:last-child a{

  margin:0 !important;
}

}


@media (min-width: 768px) and (max-width: 1000px) {

.navbar.active {
width: 100%;
}

}

@media (min-width: 768px) and (max-width: 1000px) {

.navbar.active {
width: 100%;
}

.navbar-menu li:last-child a {
width: 100%;
    margin-left: 0;
    text-align: center;
}

.navbar-menu li:last-child {
width: 100%;
}

.navbar-menu li.menu-item-has-children > a::after {
    right: 0px !important;
    width: 11px !important;
    height: 1px !important;
}

.navbar-menu li.menu-item-has-children > a::before {
    right: 5px !important;
    width: 1px !important;
    height: 11px !important;
}

.sub-menu-item-2{
width: 30vw !important;
}
  
}


.pagelayer-row{
  gap: 30px;
}
