/* Psí Salon Chlupáč — mid-century modern styling */

:root{
  --plum: #4a2340;
  --plum-deep: #2a1324;
  --blush: #f1c9ce;
  --blush-soft: #f8e3dd;
  --gold: #d8a233;
  --gold-deep: #a97a1d;
  --walnut: #3a2a22;
  --teal: #2f7069;
  --cream: #f7efe0;
  --cream-deep: #efe3c9;
  --ink: #241512;
  --paper: #fffaf1;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 14px 28px -12px rgba(42,19,36,.35);
  --shadow-soft: 0 6px 16px -8px rgba(42,19,36,.3);
  --maxw: 1200px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --dur: .5s;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}

*{ box-sizing:border-box; }
html,body{ overflow-x:clip; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; background: var(--cream-deep); }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0 0 .5em; line-height:1.1; color:var(--plum-deep); }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; }
button{ font-family:inherit; }
::selection{ background:var(--gold); color:var(--plum-deep); }

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

.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 1.25rem;
}

.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}

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

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

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:40;
  background:var(--cream);
  border-bottom: 2px solid var(--plum-deep);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:.7rem; padding-bottom:.7rem;
  gap:1rem;
}
.logo{
  display:flex; align-items:center; gap:.6rem;
  font-family:var(--font-display);
  font-weight:700;
  color:var(--plum-deep);
}
.logo-mark{ width:42px; height:42px; flex:none; }
.logo-word{ width:142px; height:30px; }

.main-nav{ display:flex; align-items:center; gap:1.6rem; }
.main-nav a{
  font-weight:600; font-size:.95rem; letter-spacing:.02em;
  position:relative; padding:.2rem 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--gold-deep);
  transform:scaleX(0); transform-origin:left;
  transition:transform .35s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after{ transform:scaleX(1); }
.main-nav a[aria-current="page"]{ color:var(--teal); }

.header-actions{ display:flex; align-items:center; gap:.9rem; }
.cart-link{
  display:flex; align-items:center; gap:.4rem;
  font-weight:700;
}
.cart-link svg{ width:24px; height:24px; }
.cart-count{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:22px; height:22px; padding:0 5px;
  background:var(--gold); color:var(--plum-deep);
  border-radius:999px; font-size:.75rem; font-weight:800;
  font-family:var(--font-mono);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.bump{ transform:scale(1.5); }

.menu-toggle{
  display:none;
  width:44px; height:44px;
  align-items:center; justify-content:center;
  background:none; border:2px solid var(--plum-deep); border-radius:10px;
  cursor:pointer;
}
.menu-toggle svg{ width:22px; height:22px; }

@media (max-width: 820px){
  .menu-toggle{ display:flex; }
  .main-nav{
    position:fixed; inset:0 0 0 auto;
    width:min(78vw, 320px); height:100vh;
    background:var(--plum-deep);
    flex-direction:column; align-items:flex-start;
    padding:5.5rem 1.6rem 2rem;
    gap:1.4rem;
    transform:translateX(100%);
    visibility:hidden;
    transition: transform .4s ease, visibility .4s ease;
    z-index:50;
  }
  .main-nav.open{ transform:translateX(0); visibility:visible; }
  .main-nav a{ color:var(--cream); font-size:1.1rem; }
  .main-nav a[aria-current="page"]{ color:var(--gold); }
}

/* ===== Buttons ===== */
.btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.85rem 1.6rem;
  font-weight:700; font-size:.95rem; letter-spacing:.01em;
  border-radius:999px;
  border:2px solid var(--plum-deep);
  background:var(--plum-deep); color:var(--cream);
  cursor:pointer;
  overflow:hidden;
  min-height:44px;
  isolation:isolate;
  transition: color .3s ease, border-color .3s ease;
}
.btn::before{
  content:"";
  position:absolute; inset:0; left:-100%; width:100%;
  background:var(--gold);
  z-index:-1;
  transition: left .35s ease;
}
.btn:hover::before, .btn:focus-visible::before{ left:0; }
.btn:hover, .btn:focus-visible{ color:var(--plum-deep); }
.btn-outline{
  background:transparent; color:var(--plum-deep);
}
.btn-outline::before{ background:var(--plum-deep); }
.btn-outline:hover, .btn-outline:focus-visible{ color:var(--cream); }
.btn-ghost-dark{
  background:transparent; color:var(--cream); border-color:var(--cream);
}
.btn-ghost-dark::before{ background:var(--cream); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible{ color:var(--plum-deep); }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }
.btn-sm{ padding:.6rem 1.1rem; font-size:.85rem; }

/* ===== Hero ===== */
.hero{
  position:relative;
  padding: 2.5rem 0 4rem;
  overflow:clip;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:2.5rem;
  align-items:center;
}
.hero-index{
  font-family:var(--font-mono);
  font-size:.85rem; letter-spacing:.08em;
  color:var(--teal); font-weight:700; text-transform:uppercase;
  margin-bottom:.8rem;
}
.hero h1{
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight:700;
  letter-spacing:-.01em;
}
.hero h1 em{
  font-style:normal; color:var(--gold-deep);
}
.hero-lede{ font-size:1.15rem; max-width:34ch; }
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:1.4rem; }

.hero-art{ position:relative; }
.hero-photo-wrap{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
}
.hero-photo-wrap img{ width:100%; height:100%; object-fit:cover; }
.hero-illustration{
  position:absolute;
  width:62%;
  bottom:-10%; left:-14%;
  filter: drop-shadow(0 10px 18px rgba(42,19,36,.3));
}
.hero-illustration path, .hero-illustration circle{
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.4s ease forwards;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }

/* ===== Section index (magazine cover numbered list) ===== */
.section-index{
  border-top: 2px solid var(--plum-deep);
  border-bottom: 2px solid var(--plum-deep);
  padding: 1.1rem 0;
  background: var(--blush-soft);
}
.section-index ol{
  list-style:none;
  display:flex; flex-wrap:wrap; gap: 1.6rem 2.2rem;
  font-family:var(--font-mono);
  font-size:.82rem;
  letter-spacing:.02em;
}
.section-index li a{
  display:inline-flex; align-items:baseline; gap:.5rem;
  font-weight:700;
}
.section-index li span{ color:var(--gold-deep); }
.section-index li a:hover{ color:var(--teal); }

/* ===== Generic section ===== */
.section{ padding: 4.5rem 0; position:relative; }
.section-head{ max-width: 56ch; margin-bottom: 2.4rem; }
.section-head .eyebrow{
  font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.1em;
  font-size:.78rem; color:var(--teal); font-weight:700; display:block; margin-bottom:.6rem;
}
.section-alt{ background: var(--paper); }
.section-dark{ background: var(--plum-deep); color: var(--blush-soft); }
.section-dark h2, .section-dark h3{ color: var(--cream); }
.section-dark .eyebrow{ color: var(--gold); }
.section-dark .muted{ color: var(--blush); }

.divider{
  display:block; width:100%; height:auto; margin: 0 auto;
}
.divider-sm{ max-width:220px; }

/* ===== Service / product cards ===== */
.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}
.service-card{
  background:var(--paper);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  display:flex; flex-direction:column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.service-card .thumb{
  aspect-ratio: 4/3; overflow:hidden;
}
.service-card .thumb img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s ease;
}
.service-card:hover .thumb img{ transform:scale(1.08); }
.service-card .body{ padding:1.3rem 1.3rem 1.5rem; display:flex; flex-direction:column; gap:.6rem; flex:1; }
.service-card h3{ font-size:1.25rem; margin-bottom:0; }
.service-meta{
  display:flex; justify-content:space-between; align-items:baseline;
  font-family:var(--font-mono); font-size:.85rem; color:var(--walnut);
}
.price{ font-weight:800; color:var(--gold-deep); font-family:var(--font-mono); }
.service-card .cta-row{ margin-top:auto; display:flex; gap:.6rem; flex-wrap:wrap; }

/* horizontal scroll-snap strip for small screens */
@media (max-width: 680px){
  .card-grid.strip{
    display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:1rem;
    padding-bottom:.5rem; margin: 0 -1.25rem; padding-left:1.25rem; padding-right:1.25rem;
  }
  .card-grid.strip .service-card{ min-width: 78vw; scroll-snap-align:start; }
}

/* ===== Badges / seals ===== */
.badge-seal{ width: 120px; height:120px; flex:none; }

/* ===== Feature: Srstoměr ===== */
.feature{
  background: var(--blush-soft);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
  position:relative;
  overflow:clip;
}
.feature-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 2.2rem;
  align-items:start;
}
.feature-controls fieldset{
  border:none; padding:0; margin:0 0 1.4rem;
}
.feature-controls legend{
  font-weight:700; margin-bottom:.6rem; font-family:var(--font-display); font-size:1.05rem;
}
.option-row{ display:flex; flex-wrap:wrap; gap:.6rem; }
.option-row input{ position:absolute; opacity:0; width:1px; height:1px; }
.option-row label{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.55rem 1rem; border-radius:999px;
  border:2px solid var(--plum-deep);
  background:var(--paper);
  font-weight:600; font-size:.9rem; cursor:pointer;
  min-height:44px;
  transition: background .25s ease, color .25s ease;
}
.option-row input:checked + label{
  background:var(--plum-deep); color:var(--cream);
}
.option-row input:focus-visible + label{
  outline: 3px solid var(--teal); outline-offset:2px;
}
.feature-result{
  background:var(--paper); border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  min-height: 180px;
}
.feature-result .result-interval{
  font-family:var(--font-mono); color:var(--teal); font-weight:700;
}
.feature-result h4{ margin-bottom:.3rem; }
.feature-result .result-note{ font-size:.92rem; color:var(--walnut); }

@media (max-width: 760px){
  .feature-grid{ grid-template-columns:1fr; }
}

/* ===== Steps / lists with hand-drawn numerals ===== */
.steps{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
}
.step{ position:relative; padding-left: 0; }
.step .num{
  font-family:var(--font-display); font-size:2.6rem; color:var(--gold);
  display:block; line-height:1;
}
@media (max-width: 760px){ .steps{ grid-template-columns:1fr; } }

/* ===== Forms ===== */
.form-grid{ display:grid; gap:1.1rem; max-width: 640px; }
.field{ display:flex; flex-direction:column; gap:.4rem; }
.field label{ font-weight:700; font-size:.9rem; }
.field input, .field textarea, .field select{
  font: inherit;
  padding:.75rem .9rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--walnut);
  background: var(--paper);
  color: var(--ink);
  accent-color: var(--teal);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible{
  outline: 3px solid var(--teal); outline-offset:1px;
}
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width:620px){ .field-row{ grid-template-columns:1fr; } }
.field-error{ color:#9c1f1f; font-size:.85rem; min-height:1.1em; }
.form-msg{
  padding:.9rem 1.1rem; border-radius: var(--radius-sm); margin-top:1rem; font-weight:600;
}
.form-msg.success{ background:#dff1e4; color:#1e5b36; }
.form-msg.error{ background:#fbe1df; color:#8c231f; }
.form-msg[hidden]{ display:none; }
/* ===== Cart / booking table ===== */
.cart-table{ width:100%; border-collapse:collapse; margin-bottom:1.5rem; }
.cart-table th, .cart-table td{
  text-align:left; padding:.8rem .6rem; border-bottom:1px solid var(--cream-deep);
}
.cart-table th{ font-family:var(--font-mono); font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.cart-remove{
  background:none; border:none; color:#9c1f1f; font-weight:700; cursor:pointer;
  min-height:44px; padding:.4rem;
}
.cart-empty{ padding:2.5rem 0; text-align:center; }
.cart-total{
  display:flex; justify-content:space-between; font-size:1.3rem; font-weight:800;
  font-family:var(--font-mono); padding-top:1rem; border-top:2px solid var(--plum-deep);
}

/* ===== Footer ===== */
.site-footer{
  background: var(--walnut); color: var(--blush-soft);
  padding: 3.5rem 0 2rem;
}
.site-footer a:hover{ color:var(--gold); }
.footer-grid{
  display:grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.2rem;
  margin-bottom: 2.4rem;
}
.footer-grid h4{ color:var(--cream); font-size:1rem; margin-bottom:.9rem; }
.footer-grid ul{ display:flex; flex-direction:column; gap:.55rem; font-size:.92rem; }
.footer-brand{ display:flex; align-items:center; gap:.6rem; margin-bottom:.9rem; }
.footer-brand .logo-mark{ width:36px; height:36px; }
.footer-brand .logo-word{ width:132px; height:24px; }
.footer-brand .logo-word path, .footer-brand .logo-word text{ fill: var(--cream); }
.newsletter-form{ display:flex; gap:.6rem; flex-wrap:wrap; }
.newsletter-form input{
  flex:1; min-width:160px; padding:.7rem .9rem; border-radius:999px; border:2px solid var(--blush-soft);
  background:transparent; color:var(--cream);
}
.newsletter-form input::placeholder{ color: var(--blush); opacity:.8; }
.footer-bottom{
  border-top:1px solid rgba(248,227,221,.25); padding-top:1.4rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem;
  font-size:.85rem;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* ===== Cookie banner ===== */
.cookie-banner{
  position:fixed; left:1rem; right:1rem; bottom:1rem; z-index:60;
  max-width: 560px;
  margin: 0 auto;
  background: var(--plum-deep); color: var(--cream);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-card);
  display:flex; flex-direction:column; gap:1rem;
}
.cookie-banner[hidden]{ display:none; }
.cookie-banner p{ margin:0; font-size:.92rem; }
.cookie-banner a{ text-decoration:underline; color:var(--gold); }
.cookie-actions{ display:flex; gap:.8rem; flex-wrap:wrap; }
.cookie-banner [data-cookie-choice="accepted"]{
  background: var(--gold); border-color: var(--gold); color: var(--plum-deep);
}
.cookie-banner [data-cookie-choice="accepted"]::before{ background: var(--plum-deep); }
.cookie-banner [data-cookie-choice="accepted"]:hover,
.cookie-banner [data-cookie-choice="accepted"]:focus-visible{ color: var(--cream); }

/* ===== Reveal animations ===== */
.reveal{ opacity:1; transform:none; }
.reveal.js-hidden{
  opacity:0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.js-hidden.in-view{
  opacity:1; transform:none;
}
.reveal.js-hidden[data-reveal="clip"]{
  transform:none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s ease;
}
.reveal.js-hidden[data-reveal="clip"].in-view{ clip-path: inset(0 0 0% 0); }

/* ===== Misc utility ===== */
.flex-between{ display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.text-center{ text-align:center; }
.muted{ color: var(--walnut); }
.icon{ width:22px; height:22px; stroke:currentColor; fill:none; }
.seal-text{ font-family: var(--font-mono); }
.footer-brand{ color: var(--cream); }
.product-detail-grid{ display:grid; grid-template-columns: 1fr 1.2fr; gap: 2.2rem; align-items:start; }
@media (max-width: 760px){ .product-detail-grid{ grid-template-columns: 1fr; } }

.two-col{ display:grid; gap:2.4rem; align-items:start; }
@media (max-width: 760px){ .two-col{ grid-template-columns: 1fr !important; } }

.legal-content{ max-width: 68ch; }
.legal-content h2{ margin-top:2rem; font-size:1.3rem; }
.legal-content ul{ padding-left:1.3rem; list-style:disc; margin-bottom:1em; }
.legal-content li{ margin-bottom:.4em; }

.breadcrumb{
  font-family:var(--font-mono); font-size:.82rem; color:var(--teal); margin-bottom:1.2rem;
}

.notfound-wrap{
  min-height:50vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:1.2rem; padding: 4rem 0;
}
.notfound-wrap svg{ width: min(320px, 80vw); height:auto; }

@media (max-width: 760px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; }
  .hero-illustration{ display:none; }
  .footer-grid{ grid-template-columns: 1fr; }
}
