/* SEWTEAM — warstwa wizualna strony głównej (statyczna wersja, sierpień 2026)
   Paleta: #085008 (ciemna zieleń) / #13612e (leśna) / #96be0f (limonka) */
:root {
  --sew-g1: #085008;
  --sew-g2: #13612e;
  --sew-lime: #96be0f;
  --sew-mist: #f3f8e8;
}

/* ── 1. Gradientowe nagłówki ─────────────────────────────── */
.entry-content h1,
.entry-content h2 {
  background-image: linear-gradient(96deg, var(--sew-g1) 0%, var(--sew-g2) 52%, var(--sew-lime) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--sew-g1); /* fallback dla starych przeglądarek */
}
.entry-content h1 *,
.entry-content h2 * {
  color: inherit !important;
  -webkit-text-fill-color: inherit;
}

/* ── 2. Ciaśniejsze sekcje (likwidacja wielkich przerw) ──── */
.elementor-13 .e-con.e-parent {
  padding-top: clamp(20px, 3vw, 40px) !important;
  padding-bottom: clamp(20px, 3vw, 40px) !important;
  min-height: 0 !important;
}
.elementor-13 .e-con.e-parent .e-con {
  min-height: 0 !important;
}
.elementor-13 .elementor-widget-spacer .elementor-spacer-inner {
  height: min(var(--spacer-size, 16px), 20px) !important;
}

/* ── 3. Przyciski: kwadratowe + animacje ─────────────────── */
.elementor-button,
.header-button-wrap .button {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  will-change: transform;
}
.elementor-button::before,
.header-button-wrap .button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .55s ease;
  pointer-events: none;
}
.elementor-button:hover,
.elementor-button:focus-visible,
.header-button-wrap .button:hover,
.header-button-wrap .button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(8, 80, 8, .28);
}
.elementor-button:hover::before,
.header-button-wrap .button:hover::before {
  transform: translateX(110%);
}
.elementor-button:active,
.header-button-wrap .button:active {
  transform: translateY(-1px) scale(.98);
}

/* ── 4. Animacje wejścia sekcji przy scrollu ─────────────── */
.sew-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.sew-reveal.sew-in {
  opacity: 1;
  transform: none;
}

/* hero: wejście od razu po załadowaniu */
@keyframes sewHeroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.elementor-13 h1.elementor-heading-title {
  animation: sewHeroIn .8s cubic-bezier(.22,.61,.36,1) both .15s;
}

/* ── 5. Sekcje person jako karty (talia kart przy scrollu) ─ */
.sew-stack { position: relative; width: 100%; }
.sew-stack-card {
  background: linear-gradient(135deg, var(--sew-mist) 0%, #ffffff 70%);
  border-radius: 18px;
  border: 1px solid rgba(150, 190, 15, .28);
  box-shadow: 0 4px 22px rgba(8, 80, 8, .07);
  padding: clamp(20px, 3vw, 36px) !important;
  margin: 0 0 22px 0 !important;
}
@media (min-width: 768px) {
  .sew-stack-card {
    position: sticky;
    top: clamp(84px, 13vh, 140px);
    box-shadow: 0 -12px 34px rgba(8, 80, 8, .14), 0 4px 22px rgba(8, 80, 8, .07);
  }
}
.elementor-13 img[src*="/custom/img/persona-"] {
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(8, 80, 8, .14));
  transition: transform .4s ease;
}
.sew-stack-card:hover img[src*="/custom/img/persona-"] {
  transform: translateY(-6px) scale(1.02);
}

/* ── 7. Pasek postępu czytania ───────────────────────────── */
.sew-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--sew-g1), var(--sew-lime));
  z-index: 99999;
  pointer-events: none;
  transition: width .1s linear;
}

/* ── 8. Menu: animowane podkreślenie ─────────────────────── */
.main-navigation .menu > li > a {
  position: relative;
}
.main-navigation .menu > li > a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--sew-g1), var(--sew-lime));
  transition: width .3s ease, left .3s ease;
}
.main-navigation .menu > li > a:hover::after,
.main-navigation .menu > li.current-menu-item > a::after {
  width: 70%;
  left: 15%;
}

/* ── 9. Hero: żywy gradient + dekoracyjne plamy ──────────── */
@keyframes sewGradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.elementor-13 h1.elementor-heading-title {
  background-size: 220% 220%;
  animation: sewHeroIn .8s cubic-bezier(.22,.61,.36,1) both .15s,
             sewGradShift 7s ease-in-out 1s infinite;
}
.sew-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
  animation: sewFloat 14s ease-in-out infinite;
}
/* treść sekcji zawsze nad plamami */
.elementor-13 .e-con.e-parent > .e-con-inner {
  position: relative;
  z-index: 1;
}
.sew-blob--lime  { background: #96be0f; }
.sew-blob--green { background: #13612e; animation-delay: -7s; animation-duration: 18s; }
@keyframes sewFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.12); }
  66%      { transform: translate(-30px, 24px) scale(.94); }
}

/* ── 10. Nagłówki sekcji: limonkowy akcent po odsłonięciu ── */
.sew-in .elementor-widget-heading h2::after {
  content: "";
  display: block;
  height: 4px;
  width: 52px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sew-g1), var(--sew-lime));
  -webkit-background-clip: border-box;
  background-clip: border-box;
  animation: sewBar .6s cubic-bezier(.22,.61,.36,1) both .2s;
}
@keyframes sewBar {
  from { width: 0; opacity: 0; }
  to   { width: 52px; opacity: 1; }
}

/* ── 11. Zdjęcia: delikatne życie przy najechaniu ────────── */
.elementor-13 .elementor-widget-image img {
  transition: transform .45s ease, filter .45s ease;
}
.elementor-13 .elementor-widget-image:hover img {
  transform: translateY(-4px) scale(1.025);
  filter: brightness(1.04);
}

/* ── 12. Grafiki person: spokojne unoszenie ──────────────── */
@keyframes sewBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.elementor-13 img[src*="/custom/img/persona-"] {
  animation: sewBob 5s ease-in-out infinite;
}
.sew-stack-card:nth-child(2) img[src*="/custom/img/persona-"] { animation-delay: -1.2s; }
.sew-stack-card:nth-child(3) img[src*="/custom/img/persona-"] { animation-delay: -2.4s; }
.sew-stack-card:nth-child(4) img[src*="/custom/img/persona-"] { animation-delay: -3.6s; }

/* ── 13. Talia kart: przykrywana karta chowa się w głąb ──── */
.sew-stack-card {
  transition: transform .15s linear, filter .15s linear;
  transform-origin: center top;
}

/* ── 6. Dostępność: szanuj ograniczenie ruchu ────────────── */
@media (prefers-reduced-motion: reduce) {
  .sew-reveal { opacity: 1; transform: none; transition: none; }
  .elementor-13 h1.elementor-heading-title { animation: none; }
  .elementor-button, .header-button-wrap .button,
  .elementor-13 img[src*="/custom/img/persona-"] { transition: none; }
  .elementor-button::before, .header-button-wrap .button::before { display: none; }
  .sew-blob { animation: none; }
  .elementor-13 img[src*="/custom/img/persona-"] { animation: none; }
  .sew-in .elementor-widget-heading h2::after { animation: none; }
  .sew-progress { display: none; }
  .sew-stack-card { transition: none; transform: none !important; filter: none !important; }
  .elementor-13 .elementor-widget-image:hover img { transform: none; }
}
