/* FC Dům nábytku – veřejný stylopis
   Tmavé akcenty, čistá typografie, světlejší sekce pro výmalbu. */
:root {
  --c-dark: #1c1d1f;
  --c-dark-2: #2a2c2f;
  --c-text: #23252a;
  --c-muted: #6b6f76;
  --c-line: #e3e1dc;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f4f0;
  --c-paint: #f3efe6;
  --c-accent: #b3262e;
  --c-accent-dark: #8e1c23;
  --c-ok: #2f7d4f;
  --c-warn: #c77c02;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --container: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--c-text); background: var(--c-bg); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; color: var(--c-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--c-muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: #c9c5bd; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* Info pruh */
.info-bar { font-size: .92rem; font-weight: 500; text-align: center; padding: .55rem 0; }
.info-bar--info { background: var(--c-dark-2); color: #f1efe9; }
.info-bar--warning { background: #fff3cd; color: #6b4a00; }
.info-bar--promo { background: var(--c-accent); color: #fff; }

/* Hlavička */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo img { width: 200px; height: 56px; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.main-nav a { color: var(--c-dark); text-decoration: none; font-weight: 550; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--c-accent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--c-dark); transition: .2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; right: 0; top: 7px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { display: block; padding: .6rem 0; }
}

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--c-dark); border-color: var(--c-dark); }
.btn--ghost:hover { background: var(--c-dark); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--c-dark); }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--c-dark) 0%, #34363a 100%); color: #fff; }
.hero__inner { padding: clamp(3rem, 8vw, 6rem) 1.25rem; }
.hero__text { max-width: 680px; }
.hero h1 { color: #fff; }
.hero .lead { color: #d6d3cc; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Sekce */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tight { padding-top: 1.5rem; }
.section--light { background: var(--c-bg-soft); }
.section--paint, .section--paint-light { background: var(--c-paint); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.section__title { margin-bottom: .4em; }
.page-head { background: var(--c-bg-soft); padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--c-line); }
.page-head .lead { margin-bottom: 0; }

.paint-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.paint-cta--boxed { margin-top: 2rem; padding: 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); }
.paint-cta--boxed p { margin: 0; flex: 1 1 280px; }

/* Dlaždice kategorií */
.category-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.category-tiles a {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: var(--c-text);
  border-top: 3px solid var(--c-dark); transition: border-color .15s, transform .15s;
}
.category-tiles a:hover { border-top-color: var(--c-accent); transform: translateY(-2px); }
.category-tiles__name { font-weight: 700; color: var(--c-dark); }
.category-tiles__desc { font-size: .9rem; color: var(--c-muted); }

/* Filtr (chips) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--c-line); background: #fff;
  color: var(--c-dark); text-decoration: none; font-size: .9rem; font-weight: 550;
}
.chip:hover { border-color: var(--c-dark); color: var(--c-dark); }
.chip--active { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.chip--active:hover { color: #fff; }
.gallery-wrap.htmx-request { opacity: .55; transition: opacity .15s; }

/* Mřížka a karty – pevný poměr 4:3 => nulový CLS */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--c-bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__body .btn { margin-top: auto; }
.card__eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin: 0; }
.card__title { margin: 0; font-size: 1.02rem; }
.card__title a { color: var(--c-dark); text-decoration: none; }
.card__title a:hover { color: var(--c-accent); }
.card--reserved .card__media img { filter: grayscale(.4); }
.badge {
  position: absolute; top: .75rem; left: .75rem; background: var(--c-accent); color: #fff;
  font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: 4px; letter-spacing: .02em;
}
.badge--dark { background: var(--c-dark); }
.badge--inline { position: static; display: inline-block; margin-bottom: .6rem; }
.empty { padding: 2rem; text-align: center; color: var(--c-muted); background: var(--c-bg-soft); border-radius: var(--radius); }

/* Cena */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .75rem; }
.price__action { font-size: 1.3rem; font-weight: 800; color: var(--c-accent); }
.price__action--regular { color: var(--c-dark); }
.price__old { color: var(--c-muted); font-size: .95rem; }
.price__save { font-size: .8rem; font-weight: 700; background: #fbe9ea; color: var(--c-accent); padding: .1rem .4rem; border-radius: 4px; }

/* Detail */
.breadcrumbs { font-size: .88rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--c-muted); }
.detail-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(4, 1fr); margin-bottom: 2rem; }
.detail-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--c-bg-soft); }
.detail-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery__item--main { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) { .detail-gallery { grid-template-columns: repeat(2, 1fr); } }
.detail-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.detail-aside { background: var(--c-bg-soft); padding: 1.5rem; border-radius: var(--radius); position: sticky; top: 96px; }
@media (max-width: 860px) { .detail-layout { grid-template-columns: 1fr; } .detail-aside { position: static; } }

.product { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.product__media img { border-radius: var(--radius); width: 100%; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; margin: 0 0 1.5rem; }
.specs dt { color: var(--c-muted); }
.specs dd { margin: 0; font-weight: 600; }
.status--available { color: var(--c-ok); }
.status--reserved { color: var(--c-warn); }
.status--sold { color: var(--c-muted); }
.notice { background: var(--c-bg-soft); padding: 1rem; border-radius: var(--radius); }

/* Obsah z Markdownu */
.prose { max-width: 72ch; }
.prose h1 { margin-top: 0; }
.prose h2 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 3px solid var(--c-accent); background: var(--c-bg-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--c-line); }
.prose th { background: var(--c-dark); color: #fff; font-weight: 600; }
.prose tr:nth-child(even) td { background: var(--c-bg-soft); }
.prose img { border-radius: 6px; }
.prose code { background: var(--c-bg-soft); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

/* Patička */
.site-footer { background: var(--c-dark); color: #cfccc5; padding: 3rem 0 1.5rem; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .muted { color: #9d9a93; margin-top: 1rem; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; padding: .15rem 1.25rem .15rem 0; color: #fff; }
.hours td { padding: .15rem 0; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.footer-bottom { border-top: 1px solid #3a3c40; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: #8c8981; }

/* Modální okno <dialog> */
.modal {
  width: min(520px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--c-text);
}
.modal::backdrop { background: rgba(20, 21, 23, .6); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem .5rem; }
.modal__head h2 { font-size: 1.25rem; margin: 0; }
.modal__close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--c-muted); padding: 0 .25rem; }
.modal__close:hover { color: var(--c-dark); }
.modal__body { padding: .5rem 1.5rem 1.5rem; }

.inquiry-form__ref:empty { display: none; }
.inquiry-form__ref { font-size: .88rem; background: var(--c-bg-soft); padding: .5rem .75rem; border-radius: 6px; color: var(--c-muted); word-break: break-word; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid #cfccc5; border-radius: 8px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--c-dark); outline-offset: 1px; border-color: var(--c-dark); }
.field--error input, .field--error textarea { border-color: var(--c-accent); }
.field__error { color: var(--c-accent); font-size: .85rem; margin: .3rem 0 0; }
/* Honeypot – skryto přes CSS (ne type=hidden) */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.inquiry-thanks { text-align: center; padding: 1.5rem 0 .5rem; color: var(--c-ok); }
.inquiry-thanks svg { margin: 0 auto 1rem; }
.inquiry-thanks__title { font-size: 1.15rem; font-weight: 650; color: var(--c-dark); }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox__close, .lightbox__nav {
  position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

