/* --- Zmienne Kolorystyczne --- */
:root {
  --primary: #2d5a27;    /* Ciemna zieleń (logo, nagłówki) */
  --secondary: #e3f0d6;  /* Jasna zieleń (tła elementów) */
  --accent: #f4a261;     /* Akcent (przyciski, punktory) */
  --bg-light: #f9fbf9;   /* Bardzo jasne tło strony */
  --text-dark: #2c3e50;  /* Główny kolor tekstu */
  --white: #ffffff;
}

/* --- Reset i Ogólne Style --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--bg-light);
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--primary); }
h2 { font-size: 2.8rem; margin-bottom: 20px; text-align: center; }
section { padding: 100px 10%; }

/* --- Animacje Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Nawigacja --- */
nav {
  position: fixed;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: 0.4s;
}

nav.scrolled {
  background: var(--white);
  padding: 15px 5%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* startowe kolory w hero (na białym tle i tak przykryte gradientem) */
nav .nav-links a { color: var(--white); }
.logo--img{
  width: 200px;
  height: 80px;
  display: block;
  background-color: #fff; /* kolor loga na starcie */

  -webkit-mask: url("images/logo.svg") no-repeat center / contain;
  mask: url("images/logo.svg") no-repeat center / contain;
}

nav.scrolled .logo--img{
  background-color: #000; /* po scrollu czarne */
}

/* logo po scrollem */
nav.scrolled .logo { color: var(--primary); }
nav.scrolled .nav-links a { color: var(--text-dark); }
nav.scrolled .nav-links a:hover { color: var(--primary); }

/* --- Active link (desktop + mobile) --- */
.nav-links a.active {
  color: var(--primary);
}

/* --- Hamburger button (mobile) --- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  color: currentColor;
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: 0.35s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

/* stan OTWARTY → X */
nav.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
  top: 21px;
}

nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

nav.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
  top: 21px;
}

/* Kolor ikony hamburgera zależny od stanu nav (jak linki) */
nav .nav-toggle { color: var(--white); }
nav.scrolled .nav-toggle { color: var(--text-dark); }

/* --- Mobile dropdown --- */
@media (max-width: 992px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Panel menu */
  nav .nav-links {
    display: block;            /* zamiast none */
    position: absolute;
    top: 100%;
    right: 5%;
    left: 5%;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 14px 16px;
    margin-top: 12px;

    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  nav .nav-links li {
    margin: 0;
  }

  nav .nav-links a {
    display: block;
    padding: 12px 10px;
    color: var(--text-dark);
    border-radius: 10px;
  }

  nav .nav-links a:hover {
    background: var(--secondary);
    color: var(--primary);
  }

  /* Otwarte menu */
  nav.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- Klikalne tel/mail bez zmiany wyglądu --- */
.contact-details .contact-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.contact-details .contact-link:hover,
.contact-details .contact-link:focus {
  text-decoration: underline;
  outline: none;
}


.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }

/* --- Hero Section --- */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../images/hero.jfif') center/cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

@media (max-width: 768px) {
  .hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../images/hero-mobile.jpg') center/cover no-repeat;
  }
}

.hero-content h1 {
  font-size: clamp(3rem, 7vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

/* --- Toast --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: min(680px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 2000;
}

.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--error {
  background: var(--accent);
  color: var(--text-dark);
}
.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-main {
  padding: 15px 35px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-main:hover {
  background: #e08e50;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(244, 162, 97, 0.4);
}

/* --- Stats Section --- */
.stats {
  display: flex;
  justify-content: space-around;
  padding: 50px 10%;
  background: var(--white);
  margin-top: -60px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  z-index: 10;
}
.stat-item h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 5px; }
.stat-item p { font-weight: 600; color: #888; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

/* --- About Section --- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { width: 100%; border-radius: 15px; box-shadow: -20px 20px 0 var(--secondary); }
.about-text h2 { text-align: left; }

/* --- Sekcja Usług --- */
.services-detailed { background: var(--white); text-align: center; }
.services-intro p { max-width: 700px; margin: 0 auto 50px auto; font-size: 1.1rem; }

.detailed-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  text-align: center;
}

.detailed-service-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #eee;
  transition: 0.3s;
  position: relative;
  overflow: hidden;

}

.detailed-service-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transform: translateY(-5px);
  border-color: var(--secondary);
}
.detailed-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary);
}
.detailed-service-card.accent::before { background: var(--accent); }

.detailed-service-card h3 { font-size: 1.8rem; margin-bottom: 20px; }
.detailed-service-card .card-desc { margin-bottom: 30px; color: #666; }

.service-list { list-style: none; }
.service-list li {
  margin-bottom: 15px;
  position: relative;
  font-weight: 600;
}
.service-list li::before {
  content: '🌱';
  position: relative;
  right: 20px;
  top: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

/* --- Galeria --- */
.gallery { text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 50px;
}
.gallery-item {
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }

/* --- Testimonials --- */
.testimonials { background: var(--primary); color: white; text-align: center; }
.testimonials h2 { color: white; }
.testimonial-container {
  scroll-behavior: smooth;
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 30px 0;
  scrollbar-width: none;
}
.testimonial-container::-webkit-scrollbar { display: none; }
.testimonial-card {
  min-width: 350px;
  background: rgba(255,255,255,0.1);
  padding: 35px;
  border-radius: 15px;
  font-style: italic;
  border: 1px solid rgba(255,255,255,0.2);
}
.author {
  margin-top: 20px;
  font-weight: 700;
  font-style: normal;
  display: block;
  color: var(--accent);
}

/* --- FAQ --- */
.faq { background: var(--white); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.faq-question {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
}
.faq-question span { color: var(--primary); font-size: 1.5rem; line-height: 0.8; transition: 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: all 0.4s ease; color: #666; }
.faq-item.active .faq-answer { max-height: 200px; margin-top: 15px; }
.faq-item.active .faq-question span { transform: rotate(45deg); color: var(--accent); }

/* --- Kontakt --- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; background: var(--bg-light); }
.contact-info h2 { text-align: left; }
.contact-details p { margin-bottom: 20px; display: flex; align-items: center; font-weight: 600; }
.contact-details span { font-size: 1.5rem; color: var(--accent); margin-right: 15px; }
.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.contact input, .contact textarea {
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
  background: var(--bg-light);
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--primary); }
.contact-details .contact-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.contact-details .contact-link:hover,
.contact-details .contact-link:focus {
  text-decoration: underline;
  outline: none;
}

footer { text-align: center; padding: 50px 20px; background: #1e3a1a; color: rgba(255,255,255,0.7); }
footer strong { color: var(--white); }

section[id] {
  scroll-margin-top: 90px; /* zmniejsz / zwiększ wg potrzeby */
}

/* --- Responsywność --- */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .about-img img { box-shadow: none; margin-bottom: 30px; }
  .stats { flex-direction: column; gap: 30px; padding: 30px; text-align: center; }
  .hero-content h1 { font-size: 3.5rem; }
  section { padding: 70px 5%; }
  section[id] { scroll-margin-top: 70px; }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 2000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.lightbox__caption {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  text-align: center;
  max-width: 70ch;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 30px;
  line-height: 46px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.lightbox__close:hover { transform: scale(1.06); background: rgba(255,255,255,0.18); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); background: rgba(255,255,255,0.18); }

.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }

@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox__caption { font-size: 0.95rem; }
}
