/* ===== Minigolf Kvapka — design system ===== */
:root {
  --cream: #fdf3df;
  --rust: #c7622a;
  --rust-dark: #9c4620;
  --brown: #4a2f23;
  --slate: #3b4a5a;
  --slate-light: #6c7f94;
  --olive: #8a9a3a;
  --ink: #2a2017;
  --radius: 1.4rem;
  --radius-sm: 0.7rem;
  --shadow: 0 .6rem 1.8rem rgba(42,32,23,.18);
  --ff-display: Georgia, "Times New Roman", serif;
  --ff-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 72rem;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--rust-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--brown); margin: 0 0 .6em; line-height: 1.1; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== grain overlay ===== */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; opacity: .6; }

/* ===== layout helpers ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.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)); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
section { position: relative; z-index: 2; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-body); font-weight: 700; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 3rem; border: 2px solid currentColor;
  cursor: pointer; position: relative; overflow: hidden; min-height: 44px;
  background: transparent; color: var(--brown);
}
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-fill { color: var(--cream); border-color: var(--rust); background: var(--rust); z-index: 0; }
.btn-fill::after {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--rust-dark); transition: left .3s ease; z-index: -1;
}
.btn-fill:hover::after, .btn-fill:focus-visible::after { left: 0; }
.btn-ghost { color: var(--brown); border-color: var(--brown); background: transparent; }
.btn-ghost:hover { background: rgba(74,47,35,.08); }
.btn-dark { color: var(--cream); border-color: var(--cream); }
.btn-dark:hover { background: rgba(253,243,223,.15); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--olive); outline-offset: 2px;
}

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 2px solid var(--brown); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; color: var(--brown); }
.logo-word { width: 150px; height: 29px; }
.logo-mark { width: 40px; height: 40px; }
.nav-toggle { display: none; background: none; border: none; color: var(--brown); cursor: pointer; padding: .4rem; min-width: 44px; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--brown); font-weight: 600; position: relative; padding: .2rem 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--rust); transition: width .25s ease; }
.nav-list a:hover::after, .nav-list a.is-active::after { width: 100%; }
.cart-link { display: flex; align-items: center; gap: .3rem; color: var(--brown); position: relative; min-height: 44px; }
.cart-count { background: var(--rust); color: var(--cream); border-radius: 50%; min-width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.cart-link.bump .cart-count { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

@media (max-width: 62rem) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(20rem, 85vw);
    background: var(--slate); color: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.5rem; gap: 2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease;
    z-index: 60;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; gap: 1.2rem; }
  .nav-list a, .cart-link { color: var(--cream); }
}

/* ===== hero ===== */
.hero { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero-underline { position: relative; white-space: nowrap; }
.hero-underline svg { position: absolute; left: 0; bottom: -.15em; width: 100%; height: .3em; }
.hero-underline path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.2s ease forwards .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-lede { font-size: 1.15rem; max-width: 34rem; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-blob { position: absolute; inset: -8%; z-index: 0; }
.hero-photo { position: relative; z-index: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.15) saturate(1.15); }

/* ===== dividers / decorative svg ===== */
.divider { display: block; width: 100%; height: auto; color: var(--rust); }
.divider--2 { color: var(--slate); }

/* ===== masonry gallery ===== */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.masonry-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.masonry-item:nth-child(1) { grid-row: span 2; }
.masonry-item:nth-child(3) { grid-row: span 2; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.masonry-item:hover img { transform: scale(1.08); }
.masonry-caption {
  position: absolute; inset: auto 0 0 0; padding: .8rem 1rem; color: var(--cream);
  background: linear-gradient(to top, rgba(42,32,23,.85), transparent);
  transform: translateY(100%); transition: transform .3s ease; font-weight: 700;
}
.masonry-item:hover .masonry-caption { transform: translateY(0); }
@media (max-width: 48rem) { .masonry { grid-template-columns: repeat(2, 1fr); } .masonry-item:nth-child(n) { grid-row: auto; } }

/* ===== cards ===== */
.card { background: #fff8ea; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-.4rem); box-shadow: 0 1.2rem 2.4rem rgba(42,32,23,.24); }
.card img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }

/* ===== product / service strip & catalog ===== */
.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 16rem; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.product-strip .product-card { scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.product-card { background: #fff8ea; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease; }
.product-card:hover { transform: translateY(-.3rem); }
.product-card .product-media { aspect-ratio: 4/3; overflow: hidden; }
.product-card .product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-card .product-body { padding: 1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card .product-price { font-weight: 700; color: var(--rust-dark); font-size: 1.1rem; }
.product-meta { display: flex; gap: .8rem; font-size: .85rem; color: var(--slate); flex-wrap: wrap; }
.product-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.product-detail .product-gallery img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: .8rem; aspect-ratio: 4/3; object-fit: cover; }
.product-detail .product-info ul { padding-left: 1.2rem; }
.product-detail .product-price-lg { font-size: 1.8rem; font-weight: 700; color: var(--rust-dark); font-family: var(--ff-display); }
@media (max-width: 48rem) { .product-detail { grid-template-columns: 1fr; } }

/* ===== signature feature: Plánovač hry Kvapka ===== */
.planner { background: var(--slate); color: var(--cream); border-radius: var(--radius); padding: 2.5rem; position: relative; overflow: hidden; }
.planner h2 { color: var(--cream); }
.planner-form { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; }
.planner-form label { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .9rem; }
.planner-form input, .planner-form select { width: 100%; padding: .6rem .8rem; border-radius: .6rem; border: none; font-size: 1rem; min-height: 44px; }
.planner-form input[type="range"] { accent-color: var(--rust); padding: 0; background: transparent; min-height: 44px; }
.planner-result { margin-top: 1.5rem; background: rgba(253,243,223,.12); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; }
.planner-result[hidden] { display: none; }
.planner-pkg { font-size: 1.1rem; }

/* ===== continuous subtle motion ===== */
.float-ball { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.6rem); } }

/* ===== reveal on scroll ===== */
.reveal { opacity: 1; transform: none; }
.reveal.js-armed { opacity: 0; transform: translateY(1.5rem); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.js-armed.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ===== page hero (inner pages) ===== */
.page-hero { padding: 2.6rem 0 2rem; background: var(--slate); color: var(--cream); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--cream); font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { max-width: 38rem; opacity: .9; }

/* ===== breadcrumbs ===== */
.breadcrumbs { display: flex; gap: .4rem; font-size: .85rem; color: var(--slate-light); flex-wrap: wrap; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--slate); }
.breadcrumbs span[aria-hidden] { color: var(--slate-light); }

/* ===== prose (legal text) ===== */
.prose { max-width: 42rem; margin: 0 auto; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid #d9c6a3; padding: .5rem .7rem; text-align: left; }

/* ===== legal table of contents ===== */
.legal-toc { background: #fff8ea; border-radius: var(--radius-sm); padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }

/* ===== notice ===== */
.notice { border-radius: var(--radius-sm); padding: 1rem 1.3rem; border-left: 4px solid var(--rust); background: #fff3e0; margin: 1.2rem 0; }
.notice--info { border-color: var(--slate); background: #eef2f5; }
.notice--success { border-color: var(--olive); background: #f3f6e8; }

/* ===== forms ===== */
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  padding: .7rem .9rem; border-radius: .6rem; border: 2px solid #d9c6a3; background: #fff;
  font: inherit; min-height: 44px; accent-color: var(--rust);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rust); }
.field--full { grid-column: 1/-1; }
.field-error { color: #a3290f; font-size: .82rem; min-height: 1.1em; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-weight: 700; }
.form-msg--ok { color: #4e6b1c; }
.form-msg--error { color: #a3290f; }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info ul { list-style: none; padding: 0; display: grid; gap: .9rem; }
.contact-info li { display: flex; gap: .7rem; align-items: center; }
@media (max-width: 48rem) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== cart / booking table ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid #d9c6a3; text-align: left; }
.cart-table img { width: 4rem; height: 4rem; object-fit: cover; border-radius: .5rem; }
.cart-qty { display: inline-flex; align-items: center; gap: .4rem; }
.cart-qty button { min-width: 32px; min-height: 32px; border-radius: 50%; border: 2px solid var(--brown); background: none; cursor: pointer; }
.cart-summary { background: #fff8ea; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: .7rem; align-content: start; }
.cart-summary .cart-total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; border-top: 1px solid #d9c6a3; padding-top: .7rem; }

/* ===== faq ===== */
.faq { display: grid; gap: .8rem; max-width: 42rem; margin: 0 auto; }
.faq-item { background: #fff8ea; border-radius: var(--radius-sm); padding: .3rem 1.2rem; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--rust); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; }

/* ===== badges / icon rows ===== */
.icon-row { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.icon-row .icon-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; max-width: 9rem; }
.icon-item svg { color: var(--rust); }

/* ===== footer ===== */
.site-footer { background: var(--slate); color: var(--cream); position: relative; margin-top: 3rem; }
.footer-wave { color: var(--cream); display: block; margin-top: -3rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem 2rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-col { min-width: 0; }
.footer-col h3 { color: var(--cream); font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--cream); opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.logo--footer { color: var(--cream); margin-bottom: .6rem; }
.footer-brand { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 9rem; padding: .6rem .8rem; border-radius: .6rem; border: none; min-height: 44px; }
.footer-contact { display: flex; align-items: center; gap: .5rem; opacity: .9; }
.footer-bottom { text-align: center; padding: 1rem; border-top: 1px solid rgba(253,243,223,.2); font-size: .85rem; opacity: .8; }
@media (max-width: 56rem) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 404 ===== */
.notfound { text-align: center; padding: 5rem 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 7rem); }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.grid / .grid-2 / .grid-3 - responsive grid helpers
.btn / .btn-sm / .btn-fill / .btn-ghost / .btn-dark - button variants (fill-sweep on .btn-fill)
.site-header / .header-inner / .logo / .logo-mark / .logo-word - header & logo
.nav-toggle / .site-nav / .nav-list / .cart-link / .cart-count - navigation & cart badge
.hero / .hero-inner / .hero-underline / .hero-lede / .hero-art / .hero-blob / .hero-photo - home hero
.divider / .divider--2 - decorative SVG section dividers
.masonry / .masonry-item / .masonry-caption - home masonry gallery with hover reveal
.card - generic content card
.product-strip / .product-grid / .product-card / .product-media / .product-body / .product-price / .product-meta - catalog listing
.product-detail / .product-gallery / .product-info / .product-price-lg - product detail page
.planner / .planner-form / .planner-result / .planner-pkg - signature feature "Plánovač hry Kvapka"
.float-ball - continuous subtle floating animation
.reveal / .js-armed / .in-view / .d1-.d4 - scroll-reveal animation hooks
.page-hero - inner page header band
.breadcrumbs - breadcrumb navigation
.prose - readable long-form legal/text content
.legal-toc - table of contents box for legal pages
.notice / .notice--info / .notice--success - callout boxes
.form-grid / .field / .field--full / .field-error / .hp / .form-msg - form layout & validation
.contact-layout / .contact-info - contact page layout
.cart-table / .cart-qty / .cart-summary - cart/booking table and summary
.faq / .faq-item - FAQ accordion (details/summary)
.icon-row / .icon-item - icon feature row
.site-footer / .footer-wave / .footer-inner / .footer-col / .newsletter-form / .footer-contact / .footer-bottom - footer
.notfound - 404 page layout
.cookie-banner / .cookie-actions - cookie consent banner
*/

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 34rem; margin: 0 auto;
  background: var(--brown); color: var(--cream); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow); z-index: 100; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner a { color: var(--cream); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }

/* ===== additional product detail styles ===== */
.product-photo-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-photo-main img { width: 100%; display: block; }
.product-gallery-thumbs { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.gallery-thumb { background: none; border: 2px solid transparent; border-radius: .6rem; overflow: hidden; padding: 0; cursor: pointer; transition: border-color .2s; }
.gallery-thumb img { display: block; width: 80px; height: 60px; object-fit: cover; }
.product-lede { font-size: 1.1rem; color: var(--slate); line-height: 1.6; }
.product-meta-large { display: grid; gap: .8rem; margin: 1.5rem 0; }
.product-meta-large div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem; background: #fff8ea; border-radius: var(--radius-sm); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.summary-total { border-top: 2px solid #d9c6a3; border-bottom: 2px solid #d9c6a3; padding: 1rem 0; font-size: 1.2rem; font-weight: 700; }
.form-msg--success { color: #4e6b1c; }
.form-msg--error { color: #a3290f; }
.contact-form { background: #fff8ea; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
textarea { font-family: var(--ff-body); }
select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b4a5a' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 1.2rem; padding-right: 2.5rem; }
.cart-wrapper { display: flex; flex-direction: column; }
[data-checkout-section] { display: block; }
.gallery-thumb:hover { border-color: var(--rust); }

/* wg-contrast-autofix */
div.cookie-banner div.cookie-actions button.btn.btn-ghost { color: #ffffff !important; }
