/* ===========================================================
   Farmstead Digital — Marketingové poradenství
   Paleta: Barn Red #A75D47 | Wheat Beige #DFC79E
           Forest Green #667E65 | Ivory White #FAF9F5
           Slate Gray #5F656D
   =========================================================== */

:root {
  --barn-red: #A75D47;
  --barn-red-dark: #8a4b39;
  --wheat: #DFC79E;
  --wheat-soft: #ece0c6;
  --forest: #667E65;
  --forest-dark: #4f6350;
  --ivory: #FAF9F5;
  --slate: #5F656D;
  --slate-dark: #40454b;
  --ink: #2c2f27;
  --shadow: 0 18px 48px rgba(64, 69, 75, 0.14);
  --shadow-sm: 0 8px 24px rgba(64, 69, 75, 0.10);
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--slate-dark); letter-spacing: .2px; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.5rem; }
p { color: var(--slate); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--barn-red);
  margin-bottom: 16px;
}

.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 15px 30px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--barn-red); color: var(--ivory); box-shadow: 0 10px 26px rgba(167, 93, 71, .32); }
.btn-primary:hover { background: var(--barn-red-dark); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(167, 93, 71, .4); }
.btn-ghost { background: transparent; color: var(--slate-dark); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--ivory); transform: translateY(-3px); }
.btn-light { background: var(--ivory); color: var(--barn-red); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 245, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(95, 101, 109, .12);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--slate-dark); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand span b { color: var(--barn-red); font-weight: 700; }
.brand small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: 2px; text-transform: uppercase; color: var(--forest); font-weight: 600; margin-top: -4px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--slate); transition: color .2s; }
.nav-links a:hover { color: var(--barn-red); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--slate-dark); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(120deg, rgba(250,249,245,.97) 0%, rgba(250,249,245,.86) 42%, rgba(250,249,245,.35) 100%),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--barn-red); }
.hero-lead { font-size: 1.18rem; max-width: 520px; margin-bottom: 32px; color: var(--slate-dark); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta div strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--forest); line-height: 1; }
.hero-meta div span { font-size: .82rem; color: var(--slate); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.hero-badge {
  position: absolute; left: -26px; bottom: 34px;
  background: var(--ivory); border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.hero-badge .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--wheat-soft); display: grid; place-items: center; color: var(--barn-red); flex: none; }
.hero-badge b { font-family: var(--serif); font-size: 1.05rem; color: var(--slate-dark); }
.hero-badge small { font-size: .78rem; color: var(--slate); }

/* ---------- Logos / trust strip ---------- */
.trust { background: var(--forest); color: var(--ivory); padding: 30px 0; }
.trust .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust p { color: rgba(250,249,245,.85); font-size: .92rem; letter-spacing: 1px; text-transform: uppercase; }
.trust ul { display: flex; gap: 34px; list-style: none; flex-wrap: wrap; }
.trust li { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: rgba(250,249,245,.92); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid rgba(95,101,109,.10); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(167,93,71,.3); }
.card .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--wheat-soft); display: grid; place-items: center; color: var(--barn-red); margin-bottom: 20px; }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card ul { list-style: none; margin-top: 16px; }
.card ul li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--slate); margin-bottom: 7px; }
.card ul li::before { content: "✦"; position: absolute; left: 0; color: var(--forest); font-size: .8rem; top: 2px; }

/* ---------- Approach ---------- */
.approach { background: var(--wheat-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
.step { background: var(--ivory); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step .num { font-family: var(--serif); font-size: 2.6rem; color: var(--barn-red); opacity: .32; line-height: 1; }
.step h3 { font-size: 1.25rem; margin: 8px 0 8px; }
.step p { font-size: .93rem; }

/* ---------- About / estate ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 5/4; }
.about-media .float {
  position: absolute; right: -22px; top: -22px; background: var(--barn-red); color: var(--ivory);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); max-width: 210px;
}
.about-media .float strong { font-family: var(--serif); font-size: 2.4rem; display: block; line-height: 1; }
.about-media .float span { font-size: .85rem; opacity: .9; }
.about-text .eyebrow { margin-bottom: 12px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.about-values div { display: flex; gap: 12px; align-items: flex-start; }
.about-values .vic { color: var(--forest); flex: none; margin-top: 3px; }
.about-values b { display: block; color: var(--slate-dark); font-family: var(--serif); font-size: 1.1rem; }
.about-values small { font-size: .86rem; color: var(--slate); }

/* ---------- Pricing ---------- */
.pricing { background: var(--slate-dark); color: var(--ivory); }
.pricing h2, .pricing .section-head p { color: var(--ivory); }
.pricing .section-head p { color: rgba(250,249,245,.8); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  background: var(--ivory); color: var(--ink); border-radius: var(--radius-lg); padding: 38px 32px;
  display: flex; flex-direction: column; position: relative; transition: transform .3s ease, box-shadow .3s;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price-card.featured { background: var(--barn-red); color: var(--ivory); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.price-card.featured h3, .price-card.featured .price { color: var(--ivory); }
.badge-pop { position: absolute; top: 20px; right: 24px; background: var(--wheat); color: var(--slate-dark); font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 50px; }
.price-card h3 { margin-bottom: 6px; }
.plan-desc { font-size: .9rem; min-height: 44px; margin-bottom: 16px; }
.price-card.featured .plan-desc { color: rgba(250,249,245,.85); }
.price { font-family: var(--serif); font-size: 2.9rem; font-weight: 700; color: var(--slate-dark); line-height: 1; }
.price sup { font-size: 1rem; font-weight: 600; vertical-align: super; }
.price small { display: block; font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--slate); margin-top: 6px; }
.price-card.featured .price small { color: rgba(250,249,245,.82); }
.price-card ul { list-style: none; margin: 24px 0 28px; flex: 1; }
.price-card ul li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: .94rem; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--forest); }
.price-card.featured ul li::before { color: var(--wheat); }
.price-note { text-align: center; margin-top: 34px; font-size: .92rem; color: rgba(250,249,245,.78); }
.price-note b { color: var(--wheat); }
.audit-band {
  margin-top: 30px; background: var(--forest); border-radius: var(--radius); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.audit-band h3 { color: var(--ivory); margin-bottom: 4px; }
.audit-band p { color: rgba(250,249,245,.85); font-size: .95rem; }
.audit-band .ap { font-family: var(--serif); font-size: 2rem; color: var(--ivory); white-space: nowrap; }

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tst {
  background: #fff; border: 1px solid rgba(95,101,109,.10); border-radius: var(--radius);
  padding: 32px 30px; display: flex; flex-direction: column;
}
.tst .stars { color: var(--barn-red); letter-spacing: 3px; margin-bottom: 14px; }
.tst blockquote { font-family: var(--serif); font-size: 1.15rem; color: var(--slate-dark); line-height: 1.5; margin-bottom: 22px; flex: 1; }
.tst .who { display: flex; align-items: center; gap: 14px; }
.tst .who img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.tst .who b { font-family: var(--sans); font-size: .96rem; color: var(--slate-dark); }
.tst .who span { font-size: .82rem; color: var(--forest); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid rgba(95,101,109,.12); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 26px; font-family: var(--serif); font-size: 1.22rem; color: var(--slate-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--wheat-soft); color: var(--barn-red); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s, background .3s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--barn-red); color: var(--ivory); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 26px 22px; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact { background: var(--wheat-soft); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 30px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-item .iic { width: 48px; height: 48px; border-radius: 12px; background: var(--forest); color: var(--ivory); display: grid; place-items: center; flex: none; }
.info-item b { display: block; color: var(--slate-dark); font-family: var(--serif); font-size: 1.15rem; }
.info-item a, .info-item span { color: var(--slate); font-size: .96rem; }
.info-item a:hover { color: var(--barn-red); }

.form-card { background: var(--ivory); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 6px; }
.form-card > p { font-size: .92rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--slate-dark); margin-bottom: 7px; }
.field label .req { color: var(--barn-red); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid rgba(95,101,109,.22); border-radius: 12px;
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(102,126,101,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 22px; font-size: .86rem; color: var(--slate); }
.consent input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--barn-red); }
.consent a { color: var(--barn-red); text-decoration: underline; }
.form-msg { display: none; padding: 14px 18px; border-radius: 12px; font-size: .92rem; margin-bottom: 18px; }
.form-msg.ok { display: block; background: rgba(102,126,101,.15); color: var(--forest-dark); border: 1px solid rgba(102,126,101,.4); }
.form-msg.err { display: block; background: rgba(167,93,71,.12); color: var(--barn-red-dark); border: 1px solid rgba(167,93,71,.4); }
.form-card .btn-primary { width: 100%; justify-content: center; }
.field small.hint { display: block; font-size: .78rem; color: var(--slate); margin-top: 5px; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: var(--barn-red); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 84px 0; text-align: center; color: var(--ivory); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(79,99,80,.9), rgba(64,69,75,.92)),
    url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
}
.cta-band h2 { color: var(--ivory); margin-bottom: 16px; }
.cta-band p { color: rgba(250,249,245,.9); max-width: 560px; margin: 0 auto 30px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-dark); color: rgba(250,249,245,.72); padding: 66px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .brand { color: var(--ivory); margin-bottom: 16px; }
.footer-brand .brand small { color: var(--wheat); }
.footer-brand p { color: rgba(250,249,245,.62); font-size: .92rem; max-width: 300px; }
.footer-col h4 { color: var(--ivory); font-family: var(--sans); font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(250,249,245,.72); font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--wheat); }
.footer-bottom { border-top: 1px solid rgba(250,249,245,.14); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom a { color: rgba(250,249,245,.72); }
.footer-bottom a:hover { color: var(--wheat); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 200;
  background: var(--ivory); border: 1px solid rgba(95,101,109,.16); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 26px; max-width: 560px; margin: 0 auto;
  display: none; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cookie.show { display: flex; animation: rise .4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.cookie p { font-size: .9rem; flex: 1 1 260px; }
.cookie p a { color: var(--barn-red); text-decoration: underline; }
.cookie .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 22px; font-size: .88rem; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--forest); color: var(--ivory); padding: 66px 0 54px; }
.legal-hero h1 { color: var(--ivory); font-size: clamp(2.2rem, 4vw, 3.2rem); }
.legal-hero p { color: rgba(250,249,245,.85); margin-top: 10px; }
.legal-body { padding: 64px 0 90px; }
.legal-body .container { max-width: 820px; }
.legal-body h2 { font-size: 1.7rem; margin: 38px 0 14px; }
.legal-body h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.legal-body p, .legal-body li { color: var(--slate); margin-bottom: 12px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 24px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--barn-red); text-decoration: underline; }
.legal-body .updated { display: inline-block; background: var(--wheat-soft); color: var(--slate-dark); padding: 7px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.legal-body th, .legal-body td { text-align: left; padding: 11px 14px; border: 1px solid rgba(95,101,109,.18); }
.legal-body th { background: var(--wheat-soft); color: var(--slate-dark); font-family: var(--serif); }
.back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--barn-red); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .services-grid, .tst-grid, .price-grid, .steps { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-8px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media .float { right: 12px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--ivory); padding: 20px 24px; gap: 18px; box-shadow: var(--shadow); border-bottom: 1px solid rgba(95,101,109,.12);
  }
  .section { padding: 68px 0; }
  .services-grid, .tst-grid, .price-grid, .steps, .footer-grid, .about-values { grid-template-columns: 1fr; }
  .field.two { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .hero-badge { left: 0; }
  .cta-band::before { background-attachment: scroll; }
  .trust .container { justify-content: center; text-align: center; }
}
