/* Písma jsou uložená na vlastním serveru (stáhne je bin/fetch-fonts.php). Bez nich se použijí systémová písma. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/dm-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/dm-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/dm-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/dm-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/caveat-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/caveat-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #DAD4CA;
  --text: #26231F;
  --card: #EEE9E0;
  --tile: #CFC8BC;
  --pink: #D8B4A6;
  --sage: #A8B5A0;
  --ochre: #D1B26F;
  --brick: #8A5A4C;
  --cat: #8A5A4C;
  --cat-tint: #E3D3CB;
  --cat-ink: #4F2D22;
  --radius: 18px;
  --font-head: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  background-color: var(--bg);
  /* jemný skvrnitý betonový vzor z barevných přechodů, bez obrázků */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.28) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 32%, rgba(0,0,0,.07) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 71%, rgba(255,255,255,.2) 0 3px, transparent 4px),
    radial-gradient(circle at 91% 88%, rgba(0,0,0,.06) 0 2px, transparent 3px),
    radial-gradient(circle at 27% 54%, rgba(0,0,0,.05) 0 1px, transparent 2px);
  background-size: 190px 190px, 230px 230px, 310px 310px, 170px 170px, 130px 130px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--brick); }
img { max-width: 100%; height: auto; display: block; }

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

.hand { font-family: var(--font-hand); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--brick); }
.small { font-size: .9375rem; }
.lede { font-size: 1.25rem; max-width: 34rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--card); padding: .75rem 1rem; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

/* hlavička */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem clamp(1rem, 4vw, 3rem); }
.brand { font: 700 1.6rem/1 var(--font-head); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; }
.site-nav a { text-decoration: none; padding: .6rem .9rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 500; }
.site-nav a:hover { background: var(--tile); color: var(--text); }
.site-nav a[class*="cat-"]::before { content: ""; width: .6rem; height: .6rem; margin-right: .5rem; border-radius: 50%; background: var(--cat); flex: none; }
.site-nav .nav-cta { background: var(--text); color: var(--card); }
.site-nav .nav-cta:hover { background: var(--brick); color: var(--card); }

main { padding: 0 clamp(1rem, 4vw, 3rem) 3rem; max-width: 72rem; margin: 0 auto; }
.section { margin-top: clamp(2rem, 6vw, 4rem); }
.narrow { max-width: 40rem; margin-left: auto; margin-right: auto; }
.crumbs { font-size: .9375rem; opacity: .85; margin-bottom: 1rem; }

/* hero */
.hero { padding-top: clamp(1.5rem, 6vw, 4rem); }
.hero h1 { max-width: 14ch; margin-bottom: .4em; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.6rem; border: 0; border-radius: 999px; background: var(--text); color: var(--card); font: 500 1.0625rem var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brick); color: var(--card); }
.btn--light { background: var(--card); color: var(--text); }
.btn--light:hover { background: var(--pink); color: var(--text); }

/* barvy kategorií (tlumené, přírodní) */
.cat-beton { --cat: #B0664A; --cat-tint: #EBD3C6; --cat-ink: #5A2B1A; }
.cat-lici-hmoty { --cat: #BF9333; --cat-tint: #EDDDB2; --cat-ink: #55400D; }
.cat-oci-na-platne { --cat: #4A8580; --cat-tint: #C9DDD6; --cat-ink: #1D433F; }

.hero-note { transform: rotate(-1.5deg); margin: .5rem 0 1.5rem; }

/* dlaždice kategorií */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.tile { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.5rem; background: var(--cat-tint); color: var(--cat-ink); border-radius: 24px; text-decoration: none; border-bottom: 6px solid var(--cat); }
.tile:hover { background: var(--cat); color: #fff; }
.tile .icon { color: var(--cat); }
.tile:hover .icon { color: #fff; }
.icon { width: 56px; height: 56px; margin-bottom: .5rem; }
.tile-name { font: 700 1.5rem/1.1 var(--font-head); }
.tile-text { font-size: .9375rem; }

/* karty výrobků */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); color: var(--text); }
/* barevný proužek a štítek kategorie */
.card { border-top: 6px solid var(--cat); }
.chip { display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .875rem; font-weight: 500; background: var(--cat-tint); color: var(--cat-ink); text-decoration: none; }
a.chip:hover { background: var(--cat); color: #fff; }
.cat-banner { border-left: 8px solid var(--cat); padding-left: 1rem; }
.card-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tile); }
.card-photo--empty { display: flex; align-items: center; justify-content: center; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem 1.1rem 1.2rem; }
.card-title { font: 700 1.2rem/1.2 var(--font-head); }

/* štítky stavu */
.tag { display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .875rem; font-weight: 500; background: var(--sage); color: var(--text); }
.tag--na_zakazku { background: var(--ochre); }
.tag--prodano { background: var(--pink); }

/* detail výrobku */
.product-grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .product-grid { grid-template-columns: 3fr 2fr; align-items: start; } .product-info { position: sticky; top: 1rem; } }
.gallery { display: grid; gap: 1.25rem; }
.photo { margin: 0; }
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.photo-frame--empty { min-height: 16rem; display: flex; align-items: center; justify-content: center; }
.photo-frame img { width: 100%; }
.bubble-ring { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid var(--brick); border-radius: 50%; box-shadow: 0 0 0 2px rgba(238,233,224,.8); pointer-events: none; }
.bubble-note { margin: .4rem .5rem 0; transform: rotate(-1deg); }
.product-info h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: .6rem; }
.piece-no { margin: -.2rem 0 1rem; }
.description { max-width: 34rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 1.25rem 0; padding: 1rem 1.25rem; background: var(--card); border-radius: var(--radius); }
.facts { border-left: 6px solid var(--cat); }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; }

/* tmavý blok a formulář */
.dark-block { background: var(--text); color: var(--card); border-radius: 28px; padding: clamp(1.5rem, 5vw, 3rem); }
.dark-block a { color: var(--card); }
.dark-block a:hover { color: var(--pink); }
.inquiry-form { display: grid; gap: 1.1rem; max-width: 36rem; margin-top: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 2px solid transparent; border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.field textarea { resize: vertical; }
.field [aria-invalid=true] { border-color: var(--pink); }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .75rem; }
.field--check input { width: 24px; height: 24px; margin-top: .25rem; accent-color: var(--pink); }
.field--check .field-error { grid-column: 1 / -1; }
.field-error, .form-error { color: #F3C9BB; font-weight: 500; margin: 0; }
.form-error { padding: .8rem 1rem; border: 2px solid var(--pink); border-radius: 12px; margin-bottom: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ostatní */
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose blockquote { margin: 1rem 0; padding: .25rem 1.25rem; background: var(--card); border-left: 3px solid var(--brick); border-radius: var(--radius); }
.error-page { text-align: center; margin: 4rem auto; max-width: 30rem; }
.error-code { font: 700 4rem/1 var(--font-head); color: var(--brick); margin: 0; }
.empty { font-size: 1.8rem; }
.site-footer { text-align: center; padding: 2rem 1rem 3rem; font-size: .9375rem; }
.site-footer .hand { font-size: 1.6rem; margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
