/*
Theme Name: Sklenářství Tokarský
Theme URI: https://example.com
Author: Sklenářství Tokarský
Author URI: https://example.com
Description: Moderní vlastní WordPress šablona pro sklenářskou firmu. Světlý i tmavý režim, sklenářský "glassmorphism" design, vlastní typ obsahu pro reference, bezpečný kontaktní formulář bez závislosti na pluginech.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sklenarstvi-tokarsky
Tags: custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready, light-dark

Tento soubor obsahuje kompletní CSS šablony. Barvy a proměnné najdeš hned
na začátku v sekci "PROMĚNNÉ / THEME TOKENS" - většinu vzhledu tak můžeš
upravit jen úpravou pár řádků.
*/

/* =========================================================
   1) RESET
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul[class], ol[class] { list-style: none; padding: 0; margin: 0; }

img, picture, svg { max-width: 100%; display: block; }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

/* =========================================================
   2) PROMĚNNÉ / THEME TOKENS (světlý režim = výchozí)
   ========================================================= */
:root {
  /* --- barvy značky (uprav podle vlastního loga) --- */
  --st-accent: #2f7de6;
  --st-accent-2: #17c3d1;
  --st-accent-rgb: 47, 125, 230;
  --st-accent-2-rgb: 23, 195, 209;

  /* --- světlý režim --- */
  --st-bg: #f4f7fb;
  --st-bg-alt: #ffffff;
  --st-surface: rgba(255, 255, 255, 0.62);
  --st-surface-solid: #ffffff;
  --st-surface-strong: rgba(255, 255, 255, 0.85);
  --st-border: rgba(13, 22, 34, 0.09);
  --st-text: #10161f;
  --st-text-muted: #57626f;
  --st-text-soft: #7c8794;
  --st-shadow: 0 20px 45px -20px rgba(20, 35, 60, 0.25);
  --st-header-bg: rgba(255, 255, 255, 0.72);
  --st-hero-glow-1: rgba(var(--st-accent-rgb), 0.28);
  --st-hero-glow-2: rgba(var(--st-accent-2-rgb), 0.22);
  --st-overlay-line: rgba(13, 22, 34, 0.06);

  --st-radius-sm: 10px;
  --st-radius-md: 18px;
  --st-radius-lg: 28px;
  --st-container: 1200px;
  --st-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --st-font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --st-bg: #0a0f16;
  --st-bg-alt: #10161f;
  --st-surface: rgba(255, 255, 255, 0.055);
  --st-surface-solid: #131a24;
  --st-surface-strong: rgba(19, 26, 36, 0.9);
  --st-border: rgba(255, 255, 255, 0.09);
  --st-text: #eef3f8;
  --st-text-muted: #a4b0bd;
  --st-text-soft: #7c8794;
  --st-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.55);
  --st-header-bg: rgba(10, 15, 22, 0.68);
  --st-hero-glow-1: rgba(var(--st-accent-rgb), 0.35);
  --st-hero-glow-2: rgba(var(--st-accent-2-rgb), 0.28);
  --st-overlay-line: rgba(255, 255, 255, 0.06);
}

/* respektuj systémové nastavení, pokud návštěvník ještě nic nepřepnul */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --st-bg: #0a0f16;
    --st-bg-alt: #10161f;
    --st-surface: rgba(255, 255, 255, 0.055);
    --st-surface-solid: #131a24;
    --st-surface-strong: rgba(19, 26, 36, 0.9);
    --st-border: rgba(255, 255, 255, 0.09);
    --st-text: #eef3f8;
    --st-text-muted: #a4b0bd;
    --st-text-soft: #7c8794;
    --st-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.55);
    --st-header-bg: rgba(10, 15, 22, 0.68);
    --st-hero-glow-1: rgba(var(--st-accent-rgb), 0.35);
    --st-hero-glow-2: rgba(var(--st-accent-2-rgb), 0.28);
    --st-overlay-line: rgba(255, 255, 255, 0.06);
  }
}

/* =========================================================
   3) ZÁKLAD
   ========================================================= */
body {
  background: var(--st-bg);
  color: var(--st-text);
  font-family: var(--st-font);
  font-size: 16px;
  line-height: 1.65;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}

.st-container {
  width: 100%;
  max-width: var(--st-container);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 {
  font-family: var(--st-font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--st-text-muted); }

.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-accent);
  margin-bottom: 14px;
}

.st-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--st-accent), var(--st-accent-2));
  border-radius: 2px;
}

.st-section {
  padding: clamp(56px, 8vw, 110px) 0;
  position: relative;
}

.st-section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.st-section-head.center { margin-inline: auto; text-align: center; }

/* =========================================================
   4) GLASS UTILITY (sklenářský vizuální motiv)
   ========================================================= */
.st-glass {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--st-shadow);
}

.st-glass-solid {
  background: var(--st-surface-solid);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  box-shadow: var(--st-shadow);
}

/* =========================================================
   5) TLAČÍTKA
   ========================================================= */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.st-btn-primary {
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(var(--st-accent-rgb), 0.55);
}
.st-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(var(--st-accent-rgb), 0.65); }

.st-btn-ghost {
  background: var(--st-surface);
  border-color: var(--st-border);
  color: var(--st-text);
  backdrop-filter: blur(10px);
}
.st-btn-ghost:hover { border-color: var(--st-accent); color: var(--st-accent); transform: translateY(-2px); }

.st-btn-sm { padding: 10px 18px; font-size: 0.88rem; }

.st-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================================
   6) HLAVIČKA / NAVIGACE
   ========================================================= */
.st-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--st-header-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--st-overlay-line);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.st-header.is-scrolled { box-shadow: 0 12px 30px -18px rgba(0,0,0,.35); }

.st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
}

.st-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--st-font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--st-text);
}

.st-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  box-shadow: 0 10px 24px -10px rgba(var(--st-accent-rgb), .6);
  flex-shrink: 0;
}
.st-logo-mark svg { width: 22px; height: 22px; }
.st-logo-mark img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }

.st-logo-custom { align-items: center; }
.st-logo-custom .custom-logo-link { display: block; }
.st-logo-custom img.custom-logo { max-height: 48px; width: auto; display: block; }

.st-logo small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--st-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-nav { display: flex; align-items: center; gap: 6px; }
.st-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.st-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--st-text-muted);
  transition: background-color .2s ease, color .2s ease;
}
.st-nav a:hover, .st-nav .current-menu-item > a {
  background: var(--st-surface);
  color: var(--st-text);
}

.st-header-actions { display: flex; align-items: center; gap: 10px; }

.st-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--st-text);
}
.st-phone-pill svg { width: 16px; height: 16px; color: var(--st-accent); }

.st-theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  color: var(--st-text);
  flex-shrink: 0;
}
.st-theme-toggle svg { width: 19px; height: 19px; }
.st-theme-toggle .st-icon-moon { display: none; }
:root[data-theme="dark"] .st-theme-toggle .st-icon-sun { display: none; }
:root[data-theme="dark"] .st-theme-toggle .st-icon-moon { display: block; }

.st-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  position: relative;
}
.st-burger span, .st-burger span::before, .st-burger span::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--st-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.st-burger span { top: 20px; }
.st-burger span::before { top: -7px; }
.st-burger span::after { top: 7px; }
.st-burger.is-open span { background: transparent; }
.st-burger.is-open span::before { top: 0; transform: rotate(45deg); }
.st-burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   7) HERO
   ========================================================= */
.st-hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 70px);
  overflow: hidden;
}

.st-hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(650px 420px at 12% 15%, var(--st-hero-glow-1), transparent 60%),
    radial-gradient(600px 500px at 88% 30%, var(--st-hero-glow-2), transparent 60%);
  filter: blur(2px);
}

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

.st-hero h1 { margin-bottom: 20px; }
.st-hero h1 .st-accent-text {
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.st-hero-lead {
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 30px;
}

.st-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.st-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.st-hero-stats div strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--st-font-display);
  font-weight: 800;
  color: var(--st-text);
}
.st-hero-stats div span {
  font-size: 0.82rem;
  color: var(--st-text-muted);
}

.st-hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  border: 1px solid var(--st-border);
  background: linear-gradient(200deg, var(--st-surface-solid), var(--st-bg));
  box-shadow: var(--st-shadow);
}
.st-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.st-hero-visual .st-badge-float {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: calc(100% - 44px);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-hero-visual .st-badge-float svg { width: 30px; height: 30px; color: var(--st-accent); flex-shrink: 0; }
.st-hero-visual .st-badge-float strong { display: block; font-size: .95rem; }
.st-hero-visual .st-badge-float span { font-size: .78rem; color: var(--st-text-muted); }

/* =========================================================
   8) SLUŽBY
   ========================================================= */
.st-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.st-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.st-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.st-card {
  padding: 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.st-card:hover { transform: translateY(-6px); border-color: rgba(var(--st-accent-rgb), .4); }

.st-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(var(--st-accent-rgb),.16), rgba(var(--st-accent-2-rgb),.16));
  color: var(--st-accent);
}
.st-card-icon svg { width: 26px; height: 26px; }

.st-card h3 { margin-bottom: 10px; }
.st-card p { font-size: 0.95rem; margin: 0; }

/* =========================================================
   9) PROČ MY / FEATURES
   ========================================================= */
.st-why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.st-feature-list { display: grid; gap: 18px; }
.st-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.st-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--st-accent);
}
.st-feature-icon svg { width: 20px; height: 20px; }
.st-feature h4 { font-size: 1.02rem; margin-bottom: 4px; }
.st-feature p { font-size: .92rem; margin: 0; }

.st-why-visual {
  position: relative;
  border-radius: var(--st-radius-lg);
  min-height: 380px;
  border: 1px solid var(--st-border);
  background:
    repeating-linear-gradient(135deg, rgba(var(--st-accent-rgb),.10) 0 2px, transparent 2px 42px),
    linear-gradient(160deg, var(--st-surface-solid), var(--st-bg));
  box-shadow: var(--st-shadow);
  overflow: hidden;
}
.st-why-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.st-why-visual .st-pane {
  position: absolute;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0));
  backdrop-filter: blur(4px);
}
.st-why-visual .p1 { width: 55%; height: 40%; top: 8%; left: 6%; }
.st-why-visual .p2 { width: 40%; height: 34%; bottom: 10%; right: 8%; }

/* =========================================================
   10) REFERENCE / PORTFOLIO GRID
   ========================================================= */
.st-ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.st-ref-card { overflow: hidden; display: flex; flex-direction: column; }

.st-ref-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.st-ref-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.st-ref-card:hover .st-ref-thumb img { transform: scale(1.06); }

.st-ref-thumb.placeholder {
  background: linear-gradient(135deg, rgba(var(--st-accent-rgb),.35), rgba(var(--st-accent-2-rgb),.2));
  display: grid;
  place-items: center;
}
.st-ref-thumb.placeholder svg { width: 44px; height: 44px; color: #fff; opacity: .85; }

.st-ref-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(10,15,22,.55);
  color: #fff;
  backdrop-filter: blur(6px);
}

.st-ref-photocount {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(10,15,22,.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.st-ref-photocount svg { width: 14px; height: 14px; flex-shrink: 0; }

.st-ref-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.st-ref-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.st-ref-body p { font-size: .92rem; flex: 1; }
.st-ref-more { margin-top: 14px; font-weight: 700; font-size: .88rem; color: var(--st-accent); display: inline-flex; align-items: center; gap: 6px; }
.st-ref-more svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s ease; }
.st-ref-card:hover .st-ref-more svg { transform: translateX(3px); }

/* =========================================================
   11) REFERENCE - FILTR
   ========================================================= */
.st-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.st-filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  font-weight: 600;
  font-size: .88rem;
  color: var(--st-text-muted);
}
.st-filter-btn.is-active, .st-filter-btn:hover { color: #fff; background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2)); border-color: transparent; }

/* =========================================================
   12) REFERENCE / TESTIMONIALS
   ========================================================= */
.st-quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.st-quote { padding: 28px 26px; }
.st-quote-stars { color: #f5a623; font-size: .95rem; margin-bottom: 14px; letter-spacing: 2px; }
.st-quote p.st-quote-text { color: var(--st-text); font-size: .98rem; margin-bottom: 18px; }
.st-quote-person { display: flex; align-items: center; gap: 12px; }
.st-quote-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #fff; font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.st-quote-person strong { display: block; font-size: .92rem; }
.st-quote-person span { font-size: .8rem; color: var(--st-text-soft); }

/* =========================================================
   13) STATS PÁS
   ========================================================= */
.st-stats-strip {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 36px 30px;
  flex-wrap: wrap;
}
.st-stats-strip div { text-align: center; }
.st-stats-strip strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--st-font-display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.st-stats-strip span { font-size: .84rem; color: var(--st-text-muted); }

/* =========================================================
   14) CTA BANNER
   ========================================================= */
.st-cta {
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  background:
    linear-gradient(135deg, rgba(var(--st-accent-rgb),.9), rgba(var(--st-accent-2-rgb),.85));
  border-radius: var(--st-radius-lg);
  color: #fff;
}
.st-cta h2, .st-cta p { color: #fff; }
.st-cta p { opacity: .92; margin-top: 8px; max-width: 46ch; }
.st-cta .st-btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.st-cta .st-btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; border-color: #fff; }
.st-cta .st-btn-primary { background: #fff; color: var(--st-accent); box-shadow: none; }
.st-cta .st-btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(0,0,0,.25); }

/* =========================================================
   15) O NÁS - stránka
   ========================================================= */
.st-page-hero {
  padding: clamp(50px, 8vw, 84px) 0 40px;
  text-align: center;
}
.st-page-hero .st-eyebrow { justify-content: center; }
.st-breadcrumb { font-size: .85rem; color: var(--st-text-soft); margin-bottom: 14px; }
.st-breadcrumb a:hover { color: var(--st-accent); }

.st-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.st-story-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--st-radius-lg);
  border: 1px solid var(--st-border);
  background: linear-gradient(150deg, rgba(var(--st-accent-rgb),.3), rgba(var(--st-accent-2-rgb),.16) 50%, transparent 75%), linear-gradient(200deg, var(--st-surface-solid), var(--st-bg));
  box-shadow: var(--st-shadow);
  overflow: hidden;
}
.st-story-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

.st-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.st-timeline { display: grid; gap: 26px; position: relative; padding-left: 28px; }
.st-timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--st-accent), var(--st-accent-2));
}
.st-timeline-item { position: relative; }
.st-timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--st-bg); border: 3px solid var(--st-accent);
}
.st-timeline-item strong { color: var(--st-accent); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.st-timeline-item h4 { margin: 4px 0 6px; }
.st-timeline-item p { margin: 0; font-size: .93rem; }

/* ---- podnadpis pod H1 na podstránkách ---- */
.st-page-hero-lead {
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 16px auto 0;
}

/* ---- odstavce v sekci "Kdo jsme" ---- */
.st-story h2 { margin-bottom: 18px; }
.st-story p { margin-bottom: 15px; }
.st-story p:last-child { margin-bottom: 0; }
.st-story .entry-content p { margin-bottom: 15px; }

/* ---- skutečná fotka v sekci "Kdo jsme" ---- */
.st-story-photo {
  margin: 0;
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow);
  background: var(--st-surface-solid);
}
.st-story-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.st-story-photo figcaption {
  padding: 14px 18px;
  font-size: .86rem;
  color: var(--st-text-muted);
  border-top: 1px solid var(--st-border);
}

/* ---- upozornění, že fotka ještě chybí (jen dokud není nahraná) ---- */
.st-story-visual.st-photo-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 40px 34px;
  aspect-ratio: 4 / 5;
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(var(--st-accent-rgb), .45);
}
.st-story-visual.st-photo-missing svg {
  position: static;
  width: 46px;
  height: 46px;
  color: var(--st-accent);
  opacity: .9;
}
.st-story-visual.st-photo-missing strong { font-size: 1.02rem; color: var(--st-text); }
.st-story-visual.st-photo-missing span {
  font-size: .88rem;
  color: var(--st-text-muted);
  max-width: 34ch;
  line-height: 1.55;
}

/* ---- bod časové osy, který ještě čeká na doplnění ---- */
.st-timeline-item.is-todo strong,
.st-timeline-item.is-todo h4 { color: var(--st-text-soft); }
.st-timeline-item.is-todo::before { border-color: var(--st-text-soft); }
.st-timeline-item.is-todo p { font-style: italic; }

/* =========================================================
   16) KONTAKT
   ========================================================= */
.st-contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: flex-start;
}

.st-contact-info { padding: 32px 28px; display: grid; gap: 22px; }
.st-contact-row { display: flex; gap: 14px; align-items: flex-start; }
.st-contact-row .st-feature-icon { margin-top: 2px; }
.st-contact-row strong { display: block; margin-bottom: 3px; }
.st-contact-row a:hover { color: var(--st-accent); }
.st-contact-row p { margin: 0; font-size: .92rem; }

.st-social-row { display: flex; gap: 10px; margin-top: 4px; }
.st-social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--st-surface); border: 1px solid var(--st-border);
}
.st-social-row a:hover { color: var(--st-accent); border-color: var(--st-accent); }
.st-social-row svg { width: 17px; height: 17px; }

.st-map-frame {
  border-radius: var(--st-radius-md);
  overflow: hidden;
  border: 1px solid var(--st-border);
  height: 220px;
  margin-top: 6px;
}
.st-map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15); }

.st-form-card { padding: 36px 34px; }
.st-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.st-form-field { display: grid; gap: 8px; margin-bottom: 18px; }
.st-form-field.full { grid-column: 1 / -1; }
.st-form-field label { font-size: .88rem; font-weight: 600; }
.st-form-field input,
.st-form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--st-radius-sm);
  border: 1px solid var(--st-border);
  background: var(--st-bg-alt);
  color: var(--st-text);
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.st-form-field input:focus,
.st-form-field textarea:focus {
  outline: none;
  border-color: var(--st-accent);
  box-shadow: 0 0 0 4px rgba(var(--st-accent-rgb), .15);
}
.st-form-field textarea { resize: vertical; min-height: 130px; }

.st-form-field input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
}
.st-form-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}
.st-form-hint { font-size: .78rem; color: var(--st-text-soft); }

.st-form-note { font-size: .8rem; color: var(--st-text-soft); margin-top: 6px; }
.st-form-note a { color: var(--st-accent); text-decoration: underline; }

.st-alert {
  padding: 14px 18px;
  border-radius: var(--st-radius-sm);
  font-size: .92rem;
  margin-bottom: 22px;
  border: 1px solid transparent;
}
.st-alert-success { background: rgba(34, 197, 94, .12); color: #1a9a53; border-color: rgba(34,197,94,.3); }
.st-alert-error { background: rgba(239, 68, 68, .1); color: #dc2626; border-color: rgba(239,68,68,.3); }

/* =========================================================
   17) SINGLE REFERENCE
   ========================================================= */
.st-single-ref-hero { border-radius: var(--st-radius-md); overflow: hidden; margin: 28px 0 32px; }
.st-single-ref-hero img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.st-single-ref-hero.placeholder { aspect-ratio: 16/10; border: 1px solid var(--st-border); display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--st-accent-rgb),.35), rgba(var(--st-accent-2-rgb),.2)); }
.st-single-ref-hero.placeholder svg { width: 60px; height: 60px; color: #fff; opacity: .85; }
.st-single-ref-body { max-width: 760px; margin-inline: auto; }
.st-single-ref-body .st-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.st-single-ref-body .st-meta span { font-size: .85rem; color: var(--st-text-soft); }
.st-single-ref-body p { font-size: 1.02rem; }
.st-back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--st-accent); margin-bottom: 30px; }
.st-back-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================================
   18) FOOTER
   ========================================================= */
.st-footer {
  border-top: 1px solid var(--st-overlay-line);
  background: var(--st-bg-alt);
  padding-top: 60px;
}
.st-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.st-footer .st-logo { margin-bottom: 14px; }
.st-footer p { font-size: .92rem; max-width: 34ch; }
.st-footer h4 { font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; color: var(--st-text-soft); }
.st-footer-links { display: grid; gap: 10px; }
.st-footer-links a { font-size: .93rem; color: var(--st-text-muted); }
.st-footer-links a:hover { color: var(--st-accent); }
.st-footer-bottom {
  border-top: 1px solid var(--st-overlay-line);
  padding: 20px 0 26px;
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--st-text-soft);
}

/* =========================================================
   19) 404 / GENERICKÉ
   ========================================================= */
.st-404 { text-align: center; padding: clamp(70px, 12vw, 140px) 0; }
.st-404 .st-404-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}

.st-content-page { max-width: 780px; margin-inline: auto; }
.st-content-page h2 { margin-top: 34px; margin-bottom: 14px; }
.st-content-page p { margin-bottom: 16px; }
.st-content-page ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.st-content-page ul li { margin-bottom: 6px; color: var(--st-text-muted); }

/* =========================================================
   20) SCROLL REVEAL ANIMACE
   ========================================================= */
.st-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.st-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   21) RESPONZIVITA
   ========================================================= */
@media (max-width: 980px) {
  .st-hero-grid { grid-template-columns: 1fr; }
  .st-hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .st-why { grid-template-columns: 1fr; }
  .st-why-visual { order: -1; min-height: 260px; }
  .st-story { grid-template-columns: 1fr; }
  .st-contact-grid { grid-template-columns: 1fr; }
  .st-grid-3, .st-ref-grid, .st-quote-grid, .st-values-grid { grid-template-columns: repeat(2, 1fr); }
  .st-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .st-stats-strip { gap: 36px; }
  .st-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .st-nav { display: none; }
  .st-burger { display: block; }
  .st-phone-pill span { display: none; }

  .st-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px 24px 22px;
    background: var(--st-header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--st-overlay-line);
  }
  .st-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .st-nav.is-open a { display: block; padding: 12px 14px; }

  .st-grid-3, .st-ref-grid, .st-quote-grid, .st-values-grid, .st-grid-4, .st-form-grid { grid-template-columns: 1fr; }
  .st-stats-strip { gap: 24px; padding: 28px 20px; }
  .st-cta { padding: 34px 26px; flex-direction: column; text-align: center; }
  .st-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .st-hero-stats { gap: 20px; }
}

/* =========================================================
   19) LIGHTBOX (celoobrazovkové zobrazení fotek realizace)
   ========================================================= */
.st-lightbox-content figure.wp-block-image { cursor: zoom-in; }
.st-lightbox-content figure.wp-block-image img { border-radius: var(--st-radius-md); }

.st-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(6, 9, 14, .94);
  backdrop-filter: blur(4px);
}
.st-lightbox.is-open { display: flex; flex-direction: column; }

.st-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: #f2f4f7;
  flex-shrink: 0;
}
.st-lightbox-counter { font-size: .85rem; font-weight: 600; letter-spacing: .03em; opacity: .8; font-variant-numeric: tabular-nums; }
.st-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}
.st-lightbox-close:hover { background: rgba(255,255,255,.18); }
.st-lightbox-close svg { width: 20px; height: 20px; }

.st-lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 70px 20px;
}
.st-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--st-radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.st-lightbox-caption {
  text-align: center;
  color: #f2f4f7;
  font-size: .92rem;
  opacity: .85;
  padding: 4px 20px 18px;
  flex-shrink: 0;
}

.st-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}
.st-lightbox-nav:hover { background: rgba(255,255,255,.2); }
.st-lightbox-nav svg { width: 24px; height: 24px; }
.st-lightbox-prev { left: 14px; }
.st-lightbox-next { right: 14px; }
.st-lightbox-nav[hidden] { display: none; }

@media (max-width: 640px) {
  .st-lightbox-stage { padding: 0 14px 14px; }
  .st-lightbox-nav { width: 40px; height: 40px; }
  .st-lightbox-prev { left: 6px; }
  .st-lightbox-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-lightbox-close, .st-lightbox-nav { transition: none; }
}
