/* ============================================================
   SACHSENKÜCHEN CZ — design systém
   Tokeny odvozeny z vizuálu originálu (sachsenkuechen.de).
   Font: Jost (OFL) jako náhrada komerčního Mr Eaves Modern.
   ============================================================ */

@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/Jost.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* barvy */
  --c-white: #ffffff;
  --c-soft: #eaede7;      /* světlé šedozelené pozadí sekcí */
  --c-line: #cfd0c9;      /* linky, rámečky */
  --c-text: #4b4b4d;      /* základní text */
  --c-sage: #b9bcae;      /* doplňková šalvějová */
  --c-green: #006938;     /* značková zelená */
  --c-lime: #97bf0d;      /* akcentní limetka */
  --c-black: #000000;

  /* typografie */
  --ff: 'Jost', Arial, Helvetica, sans-serif;
  --fs-display: clamp(34px, 5vw, 54px);   /* w200, uppercase, lh .95 */
  --fs-subhead: clamp(19px, 2.2vw, 24px); /* w300, uppercase */
  --fs-lead: 20px;
  --fs-body: 17px;
  --fs-small: 13px;

  /* layout */
  --w-max: 1200px;
  --w-wide: 1440px;
  --sp-section: clamp(56px, 9vw, 120px);
  --sp-gap: clamp(24px, 4vw, 56px);
  --header-h: 92px;
}

/* ---------- reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green); text-decoration: none; }
a:hover { color: var(--c-lime); }
:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 200; }

.container { max-width: var(--w-max); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--w-wide); }

/* typo utility */
.t-display {
  font-size: var(--fs-display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: .95;
  color: var(--c-text);
}
.t-subhead {
  font-size: var(--fs-subhead);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.15;
}
.t-kicker {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-green);
  margin-bottom: 14px;
}
.t-lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.45; }
.t-small { font-size: var(--fs-small); }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid var(--c-text);
  color: var(--c-text);
  font-family: var(--ff);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--c-text); border-color: #fff; }
.btn--solid { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.btn--solid:hover { background: var(--c-lime); border-color: var(--c-lime); color: #fff; }
.btn + .btn { margin-left: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.site-header__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header__logo img { width: 200px; height: auto; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text);
  white-space: nowrap;
}
.nav__item:hover > .nav__link,
.nav__item.is-open > .nav__link,
.nav__link[aria-current="page"] { color: var(--c-green); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--c-white);
  border-top: 2px solid var(--c-green);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  list-style: none;
  margin: 0;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav__item.is-open > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__sub a {
  display: block;
  padding: 9px 22px;
  font-size: 15px;
  color: var(--c-text);
  text-transform: none;
  letter-spacing: .02em;
}
.nav__sub a:hover { color: var(--c-green); background: var(--c-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__img { width: 100%; height: min(82vh, 760px); object-fit: cover; display: block; }
/* Hero crossfade slideshow: zavrene -> otevrene skrinky (efekt "otevirani") */
.hero--slides .hero__img--top {
  position: absolute; inset: 0; height: 100%;
  animation: heroSlides 9s ease-in-out infinite;
}
@keyframes heroSlides {
  0%, 42%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--slides .hero__img--top { animation: none; opacity: 1; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.38) 100%);
}
.hero__content { max-width: var(--w-wide); margin: 0 auto; width: 100%; padding: 0 5vw 8vh; }
.hero__title {
  color: #fff;
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: .95;
  margin-bottom: 28px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* ---------- sekce ---------- */
.section { padding: var(--sp-section) 0; }
.section--soft { background: var(--c-soft); }
.section--center { text-align: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-gap);
  align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; object-fit: cover; }
.split__media--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.split__media--duo img:nth-child(2) { margin-top: 12%; }
.split__body .t-display { margin-bottom: 22px; }
.split__body p { margin: 0 0 26px; max-width: 56ch; }

.badge-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.badge-row img { width: 130px; height: auto; }

/* ---------- karty (inspirace / realizace) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card { background: var(--c-white); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 20px 4px 28px; }
.card__title {
  font-size: 22px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 8px;
}
.card__text { margin: 0 0 14px; font-size: 16px; }
.card__link {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-green);
}

/* filtr (kuchyňské inspirace, realizace) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.filter-bar__btn {
  padding: 8px 18px;
  border: 1px solid var(--c-line);
  background: transparent;
  font-family: var(--ff);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text);
  cursor: pointer;
  transition: all .2s ease;
}
.filter-bar__btn:hover,
.filter-bar__btn.is-active { background: var(--c-green); border-color: var(--c-green); color: #fff; }

/* ---------- galerie + lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* stránky dokumentu — obrazový návod vyrenderovaný z originálního PDF */
.doc-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.doc-pages a { display: block; border: 1px solid var(--c-line); background: #fff; line-height: 0; transition: border-color .2s ease; }
.doc-pages a:hover { border-color: var(--c-green); }
.doc-pages img { width: 100%; height: auto; }
@media (max-width: 560px) { .doc-pages { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox__btn {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 16px;
  line-height: 1;
  font-family: var(--ff);
}
.lightbox__close { top: 12px; right: 18px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- před/po posuvník (den–večer apod.) ---------- */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: var(--c-line);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { z-index: 2; }      /* horní vrstva, ořezává se zprava dle --pos */
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3;
  width: 2px; background: #fff; transform: translateX(-1px); cursor: ew-resize;
  box-shadow: 0 0 8px rgba(0,0,0,.35);
}
.ba__handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%;
  background: rgba(0,0,0,.18); backdrop-filter: blur(1px);
}
.ba__handle::before {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #fff; font-size: 15px; letter-spacing: 2px; z-index: 1;
}
.ba__lbl {
  position: absolute; bottom: 14px; z-index: 4; padding: 5px 13px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
}
.ba__lbl--l { left: 14px; } .ba__lbl--r { right: 14px; }

/* ---------- čítače ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px; text-align: center; }
.stats__num { font-size: clamp(44px, 5vw, 64px); font-weight: 200; color: var(--c-green); line-height: 1; }
.stats__label { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }

/* ---------- video consent brána ---------- */
.video-gate { position: relative; aspect-ratio: 16/9; background: var(--c-soft); display: flex; align-items: center; justify-content: center; text-align: center; }
.video-gate__inner { padding: 24px; max-width: 480px; }
.video-gate iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* poster s náhledem videa: název nahoře + červené play tlačítko (jako YouTube) */
.video-gate--poster { background-size: cover; background-position: center; overflow: hidden; cursor: pointer; }
.video-gate--poster::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .25s ease; }
.video-gate--poster:hover::before { background: rgba(0,0,0,.12); }
.video-gate--poster .video-gate__inner { position: absolute; inset: 0; max-width: none; padding: 0; display: flex; align-items: center; justify-content: center; }
.video-gate__title { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 14px 16px 28px; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.3; text-align: left; text-shadow: 0 1px 4px rgba(0,0,0,.85); background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,0)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-gate__play { position: relative; z-index: 2; width: 68px; height: 48px; border-radius: 14px; background: #f00; box-shadow: 0 1px 10px rgba(0,0,0,.35); transition: background .2s ease; }
.video-gate__play::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.video-gate--poster:hover .video-gate__play { background: #c00; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-text); color: #d9d9d9; margin-top: 0; }
.site-footer a { color: #d9d9d9; }
.site-footer a:hover { color: var(--c-lime); }
.site-footer__main {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 36px;
}
.site-footer h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 15px; }
.site-footer__contact p { margin: 0 0 8px; font-size: 15px; }
.site-footer__social { display: flex; gap: 14px; margin-top: 18px; }
.site-footer__social a { display: inline-flex; width: 38px; height: 38px; border: 1px solid #777; border-radius: 50%; align-items: center; justify-content: center; }
.site-footer__social a:hover { border-color: var(--c-lime); }
.site-footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer__legal {
  border-top: 1px solid #5e5e60;
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
}
.site-footer__legal a { margin: 0 10px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responzivita ---------- */
@media (max-width: 1100px) {
  .nav__link { padding: 12px 9px; font-size: 14px; }
  .site-footer__main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .site-header__logo img { width: 160px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--c-white);
    display: none;
    overflow-y: auto;
    padding: 18px 24px 48px;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--c-soft); }
  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    display: none;
    padding: 0 0 8px 16px;
  }
  .nav__item.is-open > .nav__sub { display: block; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards, .gallery { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr; }
  .btn + .btn { margin-left: 0; margin-top: 12px; }
  .hero__img { height: 68vh; }
}
