﻿/* Reset i baza */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Nagłówek */
header {
  background: #222;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

/* Nawigacja */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(to right, #ffffff, #7cd67c);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar a {
  color: #1b2f1b;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.navbar a:hover {
  background-color: rgba(0, 128, 0, 0.15);
}

/* Baner */
.baner {
  width: 90%;
  margin: 0 auto;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.baner-img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

/* Sekcje */
section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}
.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

/* Rozszerzenie: Biznesowy styl usług */
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: #f3f4f6;
  color: #2a2a2a;
  margin: 0;
  padding: 0;
}

section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.5rem;
}

h2 {
  font-size: 2rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #333;
  text-align: justify;
}

.service-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.service-box {
  background-color: #e9ecef;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  min-width: 220px;
  flex: 1 1 200px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #2f2f2f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  user-select: none;
}



@media (max-width: 768px) {
  .service-boxes {
    flex-direction: column;
    align-items: center;
  }
}


/* Galeria */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.gallery img {
  cursor: pointer;
  max-width: 150px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}
.gallery img:hover {
  border-color: #28a745;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #2d572c;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.arrow:hover {
  background: #c6eccc;
}
.arrow.left {
  left: 10px;
}
.arrow.right {
  right: 10px;
}

.main-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 100%;
  width: fit-content;
}
.main-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
}

.card.contact-footer {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  padding: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
}

.card.contact-footer h2 {
  text-align: center;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.contact-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-column h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-column p,
.contact-hours p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.contact-column a {
  color: #0066cc;
  text-decoration: none;
}
.contact-column a:hover {
  text-decoration: underline;
}

.contact-hours {
  text-align: center;
}

.contact-hours h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* CTA Sekcja */
.cta-box {
  background: #e8f5e9;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  margin: 2rem auto;
  max-width: 800px;
}
.cta-box h2 {
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}
.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.cta-button {
  background: #2e7d32;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.cta-button:hover {
  background: #27642b;
}

/* Dlaczego my */
.why-us {
  background: #ffffff;
  padding: 2rem;
  text-align: center;
}
.why-us h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.why-us ul {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
}
.why-us li {
  margin: 0.5rem 0;
  color: #2d572c;
}

/* Opinie klientów */
.testimonials {
  background-color: #f7f7f7;
  padding: 2rem;
  text-align: center;
}
.testimonials h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.testimonial {
  max-width: 600px;
  margin: 1rem auto;
  font-style: italic;
  color: #555;
}
.testimonial strong {
  display: block;
  margin-top: 0.5rem;
  color: #222;
}
.footer {
  background-color: #222;      /* ciemne tło */
  color: #ffffff;              /* biały tekst */
  text-align: center;          /* wyśrodkowanie tekstu */
  padding: 1rem 0;             /* odstęp góra/dół */
  font-size: 0.95rem;
}
.footer p {
  color: #ffffff !important;
  text-align: center; 
}

.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-button {
  display: inline-block;
  margin: 0.3rem 0;
}

@media (min-width: 769px) {
  .cta-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .cta-button {
    margin: 0.3rem 1rem;
  }
}

.info-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.info-box {
  flex: 1 1 45%;
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-box h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2e7d32;
}

.info-box ul,
.info-box ol {
  padding-left: 1.2rem;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .info-columns {
    flex-direction: column;
  }
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  position: relative;
}

.service-gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  filter: brightness(100%);
}

.service-gallery a:hover img {
  transform: scale(1.05);
  filter: brightness(90%);
}

/* Ogólne menu */
.navbar {
  background: linear-gradient(to right, #ffffff, #7cd67c);
  padding: 1rem;
  position: relative;
}

.navbar-menu,
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.navbar-menu li a {
  text-decoration: none;
  font-weight: bold;
  color: #1b2f1b;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.navbar-menu li a:hover {
  background-color: rgba(0, 128, 0, 0.15);
}

/* Submenu desktop */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  min-width: 200px;
  z-index: 999;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 0.8rem 1rem;
  color: #333;
}

/* Hamburger */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Ukrycie checkboxa */
#menu-toggle {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.85); /* przezroczystość */
    backdrop-filter: blur(3px);
    padding: 1rem;
    gap: 0;
  }

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

  .navbar-menu li a {
    display: block;
    width: 100%;
    padding: 0.8rem;
  }

  .menu-icon {
    display: block;
    color: #1b2f1b;
  }

  #menu-toggle:checked + .menu-icon + .navbar-menu {
    display: flex;
  }

  .submenu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
    display: block;
  }

  .submenu li a {
    padding-left: 2rem;
  }
}
