/* Plstiareň — Desert modernism interpreted through wool & arches */

:root {
  --sand-0: #faf6ec;
  --sand-1: #f3ead9;
  --sand-2: #e8dcc4;
  --wool-grey: #a39a89;
  --wool-grey-dark: #6f675a;
  --terracotta: #a85339;
  --terracotta-dark: #823f2c;
  --midnight: #232946;
  --midnight-2: #171c33;
  --silver: #c9cedb;
  --ice: #eef1f6;
  --ink: #2a2620;
  --ok: #4c7a5a;
  --err: #a3372c;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
  --font-mono: "Courier New", ui-monospace, Consolas, monospace;

  --radius: 18px;
  --shadow-paper: 0 1px 0 #fff, 0 10px 24px -14px rgba(35, 41, 70, 0.35);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand-0);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.1;
  color: var(--midnight);
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Focus rings */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}
:where(input, textarea, select) { accent-color: var(--terracotta); }

/* ---------- Icon sprite ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; vertical-align: -5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sand-2);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 174px; height: 38px; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--terracotta); transition: right 0.28s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--terracotta-dark); }

.cart-link { display: flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--font-mono); font-size: 0.85rem; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--terracotta); color: var(--ice);
  border-radius: 50%; font-size: 0.72rem; font-weight: 700;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.bump { transform: scale(1.35); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--midnight);
}
.header-right { display: flex; align-items: center; gap: 20px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--midnight); color: var(--ice);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 90px 28px 28px;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--ice); padding: 14px 0; width: 100%; font-size: 1rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(23,28,51,0.4);
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
    z-index: 45;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; min-height: 44px;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase;
  border: 1.5px solid var(--midnight); border-radius: 999px;
  background: transparent; color: var(--midnight);
  cursor: pointer; text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  background: var(--midnight); z-index: -1;
  transition: left 0.32s cubic-bezier(.65,0,.35,1);
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--ice); }
.btn-primary { background: var(--terracotta); border-color: var(--terracotta); color: var(--ice); }
.btn-primary::before { background: var(--terracotta-dark); }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--ice); }
.btn-ghost-dark { border-color: var(--silver); color: var(--ice); }
.btn-ghost-dark::before { background: var(--silver); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { color: var(--midnight); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-small { padding: 10px 18px; font-size: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 60px;
  background: linear-gradient(180deg, var(--sand-1) 0%, var(--sand-0) 100%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-headline {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 0.4em;
}
.hero-headline .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-headline .word span {
  display: inline-block; transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.hero-headline.run .word span { transform: translateY(0); }
.hero-headline .word:nth-child(1) span { transition-delay: 0.05s; }
.hero-headline .word:nth-child(2) span { transition-delay: 0.16s; }
.hero-headline .word:nth-child(3) span { transition-delay: 0.27s; }
.hero-headline .word:nth-child(4) span { transition-delay: 0.38s; }
.hero-headline .word:nth-child(5) span { transition-delay: 0.49s; }
.hero-lede { font-size: 1.15rem; max-width: 46ch; color: var(--wool-grey-dark); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.sun-disc { transform-origin: 68% 30%; animation: spin 50s linear infinite; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

@keyframes spin { to { transform: rotate(360deg); } }

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

/* ---------- Numbered sections grid (home composition) ---------- */
.numgrid { padding: 90px 0; }
.numgrid-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 28px;
  padding: 48px 0; border-top: 1px solid var(--sand-2);
}
.numgrid-item:last-child { border-bottom: 1px solid var(--sand-2); }
.numgrid-number {
  font-family: var(--font-mono); font-size: clamp(3rem, 8vw, 6rem);
  color: var(--sand-2); font-weight: 700; line-height: 1;
}
.numgrid-body h3 { font-size: 1.6rem; }
.numgrid-media {
  margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.numgrid-media img, .numgrid-media .ph {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px;
  box-shadow: var(--shadow-paper);
}
@media (max-width: 700px) {
  .numgrid-item { grid-template-columns: 1fr; gap: 10px; }
  .numgrid-media { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--sand-0); border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--sand-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 18px 20px 22px; }
.card-cat {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--terracotta-dark);
}
.card-title { font-size: 1.15rem; margin: 6px 0; }
.card-price { font-family: var(--font-mono); font-weight: 700; color: var(--midnight); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }

/* ---------- Product grid / strip ---------- */
.grid-products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px;
}
.filter-bar { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--sand-2);
  background: var(--sand-0); cursor: pointer; min-height: 40px;
}
.filter-btn[aria-pressed="true"] { border-color: var(--terracotta); color: var(--terracotta-dark); background: var(--sand-1); }

@media (max-width: 640px) {
  .scroll-strip {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 10px; margin: 0 -24px; padding-left: 24px; padding-right: 24px;
  }
  .scroll-strip .card { min-width: 240px; scroll-snap-align: start; }
}

/* ---------- Dividers / ornaments ---------- */
.divider { width: 100%; height: auto; display: block; color: var(--sand-2); margin: 0; }
.divider.on-dark { color: var(--midnight-2); }
.arch-band {
  background: var(--midnight); color: var(--ice); padding: 100px 0; position: relative; overflow: hidden;
  background-image: linear-gradient(160deg, rgba(23,28,51,0.94), rgba(23,28,51,0.88)), url("../img/hero.jpg");
  background-size: cover; background-position: center;
}
.arch-band::after {
  content: ""; position: absolute; inset: 0; background: var(--midnight); mix-blend-mode: color; opacity: 0.8; pointer-events: none;
}
.arch-band h2 { color: var(--ice); }
.arch-band .muted { color: var(--silver); }
.arch-decor { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }

/* ---------- Seal / badge ---------- */
.seal { width: 120px; height: 120px; flex-shrink: 0; }

/* ---------- Signature feature: Zrážkomer ---------- */
.gauge {
  background: var(--sand-1); border-radius: 28px; padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start;
  box-shadow: var(--shadow-paper);
}
.gauge-form .field { margin-bottom: 18px; }
.gauge-result {
  background: var(--sand-0); border-radius: 18px; padding: 26px; position: relative;
}
.gauge-result dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-family: var(--font-mono); }
.gauge-result dt { color: var(--wool-grey-dark); }
.gauge-result dd { margin: 0; font-weight: 700; color: var(--midnight); font-size: 1.1rem; }
.gauge-note { font-size: 0.85rem; color: var(--wool-grey-dark); margin-top: 16px; }
@media (max-width: 760px) { .gauge { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
label { display: block; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; color: var(--wool-grey-dark); }
input, textarea, select {
  width: 100%; padding: 12px 14px; min-height: 44px;
  border: 1.5px solid var(--sand-2); border-radius: 10px;
  background: var(--sand-0); font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--terracotta); }
.field-error { color: var(--err); font-size: 0.85rem; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.field.invalid .field-error { display: block; }
.form-msg { padding: 14px 18px; border-radius: 10px; margin-top: 16px; font-size: 0.95rem; display: none; }
.form-msg.ok { display: block; background: #e4efe7; color: var(--ok); }
.form-msg.err { display: block; background: #f3e1dd; color: var(--err); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--silver); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }
.site-footer h4 { color: var(--ice); font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer a { text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .footer-logo svg { width: 156px; height: 34px; margin-bottom: 14px; }
.footer-logo { color: var(--ice); }
.footer-links a { position: relative; }
.footer-links a:hover { color: var(--ice); }
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 140px; }
.footer-bottom {
  border-top: 1px solid rgba(201,206,219,0.2); margin-top: 50px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: var(--midnight); color: var(--ice);
  border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
  display: none; gap: 14px; flex-direction: column;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.92rem; color: var(--ice); }
.cookie-banner a { text-decoration: underline; color: var(--ice); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; transform: none; clip-path: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.js .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-headline .word span { transform: translateY(0) !important; }
}

/* ---------- Generic sections ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: left; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--terracotta-dark); display: block; margin-bottom: 10px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 22px; }
.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

table.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
table.legal-table th, table.legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand-2); }

.breadcrumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--wool-grey-dark); margin-bottom: 20px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--sand-2); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; color: var(--midnight); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--terracotta); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--wool-grey-dark); }

/* Cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--wool-grey-dark); padding-bottom: 12px; border-bottom: 1px solid var(--sand-2); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--sand-2); vertical-align: middle; }
.cart-item-media { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.qty-input { width: 64px; text-align: center; }
.cart-remove { background: none; border: none; color: var(--err); font-family: var(--font-mono); font-size: 0.8rem; cursor: pointer; min-height: 44px; padding: 0 8px; }
.cart-summary { background: var(--sand-1); border-radius: 18px; padding: 28px; margin-top: 30px; display: grid; gap: 12px; max-width: 420px; margin-left: auto; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--sand-2); padding-top: 12px; }
.empty-state { text-align: center; padding: 60px 0; color: var(--wool-grey-dark); }

/* Badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 24px; }

/* Schedule table */
.schedule-list { display: grid; gap: 14px; }
.schedule-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center;
  background: var(--sand-1); border-radius: 14px; padding: 16px 20px;
}
.schedule-row time { font-family: var(--font-mono); font-weight: 700; color: var(--terracotta-dark); }
@media (max-width: 560px) { .schedule-row { grid-template-columns: 1fr; text-align: left; gap: 6px; } }

/* utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted-text { color: var(--wool-grey-dark); }
