/* ==========================================================================
   Palarnia Wełna — rzemieślnicza palarnia kawy, Wrocław Nadodrze
   Ręcznie pisany CSS. Styl: vintage / retro-etykieta, ciepły, krafтowy.
   Bez frameworków. Jasny motyw.
   ========================================================================== */

:root {
  --paper:      #f3e9d6;
  --paper-deep: #ece0c8;
  --coffee:     #5a3a22;
  --coffee-ink: #3d2615;
  --terracotta: #c2532f;
  --green:      #3f5a45;
  --green-dark: #2f4434;
  --line:       #5a3a22;
  --muted:      #7a6248;
  --cream-card: #faf3e6;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 88px);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--coffee-ink);
  background-color: var(--paper);
  /* delikatna "fakturа" papieru */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(90,58,34,0.035) 0, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(63,90,69,0.04) 0, transparent 55%);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  color: var(--coffee);
  margin: 0 0 .5em;
  letter-spacing: .2px;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Full-width: brak sztywnego kontenera. Treść oddycha do krawędzi z płynnym marginesem. */
.wrap { width: 100%; max-width: none; margin: 0 auto; padding: 0 var(--gutter); }
/* Wariant z czytelną szerokością dla bloków tekstowych (mierzymy w ~ekranie czytania). */
.wrap.narrow { max-width: 1180px; margin: 0 auto; }
.measure { max-width: 68ch; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .72rem;
  color: var(--terracotta);
  margin: 0 0 .9em;
  display: inline-block;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--coffee); color: var(--paper);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 2px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 1.5rem; color: var(--coffee);
}
.brand:hover { text-decoration: none; }
.brand .seal { width: 40px; height: 40px; flex: 0 0 40px; }
.brand small {
  display: block; font-family: var(--sans); font-size: .6rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  margin-top: -2px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--coffee-ink); font-weight: 500; font-size: .95rem;
  letter-spacing: .3px;
}
.nav a:hover { color: var(--terracotta); text-decoration: none; }
.nav a.active { color: var(--terracotta); border-bottom: 2px solid var(--terracotta); padding-bottom: 2px; }

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--sans); font-weight: 700;
  letter-spacing: .5px; font-size: .9rem;
  padding: 12px 22px; border-radius: var(--radius);
  border: 2px solid var(--coffee);
  background: var(--coffee); color: var(--paper);
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { background: var(--coffee-ink); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--coffee); }
.btn--ghost:hover { background: var(--coffee); color: var(--paper); }
.btn--terra { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn--terra:hover { background: #a8451f; border-color: #a8451f; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--coffee);
  border-radius: 4px; padding: 7px 9px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--coffee);
  margin: 4px 0; transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 78px 0 64px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.hero .seal-big { width: 132px; height: 132px; margin: 0 auto 26px; }
.hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero .lead { margin: 18px auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* double rule decorative line */
.rule2 {
  border: none; height: 6px; margin: 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 7vw, 104px) 0; }
.section-head { max-width: 60ch; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.alt { background: var(--paper-deep); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.green-band { background: var(--green); color: var(--paper); border-top: 2px solid var(--green-dark); border-bottom: 2px solid var(--green-dark); }
.green-band h2, .green-band h3 { color: var(--paper); }
.green-band .eyebrow { color: #e7c9a0; }
.green-band .lead { color: #e9e0cd; }

/* ---------- About split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px); align-items: center;
}
.split > * { min-width: 0; }
.split > div > p, .split > div > .lead { max-width: 60ch; }
.split img { width: 100%; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--paper-deep); aspect-ratio: 4/5; object-fit: cover; }
.split.flip > .frame { order: -1; }
.split .frame { padding: 0; }

/* ---------- Coffee labels (karty) ---------- */
.labels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 2.4vw, 34px);
}
.label-card {
  background: var(--cream-card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  position: relative;
  box-shadow: 6px 6px 0 var(--paper-deep);
  display: flex; flex-direction: column;
}
.label-card::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(90,58,34,.35); border-radius: 2px; pointer-events: none;
}
.label-card .origin {
  font-size: .68rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta); font-weight: 700; margin-bottom: 6px;
}
.label-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.label-card .notes { font-style: italic; color: var(--muted); margin-bottom: 14px; }
.label-card .img-band {
  border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  margin-bottom: 14px; background: var(--paper-deep);
  aspect-ratio: 4/3;
}
.label-card .img-band img { width: 100%; height: 100%; object-fit: cover; }

.znaczki { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.znaczek {
  font-size: .7rem; font-weight: 700; letter-spacing: .5px;
  border: 1.5px solid var(--green); color: var(--green);
  border-radius: 40px; padding: 3px 10px; background: rgba(63,90,69,.06);
}
.label-card .price {
  margin-top: auto; font-family: var(--serif); font-size: 1.4rem; color: var(--coffee);
  display: flex; align-items: baseline; gap: 8px;
}
.label-card .price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.label-card .roast {
  display: inline-block; margin-top: 6px; font-size: .78rem; color: var(--muted);
}

/* ---------- Steps (jak palimy) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(26px, 3vw, 48px); }
.step { text-align: left; }
.step .num {
  font-family: var(--serif); font-size: 3rem; color: var(--terracotta);
  line-height: 1; display: block; margin-bottom: 8px;
}
.step h3 { margin-bottom: .4em; }

/* ---------- Abonament / bilet ---------- */
.ticket {
  background: var(--cream-card); border: 2px dashed var(--coffee);
  border-radius: 8px; max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  overflow: hidden;
}
.ticket .stub {
  border-left: 2px dashed var(--coffee); padding: 30px 26px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--paper-deep); text-align: center; min-width: 200px;
}
.ticket .stub .big { font-family: var(--serif); font-size: 2.6rem; color: var(--terracotta); }
.ticket .body { padding: 30px 32px; }
.ticket ul { padding-left: 18px; margin: 0 0 18px; }
.ticket li { margin-bottom: 6px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 2.4vw, 34px); }
.plan {
  background: var(--cream-card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 6px 6px 0 var(--paper-deep);
}
.plan h3 { color: var(--terracotta); }
.plan .amt { font-family: var(--serif); font-size: 2.2rem; color: var(--coffee); margin: 6px 0 2px; }
.plan .per { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; }
.plan li { padding: 6px 0; border-bottom: 1px dotted rgba(90,58,34,.3); font-size: .95rem; }
.plan.feat { border-color: var(--terracotta); box-shadow: 6px 6px 0 rgba(194,83,47,.18); }

/* ---------- Origin map list ---------- */
.origin-list { list-style: none; padding: 0; margin: 0; }
.origin-list li {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid rgba(90,58,34,.25);
}
.origin-list li:first-child { border-top: 1px solid rgba(90,58,34,.25); }
.origin-list .country { font-family: var(--serif); font-size: 1.3rem; color: var(--coffee); }
.origin-list .desc { color: var(--muted); flex: 1 1 320px; }

/* ---------- Testimonial / opinia ---------- */
.opinia { max-width: 760px; margin: 0 auto; text-align: center; }
.opinia blockquote {
  font-family: var(--serif); font-size: clamp(1.4rem,3vw,2rem); line-height: 1.35;
  margin: 0 0 18px; color: var(--paper);
}
.opinia .who { font-weight: 700; color: #e7c9a0; }
.opinia .who small { display: block; font-weight: 400; color: #cdbfa6; font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 2px solid var(--line); padding: 18px 4px;
}
.faq summary {
  font-family: var(--serif); font-size: 1.25rem; color: var(--coffee);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-block { margin-bottom: 22px; }
.info-block .k {
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--terracotta); font-weight: 700; margin-bottom: 3px;
}
.info-block .v { font-size: 1.1rem; color: var(--coffee-ink); }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; letter-spacing: .3px; }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 1rem;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--cream-card);
  color: var(--coffee-ink);
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
form .check { display: flex; gap: 10px; align-items: flex-start; }
form .check input { width: auto; margin-top: 5px; }
form .check label { font-weight: 400; font-size: .82rem; color: var(--muted); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.3em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: .9rem; }

/* ---------- Thank-you ---------- */
.thanks { text-align: center; padding: 110px 0; min-height: 60vh; }
.thanks .seal-big { width: 120px; height: 120px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--coffee-ink); color: #e7d8c2; padding: 54px 0 30px;
  border-top: 4px solid var(--terracotta);
}
.site-footer a { color: #e7c9a0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 38px; margin-bottom: 34px; }
.site-footer h4 { color: var(--paper); font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .95rem; }
.foot-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--paper); margin-bottom: 8px; }
.foot-legal {
  border-top: 1px solid rgba(231,201,160,.25); padding-top: 18px;
  font-size: .8rem; color: #b6a283; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  background: var(--coffee-ink); color: #ecdcc4; border: 2px solid var(--terracotta);
  border-radius: 6px; padding: 16px 20px; max-width: 680px; margin: 0 auto;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cookie p { margin: 0; font-size: .85rem; flex: 1 1 320px; }
.cookie .btn { padding: 9px 18px; font-size: .82rem; }
.cookie[hidden] { display: none; }

/* ---------- Stat strip (pasek faktów pod hero) ---------- */
.stat-strip { background: var(--coffee-ink); color: var(--paper); border-bottom: 2px solid var(--line); padding: 0; }
.stat-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 30px clamp(16px, 2.4vw, 36px); text-align: center;
  border-left: 1px solid rgba(231,201,160,.18);
}
.stat:first-child { border-left: none; }
.stat .n { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); color: #e7c9a0; line-height: 1; }
.stat .l { display: block; margin-top: 8px; font-size: .82rem; letter-spacing: .4px; color: #cdbfa6; }

/* ---------- Cafes (gdzie pić naszą kawę) ---------- */
.cafe-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.cafe-layout > * { min-width: 0; }
.cafe-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; align-items: start; }
.cafe-photos figure {
  margin: 0; min-width: 0; aspect-ratio: 4/5; overflow: hidden;
  border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--paper-deep);
}
.cafe-photos figure.lower { margin-top: 34px; }
.cafe-photos img { width: 100%; height: 100%; object-fit: cover; }
.cafe-list { list-style: none; padding: 0; margin: 22px 0 0; }
.cafe-list li {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid rgba(90,58,34,.25);
}
.cafe-list li:first-child { border-top: 1px solid rgba(90,58,34,.25); }
.cafe-list .name { font-family: var(--serif); font-size: 1.2rem; color: var(--coffee); }
.cafe-list .hood { color: var(--muted); font-size: .92rem; }

/* ---------- CTA band (na koniec) ---------- */
.cta-band { background: var(--terracotta); color: #fff; border-top: 2px solid #a8451f; text-align: center; }
.cta-band h2, .cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow { color: #ffe2d3; }
.cta-band .lead { color: #ffe4d8; margin: 0 auto 28px; }
.cta-band .btn { background: var(--paper); color: var(--coffee-ink); border-color: var(--paper); }
.cta-band .btn:hover { background: #fff; border-color: #fff; }
.cta-band .btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn--line:hover { background: rgba(255,255,255,.12); color: #fff; }

/* full-width feature image helper */
.feat-img { width: 100%; border: 2px solid var(--line); border-radius: var(--radius); object-fit: cover; box-shadow: 10px 10px 0 var(--paper-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cafe-layout { grid-template-columns: 1fr; }
  .cafe-photos { max-width: 520px; }
}

@media (max-width: 880px) {
  .stat-strip .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(231,201,160,.18); }
  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 2px solid var(--line); padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; width: 100%; }
  .nav .btn { margin: 10px 24px; text-align: center; }
  .nav-toggle { display: block; }

  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .labels, .steps, .plan-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .stub { border-left: none; border-top: 2px dashed var(--coffee); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .split img { box-shadow: 5px 5px 0 var(--paper-deep); }
}
