/* Farma Slivka – one page, mobile first, large readable text for older customers.
   Colours come from the logo: plum ring, burgundy lettering, butter cream inside, beige canvas,
   leaf green. Headings in Lora (calm book serif), text in Noto Sans (large x-height,
   open letters, plain zero for phone numbers). The hero landscape is a watercolour painting rendered from
   design/krajina.py (design/make-krajina.sh). Photos are Unsplash placeholders until the family's own. */

:root {
  --bg: #faf6ee;
  --paper: #fffdf8;
  --beige: #ece0d3;
  --beige-deep: #e2d3c3;
  --butter: #fdf2c4;
  --ink: #2a2226;
  --heading: #5a2c3c;
  --muted: #5f565b;
  --line: #e9ddcc;
  --primary: #7a4a5e;
  --primary-dark: #5f3547;
  --primary-soft: #f3e7ec;
  --green: #4f7a2e;
  --green-soft: #e8efdc;
  --footer: #3f2232;
  --plum-fruit: #6b3f5e;


  --radius: 18px;
  --top-h: 64px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.25rem/1.6 var(--font);
  /* warm paper with a faint grain */
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .3 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--heading); line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 9vw, 3.05rem); margin: 0.2em 0 0.35em; }
h2 { font-size: clamp(1.8rem, 7vw, 2.3rem); margin: 0 0 0.5em; }
h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.4em; line-height: 1.25; color: var(--heading); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.ic { width: 1.25em; height: 1.25em; flex: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the plum sprig (symbol #slivky) */
.pl-tw { fill: none; stroke: #6d4a2f; stroke-width: 2.4; }
.pl-st { fill: none; stroke: #6d4a2f; stroke-width: 1.6; }
.pl-lf { fill: #6f8c3f; stroke: none; }
.pl-pl { fill: var(--plum-fruit); stroke: none; }
.pl-pl2 { fill: #855466; stroke: none; }
.pl-hl { fill: #fff; opacity: 0.35; stroke: none; }

/* ---------- header ----------
   Without JS: an ordinary sticky bar. With JS: no bar at the top of the page (the hero carries the
   big logo and the call button); a slim bar slides in once the big logo has scrolled away. */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.js .top {
  position: fixed; left: 0; right: 0; top: 0;
  box-shadow: 0 6px 20px -12px rgba(78, 43, 61, 0.35);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.js .top.top-shown { transform: none; visibility: visible; }

.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; border-radius: 8px; }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; font: 700 1.3rem/1.05 var(--serif); color: var(--heading); letter-spacing: 0.08em; white-space: nowrap; }
.brand-name small { font: italic 600 0.85rem/1.1 var(--serif); letter-spacing: 0.01em; color: var(--primary); }
.top-nav { display: none; }
.top-call {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 1.1rem;
  padding: 8px 0;
}

@media (max-width: 374px) {
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.15rem; }
  .top-call { font-size: 1rem; }
}
@media (max-width: 339px) {
  .brand-name { display: none; }
}
@media (min-width: 760px) {
  .top-nav { display: flex; gap: 22px; margin-left: auto; margin-right: 12px; }
  .top-nav a { color: var(--heading); text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: 8px 2px; }
  .top-nav a:hover { color: var(--primary); text-decoration: underline; }
  .top-call { border-left: 1px solid var(--line); padding-left: 22px; }
}

/* ---------- hero: logo + intro, then the painted landscape ---------- */
.hero { background: linear-gradient(180deg, #f1e8de 0%, var(--beige) 55%, var(--beige-deep) 100%); padding-top: 30px; }
.hero-in { display: grid; justify-items: center; text-align: center; }
.logo-badge {
  width: min(66vw, 260px); height: auto; margin-bottom: 14px;
  filter: drop-shadow(0 10px 18px rgba(78, 43, 61, 0.25));
}
.eyebrow {
  margin: 0; color: var(--green); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
@media (max-width: 559px) {
  .eyebrow span { display: block; }
  .eyebrow .dot { display: none; }
}
.lead { font-size: 1.3rem; color: #3f3539; margin: 0 auto 1.5rem; max-width: 30em; }
.hero .actions { justify-content: center; }

/* the painted landscape keeps its 6:1 shape on wide screens; on phones it is cropped at the sides */
.land { height: max(160px, calc(100vw / 6)); margin-top: 18px; }
.land img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

@media (min-width: 760px) {
  .hero { padding-top: 56px; }
  .hero-in { grid-template-columns: 290px minmax(0, 1fr); gap: 44px; align-items: center; justify-items: start; text-align: left; }
  .logo-badge { width: 290px; margin: 0; }
  .lead { margin-left: 0; }
  .hero .actions { justify-content: flex-start; }
  .land { margin-top: 10px; }
}

main > section:not(.hero) { padding-top: 2.5rem; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--primary);
  background: var(--paper); color: var(--primary);
  font-weight: 700; font-size: 1.2rem; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-block { width: 100%; }

@media (max-width: 560px) {
  .actions .btn { width: 100%; }
}

/* ---------- small bits ---------- */
.pill {
  display: inline-block; align-self: flex-start;
  padding: 3px 12px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; line-height: 1.5;
}
.pill-now  { background: var(--green); color: #fff; }
.pill-soon { background: var(--primary-soft); color: var(--primary-dark); }

.kicker { margin: 14px 0 4px; color: var(--green); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 1px 2px rgba(78, 43, 61, 0.04), 0 12px 28px -18px rgba(78, 43, 61, 0.25);
}
@media (min-width: 640px) {
  .card { padding: 30px 32px; }
}

/* photo across the top of a card */
.card-photo { position: relative; margin: -22px -18px 18px; }
.card-photo img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--beige); }
@media (min-width: 640px) {
  .card-photo { margin: -30px -32px 22px; }
}
.ilu {
  position: absolute; right: 10px; bottom: 8px;
  padding: 1px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 0.8rem; font-weight: 700;
}

/* plum ornament between sections and above the footer */
.divider, .ornament { display: flex; align-items: center; gap: 16px; max-width: 360px; margin: 2.75rem auto 0; padding: 0 16px; }
.divider::before, .divider::after, .ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: #dccbb6; }
.divider svg, .ornament svg { width: 58px; height: 42px; flex: none; }

/* ---------- welcome / about us ---------- */
.welcome { display: grid; gap: 8px; }
.polaroids { position: relative; height: 280px; margin: 6px 0 4px; }
.polaroid {
  position: absolute; margin: 0; width: 58%; max-width: 270px;
  background: #fff; padding: 8px 8px 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 28px -14px rgba(0, 0, 0, 0.35);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--beige); border-radius: 2px; }
.polaroid figcaption { font: italic 600 1.1rem/1 var(--serif); color: #4a3a3f; text-align: center; padding: 10px 0 12px; }
.p1 { left: 2%; top: 4px; transform: rotate(-4deg); }
.p1 figcaption { text-align: left; padding-left: 10px; }
.p2 { right: 2%; top: 74px; transform: rotate(3.5deg); z-index: 1; }
.ilu-note { position: absolute; left: 4%; bottom: -6px; margin: 0; font-size: 0.8rem; color: var(--muted); }

.welcome-text .kicker { margin-top: 18px; }
.sign { font: italic 600 1.7rem/1.1 var(--serif); color: var(--primary); margin: -0.2em 0 1rem; }

.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trust a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 1.1rem;
}
.trust a:hover { border-color: var(--primary); color: var(--ink); }
.trust strong { font-size: 1.2rem; }
.trust-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); flex: none; }
.trust-ic svg { width: 20px; height: 20px; }
.trust-ic.star { background: var(--butter); color: #c08a00; }
.trust-ic.star svg { fill: currentColor; }

@media (min-width: 760px) {
  .welcome { grid-template-columns: 330px minmax(0, 1fr); gap: 40px; align-items: center; }
  .polaroids { height: 330px; }
  .polaroid { width: 215px; }
  .p1 { left: 0; top: 0; }
  .p2 { left: 112px; right: auto; top: 128px; }
  .ilu-note { left: 4px; bottom: -8px; }
  .welcome-text .kicker { margin-top: 0; }
  .trust { max-width: 400px; }
}

/* ---------- overview: what you can buy ---------- */
.offer {
  list-style: none; margin: 0; padding: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.offer li + li { border-top: 1px solid var(--line); }
.offer a {
  display: flex; align-items: center; gap: 14px;
  min-height: 80px; padding: 12px 14px 12px 16px;
  color: var(--ink); text-decoration: none;
}
.offer a:hover { background: var(--bg); color: var(--ink); }
.offer-ic, .b-ic {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--green-soft); color: var(--green);
}
.offer-ic svg, .b-ic svg { width: 27px; height: 27px; }
.offer-txt { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.offer-txt strong { font-size: 1.3rem; line-height: 1.2; color: var(--heading); }
.chev { width: 22px; height: 22px; color: var(--muted); flex: none; }

/* ---------- feed ---------- */
.feed h2 { margin-bottom: 0.4em; }
.intro { font-size: 1.25rem; }

.benefits {
  list-style: none; margin: 1.5rem 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.benefits li {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg); border-radius: 14px; padding: 14px;
}
.b-ic { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px; }
.b-ic svg { width: 24px; height: 24px; }
.benefits strong { font-size: 1.15rem; line-height: 1.25; color: var(--heading); }
.benefits span:last-child { color: var(--muted); font-size: 1.05rem; line-height: 1.4; }

@media (max-width: 359px) {
  .benefits { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(4, 1fr); }
}

.prices-box { background: var(--butter); border-radius: 14px; padding: 16px 18px; margin: 0 0 1.25rem; }
.prices-box h3 { margin-bottom: 0.2em; }
.prices { list-style: none; margin: 0; padding: 0; }
.prices li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed rgba(90, 44, 60, 0.25);
}
.prices li strong { font-size: 1.55rem; font-weight: 700; color: var(--heading); }
.note { margin: 0.75rem 0 0; color: var(--muted); font-size: 1.05rem; }

.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks .ic { color: var(--green); width: 28px; height: 28px; }

/* ---------- young hens (from spring 2027) ---------- */
.soon { background: var(--beige); border-color: transparent; box-shadow: none; }
.soon .pill-soon { background: var(--paper); }
.soon h2 { margin-top: 0.4em; }
.soon .actions { margin-top: 1.25rem; }

/* ---------- how to buy ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative; padding: 4px 0 4px 60px; min-height: 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--butter); font-weight: 700; font-size: 1.25rem;
}

/* ---------- contact ---------- */
.hello { font: italic 600 1.7rem/1.15 var(--serif); color: var(--primary); margin: 0 0 0.3rem; }
.big-phone {
  display: inline-block; font-size: clamp(2.1rem, 9.5vw, 2.7rem); font-weight: 700;
  text-decoration: none; letter-spacing: 0.01em; margin-bottom: 0.4rem; color: var(--heading);
}
.big-phone:hover { color: var(--primary); }
.addr { font-size: 1.25rem; }
.fb { margin: 1.25rem 0 0; color: var(--muted); font-size: 1.1rem; }

/* ---------- footer: plum like the logo's ring ---------- */
.ornament { margin-top: 3rem; }
.foot {
  /* bottom padding = room for the floating call button on phones, so the colour runs to the edge */
  margin-top: 1.25rem; padding: 26px 0 calc(100px + env(safe-area-inset-bottom));
  background: var(--footer); color: #f1e6d8;
  font-size: 1.05rem; text-align: center; line-height: 1.6;
}
.foot a { color: var(--butter); }
.foot strong { font: 700 1.45rem/1.3 var(--serif); color: var(--butter); display: block; margin-bottom: 4px; }

/* ---------- floating call button (phones only) ---------- */
.callbar {
  position: fixed; z-index: 20;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 10px 28px -6px rgba(78, 43, 61, 0.5);
}
.callbar:hover { color: #fff; background: var(--primary-dark); }
/* with JS: slides in once the hero's own call button has scrolled away */
.js .callbar { transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.js .callbar.shown { transform: none; visibility: visible; }

@media (min-width: 760px) {
  .callbar { display: none; }
  .foot { padding-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .top, .js .callbar { transition: none; }
}
