/* -----------------------
   ZMIENNE MOTYWU
   ----------------------- */
:root {
  --bg: #0b0b0d;
  --panel: #1a1c20;
  --panel-hover: #2c2f38;
  --muted: #b0b5c1;
  --accent: #1e90ff; 
  --accent-2: #00bfff;
  --card: #2159ac49;
  --glass: rgba(33, 74, 187, 0.644);
  --radius: 10px;
  --max-width: 1200px;
  --gap: 18px;
  --nav-width: 24%;
}

/* -----------------------
   RESET
   ----------------------- */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #e8e8e8;
  line-height: 1.45;
  background: linear-gradient(180deg, var(--bg), #0b0b0d);
}
img { display: block; max-width: 100%; }

/* ---------------------- */
/*   GÓRNY NAGŁÓWEK       */
/* ---------------------- */

.top-header {
  background: #0b0b0d;
  height: 180px;                     
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 20px;                   
  display: flex;
  align-items: center;
}

/* Kontener wyrównujący treść do max-width co reszta strony */
.top-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  height: 100%;
  
  display: flex;
  align-items: center;   /* pionowe centrowanie */
  gap: 20px;             /* odstęp między logo a napisem */
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 250px;  
  width: auto;
  object-fit: contain;
}


.header-title h1 {
  color: #1b7cdd;
  font-size: 48px;
  font-family: 'Anton', sans-serif;  /* zmiana czcionki */
  font-weight: 400px;      /* pogrubienie */
  margin: 0;
  line-height: 1;
  letter-spacing: 0,5px;   
}


/* stary obraz headera – ukryty */
.header-image {
  display: none !important;
}

/*css do loga w nagłówku*/
.header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-title {
  font-family: "Anton", sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}

.main-title .subtitle {
  font-size: 26px;              
  display: block;              
  margin-left: 110px;           
  margin-top: 12px;             
  letter-spacing: 1px;
  opacity: 0.9;
}





/* -----------------------
   UKŁAD STRONY
   ----------------------- */
.page-grid {
  display: grid;
  grid-template-columns: var(--nav-width) 1fr;
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 20px 80px 20px;
}

.left-nav {
  background: linear-gradient(180deg, var(--panel), #161618);
  padding: 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px); 
  overflow-y: auto;              
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}


.nav-item {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 1.05rem;
  transition: all 180ms ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: var(--panel-hover);
  color: #fff;
  transform: translateX(6px);
}
.nav-item.active {
  background: linear-gradient(90deg, var(--glass), rgba(255,255,255,0.02));
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
}

/* ZNAJDŹ NAS */
.partners {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.partner-logo {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;          /* zajmuje całą szerokość panelu */
  height: 60px;         
}

.partner-logo img {
  max-height: 100%;     
  max-width: 60px;      
  object-fit: contain;  
  display: block;
}



/* -----------------------
   OBSZAR TREŚCI
   ----------------------- */
.content-section {
  background: linear-gradient(180deg, var(--card), rgba(21,21,21,0.92));
  padding: 22px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
  display: none;
}
.content-section.visible { display: block; }

.content h1, .content h2 {
  margin-top: 0;
  color: #fff;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

/* -----------------------
   GALERIA
   ----------------------- */
#galeria .main-slideshow {
  position: relative;
  height: 500px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
#galeria .main-slideshow .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;  
  background: #000;     
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
#galeria .main-slideshow .slide.active {
  opacity: 1;
}

#galeria .thumb-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
#galeria .thumb-grid .thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, border 0.3s;
  border: 2px solid transparent;
  border-radius: 6px;
}
#galeria .thumb-grid .thumb:hover,
#galeria .thumb-grid .thumb.active-thumb {
  opacity: 1;
  border-color: var(--accent);
}
#galeria .galeria-subtitle {  /*sekcja do odnośników w miniaturach!*/
  margin: 24px 0 12px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--muted);
}




/* -----------------------
   PASEK KONTAKTU
   ----------------------- */
.contact-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(180deg, rgba(20,20,20,0.96), rgba(12,12,12,0.98));
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.03);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 280ms ease;
  z-index: 999;
}
.contact-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.contact-bar-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}









/* -----------------------
   RESPONSYWNOŚĆ
   ----------------------- */
@media (max-width: 900px) { 
  /* Nagłówek */
  .top-header {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 10px 20px;
  }

  .logo-img {
    height: 120px; /* większe logo na telefon */
  }

  .header-title h1 {
    font-size: 32px;
    text-align: center;
    line-height: 1.1;
  }
  .header-title .subtitle {
    font-size: 20px;
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
    display: block;
  }

  /* Struktura strony */
  .page-grid {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
  }

  /* Nawigacja */
  .left-nav {
    width: 100%;
    flex-direction: column;
    height: auto;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    overflow: visible;
    position: relative; 
  }

  .nav-item,
  .submenu-toggle {
    background: #2c2f38; /* tło */
    color: var(--muted);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }

  .nav-item.active,
  .submenu-toggle.active {
    background: linear-gradient(90deg, var(--glass), rgba(255,255,255,0.02));
    color: #fff;
    border-left: 3px solid var(--accent);
    font-weight: 600;
  }

  .nav-item:hover,
  .submenu-toggle:hover {
    background: var(--panel-hover);
    color: #fff;
  }

  /* Submenu w mobilnym układzie */
  .submenu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-left: 0;
    padding-left: 0;
  }
  .submenu.show {
    display: flex;
  }
  .submenu-item {
    background: #24211f5e;
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
  }
  .submenu-item:hover,
  .submenu-item.active-thumb {
    background: var(--accent);
    color: #fff;
  }

  /* Znajdź nas */
  .partners {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }
  .partners p {
    margin: 0;
    font-size: 0.95rem;
  }
  .partner-logo {
    width: auto;
    height: 40px;
  }
  .partner-logo img {
    max-height: 100%;
    max-width: 40px;
  }

  /* === MOBILE: mapa w kontakcie (override) === */
.contact-map iframe {
  height: 260px !important;
}
.slide {
  object-fit: contain;
}
/* === MOBILE: galeria – slideshow === */
#galeria .main-slideshow {
  height: 300px;
  max-height: 60vh;
}
/* === MOBILE: kontakt - kolumny pod sobą === */
#kontakt .contact-info,
#kontakt .opening-hours {
  float: none !important;
  width: 100% !important;
  margin-bottom: 12px; 
}
/* === LIGHTBOX GALERIA === */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.nav-item,
.submenu-toggle {
    background: #1e2129c2 !important; 
    color: var(--muted) !important;  
    transition: none !important;     
}

.nav-item:hover,
.nav-item:focus,
.nav-item.active,
.submenu-toggle:hover,
.submenu-toggle:focus,
.submenu-toggle.active {
    background: #2c2f38 !important;
    color: var(--muted) !important;
}

}

/*MAPY W KONTAKCIE*/

.contact-info {
  margin-bottom: 20px; 
  font-size: 1rem;
  line-height: 1.5;
}

.contact-map iframe {
  width: 100%;     
  height: 600px;   
  border-radius: 12px;
}

/* ===== SUBMENU ===== */
.submenu-toggle {
  cursor: pointer;
  color: var(--muted); 
  background: transparent; 
}

.submenu-toggle.active {
  color: #fff; 
  background: linear-gradient(90deg, var(--glass), rgba(255,255,255,0.02));
  border-left-color: var(--accent);
  font-weight: 600;
}

.submenu {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-left: 10px;
}

.submenu.show {
  display: flex;
}

.submenu-item {
  padding: 10px 14px;
  border-radius: 8px;
  background: #24211f5e;
  cursor: pointer;
  color: #fff;
  transition: 0.2s;
}

.submenu-item:hover {
  background: var(--panel-hover);
}

.submenu-item.active-thumb {
  background: var(--accent);
  color: #fff;
}

.subpage {
  display: none;
}

.subpage.active {
  display: block;
}

/* website created by Antoni Kalinowski */