/*
Theme Name: Krkonošské Skibusy
Theme URI: https://krkonosske-skibusy.cz
Author: Krkonošské Skibusy s.r.o.
Description: Jednostránková šablona pro dopravní firmu Krkonošské Skibusy. Hardcoded obsah v PHP — texty a layout upravujte přímo v souborech template-parts/ a v style.css.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krkonosske-skibusy
*/

:root {
  /* Palette — alpine */
  --bg: #F5F2EB;
  --bg-2: #EDE8DD;
  --surface: #FFFFFF;
  --ink: #14181E;
  --ink-2: #5A6470;
  --ink-3: #8A93A0;
  --border: rgba(20, 24, 30, 0.10);
  --border-strong: rgba(20, 24, 30, 0.22);

  --primary: #0F2A3F;     /* deep alpine navy */
  --primary-ink: #FFFFFF;
  --accent: #E8472A;      /* signal ski-bus red-orange */
  --accent-ink: #FFFFFF;
  --snow: #DCE7EF;
  --pine: #234737;

  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 0 rgba(20,24,30,0.04), 0 1px 2px rgba(20,24,30,0.04);
  --shadow-md: 0 2px 0 rgba(20,24,30,0.03), 0 10px 24px -8px rgba(20,24,30,0.12);
  --shadow-lg: 0 40px 80px -24px rgba(15,42,63,0.35);

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0B1218;
  --bg-2: #111B23;
  --surface: #141F28;
  --ink: #F1EEE6;
  --ink-2: #A8B1BD;
  --ink-3: #6E7886;
  --border: rgba(241, 238, 230, 0.10);
  --border-strong: rgba(241, 238, 230, 0.22);
  --primary: #DCE7EF;
  --primary-ink: #0B1218;
  --snow: #1B2B38;
  --shadow-md: 0 2px 0 rgba(0,0,0,0.3), 0 10px 24px -8px rgba(0,0,0,0.5);
  --shadow-lg: 0 40px 80px -24px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--gutter);
}

/* shared section frame */
.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: currentColor; display: inline-block;
}
.section-title { font-size: clamp(34px, 4.8vw, 64px); max-width: 18ch; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #C53C22; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--primary); color: var(--primary-ink); }
.btn-dark:hover { background: #07182A; }
[data-theme="dark"] .btn-dark:hover { background: #E9EFF4; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Helpers */
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.04em;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: var(--accent);
}
.brand-mark span { position: relative; z-index: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-link {
  padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  border-radius: var(--radius); transition: color .15s ease, background .15s ease;
  position: relative; display: inline-block;
}
.nav-link:hover { color: var(--ink); background: var(--bg-2); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent);
}

.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-meta { display: flex; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.nav-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 4px rgba(43,182,115,0.18); }

/* Mobile nav */
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--border); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav { display: none; }
.site-header.is-mobile-open .mobile-nav { display: block; }
.site-header.is-mobile-open .mobile-nav .nav-links {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 8px 0 20px; border-top: 1px solid var(--border);
}
.site-header.is-mobile-open .mobile-nav .nav-link {
  padding: 14px var(--gutter); font-size: 16px; border-radius: 0;
}
.site-header.is-mobile-open .mobile-nav .nav-link.is-active::after { display: none; }
.site-header.is-mobile-open .mobile-nav .nav-link.is-active { background: var(--bg-2); }

@media (max-width: 960px) {
  .nav-links.desktop, .nav-meta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(120px, 16vw, 240px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  pointer-events: none;
  color: var(--ink);
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
}
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 28ch;
}
.hero-inner .hero-title { max-width: 18ch; }
.hero-inner .hero-lead { max-width: 52ch; }
.hero-inner .hero-actions { max-width: 60ch; }
@media (min-width: 720px) { .hero-inner { max-width: none; } }

.hero-eyebrow-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero-eyebrow-since { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-title { font-size: clamp(42px, 7vw, 96px); letter-spacing: -0.035em; font-weight: 700; line-height: 0.98; max-width: 14ch; margin: 0; }
.hero-title .accent-word { color: var(--accent); font-style: italic; font-weight: 500; }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero ridge silhouette — drawn as the section background */
.hb-contour { fill: none; stroke: currentColor; opacity: 0.10; stroke-width: 1; }
.hb-ridge-far  { fill: none; stroke: currentColor; opacity: 0.20; stroke-width: 1.25; stroke-linejoin: round; }
.hb-ridge-mid  { fill: none; stroke: currentColor; opacity: 0.45; stroke-width: 1.5;  stroke-linejoin: round; }
.hb-ridge-near { fill: none; stroke: currentColor; opacity: 0.90; stroke-width: 1.75; stroke-linejoin: round; }
.hb-ridge-fill-near { fill: var(--ink); opacity: 0.04; }
.hb-ridge-fill-mid  { fill: var(--ink); opacity: 0.025; }
.hb-snow { fill: currentColor; opacity: 0.55; }

/* Services */
.services-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.service:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service.is-highlight {
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
}
.service.is-highlight .service-text { color: rgba(255,255,255,0.78); }
.service.is-highlight .service-bullets { color: rgba(255,255,255,0.78); }
.service.is-highlight .service-tag { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.18); }
.service.is-highlight .service-icon { color: var(--accent); }
.service.is-highlight .service-bullets .dot { background: var(--accent); }
.service.is-highlight .service-title { color: #fff; }
[data-theme="dark"] .service.is-highlight { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="dark"] .service.is-highlight .service-icon { color: #fff; }
[data-theme="dark"] .service.is-highlight .service-bullets .dot { background: #fff; }
.service-top { display: flex; justify-content: space-between; align-items: start; }
.service-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 3px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--border);
}
.service-icon { width: 32px; height: 32px; color: var(--accent); }
.service-icon svg { width: 100%; height: 100%; }
.service-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.service-text { font-size: 15px; color: var(--ink-2); }
.service-bullets { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-family: var(--font-mono); color: var(--ink-2); }
.service-bullets li { display: flex; align-items: center; gap: 10px; }
.service-bullets .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.services-cta {
  margin-top: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px) clamp(24px, 3vw, 36px);
  display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.services-cta-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.services-cta-text { color: var(--ink-2); margin-top: 6px; font-size: 15px; }

/* USP */
.usp-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 960px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
  .usp-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .usp {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: auto;
  }
}
.usp {
  background: var(--surface);
  padding: clamp(24px, 2.5vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 280px;
  transition: background .2s ease;
}
.usp:hover { background: var(--bg-2); }
.usp-head { display: flex; justify-content: space-between; align-items: start; }
.usp-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.usp-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); }
.usp-icon svg { width: 100%; height: 100%; }
.usp-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.usp-text { color: var(--ink-2); font-size: 15px; }
.usp-foot { margin-top: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase; padding-top: 16px; border-top: 1px dashed var(--border); }

/* About */
.about-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.about-copy { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink); line-height: 1.6; }
.about-copy p + p { margin-top: 1em; }
.about-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.about-stat { background: var(--surface); padding: 28px; }
.about-stat-num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--primary); }
[data-theme="dark"] .about-stat-num { color: var(--ink); }
.about-stat-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-top: 10px; }

.about-side {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 2.5vw, 32px); display: flex; flex-direction: column; gap: 20px;
}
.about-photo {
  aspect-ratio: 5/4; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--bg-2);
}
.about-photo svg { width: 100%; height: 100%; display: block; }

/* Schedules */
.schedule-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .schedule-grid { grid-template-columns: 1fr; } }
.schedule-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 20px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: left; width: 100%; min-height: 200px; position: relative;
}
.schedule-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.schedule-card:hover .schedule-pdf-icon { color: var(--accent); }
.schedule-card:hover .schedule-open { color: var(--accent); }
.schedule-card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.schedule-pdf-icon { width: 28px; height: 28px; color: var(--ink-3); transition: color .15s ease; }
.schedule-pdf-icon svg { width: 100%; height: 100%; }
.schedule-route { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.015em; flex-wrap: wrap; margin-top: auto; }
.schedule-route .arrow { color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
.schedule-open { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); transition: color .15s ease; padding-top: 16px; border-top: 1px dashed var(--border); }
.schedule-open svg { width: 16px; height: 16px; }
.schedule-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill); background: var(--snow); color: var(--primary);
}
[data-theme="dark"] .schedule-pill { color: var(--ink); }
.schedule-pill.summer { background: #FFE8D6; color: #A24A0E; }
[data-theme="dark"] .schedule-pill.summer { background: rgba(255,160,80,0.18); color: #FFC58A; }

/* Gallery */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 140px; }
@media (max-width: 720px) { .gallery-grid { grid-auto-rows: 110px; } }
.gal {
  border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in;
  background: var(--bg-2); transition: transform .25s ease;
  padding: 0; text-align: left;
}
.gal:hover { transform: scale(1.01); }
.gal:hover .gal-meta { opacity: 1; transform: translateY(0); }
.gal svg { width: 100%; height: 100%; display: block; }

/* Reálné fotografie v dlaždicích — cover + center.
   Pro posun ohniska konkrétní fotky přidej inline style na <img>, např.:
     <img style="--gal-pos: top center" src="..." alt="...">
   nebo přidej třídu a v CSS přepiš --gal-pos. */
.gal img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--gal-pos, center center);
  display: block;
}
.gal-meta {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px;
  background: linear-gradient(transparent, rgba(15,42,63,0.85));
  color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
}
.gal-meta .num { opacity: 0.7; }

/* Gallery layout: 12-col mosaic */
.gal-extra { display: none !important; } /* Extra obrázky — jen v lightboxu, ne v mozaice */
.gal-1 { grid-column: span 6; grid-row: span 2; }
.gal-2 { grid-column: span 3; grid-row: span 1; }
.gal-3 { grid-column: span 3; grid-row: span 1; }
.gal-4 { grid-column: span 3; grid-row: span 1; }
.gal-5 { grid-column: span 3; grid-row: span 1; }
.gal-6 { grid-column: span 4; grid-row: span 1; }
.gal-7 { grid-column: span 4; grid-row: span 1; }
.gal-8 { grid-column: span 4; grid-row: span 1; }
@media (max-width: 720px) {
  .gal-1, .gal-2, .gal-3, .gal-4, .gal-5, .gal-6, .gal-7, .gal-8 { grid-column: span 6; grid-row: span 1; }
  .gal-1 { grid-row: span 2; }
}
.gallery-foot { margin-top: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.gallery-foot a { color: var(--accent); text-decoration: underline; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 20, 0.88); backdrop-filter: blur(8px); display: none; place-items: center; padding: clamp(8px, 2vw, 24px); animation: fade .2s ease; overflow: hidden; }
.lightbox.is-open { display: grid; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner { width: 100%; max-width: 1100px; max-height: 100%; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lightbox-stage { aspect-ratio: 16/10; max-height: 65vh; background: #0B1218; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.lightbox-stage svg { width: 100%; height: 100%; display: block; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0B1218; }
.lightbox-foot { display: flex; justify-content: space-between; align-items: center; color: #fff; gap: 12px; flex-wrap: wrap; }
.lightbox-caption { font-family: var(--font-display); font-size: 18px; font-weight: 500; min-width: 0; }
.lightbox-caption .sub { display: block; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; margin-top: 4px; }
.lightbox-nav { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.lb-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(255,255,255,0.10); color: #fff; transition: background .15s ease; border: 1px solid rgba(255,255,255,0.12); }
.lb-btn:hover { background: rgba(255,255,255,0.20); }
.lb-counter { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.7); min-width: 60px; text-align: center; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: var(--radius); background: rgba(255,255,255,0.10); color: #fff; display: grid; place-items: center; z-index: 2; }
.lb-close:hover { background: rgba(255,255,255,0.22); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; width: 100%; min-width: 0; flex-shrink: 0; }
.lb-thumb { width: 80px; height: 56px; border-radius: 4px; overflow: hidden; flex-shrink: 0; opacity: 0.5; border: 2px solid transparent; transition: opacity .15s ease, border-color .15s ease; cursor: pointer; background: #0B1218; padding: 0; }
.lb-thumb svg { width: 100%; height: 100%; display: block; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: var(--gal-pos, center center); display: block; }
.lb-thumb:hover { opacity: 0.8; }
.lb-thumb.is-active { opacity: 1; border-color: var(--accent); }

@media (max-width: 720px) {
  .lightbox-stage { aspect-ratio: 4/3; max-height: 50vh; }
  .lightbox-caption { font-size: 15px; }
  .lightbox-caption .sub { font-size: 11px; }
  .lb-counter { font-size: 12px; min-width: 50px; }
  .lb-btn { width: 38px; height: 38px; }
  .lb-thumb { width: 56px; height: 40px; }
  .lb-close { top: 8px; right: 8px; width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .lightbox-stage { max-height: 45vh; }
  .lightbox-foot { gap: 8px; }
}

/* Schedules modal (PDF preview) */
.pdf-modal { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 20, 0.78); backdrop-filter: blur(6px); display: none; place-items: center; padding: 24px; animation: fade .2s ease; }
.pdf-modal.is-open { display: grid; }
.pdf-modal-inner { width: 100%; max-width: 920px; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: 90vh; }
.pdf-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); gap: 16px; }
.pdf-modal-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.pdf-modal-title .sub { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; margin-top: 4px; }
.pdf-modal-actions { display: flex; gap: 8px; align-items: center; }
.pdf-modal-body {
  padding: clamp(12px, 2vw, 24px); overflow: auto; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}

/* Obrázkový náhled (PNG/JPG/WebP) — responzivní, nikdy nepřeteče modal */
.pdf-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

/* PDF náhled — iframe vyplní dostupný prostor v modalu */
.pdf-iframe {
  display: block;
  width: 100%;
  height: 80vh;
  max-height: 80vh;
  border: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

/* Prázdný stav (file_url je '#' nebo nevyplněno) */
.pdf-empty {
  padding: clamp(32px, 5vw, 64px);
  text-align: center; color: var(--ink-2);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .pdf-image { max-height: 70vh; }
  .pdf-iframe { height: 70vh; max-height: 70vh; }
}

/* Contact */
.contact-grid { display: grid; gap: clamp(24px, 3vw, 48px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 28px; }
.contact-brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.contact-brand-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-rows { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; gap: 14px; align-items: start; }
.contact-icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--bg-2); display: grid; place-items: center; flex-shrink: 0; color: var(--accent); }
.contact-icon svg { width: 18px; height: 18px; }
.contact-row-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.contact-row-value { font-size: 15px; color: var(--ink); line-height: 1.45; }
.contact-row-value a:hover { color: var(--accent); }

.map-mini {
  margin-top: 8px; aspect-ratio: 16/8; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); position: relative; border: 1px solid var(--border);
}
.map-mini svg { width: 100%; height: 100%; display: block; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-grid + .form-grid { margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); padding: 12px 14px; border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--ink); background: var(--surface);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); background: rgba(232,71,42,0.04); }
.field-error { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.04em; display: none; }
.field.has-error .field-error { display: block; }
.field-check { flex-direction: row; align-items: start; gap: 10px; cursor: pointer; user-select: none; margin-top: 16px; }
.field-check input { width: auto; }
.field-check span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.field-check a { text-decoration: underline; color: var(--ink); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

.form-success {
  background: var(--surface); border: 1px solid #2BB673;
  border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 48px); text-align: center;
  display: none; flex-direction: column; align-items: center; gap: 14px;
}
.form-success.is-visible { display: flex; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: #DDF3E5; color: #1F7A3F; display: grid; place-items: center; }
.form-success .check svg { width: 28px; height: 28px; }
.form-success h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.form-success p { color: var(--ink-2); max-width: 40ch; }
[data-theme="dark"] .form-success .check { background: rgba(43,182,115,0.18); color: #6EE6A1; }

/* WPForms — zděděné styly z vestavěného formuláře (.form). */
.form .wpforms-container { margin: 0; }
.form .wpforms-form { display: flex; flex-direction: column; gap: 16px; }
.form .wpforms-field { padding: 0; display: flex; flex-direction: column; gap: 6px; }
.form .wpforms-field-label,
.form .wpforms-field-sublabel {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); margin: 0; font-weight: 500;
}
.form .wpforms-required-label { color: var(--accent); margin-left: 4px; }
.form .wpforms-field input[type="text"],
.form .wpforms-field input[type="email"],
.form .wpforms-field input[type="tel"],
.form .wpforms-field input[type="url"],
.form .wpforms-field input[type="number"],
.form .wpforms-field input[type="date"],
.form .wpforms-field input[type="password"],
.form .wpforms-field textarea,
.form .wpforms-field select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); padding: 12px 14px; border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease;
  width: 100%; max-width: none;
  box-shadow: none;
}
.form .wpforms-field input:focus,
.form .wpforms-field textarea:focus,
.form .wpforms-field select:focus {
  outline: 0; border-color: var(--ink); background: var(--surface); box-shadow: none;
}
.form .wpforms-field textarea { resize: vertical; min-height: 120px; }

/* Side-by-side rozdělení polí přes WPForms `Field Size` / column layouty */
.form .wpforms-field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .wpforms-field-row { grid-template-columns: 1fr 1fr; } }
.form .wpforms-field-row-block { padding: 0; }

/* Validační chyby */
.form .wpforms-field.wpforms-has-error input,
.form .wpforms-field.wpforms-has-error textarea,
.form .wpforms-field.wpforms-has-error select,
.form .wpforms-field input.wpforms-error,
.form .wpforms-field textarea.wpforms-error,
.form .wpforms-field select.wpforms-error {
  border-color: var(--accent); background: rgba(232, 71, 42, 0.04);
}
.form .wpforms-error,
.form em.wpforms-error,
.form label.wpforms-error {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.04em; display: block; margin-top: 4px; font-style: normal;
}

/* Checkbox / radio (GDPR souhlas atd.) */
.form .wpforms-field-checkbox ul,
.form .wpforms-field-radio ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px;
}
.form .wpforms-field-checkbox li,
.form .wpforms-field-radio li {
  display: flex; align-items: flex-start; gap: 10px;
}
.form .wpforms-field-checkbox input[type="checkbox"],
.form .wpforms-field-radio input[type="radio"] { width: auto; margin: 4px 0 0; }
.form .wpforms-field-checkbox label,
.form .wpforms-field-radio label {
  font-size: 13px; color: var(--ink-2); line-height: 1.45; font-family: var(--font-body); text-transform: none; letter-spacing: 0;
}
.form .wpforms-field-checkbox label a,
.form .wpforms-field-radio label a { text-decoration: underline; color: var(--ink); }

/* Submit tlačítko — vzhled jako .btn-primary */
.form .wpforms-submit-container { margin-top: 8px; display: flex; justify-content: flex-end; }
.form button.wpforms-submit,
.form .wpforms-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.form button.wpforms-submit:hover,
.form .wpforms-submit:hover { background: #C53C22; transform: translateY(-1px); }
.form button.wpforms-submit:active,
.form .wpforms-submit:active { transform: translateY(0); }
.form button.wpforms-submit[disabled],
.form .wpforms-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Confirmation message (po odeslání) */
.form .wpforms-confirmation-container,
.form div[id^="wpforms-confirmation"] {
  background: transparent; border: 1px solid #2BB673; color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px);
  font-size: 15px;
}
[data-theme="dark"] .form .wpforms-confirmation-container,
[data-theme="dark"] .form div[id^="wpforms-confirmation"] { border-color: rgba(43, 182, 115, 0.5); }

/* Description / drobné texty */
.form .wpforms-field-description {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em; margin-top: 2px;
}

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: clamp(48px, 6vw, 80px) 0 32px; margin-top: clamp(64px, 8vw, 120px); }
[data-theme="dark"] .site-footer { background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand .brand-mark::after { background: #FFFFFF; }
.footer-brand .brand-name, .footer-brand .brand-sub { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 30ch; color: rgba(255,255,255,0.7); }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; }
[data-theme="dark"] .footer-col h4 { color: var(--ink-3); }
[data-theme="dark"] .footer-col a { color: var(--ink-2); }
[data-theme="dark"] .footer-col a:hover { color: var(--ink); }
[data-theme="dark"] .footer-bottom { color: var(--ink-3); }

/* Anchor offset for sticky header */
section[id] { scroll-margin-top: 80px; }

/* Mobile body adjustments */
@media (max-width: 540px) {
  .nav-cta .btn-ghost { display: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Body scroll lock when modal open */
body.no-scroll { overflow: hidden; }
