/* =============================================================
   Poradnia Równowaga — wspólny "chrome" podstron
   Nawigacja, stopka, baner zgody, przyciski.
   Wymaga wcześniej wczytanego colors_and_type.css (tokeny marki).
   ============================================================= */

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; line-height: 1;
  transition: all 220ms var(--ease-out);
  border: 1.5px solid transparent;
}
.btn.primary { background: var(--brand-rose); color: #fff; box-shadow: var(--shadow-rose); }
.btn.primary:hover {
  background: var(--brand-rose-ink); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(194,24,91,0.55);
}
.btn.ghost { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn.ghost:hover { background: var(--brand-navy); color: var(--cream-50); transform: translateY(-2px); }
.btn .arrow { width: 16px; height: 16px; display: inline-block; transition: transform 220ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 243, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-200);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; gap: 36px;
}
.logo-lockup {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 4px; text-decoration: none; line-height: 1;
}
.logo-lockup img { height: 38px; width: auto; display: block; }
.logo-lockup .clinic-name {
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; color: var(--brand-navy); font-weight: 500; line-height: 1;
}
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--ink-800); text-decoration: none;
  transition: color 220ms var(--ease-out);
  position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--brand-rose); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--brand-rose);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--brand-rose); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-rose);
  transition: all 220ms var(--ease-out);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--brand-rose-ink); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -16px rgba(194,24,91,0.55);
}

/* ---------- Stopka ---------- */
footer.site-footer {
  background: var(--brand-navy); color: var(--cream-50);
  padding: 80px 32px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-brand .lockup img { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: 0.96; }
.footer-brand .lockup .clinic-name {
  font-family: var(--font-display); font-style: italic; font-size: 32px;
  color: var(--brand-peach); font-weight: 500; line-height: 1;
}
.footer-brand p { margin-top: 22px; font-size: 14px; line-height: 1.65; opacity: 0.78; max-width: 300px; }
footer.site-footer h4 {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-peach); margin: 6px 0 20px;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
footer.site-footer a {
  color: var(--cream-50); text-decoration: none; font-size: 14px;
  opacity: 0.82; transition: opacity 220ms var(--ease-out);
}
footer.site-footer a:hover { opacity: 1; color: var(--brand-peach); }
footer.site-footer li { font-size: 14px; opacity: 0.82; line-height: 1.6; }
/* długi adres e-mail nie może rozpychać siatki na wąskich ekranach */
footer.site-footer a, footer.site-footer li { overflow-wrap: anywhere; }
footer.site-footer p { max-width: 300px; }
.footer-base {
  max-width: 1200px; margin: 64px auto 0;
  padding-top: 28px; border-top: 1px solid rgba(253,249,243,0.14);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; opacity: 0.65; letter-spacing: 0.04em;
}

/* ---------- Baner zgody na cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--cream-200);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 22px 24px; font-family: var(--font-body);
  transform: translateY(160%); transition: transform 340ms var(--ease-out);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--ink-700); max-width: none; }
.cookie-banner a { color: var(--brand-rose); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all 200ms var(--ease-out);
}
.cookie-accept { background: var(--brand-rose); color: #fff; box-shadow: var(--shadow-rose); }
.cookie-accept:hover { background: var(--brand-rose-ink); transform: translateY(-1px); }
.cookie-reject { background: transparent; color: var(--brand-navy); border-color: var(--cream-300); }
.cookie-reject:hover { border-color: var(--brand-navy); }
.cookie-settings-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; opacity: inherit;
}

@media (max-width: 1000px) {
  .nav-links { display: none; }
  /* minmax(0,1fr) zamiast 1fr — inaczej długie słowa blokują zwężanie kolumn */
  .footer-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
}
@media (max-width: 560px) {
  footer.site-footer { padding: 56px 22px 32px; }
  .footer-inner { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .footer-base { margin-top: 40px; }
}
@media (max-width: 520px) {
  .cookie-actions button { flex: 1 1 auto; }
}
