/* ============================================================
   Labka — Výcvik psov. Textile-weave art direction.
   ============================================================ */

:root{
  --cream: #f3e7d3;
  --paper: #faf3e4;
  --terracotta: #bf5b37;
  --terracotta-dark: #8f4027;
  --terracotta-light: #e3936a;
  --olive: #454f28;
  --olive-dark: #2c331a;
  --olive-light: #6b7a3c;
  --thread: #c89a53;
  --ink: #2a241d;
  --ink-soft: #564c3e;
  --line: rgba(42,36,29,.14);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(42,36,29,.08), 0 10px 24px -14px rgba(42,36,29,.28);
  --shadow-2: 0 18px 40px -18px rgba(42,36,29,.38);
  --font-display: "Iowan Old Style","Palatino Linotype","URW Palladio L", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", "Courier New", monospace;
  --maxw: 1180px;
}

*,*::before,*::after{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.1;margin:0 0 .5em;color:var(--olive-dark)}
p{margin:0 0 1em}
ul{margin:0;padding:0}
button{font-family:inherit}
input,select,textarea{accent-color:var(--terracotta)}
:focus-visible{outline:3px solid var(--terracotta-dark);outline-offset:3px;border-radius:4px}

.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(1.1rem,4vw,2.4rem)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* ---------- grain overlay ---------- */
.grain-overlay{
  position:fixed;inset:0;width:100vw;height:100vh;
  pointer-events:none;z-index:999;opacity:.05;mix-blend-mode:multiply;
}

/* ---------- honeypot ---------- */
.hp-field{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}

/* ---------- reveal ---------- */
.reveal{opacity:1;transform:none}
.reveal.js-hide{opacity:0;transform:translateY(22px)}
.reveal.in-view{opacity:1;transform:none;transition:opacity .7s ease, transform .7s ease, clip-path .7s ease}
.reveal.js-hide.clip{clip-path:inset(0 0 100% 0)}
.reveal.clip.in-view{clip-path:inset(0 0 0% 0)}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(243,231,211,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;gap:1.2rem;padding-block:.75rem;justify-content:space-between}
.logo{display:flex;align-items:center;gap:.55rem;text-decoration:none;color:var(--olive-dark);flex:0 0 auto}
.logo-mark{width:38px;height:38px;flex:none}
.logo-word{font-family:var(--font-display);font-size:1.45rem;font-weight:700;letter-spacing:.01em}
.logo-tag{display:block;font-family:var(--font-mono);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--terracotta-dark)}

.nav-toggle{
  display:none;background:none;border:2px solid var(--olive-dark);border-radius:10px;
  width:44px;height:44px;align-items:center;justify-content:center;cursor:pointer;color:var(--olive-dark);
}
.nav-toggle svg{width:22px;height:22px}
.nav-toggle .icon-close{display:none}
.nav-toggle[aria-expanded="true"] .icon-menu{display:none}
.nav-toggle[aria-expanded="true"] .icon-close{display:block}

.nav ul{display:flex;gap:1.6rem;list-style:none}
.nav a{text-decoration:none;font-weight:600;font-size:.98rem;position:relative;padding-block:.3rem}
.nav a::after{
  content:"";position:absolute;left:0;bottom:-2px;width:100%;height:2px;background:var(--terracotta);
  transform:scaleX(0);transform-origin:left;transition:transform .3s ease;
}
.nav a:hover::after,.nav a:focus-visible::after,.nav a[aria-current="page"]::after{transform:scaleX(1)}

.cart-link{
  display:flex;align-items:center;gap:.4rem;text-decoration:none;color:var(--olive-dark);
  font-family:var(--font-mono);font-weight:600;font-size:.85rem;padding:.4rem .6rem;border-radius:999px;
  border:1px solid var(--line);flex:0 0 auto;
}
.cart-link svg{width:22px;height:22px}
.cart-count{
  display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;
  background:var(--terracotta);color:#fff;border-radius:999px;font-size:.72rem;transition:transform .25s ease;
}
.cart-count.bump{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1)}}

@media (max-width: 760px){
  .nav-toggle{display:flex}
  .nav{
    position:fixed;inset:0 0 0 auto;width:min(78vw,320px);height:100vh;background:var(--paper);
    transform:translateX(100%);transition:transform .35s ease;box-shadow:var(--shadow-2);
    padding:5.5rem 1.6rem 2rem;z-index:90;
  }
  .nav.open{transform:translateX(0)}
  .nav ul{flex-direction:column;gap:1.4rem;font-size:1.15rem}
}

/* ---------- buttons ---------- */
.btn{
  --b: var(--terracotta);
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.75rem 1.4rem;border-radius:999px;border:2px solid var(--b);background:transparent;
  color:var(--olive-dark);font-weight:700;font-size:.95rem;text-decoration:none;cursor:pointer;
  overflow:hidden;isolation:isolate;min-height:44px;transition:color .35s ease;
}
.btn::before{
  content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--b);z-index:-1;
  transition:left .35s ease;
}
.btn:hover::before,.btn:focus-visible::before{left:0}
.btn:hover,.btn:focus-visible{color:#fff}
.btn-primary{--b: var(--terracotta);background:var(--terracotta);color:#fff}
.btn-primary::before{background:var(--olive-dark)}
.btn-primary:hover{color:#fff}
.btn-ghost{--b: var(--olive-dark)}
.btn-on-dark{--b:#f1e8d2;color:#f1e8d2}
.btn-on-dark:hover,.btn-on-dark:focus-visible{color:var(--olive-dark)}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.btn-sm{padding:.55rem 1.05rem;font-size:.85rem;min-height:38px}

/* ---------- sections / headings ---------- */
main{display:block}
.section{padding-block:clamp(3rem,7vw,5.5rem)}
.section-head{max-width:640px;margin-bottom:2.2rem}
.eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-size:.72rem;
  letter-spacing:.16em;text-transform:uppercase;color:var(--terracotta-dark);font-weight:700;margin-bottom:.7rem;
}
.eyebrow svg{width:16px;height:16px}
h1.display{font-size:clamp(2.4rem,6vw,4.4rem);letter-spacing:-.01em}
h2.display{font-size:clamp(1.9rem,4vw,2.9rem)}

/* ---------- stitch divider ---------- */
.stitch{width:100%;height:28px;display:block;color:var(--terracotta-dark);opacity:.55;margin-block:.5rem}

/* ---------- hero ---------- */
.hero{position:relative;padding-top:clamp(2.4rem,6vw,4rem);overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:center}
.hero-copy p.lede{font-size:1.15rem;color:var(--ink-soft);max-width:34ch}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.6rem}
.hero-art{position:relative}
.hero-art svg{width:100%;height:auto}
.hero-line{fill:none;stroke:var(--terracotta-dark);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.hero-line.fill-olive{stroke:var(--olive)}
.draw{stroke-dasharray:1400;stroke-dashoffset:1400;animation:draw 2.6s ease forwards .2s}
@media (prefers-reduced-motion: reduce){.draw{animation:none;stroke-dashoffset:0}}
@keyframes draw{to{stroke-dashoffset:0}}
.hero-fade{opacity:0;animation:heroFade .6s ease forwards}
@keyframes heroFade{to{opacity:1}}
.float-ball{animation:floatBall 4.5s ease-in-out infinite}
@keyframes floatBall{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@media (prefers-reduced-motion: reduce){
  .hero-fade{animation:none;opacity:1}
  .float-ball{animation:none}
}

@media (max-width: 860px){
  .hero-grid{grid-template-columns:1fr}
  .hero-art{order:-1;max-width:420px;margin-inline:auto}
}

/* ---------- bento ---------- */
.bento{
  display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(160px,auto);gap:1.1rem;
}
.bento > *{border-radius:var(--radius);position:relative}
.tile{
  background:var(--paper);border:1px solid var(--line);padding:1.6rem;display:flex;flex-direction:column;
  justify-content:flex-end;box-shadow:var(--shadow-1);transition:transform .35s ease, box-shadow .35s ease;
}
.tile:hover{transform:translateY(-4px);box-shadow:var(--shadow-2)}
.tile h3{margin-bottom:.4rem;font-size:1.3rem}
.tile p{color:var(--ink-soft);font-size:.95rem;margin-bottom:0}
.tile-feature{grid-column:span 2;grid-row:span 2;background:linear-gradient(155deg,var(--olive-dark),var(--olive) 60%,#3a4322);color:#fff;justify-content:flex-start;padding:1.9rem}
.tile-feature h3{color:#fff;font-size:1.65rem}
.tile-feature p{color:#eadfc6}
.tile-photo{grid-column:span 2;grid-row:span 1;padding:0;overflow:hidden}
.tile-photo img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3;transition:transform .5s ease;filter:sepia(.18) saturate(1.05)}
.tile:hover .tile-photo img,.tile-photo:hover img{transform:scale(1.06)}
.tile-sm{grid-column:span 2}
.tile-wide{grid-column:span 4}

@media (max-width: 900px){
  .bento{grid-template-columns:repeat(2,1fr)}
  .tile-feature{grid-column:span 2}
  .tile-photo{grid-column:span 2}
  .tile-sm{grid-column:span 1}
  .tile-wide{grid-column:span 2}
}
@media (max-width: 540px){
  .bento{grid-template-columns:1fr}
  .tile-feature,.tile-photo,.tile-sm,.tile-wide{grid-column:span 1}
}

/* ---------- feature tool (Labka Plánovač) ---------- */
.planner{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(1.4rem,4vw,2.4rem);box-shadow:var(--shadow-1);position:relative;
}
.planner-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
@media (max-width:760px){.planner-grid{grid-template-columns:1fr}}
.field{margin-bottom:1rem}
.field label{display:block;font-weight:700;margin-bottom:.4rem;font-size:.92rem}
.field select, .field input, .field textarea{
  width:100%;padding:.7rem .85rem;border-radius:var(--radius-sm);border:1.5px solid var(--line);
  background:#fff;font-family:inherit;font-size:1rem;color:var(--ink);accent-color:var(--terracotta);min-height:44px;
}
.field select:focus-visible,.field input:focus-visible,.field textarea:focus-visible{border-color:var(--terracotta)}
.radio-row{display:flex;gap:.6rem;flex-wrap:wrap}
.radio-row label{
  display:inline-flex;align-items:center;gap:.4rem;border:1.5px solid var(--line);padding:.5rem .9rem;
  border-radius:999px;cursor:pointer;font-size:.9rem;min-height:44px;
}
.radio-row input{width:auto;min-height:0;accent-color:var(--terracotta)}
.radio-row label:has(input:checked){border-color:var(--terracotta);background:rgba(191,91,55,.08);font-weight:700}

.plan-output{margin-top:1.6rem;border-top:2px dashed var(--line);padding-top:1.4rem}
.plan-week{background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:1rem 1.1rem;margin-bottom:.8rem}
.plan-week h4{margin-bottom:.3rem;font-size:1.05rem;color:var(--terracotta-dark)}
.plan-week label{display:flex;gap:.6rem;align-items:flex-start;font-size:.92rem;margin-top:.35rem;cursor:pointer}
.plan-week input[type="checkbox"]{margin-top:.2rem;width:18px;height:18px;accent-color:var(--terracotta);flex:none}
.plan-week label:has(input:checked) span{text-decoration:line-through;color:var(--ink-soft)}
.plan-reco{display:flex;align-items:center;gap:.8rem;margin-top:1rem;background:var(--cream);border-radius:var(--radius-sm);padding:.8rem 1rem}
.plan-reco img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none}
.plan-empty{color:var(--ink-soft);font-style:italic}

/* ---------- product grid / catalog ---------- */
.filters{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1.8rem}
.filters button{
  border:1.5px solid var(--line);background:#fff;padding:.5rem 1rem;border-radius:999px;cursor:pointer;
  font-size:.88rem;font-weight:600;min-height:40px;
}
.filters button[aria-pressed="true"]{background:var(--olive-dark);color:#fff;border-color:var(--olive-dark)}

.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
@media (max-width:900px){.product-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){
  .product-grid{
    grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:80%;
    display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:1rem;padding-bottom:.5rem;margin:0 -1.1rem;padding-inline:1.1rem;
  }
  .product-grid .card{scroll-snap-align:start;flex:0 0 auto;width:100%}
}
.card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-1);display:flex;flex-direction:column;transition:transform .3s ease, box-shadow .3s ease;
  text-decoration:none;color:var(--ink);
}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow-2)}
.card .card-media{aspect-ratio:4/3;overflow:hidden;position:relative}
.card .card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .card-media img{transform:scale(1.08)}
.card-body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.card-body .cat{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--terracotta-dark)}
.card-body h3{font-size:1.1rem;margin-bottom:0}
.card-body .short{color:var(--ink-soft);font-size:.9rem;flex:1}
.card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:.4rem}
.price{font-family:var(--font-mono);font-weight:700;font-size:1.15rem;color:var(--olive-dark)}

/* ---------- product detail ---------- */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:start}
@media (max-width:820px){.product-detail{grid-template-columns:1fr}}
.product-media{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-1);aspect-ratio:4/3}
.product-media img{width:100%;height:100%;object-fit:cover}
.qty-row{display:flex;align-items:center;gap:.8rem;margin:1.2rem 0}
.qty-row input{width:70px;text-align:center}
.seal{width:92px;height:92px}

/* ---------- cart / checkout ---------- */
.cart-table{width:100%;border-collapse:collapse;margin-bottom:1.5rem}
.cart-table th{text-align:left;font-family:var(--font-mono);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;padding:.6rem;border-bottom:2px solid var(--line)}
.cart-table td{padding:.8rem .6rem;border-bottom:1px solid var(--line);vertical-align:middle}
.cart-item-name{display:flex;align-items:center;gap:.8rem;font-weight:600}
.cart-item-name img{width:56px;height:56px;border-radius:8px;object-fit:cover}
.cart-table input[type="number"]{width:64px;padding:.4rem;min-height:38px}
.remove-btn{background:none;border:none;color:var(--terracotta-dark);text-decoration:underline;cursor:pointer;font-size:.85rem;min-height:44px}
.cart-summary{display:flex;justify-content:flex-end}
.cart-summary dl{display:grid;grid-template-columns:auto auto;gap:.3rem 1.4rem;font-family:var(--font-mono)}
.cart-summary dt{color:var(--ink-soft)}
.cart-summary .total{font-weight:700;font-size:1.3rem;color:var(--olive-dark)}
.checkout-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:start;margin-top:2.5rem}
@media (max-width:820px){.checkout-grid{grid-template-columns:1fr}}
.empty-cart{text-align:center;padding:3rem 1rem;color:var(--ink-soft)}

/* ---------- forms (generic) ---------- */
form .field.half{display:inline-block;width:calc(50% - .5rem)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:600px){.form-grid{grid-template-columns:1fr}}
.form-msg{padding:.85rem 1rem;border-radius:var(--radius-sm);margin-top:1rem;font-weight:600;display:none}
.form-msg.show{display:block}
.form-msg.ok{background:rgba(69,79,40,.12);color:var(--olive-dark);border:1px solid var(--olive)}
.form-msg.err{background:rgba(191,91,55,.12);color:var(--terracotta-dark);border:1px solid var(--terracotta)}
.field-error{color:var(--terracotta-dark);font-size:.82rem;margin-top:.3rem;display:none}
.field.invalid .field-error{display:block}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:var(--terracotta-dark)}

/* ---------- badges / seals ---------- */
.badge-row{display:flex;flex-wrap:wrap;gap:1.6rem;align-items:center}
.badge-item{display:flex;align-items:center;gap:.6rem;font-size:.88rem;font-weight:600;color:var(--ink-soft)}
.badge-item svg{width:28px;height:28px;color:var(--terracotta-dark);flex:none}

/* ---------- about page ---------- */
.about-hero{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem;align-items:center}
@media (max-width:820px){.about-hero{grid-template-columns:1fr}}
.timeline{border-left:3px dashed var(--thread);padding-left:1.4rem;display:flex;flex-direction:column;gap:1.4rem}

/* ---------- legal pages ---------- */
.legal main .wrap{max-width:760px}
.legal h2{margin-top:2rem;font-size:1.4rem}
.legal ol, .legal ul{margin:0 0 1em 1.3em}

/* ---------- contact ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem}
@media (max-width:820px){.contact-grid{grid-template-columns:1fr}}

/* ---------- faq ---------- */
.faq-item{border-bottom:1px solid var(--line)}
.faq-item summary{
  padding:1.1rem .2rem;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;
  gap:1rem;align-items:center;min-height:44px;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary .plus{transition:transform .3s ease;flex:none}
.faq-item[open] summary .plus{transform:rotate(45deg)}
.faq-item p{padding:0 .2rem 1.2rem;color:var(--ink-soft)}

/* ---------- 404 ---------- */
.notfound{text-align:center;padding-block:5rem}
.notfound svg{width:min(360px,80vw);height:auto;margin-bottom:1.5rem}

/* ---------- footer ---------- */
.site-footer{background:var(--olive-dark);color:#f1e8d2;margin-top:4rem;position:relative}
.site-footer a{color:#f1e8d2;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.footer-top{padding-block:3rem;display:grid;grid-template-columns:1.3fr 2fr 1.1fr;gap:2rem}
@media (max-width:860px){.footer-top{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.footer-top{grid-template-columns:1fr}}
.footer-brand .logo-word{color:#f1e8d2}
.footer-brand p{color:#cfc3a3;max-width:32ch;margin-top:.6rem}
.footer-links{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
@media (max-width:560px){.footer-links{grid-template-columns:1fr 1fr}}
.footer-links h3{color:#e3b584;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.7rem;font-family:var(--font-mono)}
.footer-links ul{list-style:none;display:flex;flex-direction:column;gap:.5rem;font-size:.92rem}
.newsletter h3{color:#e3b584;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.7rem;font-family:var(--font-mono)}
.newsletter-form{display:flex;gap:.5rem;flex-wrap:wrap}
.newsletter-form input[type="email"]{
  flex:1;min-width:150px;padding:.7rem .9rem;border-radius:999px;border:1.5px solid rgba(241,232,210,.35);
  background:rgba(255,255,255,.06);color:#f1e8d2;min-height:44px;
}
.newsletter-form input::placeholder{color:#cfc3a3}
.newsletter-form .field-error{color:#ffb199}
.newsletter .form-msg{flex:1 1 100%}
.newsletter .form-msg.ok{background:rgba(241,232,210,.12);color:#f1e8d2;border-color:#f1e8d2}
.newsletter .form-msg.err{background:rgba(241,232,210,.12);color:#ffb199;border-color:#ffb199}
.footer-bottom{border-top:1px solid rgba(241,232,210,.18);padding-block:1.2rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;font-size:.82rem;color:#cfc3a3}

/* ---------- cookie banner ---------- */
.cookie-banner{
  position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:200;max-width:560px;
  background:var(--olive-dark);color:#f1e8d2;border-radius:var(--radius);padding:1.2rem 1.3rem;
  box-shadow:var(--shadow-2);display:none;gap:1rem;flex-wrap:wrap;align-items:center;
}
.cookie-banner.show{display:flex}
.cookie-banner p{margin:0;font-size:.9rem;flex:1 1 220px;color:#f1e8d2}
.cookie-banner a{text-decoration:underline}
.cookie-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.cookie-actions .btn-ghost{--b:#f1e8d2;color:#f1e8d2}
.cookie-actions .btn-ghost:hover{color:var(--olive-dark)}

/* ---------- misc ---------- */
.continuous-thread{position:absolute;pointer-events:none;color:var(--thread);opacity:.5}
