/* ============================================================
   JAKUB QBA NIEGOWSKI – Strona osobista (wersja statyczna)
   Wierna kopia: jakubniegowski.wcentrumrozwoju.pl
   Czcionka: Poppins (Google Fonts: 200, 300, 400, 500)
   ============================================================ */

/* ── ZMIENNE CSS ── */
:root {
  --bg-body:         #6c0c99;
  --bg-header:       #b3098d;
  --bg-cards:        #4f0372;
  --bg-about:        #b4009d;
  --bg-contact-box:  #4b006f;
  --gradient:        linear-gradient(31deg, #6c0c99 0%, #ff00b7 100%);
  --accent:          #ff00b7;
  --accent-hover:    #d400a0;
  --text-cream:      #fdfae9;
  --text-yellow:     #fbf85d;
  --font:            'Poppins', sans-serif;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg-body);
  color: #fff;
  min-width: 320px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── NAGŁÓWEK H1 ── */
.site-header {
  background-color: var(--bg-header);
  text-align: center;
  padding: 10px 20px;
}

.site-header h1 {
  font-size: 40px;
  font-weight: 200;
  color: var(--text-cream);
  line-height: 1;
  letter-spacing: 0.01em;
}

.site-header h1 a {
  color: inherit;
}

/* ── PASEK PODTYTUŁU ── */
.subtitle-bar {
  background: var(--gradient);
  text-align: center;
  padding: 10px 20px;
}

.subtitle-bar p {
  font-size: 28px;
  font-weight: 200;
  color: var(--text-yellow);
  line-height: 1;
  letter-spacing: 0.01em;
}

/* ── BANER HERO ── */
.hero-banner {
  background-color: #1a1030;
  line-height: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  object-position: center;
}

/* ── SEKCJA KART ── */
.cards-section {
  background-color: var(--bg-cards);
  padding: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1580px;
  margin: 0 auto;
}

/* ── KARTA – cały box ma gradient ── */
.card {
  background: var(--gradient);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 300;
  color: var(--text-cream);
  line-height: 1;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  flex: 1;
}

.card-btn {
  margin-top: 12px;
  text-align: center;
}

.card-btn a {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  text-decoration: underline;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.card-btn a:hover {
  background-color: var(--accent-hover);
}

/* ── SEKCJA O MNIE ── */
.about-section {
  background-color: var(--bg-about);
  padding: 40px 20px 50px;
}

.about-section > h2 {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-yellow);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1;
}

.about-intro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.about-intro img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.about-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
}

.about-bio {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
}

.about-bio p {
  margin-bottom: 1em;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-bio .signature {
  text-align: right;
  font-weight: 500;
  margin-top: 1.5em;
}

/* ── KONTAKT ── */
.contact-section {
  background-color: var(--bg-body);
  padding: 40px 20px;
}

.contact-box {
  background-color: var(--bg-contact-box);
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 30px 35px;
  border-radius: 4px;
}

.contact-box h2 {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-yellow);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1;
}

.contact-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 12px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-box a {
  color: var(--text-yellow);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.contact-box a:visited {
  color: var(--text-yellow);
}

.contact-box a:hover {
  color: #fff9b0;
}

/* ── STOPKA ── */
.site-footer {
  background-color: var(--bg-body);
  border-top: 1px solid #8a0ab5;
  text-align: center;
  padding: 15px 20px;
}

.site-footer p {
  font-size: 14px;
  color: #d0a0e0;
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */

/* Średni desktop / duże tablety → 3 kolumny */
@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card h2 {
    font-size: 26px;
  }
}

/* Tablety → 2 kolumny */
@media (max-width: 720px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .card h2 {
    font-size: 22px;
  }
  .about-intro {
    flex-direction: column;
    align-items: center;
  }
}

/* Telefony → 1 kolumna */
@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card h2 {
    font-size: 20px;
  }
  .site-header h1 {
    font-size: 28px;
  }
  .subtitle-bar p {
    font-size: 18px;
  }
  .cards-section {
    padding: 12px;
  }
  .about-section {
    padding: 30px 14px 40px;
  }
  .contact-section {
    padding: 30px 14px;
  }
  .contact-box {
    padding: 20px 16px 26px;
  }
}

/* ── PRINT ── */
@media print {
  .card-btn { display: none; }
  body { background: white; color: #000; }
}
