/* =====================================================================
   KANT — kuchyňské studio
   Design systém · quiet-luxury editorial minimalism
   Brand: prémiový · přesný · tichý · současný · lidský
   ===================================================================== */

/* ---------- Design tokens (paleta dle briefu KANT_16 — navy/zlatá) ---------- */
:root {
  /* Neutrály */
  --cream:      #FAF8F4;   /* bg-primary (brief) */
  --cream-2:    #F0EBE0;   /* bg-secondary (brief) */
  --cream-3:    #E7E1D5;   /* hlubší teplý tón */
  --sand:       #E0D9CC;   /* hranice / oddělovače */
  --sand-line:  #DBD4C7;   /* tenké linky */
  --white:      #FFFFFF;

  /* Tmavá / navy (brief text-primary #1F3864, bg-dark #1F2937) */
  --ink:        #1F3864;   /* brand navy — nadpisy, nav, primary btn, text */
  --ink-2:      #324B73;   /* sekundární navy */
  --ink-3:      #2E75B6;   /* brand-blue — hover (brief) */
  --bg-dark:    #1F2937;   /* tmavé plochy — footer, section--ink (brief) */
  --text:       #1F3864;   /* tělo textu (brief text-primary) */
  --muted:      #595959;   /* sekundární text (brief text-secondary) */
  --muted-2:    #8C8C8C;   /* metadata / popisky (brief text-muted) */

  /* Akcent — zlatá (brief accent-gold #C9A14A) */
  --brass:      #C9A14A;   /* brand zlatá — linky, akcenty, hover */
  --brass-2:    #D8B96E;   /* světlejší zlatá — na tmavém pozadí */
  --brass-soft: #D0AC5E;
  --brass-dk:   #8A6D24;   /* tmavší zlatá — drobný text s kontrastem */
  --brass-tint: rgba(201,161,74,0.12);

  /* Typografie (brief: serif nadpisy Cormorant + Inter tělo) */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Rozměry */
  --wrap:      1240px;
  --wrap-wide: 1440px;
  --wrap-text: 760px;
  --gutter:    clamp(20px, 5vw, 64px);

  /* Pohyb */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Stíny — jemné, prémiové */
  --shadow-sm: 0 1px 2px rgba(26,31,42,0.04), 0 2px 8px rgba(26,31,42,0.04);
  --shadow-md: 0 8px 30px rgba(26,31,42,0.07), 0 2px 8px rgba(26,31,42,0.04);
  --shadow-lg: 0 24px 60px rgba(26,31,42,0.12), 0 6px 18px rgba(26,31,42,0.06);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  font-optical-sizing: auto;
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a, button, .btn, label, input, select, textarea, summary { touch-action: manipulation; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--cream); }

/* ---------- Typografie — serif nadpisy (Cormorant), Inter tělo ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.9rem, 1.3rem + 6.4vw, 5.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.008em;
}
.h1 { font-size: clamp(2.5rem, 1.3rem + 4.5vw, 4.2rem); letter-spacing: -0.006em; }
.h2 { font-size: clamp(2rem, 1.2rem + 2.9vw, 3rem); letter-spacing: -0.005em; line-height: 1.12; }
.h3 { font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.78rem); letter-spacing: -0.004em; line-height: 1.18; }
.h4 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.003em; }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.12rem, 1.0rem + 0.6vw, 1.42rem);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.muted { color: var(--muted); }
strong { font-weight: 600; color: var(--ink); }

/* Serifový akcent — chirurgicky (brand statement, citace) */
.serif { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* Eyebrow / sekční label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--brass);
}
.section--ink .eyebrow { color: #9AA0AB; }
.eyebrow--plain::before { display: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--text { max-width: var(--wrap-text); }

.section { padding-block: clamp(64px, 8vw, 132px); }
.section--tight { padding-block: clamp(48px, 6vw, 92px); }
.section--cream2 { background: var(--cream-2); }
.section--ink { background: var(--bg-dark); color: var(--cream); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }

.divider { height: 1px; background: var(--sand-line); border: 0; }

/* Sekční hlavička */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 60px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Tlačítka ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream); --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 1.02em 1.7em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .45s var(--ease); }
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --bg: transparent; --fg: var(--ink); --bd: var(--sand);
}
.btn--ghost:hover { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); background: var(--ink); color: var(--cream); }

.btn--brass { --bg: var(--brass); --fg: #fff; --bd: var(--brass); }
.btn--brass:hover { background: var(--brass-2); border-color: var(--brass-2); }

.btn--light { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; }

.btn--lg { padding: 1.15em 2em; font-size: 0.98rem; }

/* Textový odkaz se šipkou */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--brass { color: var(--brass); }
.link-arrow--light { color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,244,0);
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250,248,244,0.88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--sand-line);
}
.site-header__inner {
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header.is-scrolled .site-header__inner { height: 72px; }

/* Logo — oficiální brand wordmark KANT (SVG, currentColor) */
.logo { display: inline-flex; align-items: center; }
.logo__mark { height: 30px; width: auto; display: block; color: var(--ink); transition: height .5s var(--ease); }
.site-header.is-scrolled .logo__mark { height: 26px; }
.logo--light .logo__mark { color: var(--cream); }
.footer__brand .logo__mark { height: 36px; }

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 1.9vw, 2.1rem); margin-left: auto; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  white-space: nowrap;
  position: relative;
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 1.2rem; }
/* CTA tlačítko v hlavičce (desktop, vpravo) — brief KANT_16 #5 */
.header__cta { flex: none; padding: 0.8em 1.4em; font-size: 0.86rem; white-space: nowrap; }
/* Kompaktní CTA pro mobil (vždy viditelné v hlavičce, brief §15) — na desktopu skryté */
.header__cta-mini { display: none; flex: none; white-space: nowrap; }

/* Hamburger */
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 110; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease), top .4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
body.nav-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #B8BCC4; padding-block: clamp(60px, 7vw, 96px) 36px; }
.site-footer a { color: #B8BCC4; transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer__brand .logo__mark { color: var(--cream); }
.footer__tagline { margin-top: 20px; max-width: 30ch; color: #9AA0AB; font-size: 0.98rem; line-height: 1.6; }
.footer__col h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; font-size: 0.96rem; }
.footer__contact { font-style: normal; font-size: 0.96rem; line-height: 1.9; }
.footer__contact a { font-weight: 500; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; font-size: 0.84rem; color: #969BA5;
}
.footer__schuller {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.82rem; letter-spacing: 0.04em; color: #9AA0AB;
}
.footer__schuller b { color: var(--white); font-weight: 600; letter-spacing: 0.16em; }

/* ---------- Reveal animace (progressive enhancement: jen když běží JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Failsafe: pokud main.js vůbec nedoběhne (.js-ready se nepřidá), inline skript v hlavičce
   po 2,5 s nastaví .reveal-fallback a obsah se odkryje i bez externího JS (brief KANT_16 #2). */
.reveal-fallback [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
/* Hero (homepage i podstránky) musí být vidět okamžitě — žádná závislost na scroll-animaci (brief KANT_16 #2/#6) */
.js .hero [data-reveal],
.js .page-hero [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Pomocné ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 2px;
}
.skip-link:focus { left: 16px; top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.cut { /* dekorativní "řez" — diagonální akcent */
  position: relative;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--sand);
  padding: 0.34em 0.7em;
  border-radius: 2px;
  background: var(--cream);
}
.section--ink .tag { color: #B8BCC4; border-color: rgba(255,255,255,0.14); background: transparent; }

/* ---------- Mobilní navigace ---------- */
@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: safe center;
    gap: clamp(0.9rem, 3.5vh, 1.6rem);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .55s var(--ease), visibility 0s linear .55s;
    /* horní padding uvolní místo pod hlavičkou (logo + křížek);
       overflow umožní scroll, když se položky na nízký displej nevejdou */
    padding: 92px 2rem 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.nav-open .nav { transform: translateX(0); visibility: visible; transition: transform .55s var(--ease); }
  /* Otevřené menu ruší backdrop-filter hlavičky. Ten (na .is-scrolled) jinak
     vytváří containing block pro fixed .nav → po scrollu se menu ukotví
     k hlavičce místo k viewportu (průhledný, poloviční overlay). */
  body.nav-open .site-header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Krycí lišta nad scrollujícím menu: pseudo-element se vykreslí NAD položkami
     (.nav má auto z-index), ale pod logem/křížkem (z-index 110). Na nízkých
     displejích se tak scrollované položky schovají za lištu místo prosvítání.
     (Pouhé pozadí na .site-header nestačí — hlavička je rodič .nav, kreslí se pod ním.) */
  body.nav-open .site-header::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 84px;
    background: var(--cream);
    z-index: 106;
  }
  body.nav-open .site-header.is-scrolled::before { height: 72px; }
  body.nav-open .menu-toggle { position: relative; z-index: 110; }
  body.nav-open { overflow: hidden; }
  .nav__link { font-size: 1.5rem; font-weight: 500; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link:focus-visible { color: var(--brass-dk); }
  .header__cta { display: none; }
  .site-header__inner { gap: 0.55rem; padding-inline: 16px; }
  .header__cta-mini { display: inline-flex; padding: 0.55em 0.85em; font-size: 0.78rem; margin-right: 2px; }
  .nav .header__cta--mobile { display: inline-flex; margin-top: 1rem; }
  /* logo zůstává v rohu i nad otevřeným menu (fixed overlay ho jinak překryje) */
  body.nav-open .logo { position: relative; z-index: 110; }
  /* v otevřeném menu skryj malé CTA v liště (nadbytečné — dole je velké tlačítko) */
  body.nav-open .header__cta-mini { display: none; }
  /* jemná linka pod hlavičkou — přechod od lišty (logo + křížek) k menu */
  body.nav-open .site-header::after {
    content: "";
    position: fixed;
    left: 0; right: 0; top: 84px;
    height: 1px;
    background: var(--sand-line);
    z-index: 105;
  }
  body.nav-open .site-header.is-scrolled::after { top: 72px; }
}
@media (min-width: 941px) {
  .header__cta--mobile { display: none; }
}

/* Footer responsive */
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
