/* style.css - BZW Ogrody: Clean Construction Style (a'la Europlot) */

:root {
  /* --- KOLORYSTYKA --- */
  /* Jasna, techniczna, czysta */
  --primary-dark: #2c3e50;    /* Ciemny granat/szary - Nagłówki, Tekst główny */
  --primary-text: #4a5568;    /* Szary - Tekst body */
  
  /* Zieleń BZW (Twoja marka) - używana jako akcent, BEZ NEONU */
  --accent-green: #76bc21;    
  --accent-hover: #5a9615;

  /* Tła */
  --bg-white: #ffffff;
  --bg-light: #f4f6f8;        /* Jasnoszare tło sekcji (bardzo ważne dla kontrastu) */
  --border-color: #e2e8f0;

  /* Elementy UI */
  --radius: 4px;              /* Mniejsze zaokrąglenia = bardziej techniczny wygląd */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.1); /* Miękki cień przy najechaniu */
  --container: 1200px;
  --transition: all 0.3s ease;

  /* Typografia */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--primary-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* UTILITY CLASSES */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 50px 0; }

.text-center { text-align: center; }
.small { font-size: 0.85rem; }

/* TYPOGRAFIA */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 20px; }
p { margin-bottom: 1.2rem; }
p.lead { font-size: 1.15rem; color: #555; max-width: 800px; margin: 0 auto 30px auto; }

.kicker {
  display: block;
  font-family: var(--font-heading);
  color: var(--accent-green);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent-green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
}

.btn-outline-dark {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.btn-outline-dark:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--primary-dark);
  color: #fff;
}
.btn-secondary:hover {
  background: #1a252f;
}

.btn-white {
  background: #fff;
  color: var(--accent-green);
  font-weight: 800;
}
.btn-white:hover {
  background: #f1f1f1;
}

/* --- TOPBAR --- */
.topbar {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
  color: #666;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.topbar-info, .topbar-contact { display: flex; align-items: center; gap: 20px; }
.topbar i { color: var(--accent-green); margin-right: 6px; }
.topbar a:hover { color: var(--accent-green); }
.phone-highlight { font-weight: 700; color: var(--primary-dark); }

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 50px; width: auto; }

.nav { display: flex; gap: 25px; align-items: center; }
.nav a { 
  font-weight: 600; 
  font-size: 0.95rem; 
  color: var(--primary-dark); 
  font-family: var(--font-heading); 
}
.nav a:hover { color: var(--accent-green); }
.nav-cta {
  background: var(--accent-green);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-dark); cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background: url('assets/img/hero.jpg') center/cover no-repeat;
  height: 620px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.6); 
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.hero-label {
  background: var(--accent-green);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero p.lead { color: rgba(255,255,255,0.9); }

.hero-btns { display: flex; gap: 15px; justify-content: center; margin-bottom: 40px; }

.hero-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-box {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 600;
  font-size: 0.9rem;
}
.feature-box i { color: var(--accent-green); }

/* --- CATEGORY GRID --- */
.category-section { padding-top: 60px; padding-bottom: 60px; }
.section-subtitle { color: #888; margin-top: -10px; margin-bottom: 40px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.cat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  height: 100%;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-green);
}

.cat-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-img img { transform: scale(1.08); }

.cat-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cat-content h3 { font-size: 1.35rem; margin-bottom: 12px; }
.cat-content p { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; }

.btn-link {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.cat-card:hover .btn-link { color: var(--accent-hover); }

/* --- SEKCJA O NAS / GRID --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list li { margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-start; color: #555; }
.check-list i { color: var(--accent-green); margin-top: 5px; flex-shrink: 0; }

/* --- SLIDER PRZED/PO --- */
.bzw-slider-container {
  --position: 50%;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: col-resize;
  box-shadow: var(--shadow-sm);
}
.bzw-slider-container img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.img-overlay {
  z-index: 2;
  clip-path: polygon(0 0, var(--position) 0, var(--position) 100%, 0 100%);
}
.slider-range {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 4; opacity: 0; cursor: col-resize; margin: 0;
}
.slider-line {
  position: absolute; top: 0; bottom: 0; left: var(--position);
  width: 2px; background: #fff; z-index: 3;
  transform: translateX(-50%); pointer-events: none;
}
.slider-button {
  position: absolute; top: 50%; left: var(--position);
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: var(--accent-green);
  border: 2px solid #fff;
  border-radius: 50%;
  z-index: 3; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.slider-button::after { content: '↔'; color: white; font-weight: bold; }
.slider-label {
  position: absolute; top: 20px; padding: 4px 12px;
  background: rgba(44, 62, 80, 0.8); color: #fff;
  font-size: 0.75rem; border-radius: 4px; z-index: 3; font-weight: 700;
}
.label-before { right: 20px; }
.label-after { left: 20px; background: var(--accent-green); }

/* --- SEKACJA GALERII --- */
/* 1. SIATKA GALERII */
.gallery {
  display: grid;
  /* Automatyczne dopasowanie kolumn: min. 280px szerokości */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 20px; /* Odstępy między zdjęciami */
  margin-top: 20px;
}

.gallery-item {
  margin: 0;
  padding: 0;
  border-radius: 8px; /* Zaokrąglone rogi */
  overflow: hidden;   /* Ukrywa powiększenie zdjęcia poza ramkę */
  cursor: pointer;    /* Łapka po najechaniu */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Delikatny cień */
  position: relative;
  aspect-ratio: 4/3;  /* Wymusza prostokątny kształt kafelków */
}

/* Styl samego obrazka w miniaturce */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Wypełnia cały kafelek, przycinając nadmiar */
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

/* Efekt po najechaniu myszką (HOVER) */
.gallery-item:hover img {
  transform: scale(1.08); /* Lekkie powiększenie */
  filter: brightness(1.1); /* Lekkie rozjaśnienie */
}

/* 2. LIGHTBOX (OKNO POP-UP) */
.lightbox {
  position: fixed;
  z-index: 9999; /* Musi być wyżej niż menu nawigacyjne */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 20, 0.95); /* Bardzo ciemne tło */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none; /* Żeby nie klikać gdy ukryty */
  transition: opacity 0.3s ease;
}

/* Klasa dodawana przez JS, aby pokazać lightbox */
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Kontener na obrazek i podpis w środku */
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh; /* Zostaw miejsce na podpis */
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border-radius: 4px;
}

.lightbox-caption {
  margin-top: 15px;
  color: #ccc;
  font-size: 1rem;
  text-align: center;
  font-family: inherit;
}

/* 3. PRZYCISKI NAWIGACJI (STRZAŁKI) */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  position: absolute;
  padding: 10px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--accent-green); /* Kolor akcentowy */
}

/* Przycisk Zamknij (X) */
.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 3rem;
  line-height: 1;
  z-index: 10001;
}

/* Strzałki nawigacyjne */
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background-color: rgba(0,0,0,0.2); /* Lekkie tło pod strzałką */
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* 4. RWD (TELEFONY) */
@media (max-width: 768px) {
  /* Na telefonie 2 kolumny zamiast 1 (opcjonalnie) */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Zmniejszamy strzałki na telefonie */
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 2rem;
    background: rgba(0,0,0,0.5);
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
  }
}

/* --- PARTNERZY --- */
.partners-section { padding: 40px 0; border-top: 1px solid var(--border-color); overflow: hidden; background: #fff; }
.small-uppercase { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 20px; }
.partners-row {
  display: flex; gap: 60px; justify-content: center; align-items: center;
  width: max-content; animation: scroll 40s linear infinite;
}
.partners-row img { max-height: 50px; filter: grayscale(100%); opacity: 0.5; transition: 0.3s; }
.partners-row img:hover { filter: grayscale(0); opacity: 1; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- CTA STRIP --- */
.cta-strip { background: var(--accent-green); padding: 50px 0; color: #fff; margin-top: 0; }
.cta-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-content h2 { color: #fff; margin-bottom: 5px; font-size: 1.8rem; }
.cta-content p { margin: 0; opacity: 0.9; font-size: 1.1rem; }

/* --- FOOTER --- */
.site-footer {
  background: #1e293b;
  color: #cbd5e1;
  padding-top: 70px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--accent-green); }
.site-footer ul li { margin-bottom: 10px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.8rem; background: #0f172a; }

/* --- CONTACT WIDGET (Pływający) --- */
.contact-widget {
  position: fixed; bottom: 30px; left: 30px; z-index: 9999;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
}
.main-toggle {
  width: 60px; height: 60px; background: var(--accent-green); border-radius: 50%;
  display: flex; justify-content: center; align-items: center; color: white;
  font-size: 24px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.main-toggle:hover { transform: scale(1.1) rotate(90deg); }
.contact-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center; color: white;
  font-size: 20px; opacity: 0; transform: translateY(20px) scale(0);
  transition: 0.3s; pointer-events: none;
}
.contact-widget:hover .contact-btn { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.contact-widget:hover .contact-btn:nth-child(2) { transition-delay: 0.05s; }
.contact-widget:hover .contact-btn:nth-child(3) { transition-delay: 0.1s; }
.messenger { background: #0084FF; }
.whatsapp { background: #25D366; }
.phone { background: #34b7f1; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.2rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .cta-content { flex-direction: column; text-align: center; }
  
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: 80px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%); transition: 0.3s; z-index: 998;
    border-bottom: 2px solid var(--accent-green);
  }
  .nav.is-open { transform: translateY(0); }
  
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  
  .topbar { display: none; } /* Oszczędność miejsca na mobile */
  .hero { height: auto; padding: 100px 0 60px; }
}

/* --- TOPBAR: GRANATOWE TŁO #1e293b --- */
.topbar {
  background-color: #1e293b; /* Kolor tła, o który prosiłeś */
  color: #ffffff;            /* Biały kolor tekstu */
  font-size: 0.85rem;
  padding: 8px 0;
  font-family: var(--font-heading);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Wymuszenie białego koloru dla wszystkich linków i tekstów w topbarze */
.topbar-info span, 
.topbar-links a, 
.topbar-social a {
  color: #ffffff !important;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

/* Ikony akcentowe (zielone) */
.topbar i {
  color: #76bc21; /* Twoja markowa zieleń */
  margin-right: 8px;
}

/* Sekcja Social Media */
.topbar-social {
  display: flex;
  gap: 15px;
  margin-right: 20px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Efekt najechania na linki */
.topbar-social a:hover, 
.topbar-links a:hover {
  color: #76bc21 !important;
  transform: translateY(-1px);
}

.topbar-contact, .topbar-links {
  display: flex;
  align-items: center;
}

.topbar-links {
  gap: 20px;
}

/* Pogrubiony telefon */
.phone-highlight {
  font-weight: 700;
}

/* Ukrywanie na komórkach (opcjonalnie) */
@media (max-width: 992px) {
  .topbar { display: none; }
}

/* Styl dla przycisku lupy na sliderze */
.slider-zoom-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 10; /* Powyżej suwaka i obrazów */
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.slider-zoom-btn:hover {
  background: var(--accent-green);
  color: #fff;
  transform: scale(1.1);
}

/* Ukrycie lupy wewnątrz Lightboxa (żeby nie dublować przycisków) */
.lightbox-content .slider-zoom-btn {
  display: none !important;
}

/* Zapewnienie, że galeria-item ze sliderem ma odpowiedni kontener */
.gallery-item.comparison-wrapper {
  cursor: default; /* Sliderem operujemy suwakiem, nie kliknięciem w całe foto */
}