/* ===================================================================
   ZH LEATHERWORKS — Design System
   =================================================================== */

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --bg:       #0e0a06;
  --bg-2:     #140d08;
  --surface:  #1e1510;
  --surface-2:#281b12;
  --border:   #382518;
  --border-2: #4a3220;

  --pri:      #c4793a;
  --pri-l:    #d8925a;
  --pri-d:    #9a5c28;

  --txt:      #f0e6d8;
  --txt-2:    #b09880;
  --txt-3:    #7a6050;
  --txt-4:    #4a3828;

  --gold:     #d4aa70;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;

  --r:      6px;
  --rl:     14px;
  --shadow: 0 8px 40px rgba(0,0,0,0.55);
  --ease:   0.3s ease;
  --pad:    clamp(1.25rem, 5vw, 2.5rem);
}

/* ── Base ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--pri); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--pri-l); }

p { max-width: 66ch; }

blockquote {
  border-left: 2px solid var(--pri);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--txt-2);
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--txt); }
h1 { font-size: clamp(2.8rem, 8vw, 7rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

/* ── Layout ────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.sec  { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.sec--alt { background: var(--bg-2); }

/* ── Atoms ─────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pri);
}
.tag::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--pri);
  flex-shrink: 0;
}

.rule {
  width: 3rem;
  height: 1px;
  background: linear-gradient(to right, var(--pri), transparent);
  margin: 1.25rem 0 1.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.825rem 1.875rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--ease);
  line-height: 1;
}
.btn-pri { background: var(--pri); color: var(--bg); }
.btn-pri:hover {
  background: var(--pri-l);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,121,58,0.3);
}
.btn-ghost { background: transparent; border: 1px solid var(--border-2); color: var(--txt-2); }
.btn-ghost:hover { border-color: var(--pri); color: var(--pri); transform: translateY(-2px); }

/* Reveal animation */
.rev {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rev.on { opacity: 1; transform: none; }
.rev.d1 { transition-delay: 0.08s; }
.rev.d2 { transition-delay: 0.16s; }
.rev.d3 { transition-delay: 0.24s; }
.rev.d4 { transition-delay: 0.32s; }
.rev.d5 { transition-delay: 0.40s; }

/* ================================================================
   HEADER
   ================================================================ */
.hdr {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  padding: 1.5rem 0;
  transition: padding var(--ease), background var(--ease), border-color var(--ease);
}
.hdr.solid {
  background: rgba(14,10,6,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; }

.logo img { height: 34px; width: auto; transition: opacity var(--ease); }
.logo:hover img { opacity: 0.75; }

/* Desktop nav */
.nav-d { display: flex; align-items: center; gap: 2rem; }
.nav-d a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-3);
  transition: color var(--ease);
}
.nav-d a:hover { color: var(--txt); }
.nav-d .shop-cta {
  background: var(--pri);
  color: var(--bg) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r);
  font-weight: 500;
}
.nav-d .shop-cta:hover { background: var(--pri-l); }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: all var(--ease);
}
.burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-m {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.nav-m.open { opacity: 1; pointer-events: auto; }
.nav-m a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--txt);
  transition: color var(--ease);
}
.nav-m a:hover { color: var(--pri); }
.nav-m hr { width: 40px; border: none; border-top: 1px solid var(--border-2); }

/* ================================================================
   HERO — index.html
   ================================================================ */
.hero {
  padding: clamp(9rem, 18vw, 14rem) 0 clamp(4rem, 7vw, 6rem);
  background-image:
    linear-gradient(
      to bottom,
      rgba(14,10,6,0.65) 0%,
      rgba(14,10,6,0.25) 45%,
      rgba(14,10,6,0.65) 100%
    ),
    url('../../images/bg1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__content { max-width: 780px; }
.hero__eye {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.67rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pri);
  margin-bottom: 1.25rem;
}
.hero__eye::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--pri);
  flex-shrink: 0;
}
.hero h1 { color: var(--txt); margin-bottom: 1.5rem; font-weight: 300; font-style: italic; }
.hero h1 em { font-style: normal; color: var(--pri); }
.hero__sub { font-size: 1.05rem; color: var(--txt-2); margin-bottom: 2.5rem; max-width: 48ch; }
.hero__btns { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* ================================================================
   STORY
   ================================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.story-text h2 { margin-bottom: 0.25rem; }
.story-text p { color: var(--txt-2); margin-bottom: 1.2rem; }

.story-img { position: relative; }
.story-img::before {
  content: '';
  position: absolute;
  inset: -0.75rem;
  border: 1px solid var(--border-2);
  border-radius: var(--rl);
  pointer-events: none;
}
.story-img > img:first-child {
  width: 100%;
  border-radius: var(--rl);
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Stats bar */
.stats {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 2.25rem 2rem; text-align: center; }
.stat__n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--pri);
  line-height: 1;
}
.stat__l {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-top: 0.5rem;
}

/* ================================================================
   PRODUCTS GRID
   ================================================================ */
.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.pcard {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  color: inherit;
  text-decoration: none;
}
.pcard:hover {
  border-color: var(--pri-d);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.pcard__img { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s ease; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__body { padding: 1.375rem; }
.pcard__title { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--txt); }
.pcard__desc { font-size: 0.855rem; color: var(--txt-2); line-height: 1.65; }
.pcard__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.875rem;
  font-size: 0.72rem;
  color: var(--pri);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pcard__arrow { transition: transform var(--ease); }
.pcard:hover .pcard__arrow { transform: translateX(4px); }

/* ================================================================
   REFERENCES
   ================================================================ */
.refs-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}
.refs-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--rl); }
.refs-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }

.rcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.375rem;
  transition: border-color var(--ease);
}
.rcard:hover { border-color: var(--pri-d); }
.rcard__name { font-family: var(--serif); font-size: 1.15rem; }
.rcard__role { font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pri); margin-top: 0.15rem; }
.rcard__text { font-size: 0.875rem; color: var(--txt-2); margin-top: 0.6rem; line-height: 1.6; max-width: 100%; }

.cta-note {
  margin-top: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--txt-2);
}
.cta-note strong { color: var(--txt); }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
  margin-top: 3.5rem;
}
.contact__name { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); margin-bottom: 2rem; }

.ci { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.875rem; align-items: start; margin-bottom: 1.375rem; }
.ci__ico {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.ci__lbl { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 0.2rem; }
.ci__val { font-size: 0.92rem; color: var(--txt); }
.ci__val a { color: var(--txt); }
.ci__val a:hover { color: var(--pri); }

/* Form */
.form { display: flex; flex-direction: column; gap: 0.875rem; }
.fgrp { display: flex; flex-direction: column; gap: 0.35rem; }
.flbl { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-3); }
.finp, .ftxt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.8rem 0.95rem;
  color: var(--txt);
  font-family: var(--sans);
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--ease);
  width: 100%;
  -webkit-appearance: none;
}
.finp::placeholder, .ftxt::placeholder { color: var(--txt-4); }
.finp:focus, .ftxt:focus { border-color: var(--pri); }
.ftxt { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.7rem; color: var(--txt-4); }
.form-note a { color: var(--txt-4); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--pri); }
.form-ok {
  padding: 1.25rem 1.5rem;
  background: rgba(196,121,58,0.1);
  border: 1px solid var(--pri);
  border-radius: var(--r);
  color: var(--pri);
  font-size: 0.95rem;
}
.form-err {
  font-size: 0.8rem;
  color: #e06060;
  padding: 0.5rem 0;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { border-top: 1px solid var(--border); padding: 2.75rem 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo img { height: 26px; opacity: 0.55; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.76rem; color: var(--txt-3); }
.footer-links a:hover { color: var(--txt-2); }
.footer-copy { font-size: 0.7rem; color: var(--txt-4); }
.footer-cookie-link {
  font: inherit; color: var(--txt-3); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.footer-cookie-link:hover { color: var(--txt-2); }

/* ================================================================
   VZORKY.HTML — Page hero
   ================================================================ */
.page-hero {
  position: relative;
  padding: clamp(8rem, 15vw, 13rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: center 30%;
  filter: brightness(0.2);
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { font-weight: 300; font-style: italic; margin-bottom: 0.75rem; }
.page-hero__sub { font-size: 1rem; color: var(--txt-2); max-width: 52ch; margin-bottom: 1.5rem; }

/* Category sticky nav */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(14,10,6,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.cat-nav-in {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav-in::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex-shrink: 0;
  padding: 1rem 1.1rem;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-3);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.cat-nav a:hover { color: var(--txt-2); border-bottom-color: var(--border-2); }
.cat-nav a.active { color: var(--pri); border-bottom-color: var(--pri); }

/* Product sections */
.psec {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--border);
}
.psec:last-child { border-bottom: none; }

.psec__head { margin-bottom: 2.5rem; }
.psec__head h2 { margin-bottom: 0.25rem; }

.psec__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.psec__body--rev { direction: rtl; }
.psec__body--rev > * { direction: ltr; }

.psec__main-img {
  width: 100%;
  border-radius: var(--rl);
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border);
}

.psec__text p { color: var(--txt-2); margin-bottom: 1.1rem; }
.psec__text h3 { font-size: 1.4rem; margin: 1.75rem 0 0.75rem; color: var(--gold); }
.psec__text ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.psec__text li { padding-left: 1.5rem; position: relative; color: var(--txt-2); font-size: 0.93rem; }
.psec__text li::before { content: '—'; position: absolute; left: 0; color: var(--pri); }

/* Gallery */
.gallery { margin-top: 3rem; }
.gallery__lbl { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.875rem; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
  transition: all var(--ease);
}
.gallery-grid img:hover { border-color: var(--pri-d); transform: scale(1.02); }
.gallery-grid--tall img { aspect-ratio: 3/4; }

/* Size table */
.tbl-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
table.size-tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.size-tbl th {
  background: var(--surface-2);
  color: var(--txt-2);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-family: var(--sans);
}
.size-tbl td { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); color: var(--txt-2); }
.size-tbl tr:nth-child(even) td { background: var(--surface); }
.size-tbl td:first-child { color: var(--pri); font-weight: 500; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .nav-d  { display: none; }
  .burger { display: flex; }

  .story-grid { grid-template-columns: 1fr; }
  .story-img  { order: -1; max-width: 440px; }

  .pgrid { grid-template-columns: repeat(2, 1fr); }

  .refs-grid { grid-template-columns: 1fr; }
  .refs-photo { display: none; }

  .contact-grid { grid-template-columns: 1fr; }

  .psec__body { grid-template-columns: 1fr; }
  .psec__body--rev { direction: ltr; }
}

@media (max-width: 600px) {
  .pgrid        { grid-template-columns: 1fr; }
  .stats        { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in    { flex-direction: column; text-align: center; }
}

/* ── Cookie consent bar (assets/js/consent.js) ──────────── */
.consent-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--surface-2);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .45);
}
.consent-bar p {
  margin: 0;
  max-width: 70ch;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--txt-2);
}
.consent-bar a { color: var(--gold); }
.consent-bar a:hover { color: var(--pri-l); }
.consent-bar__btns { display: flex; gap: .6rem; flex-shrink: 0; }
.consent-bar button {
  font-family: var(--sans);
  font-size: .85rem;
  padding: .55rem 1.2rem;
  border-radius: var(--r);
  cursor: pointer;
  border: 1px solid var(--pri-d);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.consent-bar__no  { background: transparent; color: var(--txt-2); }
.consent-bar__no:hover  { color: var(--txt); border-color: var(--txt-3); }
.consent-bar__yes { background: var(--pri); color: #fff; border-color: var(--pri); }
.consent-bar__yes:hover { background: var(--pri-l); border-color: var(--pri-l); }
@media (max-width: 560px) {
  .consent-bar { gap: .85rem; padding: .9rem 1rem; }
  .consent-bar__btns { width: 100%; }
  .consent-bar button { flex: 1; }
}
