/* ===== Pekáreň Domov — Adriatic pebble design system ===== */
:root {
  --sage: #7d8f6f;
  --sage-soft: #c9d4bb;
  --oat: #f3ead9;
  --oat-deep: #e7d9b8;
  --clay: #b9693b;
  --clay-soft: #e3b996;
  --ink: #2f2a22;
  --ink-soft: #5c5447;
  --paper: #fbf7ef;
  --line: rgba(47,42,34,.14);
  --radius-lg: 2.5rem;
  --radius-md: 1.4rem;
  --radius-sm: .8rem;
  --shadow-pebble: 0 1.2rem 2.4rem -1rem rgba(47,42,34,.22);
  --maxw: 72rem;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
.icon { display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--clay); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: .2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 8vw, 6.5rem) 0; position: relative; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.visually-hidden, .hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(1.5rem); clip-path: inset(10% 0 0 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.reveal--1 { transition-delay: .05s; } .reveal--2 { transition-delay: .15s; } .reveal--3 { transition-delay: .25s; } .reveal--4 { transition-delay: .35s; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,247,239,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__word { font-family: var(--font-display); font-size: .95rem; line-height: 1.15; color: var(--ink); }
.logo__word strong { font-size: 1.15rem; color: var(--clay); }
.main-nav { flex: 1 1 auto; }
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; flex-wrap: wrap; }
.main-nav a { font-size: .95rem; padding: .3rem 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--clay); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { position: relative; display: inline-flex; color: var(--ink); }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--clay); color: #fff; font-size: .68rem; min-width: 1.1rem; height: 1.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 .2rem; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; padding: .4rem; color: var(--ink); }
.nav-toggle .icon--close { display: none; }

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 20rem); background: var(--paper); padding: 5.5rem 1.5rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; box-shadow: var(--shadow-pebble); }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.2rem; }
  .nav-toggle { display: inline-flex; }
  .main-nav.is-open ~ .header-actions .nav-toggle .icon--open,
  .nav-toggle[aria-expanded="true"] .icon--open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--close { display: inline-block; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .75rem 1.6rem; border-radius: 999px; border: 2px solid var(--ink); font-weight: 600; position: relative; overflow: hidden; isolation: isolate; transition: color .3s ease, border-color .3s ease; background: transparent; color: var(--ink); }
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--ink); z-index: -1; transition: left .35s ease; }
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--paper); }
.btn--fill { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--fill::before { background: var(--ink); }
.btn--fill:hover { color: #fff; }
.btn--ghost { border-color: currentColor; }
.btn--sm { padding: .5rem 1.1rem; font-size: .85rem; min-height: 38px; }
.btn--dark-bg { border-color: var(--oat); color: var(--oat); }
.btn--dark-bg::before { background: var(--oat); }
.btn--dark-bg:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 4rem; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--ink); }
.hero__title em { font-style: normal; color: var(--clay); }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 32rem; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__art img { position: absolute; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-pebble); }
.hero__art .layer-1 { width: 72%; height: 78%; top: 0; left: 0; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.hero__art .layer-2 { width: 55%; height: 50%; bottom: 0; right: 0; transition: transform 1.1s cubic-bezier(.16,1,.3,1) .1s; }
.hero__art .layer-shape { position: absolute; top: -6%; right: -8%; width: 40%; transition: transform 1.2s cubic-bezier(.16,1,.3,1) .2s; }
.hero[data-settled="false"] .layer-1 { transform: translate(-14%, -10%) rotate(-6deg); }
.hero[data-settled="false"] .layer-2 { transform: translate(14%, 12%) rotate(5deg); }
.hero[data-settled="false"] .layer-shape { transform: translate(10%, -10%) rotate(10deg); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { order: -1; max-width: 22rem; margin: 0 auto; } }

/* ---------- decorative dividers ---------- */
.divider { width: 100%; height: auto; display: block; color: var(--sage); }
.divider--clay { color: var(--clay-soft); }

/* ---------- oven board (signature feature) ---------- */
.oven { background: var(--ink); color: var(--oat); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.oven__grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .15; mix-blend-mode: screen; }
.oven__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.oven__head h2 { color: var(--oat); margin: 0; }
.oven__tag { color: var(--clay-soft); font-size: .9rem; }
.oven-board { display: grid; gap: .75rem; position: relative; z-index: 1; }
.oven-board__item { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.2rem; border-radius: var(--radius-sm); background: rgba(243,234,217,.08); border: 1px solid rgba(243,234,217,.18); }
.oven-board__item.is-soon { background: rgba(185,105,59,.28); border-color: var(--clay); }
.oven-board__status { font-variant-numeric: tabular-nums; color: var(--sage-soft); }
.oven-board__item.is-soon .oven-board__status { color: var(--oat); font-weight: 700; }

/* ---------- cards / collage ---------- */
.card { background: var(--oat); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-pebble); transition: transform .3s ease; }
.card:hover { transform: translateY(-.4rem); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.2rem 1.3rem 1.5rem; }
.card__price { color: var(--clay); font-weight: 700; }

.collage { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.collage__item { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-pebble); }
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__caption { position: absolute; background: var(--paper); border-radius: var(--radius-sm); padding: .7rem 1rem; font-family: var(--font-display); box-shadow: var(--shadow-pebble); font-size: .95rem; }

/* ---------- product strip ---------- */
.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .card { min-width: 15rem; scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }

/* ---------- badges / seals ---------- */
.badge-seal { width: 5.5rem; height: 5.5rem; color: var(--clay); }

/* ---------- footer ---------- */
.site-footer { background: var(--sage-soft); margin-top: 4rem; padding: 3rem 0 2rem; }
.site-footer__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-brand p { margin: 0 0 .3rem; }
.footer-copy { color: var(--ink-soft); font-size: .85rem; }
.footer-col h3 { font-size: 1rem; margin-bottom: .8rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a:hover { text-decoration: underline; }
.newsletter-form .field-inline { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1 1 10rem; min-width: 8rem; padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.footer-contact { margin-top: .8rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 36rem; margin: 0 auto; background: var(--ink); color: var(--oat); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-pebble); z-index: 300; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; flex: 1 1 14rem; font-size: .9rem; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ===== reusable components for inner pages ===== */
.page-hero { background: var(--sage-soft); padding: clamp(3rem, 7vw, 5.5rem) 0 3rem; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { max-width: 36rem; color: var(--ink-soft); font-size: 1.05rem; }

.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 .4rem; }

.prose { max-width: 42rem; margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose a { text-decoration: underline; }

.notice { border-radius: var(--radius-md); padding: 1.2rem 1.4rem; border: 1px solid var(--line); background: var(--oat); margin: 1.2rem 0; }
.notice--info { background: var(--sage-soft); }
.notice--warn { background: var(--clay-soft); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea { padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); font: inherit; accent-color: var(--clay); min-height: 44px; }
.field textarea { min-height: 7rem; resize: vertical; }
.field-error { color: #9a3b1f; font-size: .82rem; min-height: 1.1em; }
.field-feedback { min-height: 1.2em; font-size: .9rem; }
.field-feedback--ok { color: var(--sage); }
.field-feedback--error { color: #9a3b1f; }

.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--clay); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .8rem; color: var(--ink-soft); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-pebble); }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; color: var(--clay); font-family: var(--font-display); }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: var(--radius-sm); }
.cart-summary { background: var(--oat); border-radius: var(--radius-md); padding: 1.5rem; margin-top: 1.5rem; max-width: 24rem; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; padding: .4rem 0; }
.cart-summary__row--total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .8rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info__item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info__item .icon { color: var(--clay); flex: none; margin-top: .2rem; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

.legal-toc { background: var(--oat); border-radius: var(--radius-md); padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.legal-toc a:hover { text-decoration: underline; }

.error-page { text-align: center; padding: clamp(3rem, 10vw, 7rem) 0; }
.error-page__code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); color: var(--sage); margin: 0; }

/* COMPONENTS: .class - what it is
.page-hero - section-level hero banner for inner pages
.breadcrumbs - small breadcrumb trail link list
.prose - readable-measure wrapper for long legal/text content
.notice / .notice--info / .notice--warn - callout box variants
.form-grid - responsive grid wrapper for form fields
.field / .field-error / .field-feedback - single form field unit and its messages
.faq / .faq-item - details/summary accordion question block
.product-detail / .product-detail__media / .product-detail__price - single product page layout
.cart-table / .cart-summary - cart line-item table and order summary box
.contact-layout / .contact-info / .contact-info__item - two-column contact page layout
.legal-toc - table of contents box for legal pages
.error-page / .error-page__code - 404 page wrapper and big code number
.btn / .btn--fill / .btn--ghost / .btn--sm / .btn--dark-bg - button variants
.card / .card__media / .card__body / .card__price - product/content card
.collage / .collage__item / .collage__caption - asymmetric home photo collage
.product-strip / .product-grid - horizontal scroll-snap strip and responsive grid of cards
.oven / .oven-board / .oven-board__item - signature "Živá pec" feature board
.hero / .hero__grid / .hero__title / .hero__art - home hero section with sliding layers
.reveal / .in-view - scroll-reveal animation base and active state
.cookie-banner - fixed bottom GDPR cookie consent banner
.site-header / .main-nav / .cart-link / .cart-count - global header and nav
.site-footer / .footer-col / .newsletter-form - global footer
*/

/* wg-contrast-autofix */
div.cookie-banner div.cookie-banner__actions button.btn.btn--ghost { color: #ffffff !important; }
