/* ===========================
   Zmienne i motyw kolorów
=========================== */
:root {
  --primary-color: #0078d4;
  --secondary-color: #004f91;
  --bg-light: #f5f7fa;
  --text-color: #333;
  --card-bg: #ffffff;
  --max-width: 1100px;
}

/* ===========================
   Reset i ogólny wygląd
=========================== */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
}

/* ===========================
   Nagłówek
=========================== */
.header {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
}

.header-image {
  width: 100%;
  max-height: 220px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background-color: #fff; /* dla przezroczystych logo */
}

/* ===========================
   Nawigacja
=========================== */
.navbar {
  background: var(--primary-color);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.nav-list a:hover,
.nav-list .active {
  background-color: var(--secondary-color);
}

/* ===========================
   Główna treść
=========================== */
.main-content {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Sekcja wstępu */
.intro h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.intro p {
  text-align: justify;
  margin-bottom: 1rem;
}

/* Sekcja oferty */
.offer h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro-text {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.offer-list {
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.offer-list li {
  background: var(--card-bg);
  margin: 0.7rem 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.offer-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Sekcja kontaktu */
.contact h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px;
  text-align: center;
  line-height: 1.6;
}

.contact-card h2 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-card p {
  margin: 0.3rem 0;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Sekcja galerii */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 1rem;
}

.gallery-item {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item h2 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.gallery-item p {
  font-size: 0.95rem;
  color: #555;
}

/* Sekcja informacji o stronie */
.page-info {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
}

.page-info h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-info p {
  font-size: 1.2rem;
  color: var(--text-color);
}

/* ===========================
   Stopka
=========================== */
.footer {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ===========================
   Responsywność
=========================== */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    text-align: center;
  }

  .intro h1,
  .offer h1,
  .contact h1,
  .page-info h1 {
    font-size: 1.6rem;
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* ===========================
   Tryb ciemny
=========================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #121212;
    --text-color: #f0f0f0;
    --card-bg: #1e1e1e;
  }

  body {
    background-color: var(--bg-light);
    color: var(--text-color);
  }

  .navbar {
    background: #1e1e1e;
  }

  .offer-list li,
  .gallery-item,
  .contact-card {
    background: var(--card-bg);
  }

  .gallery-item p,
  .page-info p,
  .contact-card h2 {
    color: #ccc;
  }

  .footer {
    background-color: #111;
    color: #aaa;
  }
}

