/* =========================================================
   EWA WOŁCZAK — LOGOPEDA — layout.css — szkielet: nav, hero, footer
   Wydzielone ze styles.css podczas refactoringu (2026).
   ========================================================= *//* =========================================================
   Shared section scaffolding
   ========================================================= */
section{ position:relative; }

.section-head{
  max-width:var(--container);
  margin:0 auto;
  padding:128px var(--pad) 72px;
}
.section-head--center{ text-align:center; }
.section-head--center .section-head__title{ margin:0 auto; }

.section-head__eyebrow{
  font-family:var(--f-body);
  font-weight:700;
  font-size:13px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--coral-deep);
  margin-bottom:16px;
  display:inline-flex; align-items:center; gap:8px;
}
.section-head__eyebrow::before{
  content:''; width:8px; height:8px; border-radius:50%;
  background:var(--sage);
}
.section-head__title{
  font-family:var(--f-display);
  font-weight:600;
  font-size:clamp(32px, 4.6vw, 52px);
  line-height:1.12;
  letter-spacing:-0.01em;
  max-width:16ch;
}
.section-head__lead{
  margin-top:26px;
  max-width:46ch;
  color:var(--ink-soft);
  font-size:17px;
  line-height:1.65;
}
.section-head__title--oneline{
  max-width:none;
  font-size:clamp(24px, 3.6vw, 44px);
  white-space:nowrap;
}
@media (max-width:640px){
  .section-head__title--oneline{
    white-space:normal;
    font-size:clamp(26px, 6vw, 34px);
  }
}
.section-head__lead--center{ margin-left:auto; margin-right:auto; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--f-body);
  font-weight:700;
  font-size:15px;
  padding:16px 30px;
  border-radius:100px;
  white-space:nowrap;
  transition:transform var(--dur-base) var(--ease), background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.btn--solid{
  background:var(--coral);
  color:var(--paper);
  box-shadow:0 10px 24px -10px rgba(241,130,90,.6);
}
.btn--solid:hover{ background:var(--coral-deep); transform:translateY(-2px) scale(1.01); box-shadow:0 16px 30px -12px rgba(241,130,90,.55); }
.btn--ghost{
  border:1.5px solid var(--line);
  color:var(--ink);
  background:var(--paper);
}
.btn--ghost:hover{ border-color:var(--sage-deep); color:var(--sage-deep); transform:translateY(-2px) scale(1.01); box-shadow:0 12px 24px -16px rgba(43,42,51,.3); }
.btn:active{ transition-duration:var(--dur-instant); transform:translateY(0) scale(.98); }
.btn--wide{ width:100%; justify-content:center; }

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:20px var(--pad);
  overflow:hidden;
  transition:background .4s var(--ease), backdrop-filter .4s, box-shadow .4s, padding .4s;
}
.nav.is-scrolled{
  background:rgba(255,249,242,.86);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--line);
  padding:13px var(--pad);
}
.nav__logo{
  display:flex; align-items:center; gap:10px;
  font-family:var(--f-display); font-weight:600; font-size:19px;
  color:var(--ink);
}
.nav__logo-mark svg{ transition:transform var(--dur-base) var(--ease); }
.nav__logo:hover .nav__logo-mark svg{ transform:rotate(-3deg) scale(1.02); }

.nav__logo-bars line{
  transform-box:fill-box;
  transform-origin:bottom;
  animation:navLogoEq ease-in-out infinite;
}
.nav__logo-bars line:nth-child(1){ animation-duration:2.2s; animation-delay:-1.4s; }
.nav__logo-bars line:nth-child(2){ animation-duration:2.8s; animation-delay:-.5s; }
.nav__logo-bars line:nth-child(3){ animation-duration:2.0s; animation-delay:-1.8s; }
.nav__logo-bars line:nth-child(4){ animation-duration:2.6s; animation-delay:-.9s; }
.nav__logo-bars line:nth-child(5){ animation-duration:2.3s; animation-delay:-2.1s; }
@keyframes navLogoEq{
  0%, 100%{ transform:scaleY(.65); }
  50%{ transform:scaleY(1); }
}
@media (prefers-reduced-motion: reduce){
  .nav__logo-bars line{ animation:none; }
}

.nav__links{ display:flex; align-items:center; gap:30px; }
.nav__links a:not(.nav__cta){
  font-size:15px; font-weight:600;
  color:var(--ink-soft);
  position:relative;
  transition:color var(--dur-fast) var(--ease);
}
.nav__links a:not(.nav__cta)::after{
  content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px;
  background:var(--coral); transition:width var(--dur-base) var(--ease);
}
.nav__links a:not(.nav__cta):hover{ color:var(--ink); }
.nav__links a:not(.nav__cta):hover::after{ width:100%; }
.nav__cta{
  font-weight:700; font-size:14.5px;
  background:var(--coral); color:var(--paper);
  padding:11px 22px; border-radius:100px;
  transition:background var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.nav__cta:hover{ background:var(--coral-deep); transform:translateY(-2px) scale(1.02); box-shadow:0 10px 20px -8px rgba(241,130,90,.5); }
.nav__cta:active{ transition-duration:var(--dur-instant); transform:translateY(0) scale(.98); }

.nav__parent-zone{
  font-weight:700; font-size:14.5px;
  color:var(--ink);
  background:transparent;
  border:1.5px solid rgba(63,44,34,.16);
  padding:9.5px 18px; border-radius:100px;
  white-space:nowrap;
  transition:background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.nav__parent-zone:hover{
  background:var(--sage-light, #E7EFE1);
  border-color:transparent;
  transform:translateY(-2px);
}
.nav__parent-zone:active{ transition-duration:var(--dur-instant); transform:translateY(0) scale(.98); }

.nav__socials{ display:flex; align-items:center; gap:10px; }
.nav__social{
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px;
  border-radius:50%;
  background:var(--paper-soft);
  color:var(--ink-soft);
  transition:transform var(--dur-base) var(--ease), background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.nav__social:hover{ transform:translateY(-2px) scale(1.02); }
.nav__social:active{ transition-duration:var(--dur-instant); transform:translateY(0) scale(.98); }
.nav__social--fb:hover{ background:#1877F2; color:#fff; }
.nav__social--ig:hover{
  color:#fff;
  background:radial-gradient(circle at 30% 110%, #FFDB73 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}
.nav__social--tt:hover{
  background:linear-gradient(135deg, #25F4EE 0%, #010101 45%, #FE2C55 100%);
  color:#fff;
}
.nav__social--wa:hover{ background:#25D366; color:#fff; }

.nav__toggle{ display:none; flex-direction:column; gap:5px; width:26px; }
.nav__toggle span{ height:2.5px; background:var(--ink); border-radius:2px; transition:transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; align-items:center;
  padding:120px var(--pad) 70px;
}

.hero__blob{
  position:absolute; border-radius:50%;
  filter:blur(6px);
  opacity:.55;
  z-index:0;
  /* Zanikająca maska: bez tego przycięcie przez overflow:hidden sekcji
     tworzy widoczną, prostą linię przecinającą okrągły kształt. Dzięki
     masce kształt jest już niemal przezroczysty, zanim dojdzie do brzegu
     kontenera — więc przycięcie staje się niewidoczne. */
  -webkit-mask-image:radial-gradient(circle at center, #000 45%, transparent 78%);
  mask-image:radial-gradient(circle at center, #000 45%, transparent 78%);
}
.hero__blob--1{
  width:520px; height:520px; background:var(--coral-light);
  top:-160px; right:-120px;
  animation:blobfloat 14s ease-in-out infinite;
}
.hero__blob--2{
  width:380px; height:380px; background:var(--sage-light);
  bottom:-140px; left:-100px;
  animation:blobfloat 18s ease-in-out infinite reverse;
}


.hero__wave{
  position:absolute; bottom:0; left:0; width:100%; height:140px;
  z-index:0; opacity:.5;
}
.hero__wave path{ fill:none; stroke:var(--sage); stroke-width:3; stroke-linecap:round; }

.hero__inner{ position:relative; z-index:2; max-width:640px; }




.hero__eyebrow, .hero__title, .hero__lead{
  animation:heroIn .45s var(--ease) both;
}
.hero__actions{
  animation:heroPopIn .4s var(--ease) both;
}
.hero__eyebrow{ animation-delay:.04s; }
.hero__title{ animation-delay:.1s; }
.hero__lead{ animation-delay:.17s; }
.hero__actions{ animation-delay:.26s; }
.hero__portrait{ animation:heroPortraitIn .5s var(--ease) .28s both; }

.hero__eyebrow{
  font-weight:700; font-size:14px; letter-spacing:.08em;
  color:var(--coral-deep); margin-bottom:22px;
}

.hero__title{
  font-family:var(--f-display);
  font-weight:600;
  font-size:clamp(40px, 6vw, 62px);
  line-height:1.12;
  letter-spacing:-0.01em;
}
.hero__title-accent{ color:var(--coral); position:relative; display:inline-block; }

.hero__lead{
  margin-top:32px;
  max-width:50ch;
  font-size:18px;
  color:var(--ink-soft);
  line-height:1.65;
}

.hero__actions{
  margin-top:48px;
  display:flex; gap:16px; flex-wrap:wrap;
}

.hero__rating{
  margin-top:20px;
  display:inline-flex; align-items:center; gap:9px;
  font-size:14px; color:var(--ink-soft);
  text-decoration:none;
}
.hero__rating:hover{ color:var(--ink); }
.hero__rating-stars{
  color:#F5A623;
  letter-spacing:2px;
  font-size:15px;
}
.hero__rating strong{ color:var(--ink); }

.hero__cta-pulse{
  animation:heroCtaPulse 3.4s ease-in-out 4s infinite;
}
@keyframes heroCtaPulse{
  0%, 82%, 100%{ box-shadow:0 10px 24px -10px rgba(241,130,90,.6); transform:scale(1); }
  88%{ box-shadow:0 10px 24px -10px rgba(241,130,90,.6), 0 0 0 8px rgba(241,130,90,.18); transform:scale(1.035); }
  94%{ box-shadow:0 10px 24px -10px rgba(241,130,90,.6), 0 0 0 0 rgba(241,130,90,0); transform:scale(1); }
}
.hero__cta-pulse:hover{ animation-play-state:paused; }
@media (prefers-reduced-motion: reduce){
  .hero__cta-pulse{ animation:none; }
}

.hero__portrait{
  position:absolute; right:6%; top:50%; transform:translateY(-50%);
  z-index:1;
  display:none;
}
.hero__portrait-frame{
  width:300px; height:300px; border-radius:50%;
  overflow:hidden; position:relative;
  border:6px solid var(--paper);
  box-shadow:0 30px 60px -20px rgba(43,42,51,.25);
}
.hero__portrait-frame::after{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 30% 20%, rgba(241,130,90,.12), transparent 60%);
  pointer-events:none;
}
.hero__portrait-frame img{
  width:100%; height:100%; object-fit:cover; object-position:center 20%;
}
.hero__sticker{
  position:absolute; bottom:-10px; left:-10px;
  background:var(--sage); color:var(--paper);
  font-family:var(--f-display); font-weight:600; font-size:17px;
  padding:10px 18px; border-radius:100px;
  box-shadow:0 10px 20px -8px rgba(95,120,88,.5);
  transform:rotate(-4deg);
}

@media (min-width:980px){
  .hero__portrait{ display:block; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ position:relative; background:var(--ink); color:var(--paper); padding:88px var(--pad) 40px; text-align:center; overflow:hidden; }

/* ---- pikselowa, postrzępiona krawędź na górze stopki ---- */
.footer__pixel-edge{
  position:absolute; top:0; left:0; width:100%;
  height:44px;
  display:flex;
  align-items:flex-end;
  pointer-events:none;
  z-index:1;
  transform:translateY(-100%);
}
.footer__pixel-edge span{
  flex:0 0 auto;
  width:26px;
  display:block;
  animation:pixelPop .6s var(--ease) backwards;
}


/* ---- pikselowy "wąż" podążający za kursorem ---- */
.footer__cursor-trail{
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none;
  z-index:0;
}

.footer__socials{
  position:relative; z-index:2;
  display:flex; justify-content:center; gap:14px;
  margin:0 0 40px;
}
.footer__social{
  display:flex; align-items:center; justify-content:center;
  width:42px; height:42px;
  border-radius:50%;
  background:rgba(255,249,242,.08);
  color:var(--paper);
  transition:background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.footer__social:hover{
  color:#fff;
  transform:translateY(-2px);
}
.footer__social:active{ transition-duration:var(--dur-instant); transform:translateY(0) scale(.96); }
.footer__social--fb:hover{ background:#1877F2; }
.footer__social--ig:hover{
  background:radial-gradient(circle at 30% 110%, #FFDB73 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}
.footer__social--tt:hover{
  background:linear-gradient(135deg, #25F4EE 0%, #010101 45%, #FE2C55 100%);
}
.footer__social--wa:hover{ background:#25D366; }

.footer__quote{ position:relative; z-index:2; }
.footer__bottom{ position:relative; z-index:2; }
.footer__quote{
  font-family:var(--f-display); font-weight:500; font-style:italic;
  font-size:clamp(18px, 2.4vw, 24px);
  max-width:560px; margin:0 auto 40px;
  line-height:1.5;
  color:rgba(255,249,242,.92);
}
.footer__bottom{
  display:flex; justify-content:center; gap:24px; flex-wrap:wrap;
  font-size:13px; color:rgba(255,249,242,.5);
  border-top:1px solid rgba(255,249,242,.14);
  padding-top:24px;
}
.footer__bottom a:hover{ color:var(--coral); }

/* =========================================================
   RESPONSIVE NAV
   ========================================================= */
@media (max-width:900px){
  .nav__toggle{ display:flex; }
  .nav__links{
    position:fixed; top:0; right:0; height:100vh; width:min(78vw, 320px);
    background:var(--paper);
    flex-direction:column; align-items:flex-start;
    padding:100px 32px 40px;
    gap:26px;
    transform:translateX(100%);
    transition:transform .45s var(--ease);
    box-shadow:-10px 0 40px rgba(0,0,0,.08);
  }
  .nav__links.is-open{ transform:translateX(0); }
  .nav__cta{ margin-top:10px; }
  .nav__toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2){ opacity:0; }
  .nav__toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
}

