/* ================================
   Kutilova dílna — LIGHT THEME CSS
   ================================ */

:root{
  /* základní paleta */
  --bg: #f6f8fc;
  --panel: #ffffff;
  --card: #ffffff;

  --text: #0f172a;      /* slate-900 */
  --muted: #475569;     /* slate-600 */
  --muted2: #64748b;    /* slate-500 */

  --line: rgba(15, 23, 42, .10);
  --shadow: 0 12px 34px rgba(15, 23, 42, .10);
  --shadow2: 0 8px 20px rgba(15, 23, 42, .08);

  /* akcent */
  --brand: #2563eb;     /* blue-600 */
  --brand2: #1d4ed8;    /* blue-700 */
  --brandSoft: rgba(37, 99, 235, .12);

  /* UI */
  --r: 18px;
  --r2: 22px;
  --pad: 16px;
  --pad2: 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Mobil */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1; /* obrázek nahoře */
  }
}


*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);

  /* Pozadí: fotka dílny + jemný bílý overlay, aby zůstala čitelnost */
  background-image:
    linear-gradient(180deg, rgba(246,248,252,.92), rgba(246,248,252,.92)),
    url("/img/bg-workshop.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* Když background obrázek nebude existovat, pořád to bude hezké */
@supports (background: paint(something)) {
  /* nic */
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; border-radius: 14px; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content: space-between;
}

.logo{
  font-weight: 800;
  letter-spacing: .2px;
  display:flex;
  align-items:center;
  gap:10px;
}

.nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a{
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav a:hover{
  color: var(--text);
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .06);
}

/* ===== Typography ===== */
.section{ margin: 22px 0; }

h1,h2,h3{ margin: 0 0 10px; }
h1{ font-size: 36px; line-height: 1.08; letter-spacing: -0.4px; }
h2{ font-size: 22px; line-height: 1.2; }
h3{ font-size: 16px; line-height: 1.25; }

p{ margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.small{ font-size: 12px; color: var(--muted2); }

/* ===== Badge / chips ===== */
.badge{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brandSoft);
  border: 1px solid rgba(37, 99, 235, .18);
  color: #1e40af;
  font-size: 12px;
  font-weight: 650;
}

.chips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip{
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .04);
  border: 1px solid rgba(15, 23, 42, .08);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.9);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(15,23,42,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(15, 23, 42, .18);
}

.btn-primary{
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37,99,235,.20);
}

.btn-primary:hover{
  background: var(--brand2);
}

.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ===== Grid ===== */
.grid{ display:grid; gap: 12px; }
.grid-2{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px){ .grid-2{ grid-template-columns: 1fr; } }

.cards-3{ grid-template-columns: repeat(3, 1fr); }
.cards-4{ grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1050px){ .cards-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px){ .cards-3,.cards-4{ grid-template-columns: 1fr; } }

/* ===== Cards ===== */
.card{
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.88);
  border-radius: var(--r);
  padding: var(--pad);
  box-shadow: var(--shadow2);
}

.card.subtle{
  background: rgba(255,255,255,.72);
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}

.meta{
  font-size: 12px;
  color: var(--muted2);
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== HERO ===== */
.hero{
  border: 1px solid rgba(15, 23, 42, .10);
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(37,99,235,.10), transparent 60%),
    rgba(255,255,255,.82);
  border-radius: var(--r2);
  padding: var(--pad2);
  box-shadow: var(--shadow);
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.hero p{ max-width: 64ch; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; padding: 18px; }
  h1{ font-size: 30px; }
}

/* ===== Post cards ===== */
.post-card{
  display:grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;

  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.92);
  border-radius: var(--r);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.post-card:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}

.post-card h3{ margin: 6px 0 6px; }
.post-card p{ margin: 0; color: var(--muted); }

@media (max-width: 700px){
  .post-card{ grid-template-columns: 1fr; }
}

/* ===== Product cards ===== */
.product-card{
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.92);
  border-radius: var(--r);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.product-card:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}

.product-body{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.product-body p{ margin: 0; color: var(--muted); }

.disclosure{
  color: var(--muted2);
  font-size: 11px;
  line-height: 1.35;
}

/* ===== Kit cards ===== */
.kit-card{
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.92);
  border-radius: var(--r);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.kit-card:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}

.kit-body{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

/* ===== Footer ===== */
.footer{
  margin: 30px 0 10px;
  border-top: 1px solid rgba(15, 23, 42, .10);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer a{ color: var(--text); }

/* ===== Mobile niceties ===== */
@media (max-width: 420px){
  .container{ padding: 14px; }
  .btn{ width: 100%; }
  .hero-cta{ flex-direction: column; align-items: stretch; }
}

/* Pokud někdo preferuje méně efektů */
@media (prefers-reduced-motion: reduce){
  .btn, .post-card, .product-card, .kit-card{ transition: none !important; }
}

.logo img{
  height: 42px;        /* ideální výška do headeru */
  width: auto;
  display: block;
}

@media (max-width: 700px){
  .logo img{
    height: 36px;      /* menší na mobilu */
  }
}