/* Javpar Kuchyně, Bohemian recipes without vegetable oil */

:root {
  --maroon: #571c24;
  --maroon-deep: #3c1118;
  --maroon-soft: #7a2f38;
  --amber: #d69a3f;
  --amber-deep: #b57d2a;
  --cream: #f7efe1;
  --cream-warm: #f1e4cd;
  --ink: #2e2320;
  --ink-soft: #5c4b44;
  --line: #dcc9a8;
  --white: #fffdf8;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Mulish', 'Helvetica Neue', Arial, sans-serif;
  --sidebar-w: 260px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

h1, h2, h3, h4, blockquote { font-family: var(--serif); }

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(175deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 2.4rem 1.8rem;
  z-index: 60;
}

.side-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.side-emoji { font-size: 2rem; }

.side-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
}

.side-name em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}

.side-tagline {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 239, 225, 0.65);
}

.side-nav {
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
}

.side-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(247, 239, 225, 0.12);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  color: var(--amber);
  padding-left: 6px;
}

.side-foot {
  margin-top: auto;
  font-size: 0.85rem;
  color: rgba(247, 239, 225, 0.55);
  border-top: 2px solid var(--amber-deep);
  padding-top: 1.1rem;
}

.sidebar-burger {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 80;
  width: 46px; height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--maroon);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(60, 17, 24, 0.35);
}

.sidebar-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 35, 32, 0.5);
  z-index: 50;
}

.sidebar-scrim.show { display: block; }

/* ---------- Main column ---------- */

.content { margin-left: var(--sidebar-w); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60, 17, 24, 0.72) 0%, rgba(87, 28, 36, 0.62) 55%, rgba(46, 35, 32, 0.78) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 5rem 2rem;
  color: var(--cream);
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.3rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 1.13rem;
  max-width: 590px;
  margin: 0 auto 2.2rem;
  color: rgba(247, 239, 225, 0.9);
}

.hero-cta {
  display: inline-block;
  background: var(--amber);
  color: var(--maroon-deep);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.95rem 2.4rem;
  border-radius: 3px;
  border: 2px solid var(--amber);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: transparent;
  color: var(--amber);
}

/* ---------- Shared section bits ---------- */

.section-head {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 1.5rem;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon-soft);
  margin-bottom: 0.7rem;
}

.section-head h2,
.about-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.2;
}

.section-sub {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Principles timeline ---------- */

.principles {
  padding: 5.5rem 2rem 5rem;
  background: var(--cream);
}

.timeline {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--maroon-soft) 100%);
}

.tl-item {
  position: relative;
  display: flex;
  gap: 1.6rem;
  padding: 0 0 2.6rem 0;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--amber);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--amber);
  position: relative;
  z-index: 2;
}

.tl-body h3 {
  font-size: 1.35rem;
  color: var(--maroon-deep);
  margin-bottom: 0.4rem;
}

.tl-body p { color: var(--ink-soft); }

/* ---------- Recipes accordion ---------- */

.recipes {
  padding: 5.5rem 2rem;
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.accordion {
  max-width: 860px;
  margin: 0 auto;
}

.acc-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.acc-item.open {
  box-shadow: 0 14px 34px rgba(87, 28, 36, 0.14);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 1.35rem 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.acc-head:hover .acc-title,
.acc-head:focus-visible .acc-title {
  color: var(--maroon-soft);
}

.acc-index {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--amber-deep);
  flex: 0 0 auto;
}

.acc-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
}

.acc-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--maroon-deep);
  transition: color 0.2s ease;
}

.acc-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.acc-chevron {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 2px solid var(--maroon-soft);
  border-bottom: 2px solid var(--maroon-soft);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}

.acc-item.open .acc-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.acc-inner {
  padding: 0.4rem 1.6rem 2rem;
  border-top: 1px dashed var(--line);
}

.acc-inner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  margin: 1.2rem 0 1.3rem;
}

.acc-desc {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
}

.acc-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding: 0.9rem 1.1rem;
  background: var(--cream);
  border-left: 4px solid var(--amber);
  border-radius: 3px;
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}

.acc-stats strong {
  color: var(--maroon-deep);
  margin-right: 0.35rem;
}

.acc-cols {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.2rem;
}

.acc-cols h4 {
  font-size: 1.08rem;
  color: var(--maroon-deep);
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}

.acc-cols ul,
.acc-cols ol {
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.acc-cols li { margin-bottom: 0.55rem; }

.acc-cols li::marker { color: var(--amber-deep); font-weight: 700; }

/* ---------- About ---------- */

.about {
  padding: 5.5rem 2rem;
  background: var(--cream);
}

.about-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.1rem; }

.about-text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.about-quote {
  background: var(--maroon);
  color: var(--cream);
  padding: 2.6rem 2.2rem;
  border-radius: 6px;
  border-top: 5px solid var(--amber);
}

.about-quote p {
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 1.1rem;
}

.about-quote footer {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: rgba(247, 239, 225, 0.75);
}

/* ---------- Footer ---------- */

.footer {
  background: linear-gradient(160deg, var(--maroon-deep) 0%, var(--maroon) 100%);
  color: var(--cream);
  padding: 3.6rem 2rem 1.8rem;
}

.footer-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 2.4rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tag {
  font-size: 0.92rem;
  color: rgba(247, 239, 225, 0.7);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover { color: var(--amber); }

.footer-company {
  font-size: 0.88rem;
  color: rgba(247, 239, 225, 0.75);
  line-height: 1.6;
}

.footer-copy {
  max-width: 1000px;
  margin: 2.4rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247, 239, 225, 0.18);
  font-size: 0.85rem;
  color: rgba(247, 239, 225, 0.55);
  text-align: center;
}

/* ---------- Legal pages ---------- */

.legal-head {
  background: linear-gradient(165deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: var(--cream);
  padding: 4.6rem 2rem 3.2rem;
  text-align: center;
  border-bottom: 5px solid var(--amber);
}

.legal-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.4rem 1.8rem 4.5rem;
}

.legal-body h2 {
  font-size: 1.4rem;
  color: var(--maroon-deep);
  margin: 2.2rem 0 0.8rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.legal-body ul { padding-left: 1.3rem; }

.legal-body a { color: var(--maroon-soft); }

.legal-updated {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 700;
}

.company-contact-box {
  margin-top: 2.8rem;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-left: 5px solid var(--maroon);
  border-radius: 5px;
  padding: 1.6rem 1.8rem;
}

.company-contact-box h3 {
  font-size: 1.1rem;
  color: var(--maroon-deep);
  margin-bottom: 0.6rem;
}

.company-contact-box p {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

/* ---------- Reveal on scroll ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .rv.rv-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Breakpoints: 1100 / 760 / 440 ---------- */

@media (max-width: 1100px) {
  :root { --sidebar-w: 220px; }
  .sidebar { padding: 2rem 1.4rem; }
  .acc-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .content { margin-left: 0; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 270px;
    box-shadow: 8px 0 30px rgba(60, 17, 24, 0.25);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-burger { display: flex; }
  .hero { min-height: 78vh; }
  .hero-inner { padding: 6rem 1.4rem 4rem; }
  .principles, .recipes, .about { padding-left: 1.2rem; padding-right: 1.2rem; }
  .acc-head { padding: 1.1rem 1.1rem; gap: 0.9rem; }
  .acc-inner { padding: 0.3rem 1.1rem 1.6rem; }
  .acc-inner img { height: 230px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 440px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .timeline::before { left: 21px; }
  .tl-marker { flex-basis: 44px; height: 44px; font-size: 1rem; }
  .tl-item { gap: 1.1rem; }
  .acc-index { display: none; }
  .acc-title { font-size: 1.12rem; }
  .acc-meta { font-size: 0.78rem; }
  .acc-inner img { height: 180px; }
  .about-quote { padding: 1.8rem 1.4rem; }
  .about-quote p { font-size: 1.3rem; }
  .legal-body { padding: 2.4rem 1.2rem 3.4rem; }
}
