/*
  ============================================================
  PORTFOLIO.CSS — wspólny arkusz dla wszystkich stron portfolio
  Grupa Kropidłowscy | kropidlowscy.pl
  ============================================================
  Zmień tutaj → zmiana działa globalnie na wszystkich podstronach.
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', system-ui, sans-serif; background: #fff; color: #111; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: .82rem; color: #6b7280; text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #111; font-weight: 600; }
.nav-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .82rem; color: #9ca3af; text-decoration: none; transition: color .2s;
}
.nav-back:hover { color: #111; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 85vh; overflow: hidden;
  display: grid; place-items: center;
  padding: 100px 24px 56px;
}
.hero-circle {
  position: absolute;
  width: clamp(360px, 52vw, 780px);
  height: clamp(360px, 52vw, 780px);
  border-radius: 50%; background: #fecd00;
  top: -25%; left: -14%;
  pointer-events: none; z-index: 0;
}
.hero-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; width: 100%; max-width: 640px;
}
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.tag {
  display: inline-flex; align-items: center;
  background: #fecd00; color: #111;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.hero-body h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 800;
  line-height: 1; letter-spacing: -.025em;
  white-space: nowrap; margin-bottom: 18px;
}
.hero-body p {
  font-size: .98rem; color: #6b7280; line-height: 1.7;
  max-width: 440px; margin-bottom: 32px;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-dark {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff;
  font-size: .84rem; font-weight: 600;
  padding: 13px 28px; border-radius: 999px;
  text-decoration: none; transition: background .2s;
}
.btn-dark:hover { background: #333; }

.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fecd00; color: #111;
  font-size: .84rem; font-weight: 700;
  padding: 13px 26px; border-radius: 999px;
  text-decoration: none; transition: background .2s;
}
.btn-accent:hover { background: #e6b800; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #111;
  font-size: .84rem; font-weight: 600;
  padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid #d1d5db;
  text-decoration: none; transition: border-color .2s;
}
.btn-outline:hover { border-color: #111; }

/* ══════════════════════════════════════════
   SCROLL HINT
══════════════════════════════════════════ */
.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #9ca3af; font-size: .6rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ══════════════════════════════════════════
   NGO STRIP (opcjonalny — tylko dla NGO projektów)
══════════════════════════════════════════ */
.ngo-strip { background: #111; padding: 22px 48px; }
.ngo-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ngo-badge {
  flex-shrink: 0; background: #fecd00; color: #111;
  font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.ngo-strip p { font-size: .82rem; color: #9ca3af; line-height: 1.6; }
.ngo-strip p strong { color: #fff; }

/* ── .screen-wrap (używany przez stare podstrony) ── */
.screen-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 16px 56px rgba(0,0,0,.12); }
.screen-wrap img { display: block; width: 100%; height: auto; }

/* Mobile screenshot */
.mobile-screen-wrap { display: none; }

/* ══════════════════════════════════════════
   SEKCJE LEWO/PRAWO (.section-row)
   Używane przez: eko-gminapuck, sport-gminapuck, kaszuby24
══════════════════════════════════════════ */
.sections { background: #f8f9fa; padding: 80px 0 20px; }
.section-row {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: center; margin-bottom: 100px;
}
.section-row:last-child { margin-bottom: 0; padding-bottom: 80px; }
.section-row.reverse .section-text { order: 2; }
.section-row.reverse .section-img  { order: 1; }

.section-label { font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #9ca3af; margin-bottom: 12px; }
.section-h {
  font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; line-height: 1.25;
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-h::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: #fecd00; }
.section-p { font-size: .875rem; color: #6b7280; line-height: 1.78; margin-bottom: 12px; }
.section-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.section-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: #6b7280; line-height: 1.6; }
.section-list li .dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #fecd00; margin-top: 6px; }

.screen-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 16px 56px rgba(0,0,0,.12); }
.screen-frame img { display: block; width: 100%; height: auto; }
.screen-frame.clipped { aspect-ratio: 4/3; }
.screen-frame.clipped img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Animacje wejścia dla sekcji lewo/prawo */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Dla .section-row.reverse — strony się zamieniają */
.section-row.reverse .fade-right { transform: translateX(-40px); }
.section-row.reverse .fade-left  { transform: translateX(40px); }
.section-row.reverse .fade-right.visible,
.section-row.reverse .fade-left.visible  { transform: translateX(0); }

/* ══════════════════════════════════════════
   CTA
══════════════════════════════════════════ */
.cta { background: #fff; padding: 100px 48px; }
.cta-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.cta-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #9ca3af; margin-bottom: 18px;
}
.cta h2 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.cta h2 mark { background: #fecd00; color: #111; padding: 0 4px; border-radius: 4px; }
.cta-desc { font-size: .88rem; color: #6b7280; line-height: 1.75; margin-bottom: 30px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Karta "Dlaczego my?" */
.why-card { background: #f8f9fa; border-radius: 20px; padding: 36px; }
.why-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #9ca3af; margin-bottom: 24px;
}
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-row { display: flex; align-items: flex-start; gap: 14px; }
.why-icon {
  flex-shrink: 0; width: 38px; height: 38px;
  background: #fecd00; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 18px; height: 18px; stroke: #111; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-row-text strong { display: block; font-size: .84rem; font-weight: 700; color: #111; margin-bottom: 3px; }
.why-row-text span { font-size: .78rem; color: #6b7280; line-height: 1.55; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { background: #111; padding: 32px 48px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
footer p { font-size: .72rem; color: #6b7280; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: .82rem; color: #6b7280; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* ══════════════════════════════════════════
   CHIPS (tagi technologii / kategorii)
══════════════════════════════════════════ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .7rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */

/* Elementy wchodzą z dołu */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Elementy wchodzą z lewej */
.fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Elementy wchodzą z prawej */
.fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Opóźnienia dla sekwencji */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* Wyłącz animacje jeśli użytkownik woli brak ruchu */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 1023px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }

  /* Hero */
  .hero { min-height: 80vh; padding: 88px 20px 48px; }
  .hero-body h1 { white-space: normal; font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .hero-body p { font-size: .9rem; max-width: 100%; }

  /* NGO strip */
  .ngo-strip { padding: 18px 20px; }
  .ngo-strip-inner { gap: 12px; }
  .ngo-strip p { font-size: .78rem; }

  /* Story */
  .story { padding-top: 40px; }
  .story-wrap { grid-template-columns: 1fr; padding: 0 20px; gap: 0; }
  .story-right { display: none; }
  .story-step { min-height: 0; opacity: 1 !important; padding: 32px 0; border-bottom: 1px solid #e9ecef; }
  .story-step:last-child { border-bottom: none; }
  .step-h { font-size: 1.35rem; gap: 10px; }
  .step-h::before { width: 9px; height: 9px; }
  .step-p { font-size: .84rem; }
  .step-list li { font-size: .84rem; }
  .mobile-screen-wrap { display: block !important; padding: 24px 20px 40px; }

  /* Sections lewo/prawo */
  .sections { padding: 40px 0 10px; }
  .section-row { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; margin-bottom: 56px; }
  .section-row.reverse .section-text { order: 1; }
  .section-row.reverse .section-img  { order: 2; }
  .section-h { font-size: 1.3rem; }
  .section-p { font-size: .84rem; }

  /* CTA */
  .cta { padding: 56px 20px; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta h2 { font-size: 1.7rem; }
  .why-card { padding: 24px; }

  /* Footer */
  footer { padding: 28px 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
