/* ============================================================
   Kocia Łapa — Brand Styles
   Paleta: krem #FAF6F0 · terakota #C2897A · szałwia #8FA68E · brąz #3D2F26
   Typografia: Fraunces (serif) + DM Sans (body)
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --cream:      #FAF6F0;
  --cream-d:    #EFE5D8;
  --terra:      #C2897A;
  --terra-d:    #A87060;
  --sage:       #8FA68E;
  --sage-d:     #6B8A6A;
  --brown:      #3D2F26;
  --brown-l:    #7A5C4F;
  --white:      #FFFFFF;

  --ff-serif:   'Fraunces', Georgia, serif;
  --ff-sans:    'DM Sans', system-ui, sans-serif;

  --r-sm:       8px;
  --r:          16px;
  --r-lg:       28px;
  --r-full:     9999px;

  --sh:         0 4px 24px rgba(61,47,38,.10);
  --sh-lg:      0 8px 48px rgba(61,47,38,.14);

  --ease:       .22s ease;
  --nav-h:      72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
}

body {
  font-family: var(--ff-sans);
  line-height: 1.65;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
p   { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow, .section-label {
  font-family: var(--ff-sans);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terra);
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(194,137,122,.12);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: var(--sh); }

.nav-bar {
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--brown); flex-shrink: 0;
}
.nav-wordmark {
  font-family: var(--ff-serif); font-size: 1.1rem;
  font-weight: 400; letter-spacing: -.01em;
}

.nav-links {
  display: flex; gap: 28px; margin-left: auto;
}
.nav-links a {
  font-size: .875rem; color: var(--brown-l);
  text-decoration: none; transition: color var(--ease);
}
.nav-links a:hover { color: var(--brown); }

.btn-nav {
  display: inline-flex; align-items: center;
  padding: 9px 22px;
  background: var(--terra); color: var(--white);
  border-radius: var(--r-full); font-size: .875rem;
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background var(--ease), transform var(--ease);
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--terra-d); transform: translateY(-1px); }

.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--brown); padding: 6px; margin-left: auto;
}

.mobile-menu {
  display: none; position: absolute;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-d);
  padding: 16px 24px 24px;
  box-shadow: var(--sh);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu a {
  display: block; padding: 12px 14px;
  color: var(--brown); text-decoration: none;
  border-radius: var(--r-sm); font-size: 1rem;
  transition: background var(--ease);
}
.mobile-menu a:hover { background: var(--cream-d); }
.mobile-cta-link {
  background: var(--terra) !important;
  color: var(--white) !important;
  text-align: center; font-weight: 500; margin-top: 8px;
}

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center;
  padding: 14px 32px;
  background: var(--terra); color: var(--white);
  border-radius: var(--r-full); font-size: 1rem;
  font-weight: 500; text-decoration: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-primary:hover {
  background: var(--terra-d); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194,137,122,.30);
}

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 0; color: var(--brown-l);
  font-size: .925rem; text-decoration: none;
  transition: color var(--ease);
}
.btn-ghost:hover { color: var(--brown); }

.btn-outline {
  display: inline-flex; align-items: center;
  padding: 11px 26px;
  border: 1.5px solid var(--terra); color: var(--terra);
  border-radius: var(--r-full); font-size: .9rem;
  font-weight: 500; text-decoration: none;
  transition: all var(--ease);
}
.btn-outline:hover { background: var(--terra); color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 64px 28px 0;
  gap: 40px;
}

.eyebrow {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px;
}
.dot { opacity: .4; }

.hero-headline {
  font-family: var(--ff-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--brown);
  margin: 0 0 24px;
}
.hero-headline em { font-style: italic; color: var(--terra); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--brown-l);
  max-width: 430px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 24px;
}

.hero-fig { margin: 0; }

.hero-img-frame {
  position: relative;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
}
.hero-img-frame img {
  width: 100%; height: 560px;
  object-fit: cover;
  filter: sepia(25%) brightness(1.03) contrast(.97);
}

.hero-badge {
  position: absolute; bottom: 20px; left: 20px;
  display: flex; align-items: center; gap: 7px;
  background: var(--terra); color: var(--white);
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-full);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
}

.hero-caption {
  font-size: .78rem; color: var(--brown-l);
  opacity: .65; padding: 10px 4px;
}

/* ============================================================
   WAVE DIVIDERS
   ============================================================ */
.wave-down, .wave-up {
  line-height: 0; margin: -1px 0;
}
.wave-down svg, .wave-up svg { width: 100%; height: 56px; display: block; }

/* ============================================================
   FILOZOFIA
   ============================================================ */
.filozofia {
  background: var(--cream-d);
  padding: 88px 0;
}
.filozofia-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.filozofia-text .section-label { margin-bottom: 20px; display: block; }
.filozofia-text p {
  font-size: 1.02rem; line-height: 1.82; color: var(--brown);
}

.filozofia-aside { display: flex; flex-direction: column; gap: 24px; }

.quote-block {
  background: var(--white);
  padding: 32px 32px 28px;
  border-radius: var(--r);
  border-left: 4px solid var(--terra);
  margin: 0;
}
.quote-mark {
  font-family: var(--ff-serif);
  font-size: 5.5rem; line-height: .5;
  color: var(--terra); opacity: .2;
  display: block; margin-bottom: 12px;
}
.quote-body {
  font-family: var(--ff-serif);
  font-size: 1.45rem; font-style: italic;
  font-weight: 300; line-height: 1.4;
  color: var(--brown);
  margin: 0 0 20px;
}
.quote-footer {
  display: flex; flex-direction: column; gap: 2px;
}
.quote-footer cite {
  font-style: normal; font-weight: 500;
  font-size: .875rem; color: var(--brown);
}
.quote-footer span {
  font-size: .78rem; color: var(--brown-l); opacity: .8;
}

.stat-card {
  background: var(--terra); color: var(--white);
  padding: 28px 32px; border-radius: var(--r);
  text-align: center;
}
.stat-num {
  font-family: var(--ff-serif);
  font-size: 5rem; font-weight: 300; line-height: 1;
  margin: 0 0 8px;
}
.stat-desc { font-size: .95rem; opacity: .9; line-height: 1.5; }

/* ============================================================
   WIZYTA
   ============================================================ */
.wizyta { background: var(--cream); padding: 88px 0; }
.wizyta-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
}

.wizyta-header { margin-bottom: 52px; }
.wizyta-header h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; color: var(--brown);
  margin: 0 0 10px; letter-spacing: -.01em;
}
.wizyta-sub {
  font-size: 1rem; color: var(--brown-l); font-style: italic;
}

.steps {
  list-style: none; padding: 0; margin: 0 0 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--cream-d);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 36px 24px 36px 0;
  border-bottom: 1px solid var(--cream-d);
}
.step:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--cream-d);
}
.step:nth-last-child(-n+2) { border-bottom: none; }

.step-n {
  font-family: var(--ff-serif);
  font-size: 2.2rem; font-weight: 300;
  color: var(--terra); opacity: .55;
  line-height: 1; padding-top: 4px;
}
.step-body h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem; font-weight: 400;
  color: var(--brown); margin: 0 0 8px;
  line-height: 1.25;
}
.step-body p {
  font-size: .925rem; line-height: 1.75; color: var(--brown-l);
}

.wizyta-cta-row { text-align: right; }

/* ============================================================
   MARTA / DOCTOR
   ============================================================ */
.marta { background: var(--cream-d); padding: 88px 0; }
.marta-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

.marta-fig { position: relative; margin: 0; }
.marta-fig img {
  width: 100%; border-radius: var(--r-lg);
  filter: sepia(15%) brightness(1.02) contrast(.96);
}

.marta-tag {
  position: absolute; top: 22px; right: -16px;
  background: var(--sage); color: var(--white);
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  transform: rotate(3deg);
  box-shadow: var(--sh);
}

.marta-bio .section-label { display: block; margin-bottom: 12px; }
.marta-name {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300; line-height: 1.18;
  color: var(--brown); letter-spacing: -.015em;
  margin: 0 0 28px;
}
.marta-bio p {
  font-size: 1rem; line-height: 1.8; color: var(--brown);
}

.marta-credential {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 28px; padding: 18px 20px;
  background: var(--white); border-radius: var(--r);
  border: 1px solid rgba(143,166,142,.30);
}
.cred-icon { color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.marta-credential p {
  font-size: .88rem; color: var(--brown-l); line-height: 1.55; margin: 0;
}
.marta-credential strong { color: var(--brown); }

/* ============================================================
   TRUST — Typ A: FAQ obaw
   ============================================================ */
.trust-faq {
  background: var(--cream);
  padding: 88px 0;
  border-top: 1px solid var(--cream-d);
}

.faq-inner {
  max-width: 800px; margin: 0 auto; padding: 0 28px;
}

.faq-header {
  text-align: center;
  margin-bottom: 52px;
}
.faq-header .section-label { display: block; margin-bottom: 12px; }
.faq-header h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300; color: var(--brown);
  line-height: 1.3; letter-spacing: -.01em;
  margin: 0;
  max-width: 560px; margin-inline: auto;
}

.faq-list {
  display: flex; flex-direction: column; gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--cream-d);
}
.faq-item:first-of-type { border-top: 1px solid var(--cream-d); }

.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0;
  background: none; border: none; cursor: pointer;
  text-align: left; color: var(--brown);
  font-family: var(--ff-sans); font-size: 1rem;
  font-weight: 500; line-height: 1.45;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--terra); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--terra);
  transition: transform var(--ease);
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item dd {
  padding: 0 0 24px;
  margin: 0;
}
.faq-item dd[hidden] { display: none; }
.faq-item dd p {
  font-size: .975rem;
  line-height: 1.8;
  color: var(--brown-l);
  padding-right: 36px;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt { background: var(--cream-d); padding: 88px 0 120px; }
.kontakt-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
}

.kontakt-header { margin-bottom: 52px; }
.kontakt-header h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; color: var(--brown);
  margin: 0 0 10px; letter-spacing: -.01em;
}
.kontakt-header p {
  font-size: 1rem; color: var(--brown-l); max-width: 440px;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

/* Form */
.form-wrap { display: flex; flex-direction: column; }

form {
  display: flex; flex-direction: column; gap: 20px;
}

.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: .85rem; font-weight: 500; color: var(--brown);
}
.field input, .field textarea {
  font-family: var(--ff-sans); font-size: 1rem;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--cream-d);
  border-radius: var(--r-sm);
  color: var(--brown); outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(194,137,122,.12);
}
.field input.err, .field textarea.err { border-color: #c0392b; }
.field input::placeholder, .field textarea::placeholder {
  color: rgba(61,47,38,.30);
}

.field-err {
  font-size: .78rem; color: #c0392b; min-height: 1.2em;
}

/* Checkbox */
.field--check { gap: 8px; }
.check-label {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
}
.check-label input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.check-box {
  flex-shrink: 0; width: 19px; height: 19px;
  border: 1.5px solid var(--cream-d); border-radius: 4px;
  background: var(--white); margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.check-label input:checked + .check-box {
  background: var(--sage); border-color: var(--sage);
}
.check-label input:checked + .check-box::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
.check-label input:focus-visible + .check-box {
  box-shadow: 0 0 0 3px rgba(143,166,142,.35);
}
.check-text {
  font-size: .83rem; color: var(--brown-l); line-height: 1.55;
}
.check-text a { color: var(--terra); }

.btn-submit {
  width: 100%; padding: 15px 32px;
  background: var(--sage); color: var(--white); border: none;
  border-radius: var(--r-full);
  font-family: var(--ff-sans); font-size: 1rem; font-weight: 500;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.btn-submit:hover { background: var(--sage-d); transform: translateY(-1px); }
.btn-submit:active { transform: none; }

/* Success */
.form-success {
  text-align: center; padding: 52px 24px;
  background: var(--white); border-radius: var(--r);
  border: 1px solid rgba(143,166,142,.30);
}
.form-success[hidden] { display: none !important; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--sage); color: #fff; border-radius: 50%;
  margin-bottom: 16px;
}
.form-success h3 {
  font-family: var(--ff-serif); font-size: 1.5rem;
  color: var(--brown); margin: 0 0 8px; font-weight: 400;
}
.form-success p {
  font-size: .95rem; color: var(--brown-l);
  max-width: 300px; margin: 0 auto;
}

/* Contact info */
.kontakt-info {
  display: flex; flex-direction: column; gap: 28px;
}

.info-block h3 {
  font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 500;
  color: var(--terra); font-family: var(--ff-sans);
  margin: 0 0 8px;
}
.info-block address {
  font-style: normal; font-size: 1rem;
  line-height: 1.7; color: var(--brown);
}
.info-block a {
  display: block; color: var(--brown); font-size: 1rem;
  text-decoration: none; line-height: 1.7;
  transition: color var(--ease);
}
.info-block a:hover { color: var(--terra); }

.hours {
  display: flex; flex-direction: column; gap: 4px;
}
.hours > div {
  display: flex; justify-content: space-between;
  font-size: .9rem; color: var(--brown);
  border-bottom: 1px solid var(--cream-d); padding-bottom: 4px;
}
.hours > div:last-child { border-bottom: none; }
.hours dt { color: var(--brown-l); }
.hours dd { margin: 0; }

.map-placeholder {
  height: 188px; width: 100%;
  background: var(--cream);
  border-radius: var(--r);
  border: 1.5px dashed rgba(194,137,122,.35);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; color: var(--brown-l);
  font-family: var(--ff-sans); font-size: .875rem;
  transition: background var(--ease);
}
.map-placeholder:hover { background: rgba(239,229,216,.85); }
.map-placeholder small { font-size: .72rem; opacity: .6; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brown); color: rgba(250,246,240,.65);
  padding: 32px 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-serif); font-size: .95rem;
  color: var(--cream);
}
.footer-link {
  color: rgba(250,246,240,.55); font-size: .8rem;
  text-decoration: underline; transition: color var(--ease);
  margin-left: auto;
}
.footer-link:hover { color: var(--cream); }
.footer-demo {
  width: 100%; font-size: .73rem; opacity: .45;
  border-top: 1px solid rgba(250,246,240,.10);
  padding-top: 14px; margin-top: 4px;
}
.footer-demo a { color: var(--terra); text-decoration: none; }

/* ============================================================
   MOBILE STICKY
   ============================================================ */
.mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: none;
  padding: 10px 16px 14px;
  background: var(--white);
  border-top: 1px solid var(--cream-d);
  box-shadow: 0 -4px 16px rgba(61,47,38,.08);
  z-index: 200;
}
.mobile-call {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px;
  background: var(--terra); color: var(--white);
  border-radius: var(--r-full); text-decoration: none;
  font-weight: 500; font-size: .95rem;
}

/* ============================================================
   SCROLL REVEAL — progressive enhancement
   Domyślnie widoczne (bez JS treść musi być dostępna).
   JS dodaje klasę .js-ready do <html>, wtedy animacja aktywna.
   ============================================================ */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.js-ready .reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
    gap: 32px;
  }
  .hero-img-frame img { height: 360px; }

  .filozofia-inner { grid-template-columns: 1fr; gap: 36px; }

  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { padding-left: 0; border-left: none; }
  .step:nth-last-child(-n+2) { border-bottom: 1px solid var(--cream-d); }
  .step:last-child { border-bottom: none; }

  .marta-inner { grid-template-columns: 1fr; }
  .marta-fig { max-width: 300px; }

  .kontakt-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-sticky { display: block; }

  .hero { padding: 36px 20px 0; }

  .filozofia,
  .wizyta,
  .marta,
  .trust-faq,
  .kontakt { padding: 64px 0; }

  .filozofia-inner, .wizyta-inner,
  .marta-inner, .kontakt-inner,
  .faq-inner, .nav-bar { padding: 0 20px; }

  .hero-headline { font-size: 2.5rem; }
  .step { grid-template-columns: 48px 1fr; padding: 28px 0; }
}
