/* ============================================================
   KlaudiNails — baza (reset, typografia, layout, nav, footer)
   Paleta pochodzi z tokens.css.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* dostępność: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- typografia ---------- */
h1, h2, h3, h4 {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 400; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.75;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .74rem;
  font-weight: 500;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow.center { justify-content: center; }

.script { font-family: 'Parisienne', cursive; font-weight: 400; line-height: 1; }

/* wordmark tekstowy (nav / stopka) */
.wordmark {
  font-family: 'Parisienne', cursive;
  font-size: 1.9rem;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .k { color: var(--ink); }
.wordmark .n { color: var(--gold); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section.alt { background: var(--cream-2); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.gold { color: var(--gold); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, background .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-rose { background: var(--rose-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-rose:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- karty / placeholdery ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--cream-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph.tall { aspect-ratio: 3/4; }
.ph.square { aspect-ratio: 1/1; }
.ph.wide { aspect-ratio: 4/3; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(var(--hero-c), .82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease), background .3s;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .wordmark { font-size: 1.7rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  white-space: nowrap;
  font-family: 'Jost', sans-serif;
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--rose-deep); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--rose-deep); }
.nav-right { display: flex; align-items: center; gap: 18px; }

/* CTA „Umów wizytę” w menu — tylko na mobile (patrz media query) */
.nav-cta-mobile { display: none; }

/* przełącznik języka (Polylang) */
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  background: var(--paper);
}
.lang-btn {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-soft);
  transition: .25s;
}
.lang-btn.active { background: var(--ink); color: #fff; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .3s;
}

/* ---------- stopka ---------- */
.footer { background: var(--footer-bg); color: #EFE3D9; padding: 72px 0 32px; }
.footer a { color: #EFE3D9; opacity: .85; transition: .25s; }
.footer a:hover { opacity: 1; color: var(--gold-soft); }
.footer .wordmark .k { color: #fff; }
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .95rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  opacity: .7;
  flex-wrap: wrap;
}

/* ---------- pomocnicze ---------- */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  letter-spacing: .04em;
}
.pill svg { width: 15px; height: 15px; flex: none; }

/* ---------- reveal on scroll (natywne scroll-driven animations) ---------- */
.reveal { opacity: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      animation: kn-reveal linear forwards;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}
@keyframes kn-reveal {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsywność ---------- */
@media (max-width: 880px) {
  body { font-size: 16px; }
  /* Bez backdrop-filter na mobile — inaczej .nav staje się containing blockiem
     dla position:fixed i panel menu liczy się względem paska, nie ekranu. */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--cream);
  }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 36px 48px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 70;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.3rem; }
  .burger { display: flex; z-index: 80; }
  /* przycisk z paska chowamy — przenosi się do menu (brak overflowu na wąskich ekranach) */
  .nav-right .btn-primary { display: none; }
  .nav-right { gap: 12px; }
  .nav-cta-mobile { display: block; margin-top: 14px; }
  .nav-cta-mobile .btn { font-size: 1rem; }
  .footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
