/* ==========================================================================
   SEKCJA POKAZOWA 1 — Hero „Od rozmowy do projektu” (Divi)
   Sekcja: klasa .hero | wiersz: .hero-inner | kolumny: .hero-content, .hero-media
   Moduły do odsłonięcia: klasa .hero-reveal | zdjęcie: .hero-photo
   Canvas dodaje js/hero.js. Treść to wyłącznie natywne moduły Divi.
   ========================================================================== */
body.ps-site .et_pb_section.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: var(--space-2xl) 0 0 !important;
}
body.ps-site .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body.ps-site .hero > .et_pb_row { position: relative; z-index: 1; width: 100%; }

@media (min-width: 981px) {
  body.ps-site .hero .et_pb_row.hero-inner { display: flex; align-items: flex-end; gap: var(--space-xl); }
  body.ps-site .hero .et_pb_row.hero-inner::after { display: none; }
  body.ps-site .hero .hero-inner > .et_pb_column { margin: 0 !important; }
  body.ps-site .hero .hero-content { width: 57% !important; align-self: center; padding-bottom: var(--space-2xl); }
  body.ps-site .hero .hero-media { width: 43% !important; }
}

body.ps-site .hero-headline h1 { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin-bottom: 0; }
body.ps-site .hero-headline-line { display: block; }
body.ps-site .hero-headline-accent { color: var(--color-accent); font-size: var(--fs-display-sub); margin-top: var(--space-s); line-height: var(--lh-heading); }
body.ps-site .hero-lead, body.ps-site .hero-lead p { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: 560px; }
body.ps-site .hero-meta ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-l); padding: 0; margin: var(--space-l) 0 0; font-size: var(--fs-small); color: var(--color-text-muted); }
body.ps-site .hero-meta li { margin: 0; }
body.ps-site .hero-meta-strong { color: var(--color-text); font-weight: var(--fw-semibold); }
body.ps-site .hero-meta-accent { color: var(--color-accent); }
body.ps-site .hero-media { display: flex; justify-content: center; align-self: flex-end; background: radial-gradient(ellipse 52% 46% at 56% 36%, var(--color-photo-glow), transparent 72%); }
body.ps-site .hero-photo { width: 100%; margin-bottom: 0 !important; }
body.ps-site .hero-photo img { width: 100%; max-width: 560px; }

/* Odsłanianie — stan początkowy tylko gdy JS potwierdził animację */
body.ps-site .hero.hero-anim .hero-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--hero-i, 0) * 120ms + 150ms);
}
body.ps-site .hero.hero-anim.is-ready .hero-reveal { opacity: 1; transform: none; }
body.ps-site .hero.hero-anim .hero-photo { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: 300ms; }
body.ps-site .hero.hero-anim.is-ready .hero-photo { opacity: 1; transform: none; }

@media (max-width: 980px) {
  body.ps-site .et_pb_section.hero { min-height: auto; padding-top: var(--space-xl) !important; }
  body.ps-site .hero-photo img { max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ps-site .hero.hero-anim .hero-reveal, body.ps-site .hero.hero-anim .hero-photo { opacity: 1; transform: none; transition: none; }
}
