/*
Theme Name: Tom Siller — Brand & Visual Partner
Theme URI: https://sillertom.com
Author: Tom Siller
Author URI: https://sillertom.com
Description: Osobní portfolio téma pro brand & visual partnera.
Version: 1.0.0
License: Private
Text Domain: sillertom
*/

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, .1);
  --blue: #E67E22;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --max: 1440px;
  --page-pad: clamp(20px, 3vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 200;
  width: min(calc(100% - 24px), var(--max));
  margin: 12px auto 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(29,29,31,.08);
  border-radius: 999px;
  background: rgba(245,245,247,.88);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 30px rgba(0,0,0,.045);
}

/* Logo / brand */
.brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand span { font-size: 12px; color: var(--muted); }
.brand-logo {
  display: block;
  height: 14px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* Desktop nav links */
.nav-links--desktop {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links--desktop li { display: flex; }
.nav-links--desktop a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .24s var(--ease), color .24s var(--ease);
}
.nav-links--desktop a:hover,
.nav-links--desktop .current-menu-item a { background: rgba(29,29,31,.06); color: var(--text); }

/* Burger tlačítko */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: background .2s;
  flex-shrink: 0;
}
.burger:hover { background: rgba(29,29,31,.06); }
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
  transform-origin: center;
}
.burger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger.open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(245,245,247,.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(32px, 8vw, 64px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-menu__close {
  position: absolute;
  top: 22px; right: 22px;
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.mobile-menu__close:hover { background: rgba(29,29,31,.06); color: var(--text); }
.mobile-menu__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu__links a {
  display: block;
  font-size: clamp(36px, 10vw, 56px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
  padding: 8px 0;
  transition: color .2s, transform .2s;
}
.mobile-menu__links a:hover { color: var(--muted); transform: translateX(8px); }

/* Starý .nav-links fallback */
.nav-links { display: flex; gap: 4px; align-items: center; font-size: 13px; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.nav-links li { display: flex; }
.nav-links a { padding: 10px 12px; border-radius: 999px; transition: background .24s var(--ease), color .24s var(--ease); }
.nav-links a:hover { background: rgba(29,29,31,.06); color: var(--text); }

/* Mobil — pouze logo + burger, žádná lišta */
@media (max-width: 640px) {
  .nav-links--desktop { display: none; }
  .burger { display: flex; }
  .nav-wrap {
    width: 100%;
    margin: 0;
    top: 0;
  }
  .nav {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 12px 20px;
    background: rgba(245,245,247,.95);
  }
  .brand-logo { height: 12px; }
}

.container {
  width: min(calc(100% - var(--page-pad) * 2), var(--max));
  margin: 0 auto;
}

/* HERO */
.hero {
  min-height: 720px;
  height: min(760px, calc(100vh - 56px));
  display: grid;
  align-items: center;
  padding: 84px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--text);
}

h1 {
  max-width: 980px;
  font-size: clamp(62px, 8vw, 126px);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 580;
}

.hero-side { align-self: end; padding-bottom: 6px; }

.hero-note {
  max-width: 390px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.28;
  letter-spacing: -.018em;
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  border: 1px solid rgba(29,29,31,.18);
  background: rgba(255,255,255,.72);
  color: var(--text);
  font-size: 14px;
  transition: background .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease);
}

.button.primary { background: var(--text); color: #fff; border-color: var(--text); }
.button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* SECTIONS */
.section { padding: clamp(72px, 9vw, 150px) 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.small-title {
  max-width: 720px;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.04;
  letter-spacing: -.026em;
  font-weight: 580;
}

/* PROJECT RAIL */
.projects-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.project-rail {
  display: flex;
  gap: 24px;
  padding: 0 0 10px;
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.project-rail:active { cursor: grabbing; }

@keyframes rail-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--rail-offset, -50%)); }
}

/* PROJECT GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* PROJECT TILE */
.project-tile {
  position: relative;
  min-height: min(768px, 86vh);
  flex: 0 0 clamp(300px, 40vw, 520px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 3vw, 48px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  scroll-snap-align: start;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.86) 100%),
    linear-gradient(135deg, #beb7ab, #6a645d);
  isolation: isolate;
}

.projects-grid .project-tile { min-height: 520px; }

.project-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 14%, rgba(255,255,255,.28), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0));
}

.project-tile::after {
  content: "→";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  font-size: 20px;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .24s var(--ease), transform .24s var(--ease), background .24s var(--ease), color .24s var(--ease);
  z-index: 3;
}

.project-tile:hover::after { opacity: 1; transform: scale(1); }

.project-tile.has-thumb { background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.86) 100%) !important; }
.project-tile.has-thumb .tile-thumb { position: absolute; inset: 0; z-index: -1; object-fit: cover; width: 100%; height: 100%; }

.project-tile:nth-child(2n) { background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.86) 100%), linear-gradient(135deg, #969ca5, #4c515a); }
.project-tile:nth-child(3n) { background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.86) 100%), linear-gradient(135deg, #bba68f, #5b4a39); }
.project-tile:nth-child(4n) { background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.86) 100%), linear-gradient(135deg, #a798ad, #44394b); }
.project-tile:nth-child(5n) { background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.86) 100%), linear-gradient(135deg, #bfa878, #4e3b21); }
.project-tile:nth-child(6n) { background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.86) 100%), linear-gradient(135deg, #adbec1, #3c5257); }
.project-tile:nth-child(7n) { background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.86) 100%), linear-gradient(135deg, #b6b6b6, #3b3b3b); }

.project-number {
  position: absolute;
  top: clamp(26px, 3vw, 48px);
  left: clamp(26px, 3vw, 48px);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  z-index: 2;
}

.project-title {
  max-width: 720px;
  padding-right: 58px;
  color: #fff;
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 560;
  margin-bottom: 12px;
}

.project-rail .project-title { font-size: clamp(20px, 2vw, 32px); }

.project-desc {
  max-width: 520px;
  padding-right: 58px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-right: 58px;
}

.tag {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

/* SPLIT FEATURE */
.split-feature {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}

.feature-visual {
  min-height: 620px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.38), transparent 28%), linear-gradient(135deg, #ece7dd, #cbc2b2);
  overflow: hidden;
}

.feature-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.feature-copy {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 92px);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.feature-copy h2 {
  max-width: 780px;
  font-size: clamp(42px, 5vw, 82px);
  line-height: .96;
  letter-spacing: -.042em;
  font-weight: 580;
  margin-bottom: 28px;
}

.feature-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 1.32;
  letter-spacing: -.018em;
}

/* PRINCIPLES */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principle {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.principle span { color: var(--muted); font-size: 13px; }

.principle h3 {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.02;
  letter-spacing: -.026em;
  font-weight: 580;
  margin-bottom: 16px;
}

.principle p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* CONTACT */
.contact-section { padding: clamp(80px, 10vw, 170px) 0 clamp(60px, 7vw, 120px); }

.contact-panel {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(38px, 7vw, 110px);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 75% 22%, rgba(255,255,255,.8), transparent 30%), linear-gradient(135deg, #f7f4ee, #ded6c8);
}

.contact-panel h2 {
  max-width: 1100px;
  font-size: clamp(48px, 7vw, 116px);
  line-height: .94;
  letter-spacing: -.046em;
  font-weight: 580;
}

.contact-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 80px;
}

.contact-bottom p {
  max-width: 520px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.36;
  letter-spacing: -.012em;
}

.mail {
  display: inline-block;
  border-bottom: 2px solid currentColor;
  font-size: clamp(30px, 4.5vw, 78px);
  line-height: 1;
  letter-spacing: -.034em;
  font-weight: 580;
}

/* PAGE HEAD */
.page-head {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 70px;
}

.page-head h1 { max-width: 1180px; }

/* CASE STUDY */
.case-detail { display: grid; gap: 24px; padding-bottom: 80px; }

.case-hero {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(38px, 7vw, 100px);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.72), transparent 30%), linear-gradient(135deg, #f2eee7, #d7d0c4);
}

.case-hero h1 { max-width: 1180px; }

.case-intro {
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.22;
  letter-spacing: -.025em;
  margin-top: 70px;
}

.case-meta-grid, .text-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.text-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.meta-card, .text-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.meta-card strong, .text-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text);
}

.meta-card, .text-card p, .text-card ul { color: var(--muted); font-size: 15px; line-height: 1.55; }
.text-card ul { margin: 0; padding: 0; list-style: none; }
.text-card li + li { margin-top: 8px; }

.visual-card {
  min-height: 70vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #ddd6c9, #958c7c);
  position: relative;
}

.visual-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: .44fr .56fr;
  gap: 24px;
}

.portrait-card {
  min-height: 620px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ded8ce, #9b9386);
  overflow: hidden;
}

.portrait-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-copy {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(38px, 6vw, 90px);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.about-copy .about-lead {
  max-width: 820px;
  margin-bottom: 38px;
  color: var(--text);
  font-size: clamp(30px, 3vw, 56px);
  line-height: 1.04;
  letter-spacing: -.033em;
  font-weight: 580;
}

.about-copy p {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

/* FOOTER */
.footer {
  width: min(calc(100% - var(--page-pad) * 2), var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero { height: auto; min-height: auto; padding: 95px 0 80px; }
  .hero-grid, .split-feature, .about-grid { grid-template-columns: 1fr; }
  .hero-side { align-self: start; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-visual, .feature-copy, .portrait-card, .about-copy { min-height: 520px; }
  .principles, .case-meta-grid, .text-grid { grid-template-columns: 1fr 1fr; }
  .contact-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(50px, 15vw, 78px); }
  .hero { padding-top: 70px; }
  .project-tile {
    flex: 0 0 80vw;
    min-height: 0;
    aspect-ratio: 3 / 4.8;
    border-radius: 24px;
  }
  .projects-grid { grid-template-columns: 1fr; }
  .principles, .case-meta-grid, .text-grid { grid-template-columns: 1fr; }
  .feature-visual, .feature-copy, .portrait-card, .about-copy, .contact-panel { min-height: auto; }
  .footer { flex-direction: column; }
}

/* ── KONTAKT STRÁNKA ─────────────────────────────────────────────────────── */

.contact-page {
  padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 8vw, 120px);
}

.contact-page__head {
  max-width: 780px;
  margin-bottom: clamp(56px, 7vw, 100px);
}

.contact-page__head h1 {
  margin: 20px 0 28px;
  font-size: clamp(42px, 5.5vw, 86px);
  line-height: .94;
  letter-spacing: -.04em;
  font-weight: 580;
}

.contact-page__sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: -.01em;
  max-width: 52ch;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(56px, 7vw, 100px);
}

.contact-page__card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-page__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-page__value {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -.01em;
}

.contact-page__value--link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
  width: fit-content;
}

.contact-page__value--link:hover {
  border-color: var(--text);
  color: var(--text);
}

.contact-page__cta {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 72px);
}

.contact-page__mail {
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 580;
  letter-spacing: -.034em;
  line-height: 1;
  color: var(--text);
  border-bottom: 2px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .2s;
  display: inline-block;
}

.contact-page__mail:hover { border-color: var(--text); }

@media (max-width: 980px) {
  .contact-page__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .contact-page__grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ── PROJEKTY ARCHIV ─────────────────────────────────────────────────────── */

.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.archive-tile {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.archive-tile__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 16px;
}

.archive-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s var(--ease);
}

.archive-tile:hover .archive-tile__img img {
  transform: scale(1.03);
}

.archive-tile__body {
  padding: 0;
}

.archive-tile__title {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: color .2s;
}

.archive-tile:hover .archive-tile__title { color: var(--muted); }

.archive-tile__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .projects-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
@media (max-width: 640px) {
  .projects-archive-grid { grid-template-columns: 1fr; gap: 28px; }
  .archive-tile__img { aspect-ratio: 4 / 3; }
}


/* ── CASE STUDIES ARCHIV ─────────────────────────────────────────────────── */

.cs-archive-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: clamp(56px, 7vw, 100px) 0;
  border-bottom: 1px solid var(--line);
}

.cs-row:first-child { border-top: 1px solid var(--line); }

.cs-row__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
}

.cs-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.cs-row:hover .cs-row__img img { transform: scale(1.03); }

.cs-row__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cs-row__meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cs-row__cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.cs-row__year {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.cs-row__title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 580;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}

.cs-row__sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: -.01em;
  margin: 0;
  max-width: 46ch;
}

.cs-row__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: gap .2s var(--ease);
}

.cs-row__btn:hover { gap: 14px; }

.cs-row__arrow { transition: transform .2s var(--ease); }
.cs-row__btn:hover .cs-row__arrow { transform: translateX(4px); }

/* Střídání — sudé řady: obrázek vpravo */
.cs-row:nth-child(even) .cs-row__img { order: 2; }
.cs-row:nth-child(even) .cs-row__content { order: 1; }

@media (max-width: 800px) {
  .cs-row { grid-template-columns: 1fr; gap: 32px; }
  .cs-row:nth-child(even) .cs-row__img { order: 0; }
  .cs-row:nth-child(even) .cs-row__content { order: 0; }
}

/* ── CASE STUDY DETAIL ────────────────────────────────────────────────────── */

.cs-single__hero {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(48px, 6vw, 80px);
  max-width: 860px;
}

.cs-single__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.cs-single__cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.cs-single__year {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.cs-single__title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 580;
  letter-spacing: -.04em;
  line-height: .94;
  color: var(--text);
  margin: 0 0 28px;
}

.cs-single__lead {
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 58ch;
}

/* Cover obrázek */
.cs-single__cover {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.cs-single__cover img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

/* Meta páska */
.cs-single__strip {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(56px, 7vw, 96px);
}

.cs-single__strip-item {
  flex: 1;
  padding: 24px 0;
  border-right: 1px solid var(--line);
}

.cs-single__strip-item:first-child { padding-right: 32px; }
.cs-single__strip-item:not(:first-child) { padding-left: 32px; }
.cs-single__strip-item:last-child { border-right: none; }

.cs-single__strip-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.cs-single__strip-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* Tělo — obsah z editoru */
.cs-single__body {
  max-width: 780px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

/* Typografie těla */
.cs-single__body p,
.cs-single__body ul,
.cs-single__body ol {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: -.01em;
  margin-bottom: 1.5em;
}

.cs-single__body h2 {
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 580;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 2.5em 0 .75em;
  line-height: 1.1;
}

.cs-single__body h3 {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 580;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 2em 0 .5em;
}

/* Obrázky v těle */
.cs-single__body figure,
.cs-single__body .wp-block-image {
  margin: clamp(40px, 5vw, 72px) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cs-single__body img {
  width: 100%;
  height: auto;
  display: block;
}

/* Galerie v těle — dvousloupcová */
.cs-single__body .wp-block-gallery {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  margin: clamp(40px, 5vw, 72px) 0 !important;
}

.cs-single__body .wp-block-gallery .wp-block-image {
  margin: 0 !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cs-single__body .wp-block-gallery img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Citát / pullquote */
.cs-single__body blockquote {
  border-left: 3px solid var(--text);
  margin: 2.5em 0;
  padding: 0 0 0 28px;
}

.cs-single__body blockquote p {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.3;
}

/* Navigace pod case study */
.cs-single__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  padding-bottom: clamp(60px, 8vw, 120px);
}

@media (max-width: 640px) {
  .cs-single__strip { flex-direction: column; }
  .cs-single__strip-item { border-right: none; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .cs-single__strip-item:first-child { padding-right: 0; }
  .cs-single__strip-item:not(:first-child) { padding-left: 0; }
  .cs-single__strip-item:last-child { border-bottom: none; }
  .cs-single__body .wp-block-gallery { grid-template-columns: 1fr !important; }
  .cs-single__nav { flex-direction: column; align-items: flex-start; }
}

/* ── CASE STUDY PLACEHOLDERS ─────────────────────────────────────────────── */

.cs-row__img--placeholder {
  background: linear-gradient(135deg, var(--surface) 0%, #e8e4db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-row__img--placeholder span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
  opacity: .5;
}

.cs-row__btn--disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: .04em;
  font-style: italic;
}

.cs-row__btn--add {
  opacity: .6;
  border-bottom-style: dashed;
}

.cs-row--placeholder { opacity: .85; }

/* Placeholder cover */
.cs-single__cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #e8e4db, #d0c9bc);
}

/* Placeholder bloky v těle */
.cs-ph-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eae6e0, #d8d2c8);
  margin: clamp(36px,5vw,64px) 0;
}

.cs-ph-img--wide { aspect-ratio: 21 / 9; }
.cs-ph-img--tall { aspect-ratio: 4 / 3; }

.cs-ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: clamp(36px,5vw,64px) 0;
}

.cs-ph-grid .cs-ph-img {
  aspect-ratio: 4 / 3;
  margin: 0;
}

.cs-ph-notice {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-md, 16px);
  border-left: 3px solid var(--text);
}

.cs-ph-notice p {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin: 0 !important;
}

.cs-ph-notice a {
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

@media (max-width: 640px) {
  .cs-ph-grid { grid-template-columns: 1fr; }
}
