/* Reset i podstawy */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f7f1e3, #d7ccc8);
  color: #5d4037;
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* Header */
.header {
  background-color: #6d4c41;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  font-weight: 700;
  font-size: 1.8rem;
  color: #fbe9e7;
  text-decoration: none;
  letter-spacing: 1.2px;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #d7ccc8;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fbe9e7;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #a1887f;
  color: #3e2723;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 40px auto 80px auto;
  background: #fff8f2;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(101, 67, 33, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 50px 40px;
  align-items: center;
}

.hero-text {
  flex: 1 1 480px;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: #5d4037;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
}

.hero-text p {
  font-size: 1.3rem;
  color: #7b5e57;
  margin-bottom: 30px;
  max-width: 500px;
  line-height: 1.5;
}

.cta {
  display: inline-block;
  background-color: #a1887f;
  color: white;
  font-weight: 700;
  padding: 15px 45px;
  font-size: 1.15rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 15px rgba(161, 134, 127, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
  background-color: #6d4c41;
  box-shadow: 0 10px 20px rgba(109, 76, 65, 0.5);
}

.hero-image {
  flex: 1 1 400px;
  max-width: 450px;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(101, 67, 33, 0.15);
}

/* Sekcja usług i dlaczego warto nas wybrać */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Usługi */
.services-section {
  background: rgba(255, 241, 224, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(161, 134, 127, 0.2);
  padding: 50px 30px 60px;
  margin-bottom: 60px;
  text-align: center;
}

.services-section h2 {
  font-size: 2.8rem;
  margin-bottom: 35px;
  color: #6d4c41;
  letter-spacing: 1px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-item {
  background: #fff3e0;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(161, 134, 127, 0.3);
  padding: 30px 25px;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(161, 134, 127, 0.5);
}

.service-item h3 {
  color: #5d4037;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.service-item p {
  color: #7b5e57;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Sekcja Dlaczego warto */
.why-us-section {
  background: #6d4c41;
  border-radius: 18px;
  color: #fbe9e7;
  padding: 50px 30px 70px;
  margin-bottom: 80px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  text-align: center;
}

.why-us-section h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.why-us-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.7;
}

.why-us-list li {
  margin-bottom: 20px;
  padding-left: 35px;
  position: relative;
}

.why-us-list li strong {
  color: #ffd54f;
}

.why-us-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 3px;
  color: #ffd54f;
  font-weight: 700;
  font-size: 1.3rem;
}

/* Animacje pojawiania */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* Stopka */
.footer-section {
  background-color: #4e342e;
  color: #d7ccc8;
  padding: 25px 20px;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.25);
}

.footer-content p,
.footer-content a {
  margin: 6px 0;
  color: #d7ccc8;
  text-decoration: none;
}

.footer-content a:hover {
  color: #ffd54f;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .services-list {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 90%;
  }
}


/* FAQ */

.faq-section {
  max-width: 900px;
  margin: 60px auto 100px;
  background: rgba(255, 241, 224, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(161, 134, 127, 0.15);
  padding: 50px 40px;
  color: #5d4037;
}

.faq-section h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 1px;
}

.faq-item {
  margin-bottom: 25px;
  border-bottom: 1.5px solid #a1887f;
}

.faq-question {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 20px 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #5d4037;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  border-radius: 8px;
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
  color: #a57c50;
}

.faq-question:focus {
  outline: 3px solid #ffd54f;
  outline-offset: 3px;
}

.faq-answer {
  padding: 0 10px 15px 15px;
  font-size: 1.1rem;
  color: #6d4c41;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Strzałka po prawej w faq */
.faq-question .arrow {
  width: 20px;
  height: 20px;
  border-right: 3px solid #5d4037;
  border-bottom: 3px solid #5d4037;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-question[aria-expanded="true"] .arrow {
  transform: rotate(-135deg);
}

/* Responsive */
@media (max-width: 700px) {
  .faq-section {
    padding: 40px 25px;
    margin: 40px 15px 80px;
  }

  .faq-question {
    font-size: 1.15rem;
  }

  .faq-answer {
    font-size: 1rem;
  }
}

/* Kontakt */

.kontakt-section {
  max-width: 900px;
  margin: 60px auto 100px;
  background: rgba(255, 241, 224, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(161, 134, 127, 0.15);
  padding: 50px 40px;
  color: #5d4037;
  text-align: center;
}

.kontakt-section h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 45px;
  letter-spacing: 1px;
}

.kontakt-info p {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: #6d4c41;
}

.kontakt-info a {
  color: #a57c50;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.kontakt-info a:hover,
.kontakt-info a:focus {
  color: #5d4037;
  text-decoration: underline;
  outline: none;
}

.map-container {
  margin-top: 50px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(161, 134, 127, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
  transition: filter 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

.map-container iframe:hover {
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.25));
}

/* Responsive */
@media (max-width: 700px) {
  .kontakt-section {
    padding: 40px 25px;
    margin: 40px 15px 80px;
  }

  .kontakt-info p {
    font-size: 1.1rem;
  }

  .map-container iframe {
    height: 300px;
  }
}

/* Galeria */

.gallery-section {
  max-width: 1000px;
  margin: 60px auto 100px;
  background: rgba(255, 241, 224, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(161, 134, 127, 0.15);
  padding: 50px 40px;
  color: #5d4037;
  text-align: center;
}

.gallery-section h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 45px;
  letter-spacing: 1px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
}

.gallery img {
  width: 100%;
  max-width: 300px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(161, 134, 127, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover,
.gallery img:focus {
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(161, 134, 127, 0.4);
  outline: none;
}

/* Animacja pojawiania */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  .gallery-section {
    padding: 40px 25px;
    margin: 40px 15px 80px;
  }

  .gallery img {
    max-width: 100%;
  }
}


/* Lightbox */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(50, 30, 15, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.show,
.lightbox:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 244, 230, 0.9);
  cursor: default;
  user-select: none;
}

.lightbox-close {
  position: fixed;
  top: 25px;
  right: 25px;
  background: transparent;
  border: none;
  font-size: 3rem;
  color: #f0e6d2;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  z-index: 1100;
  transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #c49a6c;
  outline: none;
}

/* Ukrywanie lightboxa */
.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- MOBILE FIRST - bazowy styl dla telefonów --- */

/* Ustawienia fontów, paddingów, kontenerów już masz, to dobrze */

/* Przykładowo zmniejszmy padding głównych kontenerów */
.container {
  padding: 15px;
}

/* Menu - zamiast klasycznego menu, pokażemy hamburger na małych ekranach */
.navbar {
  position: relative;
}

/* Ukryj listę na malutkich ekranach, pokaż hamburger */
.nav-links {
  display: none;
  flex-direction: column;
  background-color: #5a3e1b; /* brązowe tło menu */
  position: absolute;
  top: 60px;
  right: 0;
  width: 200px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1001;
}

/* Hamburger menu button */
.hamburger {
  display: block;
  cursor: pointer;
  font-size: 28px;
  color: #f0e6d2;
  user-select: none;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 1100;
}

/* Pokaż menu jeśli aktywne */
.nav-links.active {
  display: flex;
}

/* Style linków w menu */
.nav-links li a {
  padding: 12px 20px;
  color: #f0e6d2;
  border-bottom: 1px solid #7f6648;
  transition: background 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: #7f6648;
}

/* Galeria: obrazki w 1 kolumnie na telefonach */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Hero sekcja - obraz na górę */
.hero {
  flex-direction: column;
  padding: 20px 15px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* Mapka - większa i responsywna */
.map-container iframe {
  width: 100%;
  height: 300px;
  border-radius: 15px;
}

/* Stopka */
.footer-section {
  padding: 15px;
  font-size: 14px;
  text-align: center;
}

/* --- MEDIA QUERIES --- */
@media (min-width: 600px) {
  /* Menu poziome dla tabletów i większych */
  .hamburger {
    display: none;
  }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    width: auto;
    border-radius: 0;
  }
  .nav-links li a {
    border: none;
    padding: 10px 18px;
  }

  /* Hero sekcja na dwa kolumny */
  .hero {
    flex-direction: row;
  }

  /* Galeria w dwie kolumny */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mapka większa */
  .map-container iframe {
    height: 400px;
  }
}

@media (min-width: 900px) {
  /* Galeria 4 kolumny */
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Stopka większa czcionka i padding */
  .footer-section {
    font-size: 16px;
    padding: 30px;
  }
}


/* === RESPONSYWNOŚĆ MOBILE === */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
    margin: 0;
  }

  .header, .navbar, .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 24px;
    padding: 10px 15px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    margin-bottom: 15px;
  }

  .nav-links a {
    font-size: 18px;
    padding: 10px 0;
  }

  .hero {
    flex-direction: column;
    padding: 20px 15px;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .services-section .services-list,
  .why-us-section .why-us-list {
    flex-direction: column;
    padding: 0 15px;
  }

  .service-item {
    margin-bottom: 20px;
  }

  .why-us-list li {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .footer-section {
    padding: 20px 15px;
    text-align: center;
  }

  .footer-content p {
    font-size: 15px;
    margin: 5px 0;
  }
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .navbar {
    width: 100%;
    background-color: #4e3b27;
    position: absolute;
    top: 60px;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    z-index: 5;
  }

  .navbar.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  .nav-links a {
    font-size: 18px;
    color: #fff;
  }

  .nav-links a:hover {
    text-decoration: underline;
  }
}
