/* ============================================================
   enhancements.css — delikatne ulepszenia wizualne
   Nie nadpisuje układu, tylko subtelnie odświeża wygląd.
   ============================================================ */

/* --- Typografia i czytelność --- */
body {
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  line-height: 1.3;
}

p {
  margin-bottom: 18px;
}

/* --- Header: delikatny cień zamiast płaskiego paska --- */
.header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* --- Przyciski: subtelny efekt hover i cień --- */
.button,
a.button {
  box-shadow: 0 4px 14px rgba(84, 125, 182, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  letter-spacing: 0.04em;
}

.button:hover,
a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(84, 125, 182, 0.35);
  text-decoration: none;
}

.button.b1:hover,
a.button.b1:hover {
  background: #0e6a09;
}

.button.b2:hover,
a.button.b2:hover {
  background: #3a6aa8;
}

/* --- Sekcje: delikatna separacja --- */
.section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- Sekcja intro / hero: lekki gradient overlay dla lepszej czytelności tekstu --- */
#intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
  z-index: 0;
}

#intro .container,
#intro .headline {
  position: relative;
  z-index: 1;
}

/* --- Sekcja .green: lekki gradient zamiast płaskiego koloru --- */
.green {
  background: linear-gradient(135deg, #117E0B 0%, #1a9e12 100%);
}

/* --- Sekcja .blue: lekki gradient --- */
.blue {
  background: linear-gradient(135deg, #547DB6 0%, #3a6aa8 100%);
}

/* --- Sekcja .dark / footer: lekki gradient --- */
.dark,
.footer.dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
}

/* --- Footer: lepsza czytelność linków --- */
.footer a {
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --- Karty (cardbox) — wzmocnienie cienia przy hover --- */
.cardbox {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cardbox:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* --- Punkty (ul.points li, ul.simple li) --- */
ul.points li,
ul.simple li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

ul.points li:last-child,
ul.simple li:last-child {
  border-bottom: none;
}

/* --- Linki w treści --- */
p a,
.section-title a,
li a {
  color: #547DB6;
  text-decoration: none;
  border-bottom: 1px solid rgba(84, 125, 182, 0.3);
  transition: border-color 0.15s ease, color 0.15s ease;
}

p a:hover,
.section-title a:hover,
li a:hover {
  color: #3a6aa8;
  border-bottom-color: #3a6aa8;
  text-decoration: none;
}

/* --- Sekcja .slogan: lekka typografia --- */
.slogan h2 {
  letter-spacing: 0.06em;
  opacity: 0.92;
}

/* --- Responsywność: lepsze odstępy na mobile --- */
@media screen and (max-width: 580px) {
  .section {
    padding: 24px 0;
  }

  .heading1 {
    font-size: 22px;
    padding: 20px;
  }

  .heading2 {
    font-size: 18px;
  }

  p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* --- Scroll smooth dla przeglądarek, które go nie mają domyślnie --- */
html {
  scroll-behavior: smooth;
}
