/* Průzor — mytí oken a fasád, Ostrava. Bauhaus toy-block styling. */

:root {
  --ink: #12203a;
  --ink-2: #1c2f52;
  --sand: #efe3c8;
  --sand-2: #e3d2a4;
  --paper: #faf6ea;
  --coral: #ff6b4a;
  --coral-2: #e05231;
  --line: rgba(18, 32, 58, 0.14);
  --radius: 14px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;
  --shadow-1: 0 1px 0 rgba(18,32,58,.06), 0 10px 24px -14px rgba(18,32,58,.35);
  --shadow-2: 0 2px 0 rgba(18,32,58,.08), 0 24px 48px -20px rgba(18,32,58,.4);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
a { color: var(--coral-2); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--sand);
  padding: .6em 1em;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
}

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

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  text-align: center;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--ink);
  z-index: -1;
  transition: left .28s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--sand); }
.btn-primary {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--ink);
}
.btn-primary::before { background: var(--ink); }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--sand); }
.btn-ghost-dark {
  border-color: var(--sand);
  color: var(--sand);
}
.btn-ghost-dark::before { background: var(--sand); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { color: var(--ink); }
.btn-small { padding: .55em 1.1em; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn::before { pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-word {
  width: 112px;
  height: 28px;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a {
  color: var(--ink);
  position: relative;
  padding-bottom: .2em;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  color: var(--ink);
}
.cart-link .icon { width: 24px; height: 24px; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1);} 40%{transform:scale(1.5);} 100%{transform:scale(1);} }
@media (prefers-reduced-motion: reduce) { .cart-count.bump { animation: none; } }

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

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 1.8rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
    z-index: 150;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.3rem; font-size: 1.1rem; }
  .main-nav a { color: var(--sand); }
  .main-nav a::after { background: var(--coral); }
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(18,32,58,.5);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--sand);
  padding: 4.5rem 0 7rem;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  color: var(--sand);
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  margin-bottom: .6em;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 34em;
  color: var(--sand-2);
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-art { position: relative; aspect-ratio: 4/5; }
.hero-art svg { width: 100%; height: 100%; }

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

/* route-line / pin-drop animation */
.route-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-route 1.8s .2s ease forwards;
}
.route-pin {
  opacity: 0;
  animation: drop-pin 1s 1.6s ease forwards;
}
@keyframes draw-route { to { stroke-dashoffset: 0; } }
@keyframes drop-pin {
  0% { opacity: 0; transform: translateY(-28px); }
  60% { opacity: 1; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .route-line { stroke-dashoffset: 0; animation: none; }
  .route-pin { opacity: 1; animation: none; transform: none; }
}

/* ---------- sections / diagonal layout ---------- */
.section { padding: 6rem 0; position: relative; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--sand); }
.section-ink h2, .section-ink h3 { color: var(--sand); }
.slant-top-sand { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); margin-top: -1px; }
.slant-bottom-sand { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%); }
.slant-top-ink { clip-path: polygon(0 3.5%, 100% 0, 100% 100%, 0 100%); margin-top: -1px; }

.section-head { max-width: 42em; margin-bottom: 2.4rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--coral-2);
  margin-bottom: .8em;
}
.section-ink .eyebrow { color: var(--coral); }

.divider {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.js-armed {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease, clip-path .6s ease;
}
.reveal.js-armed.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal.js-armed { opacity: 1; transform: none; transition: none; }
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}
.svc-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.svc-card .thumb { aspect-ratio: 4/3; overflow: hidden; border-bottom: 2px solid var(--ink); }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc-card:hover .thumb img { transform: scale(1.08); }
.svc-card .body { padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.svc-card h3 { font-size: 1.2rem; margin-bottom: 0; }
.svc-card .meta { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); }
.svc-card .price { font-size: 1.05rem; font-weight: 800; color: var(--coral-2); }
.svc-card .tag {
  position: absolute;
  margin: .8rem;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: .3em .6em;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
}
.svc-card .actions { margin-top: auto; display: flex; gap: .6rem; }

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}
.strip .svc-card { scroll-snap-align: start; }
@media (min-width: 720px) {
  .strip { grid-auto-columns: minmax(0,1fr); grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}

/* ---------- feature / calculator ---------- */
.feature {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}
.feature-form, .feature-result { padding: 2.2rem; }
.feature-form { background: var(--sand); border-right: 2px solid var(--ink); }
.feature-result { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-form { border-right: none; border-bottom: 2px solid var(--ink); }
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35em; }
.field select, .field input {
  width: 100%;
  font: inherit;
  padding: .7em .8em;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  accent-color: var(--coral);
  min-height: 44px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.result-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--coral-2);
}
.result-note { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); }
.season-tip {
  display: flex;
  gap: .7em;
  align-items: flex-start;
  background: var(--sand);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: .9em 1em;
  font-size: .92rem;
}
.season-tip .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--coral-2); }

/* ---------- trust / badge ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}
.badge-seal { width: 128px; height: 128px; }
.trust-item { display: flex; gap: 1rem; align-items: flex-start; }
.trust-item .icon { width: 30px; height: 30px; color: var(--coral-2); flex-shrink: 0; }
.section-ink .trust-item .icon { color: var(--coral); }

/* ---------- about / split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); border: 2px solid var(--ink); aspect-ratio: 4/5; object-fit: cover; }
.split-media .ornament { position: absolute; width: 90px; height: 90px; bottom: -28px; right: -28px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- forms (contact/newsletter/checkout) ---------- */
.form-grid { display: grid; gap: 1.1rem; max-width: 640px; }
.form-grid .field-row { grid-template-columns: 1fr 1fr; }
textarea {
  width: 100%;
  font: inherit;
  padding: .7em .8em;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  min-height: 120px;
  resize: vertical;
}
.form-msg { font-weight: 700; padding: .8em 1em; border-radius: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #d8ead9; border: 2px solid #2f6b35; }
.form-msg.err { background: #f6d9d4; border: 2px solid #a6372a; }
.field-error { color: #a6372a; font-size: .82rem; font-weight: 700; margin-top: .3em; display: none; }
.field-error.show { display: block; }
.honeypot-field { position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--sand-2); padding: 4.5rem 0 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(239,227,200,.2);
}
.footer-brand .logo-word, .footer-brand .logo-mark { filter: none; }
.footer-brand p { color: var(--sand-2); max-width: 26em; margin-top: 1rem; }
.footer-col h4 { color: var(--sand); font-size: 1rem; font-family: var(--font-body); font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: var(--sand-2); }
.footer-col a:hover { color: var(--coral); }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.newsletter-form input {
  flex: 1;
  min-width: 10rem;
  padding: .7em .9em;
  border-radius: 999px;
  border: 2px solid var(--sand-2);
  background: var(--ink-2);
  color: var(--sand);
  min-height: 44px;
}
.newsletter-form input::placeholder { color: var(--sand-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .85rem;
  color: var(--sand-2);
}
.footer-bottom a { color: var(--sand-2); }
@media (max-width: 920px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px;
  margin-inline: auto;
  background: var(--ink);
  color: var(--sand);
  border: 2px solid var(--coral);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-2);
  z-index: 300;
  display: none;
  gap: 1rem;
}
.cookie-banner.show { display: grid; }
.cookie-banner p { margin: 0 0 .9em; font-size: .92rem; color: var(--sand-2); }
.cookie-banner .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- misc page layout ---------- */
.page-hero {
  background: var(--ink);
  color: var(--sand);
  padding: 3.4rem 0 5.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.page-hero h1 { color: var(--sand); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--sand-2); max-width: 36em; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { margin-bottom: 1.2em; }

.breadcrumb { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-2); }

.table-list { width: 100%; border-collapse: collapse; }
.table-list th, .table-list td { text-align: left; padding: .8em .6em; border-bottom: 2px solid var(--ink); }

.accordion-item { border-bottom: 2px solid var(--ink); }
.accordion-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1em .2em;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: "+"; font-family: var(--font-mono); }
.accordion-item[open] summary::after { content: "–"; }
.accordion-item p { padding-bottom: 1.1em; color: var(--ink-2); }

/* ---------- cart / checkout page ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th { text-align: left; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: .6em; border-bottom: 2px solid var(--ink); }
.cart-table td { padding: 1em .4em; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-name { font-weight: 700; }
.cart-item-meta { font-size: .82rem; color: var(--ink-2); }
.qty-group { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty-group button {
  background: var(--sand);
  border: none;
  width: 36px; height: 36px;
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
}
.qty-group input { width: 2.4em; text-align: center; border: none; background: transparent; font: inherit; font-weight: 700; min-height: 36px; }
.remove-link { color: var(--coral-2); font-weight: 700; font-size: .85rem; background: none; border: none; cursor: pointer; padding: 0; }
.cart-summary {
  background: var(--sand);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  max-width: 360px;
  margin-left: auto;
}
.cart-summary .total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; margin-top: .8rem; }
.empty-cart { text-align: center; padding: 3rem 1rem; }
.empty-cart .icon { width: 64px; height: 64px; color: var(--ink-2); margin: 0 auto 1rem; }

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

/* 404 */
.not-found { text-align: center; padding: 6rem 1rem; }
.not-found svg { width: 180px; height: 180px; margin: 0 auto 1.5rem; }

@media (max-width: 390px) {
  .container { width: calc(100% - 2rem); }
}
