/* ==========================================================================
   Wojciech Burda — Fizjoterapia
   Paleta i typografia w jednym miejscu: zmień wartości poniżej, żeby
   przemalować całą stronę.
   ========================================================================== */

:root {
  --ink:        #10201f;
  --ink-soft:   #435856;
  --ink-muted:  #6d817f;

  --teal-900:   #0b3a38;
  --teal-700:   #0f4c4a;
  --teal-500:   #1d7a74;
  --teal-100:   #d9ebe8;
  --teal-50:    #f1f7f5;

  --sand:       #c98b5e;
  --sand-soft:  #f6ece3;

  --bg:         #ffffff;
  --bg-alt:     #f6f8f7;
  --line:       #e2e9e7;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 1px 2px rgba(16, 32, 31, .04), 0 8px 24px rgba(16, 32, 31, .06);
  --shadow-lg:  0 2px 4px rgba(16, 32, 31, .05), 0 18px 48px rgba(16, 32, 31, .10);

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap:       1120px;
  --gap:        clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); }
a:hover { color: var(--teal-500); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--teal-900);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.1875rem; letter-spacing: -.01em; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

}


:where(a, button, summary, input):focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------- Header / nav */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(16, 32, 31, .05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--teal-700);
}
.brand-mark { display: grid; place-items: center; color: var(--teal-700); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 1.0625rem; color: var(--teal-900); letter-spacing: -.01em;
}
.brand-text small {
  font-size: .75rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: .9375rem; font-weight: 500;
  padding: .35rem 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--sand);
  transition: right .22s ease;
}
.site-nav a:hover { color: var(--teal-900); }
.site-nav a:hover::after { right: 0; }

/* CTA w nagłówku musi wygrać z regułą `.site-nav a`, która ma wyższą
   specyficzność niż `.btn` i zerowała przyciskowi poziomy padding. */
.site-nav .nav-cta {
  color: #fff;
  padding: .72rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
}
.site-nav .nav-cta:hover { color: #fff; }
.site-nav .nav-cta::after { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--teal-900); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn-primary {
  background: var(--teal-700); color: #fff;
  box-shadow: 0 6px 16px rgba(15, 76, 74, .22);
}
.btn-primary:hover { background: var(--teal-500); color: #fff; transform: translateY(-1px); }

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60rem 32rem at 82% -10%, var(--teal-50), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero-inner {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-500);
  margin: 0 0 .9rem;
}
/* W sekcji kontaktowej etykieta jest jedynym nagłówkiem, więc potrzebuje
   odstępu, który normalnie dawał tytuł sekcji. */
.section-contact h2.eyebrow { margin-bottom: 1.9rem; }
.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-soft); max-width: 34em;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: .5rem .75rem;
  list-style: none; margin: 2rem 0 0; padding: 0;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem; font-size: .875rem; color: var(--ink-soft);
}
.hero-badges li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand); flex: none;
}

.hero-media img,
.hero-media .photo-slot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

/* Miejsce na zdjęcie, które klient wgra później. Po podmianie na <img>
   ta klasa znika ze strony razem z ramką. */
.photo-slot {
  display: grid; place-content: center; justify-items: center; gap: .55rem;
  background: linear-gradient(160deg, var(--teal-100), var(--sand-soft));
  border: 2px dashed rgba(15, 76, 74, .3);
  border-radius: var(--radius-lg);
  color: var(--teal-700); text-align: center;
  padding: 1.5rem; font-size: .875rem; font-weight: 500;
}
.photo-slot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem; font-weight: 400;
  background: rgba(255, 255, 255, .65);
  padding: .2rem .5rem; border-radius: 6px;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- Sections */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section[id] { scroll-margin-top: 88px; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-bottom: .5rem; }
.section-intro { color: var(--ink-soft); max-width: 46em; margin-bottom: 2.5rem; }
}

.two-col {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
}
.prose p { color: var(--ink-soft); }

/* ----------------------------------------------------------------- Cards */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-100);
}
.card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-500);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }


/* --------------------------------------------------------------- Kontakt */

.section-contact { background: var(--bg-alt); }
.contact-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 2.5rem;
}
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: .75rem;
}
.contact-link {
  font-size: 1.0625rem; font-weight: 600; text-decoration: none;
  color: var(--teal-700); border-bottom: 1px solid var(--teal-100);
}
.contact-link:hover { border-bottom-color: var(--teal-500); }
.muted { color: var(--ink-muted); font-size: .875rem; margin-top: .5rem; }


.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  background: var(--teal-700); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem);
}
.cta-band p {
  margin: 0; font-family: var(--font-serif); font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  max-width: 32em;
}
.cta-band .btn-primary { background: #fff; color: var(--teal-900); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--sand-soft); color: var(--teal-900); }

.cta-band-home { margin-top: 3rem; gap: 1.5rem 2rem; }
/* Pasek z samym przyciskiem: bez akapitu space-between nie ma czego rozsuwać. */
.cta-band-solo { justify-content: center; }
.cta-band-copy { flex: 1 1 auto; min-width: min(22rem, 100%); max-width: 40rem; }
.cta-band-copy .btn { margin-top: 1.4rem; }
.cta-band .cta-kicker {
  font-family: var(--font-sans);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-100); margin-bottom: .45rem;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  background: var(--teal-900); color: #cfe0dd;
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.footer-brand { margin: 0; }
.footer-brand strong { color: #fff; font-family: var(--font-serif); font-weight: 600; }
.site-footer ul {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.site-footer a { color: #cfe0dd; text-decoration: none; font-size: .9375rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin: 0; font-size: .8125rem; color: #9ab8b4; width: 100%; }

/* --------------------------------------------------------------- Reveals */

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------- Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .two-col { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .hero-media img, .hero-media .photo-slot { aspect-ratio: 4 / 3; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 72px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: .9rem 0; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta {
    display: inline-flex;
    margin-top: 1rem;
    padding: .9rem 1.5rem;
  }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band-solo { align-items: center; }
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .cta-band { display: none; }
  body { font-size: 11pt; }
}
