
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  /*background: #dbc897;*/
  background: linear-gradient(to bottom, #5e3608 0%, #3a2105 100%);
  color: #333;
}

.header-image {
  width: 100%;
  aspect-ratio: 2100 / 690; 
  background-image: url("/images/header-bg.png");
  background-size: contain;  
  background-position: center;
  background-repeat: no-repeat;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
}

.header-image a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none; 
}

.main-nav {
  background: #5e3608;
  position: sticky;
  top: 0;
  left: 0;
  border-radius:30px;
  padding: 1em;
  max-width: 80%;     
  margin: 0 auto;        

}

nav a {
  text-decoration: none;
  color: #FFFFFF;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  /* text-transform: uppercase; */
  font-size: 18px;
  letter-spacing: 1.5px;
  justify-content: center;
  margin: 0 auto;
}

/* --- BRIGHT BG --- */
.container {
  max-width: 80%;
  margin: 0 auto;
  background: #dbc897; 
  padding: 2em 2em 2em 2em; /* top right bottom left*/
  border-radius: 40px;
}

.container p,
.container li,
.container h1,
.container h2,
.container h3 {
  margin-left: 1em;  
  margin-right: 1em;
}

.general_img {
  border-radius: 2%;
}

footer {
  text-align: center;
  padding: 1em 0;
  background: transparent; 
  color: #333;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
  .header-image {
    height: 180px;
  }

  .container {
    max-width: 90%;
    padding: 2em 1.2em;
  }

  nav {
    flex-wrap: wrap;
  }
}


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-left: 1em; 
  margin-right: 1em; 
}

.gallery figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.gallery img {
  width: 100%;
  height: 220px; 
  object-fit: cover; 
  display: block;
}

.gallery figcaption {
  padding: 0.7rem;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
}


/*.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1em;
}

.cert-gallery figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.cert-gallery img {
  width: 100%;
  height: 220px; 
  object-fit: cover; 
  display: block;
}

.cert-gallery .lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.cert-gallery .lightbox:target {
  display: flex;
}

.cert-gallery .lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.cert-gallery .lightbox .close {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
*/


/* Hamburger button style */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 42px; height: 42px;
  background: none;
  border: none;
  position: relative;
  z-index: 101;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3.2px;
  background: #216e4b;
  border-radius: 2px;
  transition: 0.25s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: 10px;
  }
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    padding: 16px 0 12px 0;
    gap: 0.2em;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: none; /* domyślnie ukryte na mobile */
    z-index: 100;
  }
  .nav-menu.open {
    display: flex;
  }

  .main-nav {
    position: relative;
    z-index: 100;
  }

  .nav-menu a {
    padding: 9px 18px;
    color: #216e4b;
    font-size: 1.13em;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.14s, color 0.20s;
  }
  .nav-menu a:hover,
  .nav-menu a:focus {
    background: #e7fff7;
    color: #15422c;
  }
}


@media (min-width: 769px) {
  .nav-menu { 
	display: flex !important; 
	position: static; 
	background: none; 
	box-shadow: none; 
	/*border-radius: 0; */
	padding: 0;
  }
  .hamburger { 
	display: none !important; 
  }
}


/* Scroll to top button */
#scrollToTopBtn {
  display: none;
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  border-radius: 50%;
  outline: none;
}
#scrollToTopBtn:hover,
#scrollToTopBtn:focus {
  opacity: 1;
  transform: scale(1.07);
}
#scrollToTopBtn svg {
  width: 36px;
  height: 36px;
  display: block;
  margin: auto;
}


@media (max-width: 768px) {
  #scrollToTopBtn {
    right: 14px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  #scrollToTopBtn svg {
    width: 28px;
    height: 28px;
  }
}


.scroll-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.scroll-gallery img {
  flex: 0 0 30%;        
  max-height: 200px;   
  max-width: 500px;    
  object-fit: contain;  
  scroll-snap-align: center;
}