/* ==========================================================
   Kořeny — prémiový bio & wellness web
   Skandinávská estetika, zemité tóny, měkké animace
   ========================================================== */

:root {
  --cream: #f6f2ea;
  --sand: #ebe3d4;
  --sand-dark: #ddd2bd;
  --green: #34452c;
  --green-deep: #24301e;
  --green-soft: #5b6e4c;
  --terracotta: #b05c36;
  --terracotta-soft: #c97c58;
  --ink: #262a20;
  --muted: #6f6a5c;
  --white: #fdfcf9;
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow-soft: 0 18px 45px -20px rgba(38, 42, 32, 0.28);
  --shadow-card: 0 10px 30px -14px rgba(38, 42, 32, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  color: var(--green-deep);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { color: var(--muted); }

a { color: inherit; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green-deep); }
.section--green h2, .section--green h3 { color: var(--cream); }
.section--green p { color: rgba(246, 242, 234, 0.72); }

.section-head { max-width: 620px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 0.9rem; font-size: 1.1rem; }

/* ---------- Skip link & přístupnost ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-deep); color: var(--cream);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38, 42, 32, 0.08);
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 600;
  text-decoration: none; color: var(--green-deep);
  letter-spacing: -0.02em;
}
.brand span { color: var(--terracotta); }

.nav-links { display: flex; gap: 1.9rem; list-style: none; align-items: center; }

.nav-links a {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: var(--ink); opacity: 0.75;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] {
  opacity: 1; color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--green-deep); transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.95rem 2.1rem; border-radius: 999px; border: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--terracotta); color: var(--white); box-shadow: var(--shadow-card); }
.btn--primary:hover { background: #9c4e2c; }

.btn--ghost {
  background: transparent; color: var(--green-deep);
  border: 1.5px solid rgba(38, 42, 32, 0.35);
}
.btn--ghost:hover { border-color: var(--green-deep); }

.section--green .btn--ghost { color: var(--cream); border-color: rgba(246,242,234,0.4); }
.section--green .btn--ghost:hover { border-color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: flex-end;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36, 48, 30, 0.72) 0%, rgba(36, 48, 30, 0.15) 55%, rgba(36,48,30,0.05) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 0 clamp(3rem, 8vw, 5.5rem);
  max-width: 720px;
}
.hero-content h1 { color: var(--cream); }
.hero-content p {
  color: rgba(246, 242, 234, 0.86);
  font-size: 1.2rem; margin: 1.3rem 0 2.2rem; max-width: 540px;
}
.hero-content .eyebrow { color: #e8c9a8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero--sub { min-height: 62vh; }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.card-body h3 a { text-decoration: none; }
.card-body p { font-size: 0.98rem; }

.tag {
  display: inline-block; align-self: flex-start;
  background: var(--sand); color: var(--green-soft);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; border-radius: 999px;
}

.card-meta { font-size: 0.85rem; color: var(--muted); margin-top: auto; display: flex; gap: 1rem; }

/* ---------- Sezónní pás ---------- */
.season-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.season-item {
  background: var(--white); border-radius: var(--radius-md);
  padding: 1.6rem; box-shadow: var(--shadow-card);
}
.season-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--terracotta); }
.season-item p { font-size: 0.92rem; }

/* ---------- Split sekce ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.split .content p { margin: 1rem 0 1.5rem; }

/* ---------- Citace / reference ---------- */
.testimonial {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.25rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.testimonial blockquote {
  font-family: var(--font-display); font-size: 1.18rem; line-height: 1.5;
  color: var(--green-deep);
}
.testimonial footer { font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.testimonial .stars { color: var(--terracotta); letter-spacing: 0.2em; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: var(--cream);
}
.newsletter-box h2 { color: var(--cream); }
.newsletter-box p { color: rgba(246,242,234,0.75); max-width: 480px; margin: 1rem auto 2rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 480px; margin-inline: auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px;
  padding: 0.95rem 1.4rem; border-radius: 999px; border: 1.5px solid rgba(246,242,234,0.3);
  background: rgba(246,242,234,0.08); color: var(--cream);
  font-family: var(--font-body); font-size: 1rem;
}
.newsletter-form input::placeholder { color: rgba(246,242,234,0.5); }
.newsletter-msg { margin-top: 1rem; font-weight: 700; color: #cfe0b8; min-height: 1.5rem; }

/* ---------- Recepty: hledání a filtry ---------- */
.recipe-tools { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.75rem; }
.search-wrap { position: relative; max-width: 520px; }
.search-wrap input {
  width: 100%; padding: 1rem 1.5rem 1rem 3.2rem;
  border-radius: 999px; border: 1.5px solid var(--sand-dark);
  background: var(--white); font-size: 1rem; font-family: var(--font-body);
}
.search-wrap svg { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); }

.filter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.filter-btn {
  border: 1.5px solid var(--sand-dark); background: transparent;
  padding: 0.55rem 1.35rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: var(--ink);
  transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--green-soft); }
.filter-btn.active, .filter-btn[aria-pressed="true"] {
  background: var(--green-deep); color: var(--cream); border-color: var(--green-deep);
}
.no-results { text-align: center; padding: 3rem 0; font-size: 1.1rem; display: none; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); margin-bottom: 1rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.4rem 1.75rem; font-weight: 700; font-size: 1.05rem;
  color: var(--green-deep);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.5rem;
  color: var(--terracotta); transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.75rem 1.5rem; }

/* ---------- Tabulka sezónnosti ---------- */
.season-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.season-table th, .season-table td { padding: 1.1rem 1.4rem; text-align: left; border-bottom: 1px solid var(--sand); }
.season-table th { background: var(--green-deep); color: var(--cream); font-family: var(--font-display); font-weight: 550; }
.season-table td:first-child { font-weight: 700; color: var(--terracotta); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }

/* ---------- Kontakt ---------- */
.contact-form { display: grid; gap: 1.1rem; }
.contact-form label { font-weight: 700; font-size: 0.92rem; display: block; margin-bottom: 0.35rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md); border: 1.5px solid var(--sand-dark);
  background: var(--white); font-family: var(--font-body); font-size: 1rem;
  resize: vertical;
}
.contact-info-list { list-style: none; display: grid; gap: 1.4rem; margin-top: 1.75rem; }
.contact-info-list li strong { display: block; color: var(--green-deep); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.2rem; }

/* ---------- Patička ---------- */
.site-footer { background: var(--green-deep); color: rgba(246,242,234,0.7); padding: 4rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer h4 { color: var(--cream); font-size: 1rem; margin-bottom: 1rem; }
.site-footer .brand { color: var(--cream); }
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(246,242,234,0.7); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(246,242,234,0.15); padding-top: 1.75rem; font-size: 0.88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- Animace ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .season-strip { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .season-strip { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 1.5rem 6%; gap: 1.2rem; border-bottom: 1px solid rgba(38,42,32,0.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .hero { min-height: 78vh; }
  .footer-grid { grid-template-columns: 1fr; }
}
