/* GLOBALNY UKŁAD */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Ukrywa główny scrollbar */
  height: 100%;
}

body {
  background: url('/wp-content/uploads/2025/08/resiakservice_background.webp') no-repeat center top;
  background-size: cover;
  background-attachment: scroll;
  background-color: #fff;
  color: #111;
}

/* STRUKTURA STRONY */
#page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

/* HEADER I FOOTER */
header,
footer#footer {
  flex-shrink: 0;
  background-color: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 1rem 0 !important;
  z-index: 1000;
}

/* SCROLL TYLKO W CONTENT */
#content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}

/* FIX NA MOBILE: WYMIERZ WYSOKOŚĆ */
@media (max-width: 767px) {
  #content {
    height: calc(100dvh - 140px); /* header + footer wysokość */
  }
}

/* ŚRODKOWY WRAPPER */
#content-wrapper {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 0.25rem;
  padding: 2rem;
  box-sizing: border-box;
}
#content-wrapper h1,
.entry-title.h1 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* SUWAK STYL */
#content::-webkit-scrollbar {
  width: 8px;
}
#content::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 4px;
}
#content::-webkit-scrollbar-track {
  background: transparent;
}

/* MENU LINKI */
header .menu-item a {
  font-size: 1rem;
  color: #111 !important;
  text-decoration: none;
  line-height: 1.3;
  padding: 0.2rem 0.4rem;
}
header .menu-item a:hover {
  color: #000 !important;
  text-decoration: underline;
}

/* LOGO */
.resiak-logo {
  max-width: 260px;
  height: auto;
  transition: max-width 0.2s ease;
}
@media (max-width: 768px) {
  .resiak-logo {
    max-width: 180px;
  }
}
@media (max-width: 480px) {
  .resiak-logo {
    max-width: 150px;
  }
}

/* MENU DESKTOPOWE */
.navbar-nav {
  margin-left: 0;
  flex-wrap: nowrap !important;
}
.navbar-nav .nav-link {
  padding: 0.25rem 0.6rem;
  font-weight: 500;
  white-space: nowrap;
}
