/* ============================================================
   Rinvimesci — Pracownia dekoracji z lnu i bawełny
   Archetyp: EDITORIAL STORY (narracja, wąska kolumna, CTA w treści)
   Layout: Flexbox only
   ============================================================ */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d7;
  --ink: #2b2823;
  --ink-soft: #55504733;
  --muted: #6f685b;
  --line: #ddd2bf;
  --sage: #7c8769;
  --sage-dark: #5f6a4f;
  --clay: #b5653f;
  --clay-dark: #934f30;
  --cream-card: #fbf8f1;
  --shadow: 0 18px 40px -26px rgba(43, 40, 35, 0.55);
  --fallback-img: #d9cdb6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

p { margin: 0 0 1.2em; }

a { color: var(--clay-dark); }

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.img-wrap {
  background-color: var(--fallback-img);
  overflow: hidden;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.flow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.flow--wide { max-width: 1120px; }
.section { padding: 86px 0; }
.section--tight { padding: 56px 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: #f3ecdd; }

.kicker {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 18px;
}
.section--ink .kicker { color: #d7a98c; }

.lede { font-size: 1.28rem; line-height: 1.6; color: var(--muted); }
.section--ink .lede { color: #d9d1c1; }

/* ---------- Top bar + ad disclosure ---------- */
.adbar {
  background: var(--sage-dark);
  color: #f4efe3;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 16px;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--clay); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { border-color: var(--clay); color: var(--clay-dark); }

.nav-cta {
  background: var(--clay);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  border: none !important;
}
.nav-cta:hover { background: var(--clay-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-dark); }
.section--ink .btn-ghost { border-color: #e9e0cf; color: #f3ecdd; }
.section--ink .btn-ghost:hover { background: #f3ecdd; color: var(--ink); }

/* ---------- Hero (editorial) ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
}
.hero .flow { max-width: 820px; }
.hero h1 { margin-bottom: 0.35em; }
.hero-figure {
  margin: 44px auto 0;
  max-width: 1120px;
  padding: 0 24px;
}
.hero-figure .img-wrap { aspect-ratio: 16 / 7; }
.hero-figure img { width: 100%; height: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* ---------- Inline figures ---------- */
figure.inline { margin: 40px auto; }
figure.inline .img-wrap { aspect-ratio: 3 / 2; }
figure.inline img { width: 100%; height: 100%; }
figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

/* ---------- Pull / insight ---------- */
.pull {
  border-left: 3px solid var(--clay);
  padding: 6px 0 6px 26px;
  margin: 36px 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--ink);
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--clay-dark);
  border-bottom: 2px solid var(--clay);
  padding-bottom: 2px;
}
.inline-cta:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Trust strip ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 30px;
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 500;
}
.trust-chip b { color: var(--clay-dark); }

/* ---------- Process (alternating) ---------- */
.steps { display: flex; flex-direction: column; gap: 46px; margin-top: 40px; }
.step {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: center;
}
.step:nth-child(even) { flex-direction: row-reverse; }
.step-media { flex: 1 1 320px; }
.step-media .img-wrap { aspect-ratio: 4 / 3; }
.step-media img { width: 100%; height: 100%; }
.step-body { flex: 1 1 320px; }
.step-no {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.4rem;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- Testimonials ---------- */
.quotes { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.quote {
  flex: 1 1 280px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.quote p { font-size: 1.05rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sage); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: "Fraunces", serif;
}
.who b { display: block; font-size: 0.95rem; }
.who span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Benefits list ---------- */
.benefits { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
.benefit {
  flex: 1 1 240px;
  border-top: 2px solid var(--clay);
  padding-top: 16px;
}
.benefit h3 { font-size: 1.15rem; }
.benefit p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* ---------- Pricing (reveal) ---------- */
.price-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  justify-content: center;
}
.price-card {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-card .img-wrap { aspect-ratio: 3 / 2; }
.price-card img { width: 100%; height: 100%; }
.price-card .pc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.price-card h3 { margin-bottom: 6px; }
.price-card p { font-size: 0.96rem; color: var(--muted); }
.price-tag {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem;
  color: var(--clay-dark);
  margin: 6px 0 16px;
}
.price-tag small { font-size: 0.85rem; color: var(--muted); font-family: "Inter", sans-serif; }
.price-card .btn { margin-top: auto; text-align: center; }
.price-featured { border-color: var(--clay); }
.price-featured .ribbon {
  background: var(--clay); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; align-self: flex-start; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- Form ---------- */
.form-wrap {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  margin-top: 36px;
}
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { flex: 1 1 240px; display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.form-error {
  color: var(--clay-dark); font-size: 0.85rem; margin: 0 0 14px; display: none;
}
.form-error.show { display: block; }

/* ---------- Service picker chips ---------- */
.svc-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.svc-chip {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.18s;
}
.svc-chip:hover { border-color: var(--sage); }
.svc-chip.active { background: var(--sage); color: #fff; border-color: var(--sage); }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,0.5);
  max-width: calc(100% - 32px);
}
.sticky-cta span { font-size: 0.9rem; font-weight: 500; }
.sticky-cta.hide { display: none; }

/* ---------- Generic cards grid (about/services) ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; }
.card {
  flex: 1 1 280px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}
.card h3 { font-size: 1.2rem; }
.card p { font-size: 0.97rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 36px; }
.contact-block { flex: 1 1 260px; }
.contact-block h3 { font-size: 1.15rem; margin-bottom: 8px; }
.contact-block p { margin: 0 0 6px; color: var(--muted); }
.data-strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #211f1b;
  color: #cfc8ba;
  padding: 66px 0 30px;
  font-size: 0.92rem;
}
.site-footer h4 { color: #f1e9d9; font-size: 1.05rem; margin-bottom: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-col { flex: 1 1 220px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cfc8ba; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid #3a372f;
  font-size: 0.82rem; color: #9a9385;
}
.footer-disclaimer p { margin: 0 0 10px; }
.noclick { color: #e7ddc8; font-weight: 600; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
  max-width: 760px;
  margin: 0 auto;
}
.cookie-banner.hide { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1 1 320px; }
.cookie-banner a { color: var(--clay-dark); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Thanks page ---------- */
.thanks-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.thanks-card {
  max-width: 620px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
}
.check {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--sage); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 22px;
}
.selected-svc {
  display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  margin: 8px 0 18px;
}

/* ---------- Legal pages ---------- */
.legal { padding: 70px 0; }
.legal h2 { margin-top: 1.6em; }
.legal h3 { margin-top: 1.2em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Simple page hero ---------- */
.page-hero { padding: 70px 0 10px; }
.page-hero .lede { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .topnav { padding: 12px 18px; }
  .nav-links { gap: 14px; }
  .sticky-cta span { display: none; }
}
