/* Skate Tatra - Claymorphism design system */
:root {
  --plum: #5b2a52;
  --plum-dk: #3f1c3a;
  --blush: #f08aa0;
  --blush-lt: #ffd6e0;
  --gold: #f4c86a;
  --gold-dk: #d9a73e;
  --cream: #fff4e8;
  --paper: #fffaf4;
  --ink: #2b1a28;
  --ink-soft: #6b5468;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-clay: 8px 8px 18px rgba(91,42,82,0.18), -6px -6px 16px rgba(255,255,255,0.7), inset 0 0 0 rgba(0,0,0,0);
  --shadow-clay-in: inset 4px 4px 10px rgba(91,42,82,0.12), inset -4px -4px 10px rgba(255,255,255,0.6);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; color: var(--plum-dk); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid var(--gold-dk); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }
.center { text-align: center; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(10% 0 0 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal--1 { transition-delay: .05s; } .reveal--2 { transition-delay: .15s; } .reveal--3 { transition-delay: .25s; } .reveal--4 { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; clip-path: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; min-height: 44px;
  position: relative; overflow: hidden; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: rgba(255,255,255,0.25); transition: left .35s ease; z-index: -1;
}
.btn:hover::after { left: 0; }
.btn:active { transform: scale(.97); }
.btn--plum { background: var(--plum); color: #fff; box-shadow: var(--shadow-clay); }
.btn--gold { background: var(--gold); color: var(--plum-dk); box-shadow: var(--shadow-clay); }
.btn--blush { background: var(--blush); color: var(--plum-dk); box-shadow: var(--shadow-clay); }
.btn--ghost { background: transparent; color: var(--plum); border: 2px solid var(--plum); }
.btn--ghost-dark { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn--sm { padding: 10px 18px; font-size: .9rem; min-height: 40px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); box-shadow: 0 4px 16px rgba(91,42,82,0.1); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { flex-shrink: 0; }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--plum-dk); }
.logo__word--footer { color: var(--gold); font-size: 1.5rem; }
.nav-toggle { display: none; background: var(--blush-lt); border: none; border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--plum-dk); cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); font-weight: 600; padding: 6px 2px; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--gold-dk); transition: width .25s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--plum-dk); }
.nav-cart { display: flex; align-items: center; gap: 6px; background: var(--plum); color: #fff !important; padding: 8px 14px; border-radius: 999px; }
.nav-cart::after { display: none; }
.cart-count { background: var(--gold); color: var(--plum-dk); border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; padding: 0 5px; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1);} 40%{transform:scale(1.4);} 100%{transform:scale(1);} }
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--plum-dk); flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 90px 28px 28px; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s ease;
    z-index: 50;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: #f3e6f0; }
  .nav-cart { color: var(--plum-dk) !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 clamp(48px,8vw,96px); overflow: hidden; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.01em; }
.hero__title em { color: var(--blush); font-style: normal; }
.hero__lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero__art { position: relative; aspect-ratio: 4/5; }
.hero__art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-clay); width: 100%; height: 100%; object-fit: cover; }
.hero__layer { position: absolute; }
.hero__layer--1 { top: -6%; left: -10%; width: 55%; animation: floatSlow 7s ease-in-out infinite; }
.hero__layer--2 { bottom: -8%; right: -8%; width: 40%; animation: floatSlow 9s ease-in-out infinite reverse; }
@keyframes floatSlow { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero__layer { animation: none; } }
.hero__badge { position: absolute; top: 10%; right: -6%; width: 110px; filter: drop-shadow(0 6px 10px rgba(91,42,82,0.25)); }

/* grain overlay */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; mix-blend-mode: multiply; z-index: 0; }

/* ---------- sticky narrative composition ---------- */
.narrative { display: grid; grid-template-columns: .9fr 1.4fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .narrative { grid-template-columns: 1fr; } }
.narrative__pin { position: sticky; top: 100px; align-self: start; }
.narrative__scroll { display: flex; flex-direction: column; gap: 64px; }
@media (max-width: 880px) { .narrative__pin { position: static; } }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-clay); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); }
.card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--blush-lt); display: flex; align-items: center; justify-content: center; color: var(--plum); margin-bottom: 14px; }

/* ---------- product cards / strip ---------- */
.product-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; }
.product-strip .product-card { scroll-snap-align: start; flex: 0 0 min(76vw, 280px); }
@media (min-width: 880px) { .product-strip { display: grid; grid-template-columns: repeat(4,1fr); overflow: visible; } .product-strip .product-card { flex: none; } }
.product-card { background: var(--paper); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-clay); display: flex; flex-direction: column; transition: transform .25s ease; }
.product-card:hover { transform: translateY(-6px); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--blush-lt); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__price { font-weight: 800; color: var(--plum-dk); font-size: 1.1rem; }
.product-card__price del { color: var(--ink-soft); font-weight: 400; margin-right: 6px; }

/* ---------- board finder (signature feature) ---------- */
.board-finder { background: var(--plum); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px,5vw,48px); box-shadow: var(--shadow-clay); position: relative; overflow: hidden; }
.board-finder__form { display: grid; gap: 18px; grid-template-columns: 1fr 1fr auto; align-items: end; margin-top: 20px; }
@media (max-width: 700px) { .board-finder__form { grid-template-columns: 1fr; } }
.board-finder label { display: block; font-size: .85rem; margin-bottom: 6px; color: var(--gold); font-weight: 700; }
.board-finder input, .board-finder select { width: 100%; min-height: 44px; border-radius: var(--radius-sm); border: none; padding: 10px 14px; background: rgba(255,255,255,0.95); color: var(--ink); }
.board-finder__result { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.12); min-height: 24px; }
.board-finder__result--ok { background: rgba(244,200,106,0.22); }
.board-finder__result--err { background: rgba(240,138,160,0.25); }
.board-finder__result a { color: var(--gold); text-decoration: underline; }

/* ---------- section divider / dots ---------- */
.divider { width: 100%; height: 48px; display: block; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--plum); color: #fff; padding: clamp(48px,8vw,80px) 0 56px; text-align: left; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: #e9d4e4; max-width: 60ch; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--plum); }

/* ---------- prose (legal text) ---------- */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.3em; }

/* ---------- legal-toc ---------- */
.legal-toc { background: var(--paper); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-clay-in); max-width: 70ch; margin: 0 auto 32px; }
.legal-toc h2 { font-size: 1.05rem; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; gap: 20px; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

/* ---------- notice ---------- */
.notice { border-radius: var(--radius-sm); padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; }
.notice--info { background: var(--blush-lt); color: var(--plum-dk); }
.notice--warn { background: #fde8c2; color: #6b4a06; }
.notice--ok { background: #d9f0d3; color: #2b5a1e; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1/-1; }
.field label { font-weight: 700; font-size: .9rem; color: var(--plum-dk); }
.field input, .field select, .field textarea {
  min-height: 44px; border-radius: var(--radius-sm); border: 2px solid var(--blush-lt);
  padding: 10px 14px; background: var(--paper); font-family: inherit; font-size: 1rem; accent-color: var(--plum);
  transition: border-color .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); }
.field-error { color: #b23a53; font-size: .85rem; min-height: 1.2em; }
.field:has(.field-error:not(:empty)) input, .field:has(.field-error:not(:empty)) textarea { border-color: #b23a53; }
.hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; left: -9999px; }
.form-msg { padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.form-msg--ok { background: #d9f0d3; color: #2b5a1e; }
.form-msg--err { background: #fbdada; color: #8a2b2b; }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { background: var(--paper); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-clay); display: flex; flex-direction: column; gap: 14px; }
.contact-info__row { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.contact-info__row svg { color: var(--plum); flex-shrink: 0; margin-top: 2px; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; max-width: 70ch; margin: 0 auto; }
.faq-item { background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-clay); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--plum-dk); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dk); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--ink-soft); margin: 0; }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-clay); aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; font-weight: 800; color: var(--plum-dk); }
.product-detail__specs { border-collapse: collapse; width: 100%; }
.product-detail__specs td { padding: 8px 0; border-bottom: 1px solid var(--blush-lt); color: var(--ink-soft); }
.product-detail__specs td:first-child { font-weight: 700; color: var(--plum-dk); width: 40%; }
.qty-input { display: inline-flex; align-items: center; gap: 10px; }
.qty-input input { width: 64px; text-align: center; min-height: 44px; border-radius: var(--radius-sm); border: 2px solid var(--blush-lt); }

/* ---------- cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 10px 8px; color: var(--ink-soft); font-size: .85rem; border-bottom: 2px solid var(--blush-lt); }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--blush-lt); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item__name { font-weight: 700; color: var(--plum-dk); }
.cart-summary { background: var(--paper); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-clay); display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__row--total { font-weight: 800; font-size: 1.2rem; color: var(--plum-dk); border-top: 2px solid var(--blush-lt); padding-top: 10px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: var(--plum-dk); color: #fdf3f8; border-radius: var(--radius-md); padding: 18px 22px; box-shadow: var(--shadow-clay); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum-dk); color: #e9d4e4; margin-top: 64px; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 880px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }
.footer-col h3 { color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #e9d4e4; }
.footer-links a:hover { color: var(--gold); }
.footer-addr { display: flex; gap: 8px; align-items: center; color: #cbb3c6; font-size: .9rem; }
.newsletter-form .field { flex-direction: row; gap: 8px; }
.newsletter-form input { flex: 1; min-height: 44px; border-radius: var(--radius-sm); border: none; padding: 0 12px; }
.footer-mail { display: inline-flex; gap: 8px; align-items: center; color: var(--gold); margin-top: 10px; }
.site-footer__bottom { text-align: center; padding: 18px 0; background: var(--plum); color: #d9bcd4; font-size: .85rem; }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content wrapper
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.stack-sm / .stack-md - vertical flex stack with gap
.reveal / .reveal--1..4 - scroll-reveal animation target + staggered delay
.btn / .btn--plum / .btn--gold / .btn--blush / .btn--ghost / .btn--ghost-dark / .btn--sm / .btn--block - button variants with fill-sweep hover
.site-header / .site-nav / .nav-toggle / .nav-cart / .cart-count - header and nav
.hero / .hero__inner / .hero__title / .hero__lede / .hero__art / .hero__layer / .hero__badge - home hero composition
.grain - full-screen noise overlay
.narrative / .narrative__pin / .narrative__scroll - sticky-left scrolling-right composition
.card / .card__icon - generic clay card
.product-strip / .product-card - catalog product card and mobile scroll-snap strip
.board-finder / .board-finder__form / .board-finder__result - signature feature "Tatra Fit" board size finder
.page-hero - inner page hero banner
.breadcrumbs - small breadcrumb trail
.prose - readable long-form legal text measure
.legal-toc - table of contents box for legal pages
.notice / .notice--info / .notice--warn / .notice--ok - inline alert box
.form-grid / .field / .field--full / .field-error / .hp / .form-msg - form layout and validation states
.contact-layout / .contact-info / .contact-info__row - contact page split layout
.faq / .faq-item - details/summary FAQ accordion
.product-detail / .product-detail__media / .product-detail__price / .product-detail__specs / .qty-input - product detail page
.cart-table / .cart-summary / .cart-empty - cart and checkout tables
.cookie-banner / .cookie-banner__actions - cookie consent banner
.site-footer / .footer-col / .footer-links / .footer-addr / .newsletter-form / .footer-mail - footer
.divider - decorative SVG divider wrapper
*/

/* ---------- footer brand and newsletter columns ---------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- board finder section ---------- */
.board-finder-section {
  display: flex;
  flex-direction: column;
}

/* wg-contrast-autofix */
div.footer-col.footer-newsletter form.newsletter-form div.field label.sr-only { color: #ffffff !important; }
