:root {
  --bg-dark: #ffffff;
  --bg-darker: #f3f2ee;
  --surface: #ffffff;
  --surface-strong: #fafaf7;
  --border: #e2e0d8;
  --border-strong: #111111;
  --text: #111111;
  --text-muted: #6b6a63;
  --accent: #ff5a1f;
  --accent-2: #ff8a3d;
  --accent-gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius: 6px;
  --hard-shadow: 5px 5px 0 rgba(17, 17, 17, 0.08);
  --hard-shadow-hover: 7px 7px 0 rgba(17, 17, 17, 0.12);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3 { margin: 0 0 12px; line-height: 1.25; }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin: 14px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 2px solid var(--border-strong);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled { box-shadow: 0 4px 16px rgba(17, 17, 17, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 72px;
  transition: height 0.25s ease;
}

.site-header.scrolled .header-inner { height: 56px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-logo { height: 36px; width: auto; }

.brand-name {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  animation: nav-cta-pulse 2.6s ease-in-out infinite;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--text) !important;
  color: #fff !important;
  animation-play-state: paused;
}

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(255, 90, 31, 0); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */

.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #150d0a;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px),
    radial-gradient(circle at 18% 15%, rgba(255, 138, 61, 0.55), transparent 55%),
    linear-gradient(135deg, #0d0d0d 0%, #331608 55%, #5c220c 100%);
  background-size: 26px 26px, 160% 160%, cover;
  background-repeat: repeat, no-repeat, no-repeat;
  z-index: -1;
  animation: hero-bg-shift 16s ease-in-out infinite alternate;
}

@keyframes hero-bg-shift {
  from { background-position: 0 0, 10% 10%, center; }
  to   { background-position: 0 0, 32% 28%, center; }
}

.hero-logo {
  height: 240px;
  max-width: 100%;
  margin-bottom: 24px;
  opacity: 0;
  animation: hero-in 0.8s ease forwards;
  animation-delay: 0.05s;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 16px;
  color: #ffffff;
  opacity: 0;
  animation: hero-in 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  opacity: 0;
  animation: hero-in 0.8s ease forwards;
  animation-delay: 0.35s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-in 0.8s ease forwards;
  animation-delay: 0.5s;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}

.hero-actions .btn-outline:hover {
  background: #ffffff;
  color: var(--text) !important;
  border-color: #ffffff;
}

.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  border: 2px solid var(--border-strong);
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn:hover::before { animation: btn-shine 0.75s ease; }

@keyframes btn-shine {
  from { left: -75%; }
  to { left: 125%; }
}

.btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s, margin-left 0.2s, width 0.2s;
  vertical-align: middle;
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(0);
  margin-left: 8px;
  width: 1em;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
  box-shadow: var(--hard-shadow);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard-shadow-hover);
  background: #e64f16;
  border-color: #e64f16;
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text) !important;
  background: var(--surface);
}

.btn-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard-shadow);
  background: var(--text);
  color: #fff !important;
  border-color: var(--text);
}

/* Services */

.services { padding: 90px 0; }

.services-list {
  margin-top: 48px;
  border-top: 2px solid var(--border-strong);
}

.service-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 2px solid var(--border-strong);
  transition: background 0.2s;
}

.service-row:hover { background: var(--bg-darker); }

.service-row.reverse { flex-direction: row-reverse; }

.service-row.reverse .service-row-body { text-align: right; }

.service-row-index {
  flex-shrink: 0;
  width: 76px;
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.14);
  line-height: 1;
}

.service-row-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: var(--bg-darker);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  animation: icon-float 3.4s ease-in-out infinite;
}

.service-row:nth-child(2) .service-row-icon { animation-delay: 0.3s; }
.service-row:nth-child(3) .service-row-icon { animation-delay: 0.6s; }
.service-row:nth-child(4) .service-row-icon { animation-delay: 0.9s; }
.service-row:nth-child(5) .service-row-icon { animation-delay: 1.2s; }

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.service-row:hover .service-row-icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.12) rotate(-6deg);
  animation-play-state: paused;
}

.service-row-body { flex: 1; min-width: 0; }

.service-row-body h3 { font-size: 1.3rem; }

.service-row-body p {
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}

.service-row.reverse .service-row-body p { margin-left: auto; }

/* Events */

.events { padding: 60px 0 90px; background: var(--bg-darker); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.events-empty {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.event-card {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.event-card:hover { transform: translate(-3px, -3px); box-shadow: var(--hard-shadow-hover); }

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

.event-card.has-image { cursor: pointer; }

.event-card.has-image img { cursor: zoom-in; }

/* Lightbox pro zobrazení obrázku akce v plné velikosti */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

.lightbox-close:hover { color: var(--accent); }

.event-card-body { padding: 20px; }

.event-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-card h3 { margin: 8px 0; font-size: 1.05rem; }

.event-card p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* Reference */

.reference { padding: 90px 0; }

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.reference-card {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.reference-card:hover { transform: translate(-3px, -3px); box-shadow: var(--hard-shadow-hover); }

.reference-card img { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--bg-darker); }

.reference-card-body { padding: 20px; }

.reference-card h3 { font-size: 1.1rem; margin-bottom: 6px; }

.reference-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 10px; }

/* Ceník */

.cenik { padding: 90px 0; background: var(--bg-darker); }

.cenik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.cenik-card {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cenik-card:hover { transform: translate(-3px, -3px); box-shadow: var(--hard-shadow-hover); }

.cenik-card h3 { font-size: 1.05rem; }

.cenik-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin: 8px 0;
}

.cenik-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Poptávka */

.poptavka { padding: 90px 0; }

.poptavka-inner { max-width: 720px; }

.poptavka-form {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-dark);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.ok { color: #1a7a3c; }
.form-status.err { color: #c62828; }

/* Kontakt */

.kontakt { padding: 90px 0; background: var(--bg-darker); }

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.kontakt-card {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.kontakt-card:hover { transform: translate(-3px, -3px); box-shadow: var(--hard-shadow-hover); }

.kontakt-card p { margin: 4px 0; color: var(--text-muted); }

.kontakt-card h3 { color: var(--text); }

/* Footer */

.site-footer {
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 2px solid var(--border-strong);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Zpět nahoru */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
  box-shadow: var(--hard-shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--text);
  transform: translate(-2px, -2px);
  box-shadow: var(--hard-shadow-hover);
}

/* Skeleton loading placeholdery */

.skeleton-card { pointer-events: none; }

.skeleton-img,
.skeleton-line {
  background: linear-gradient(90deg, var(--bg-darker) 25%, #eae7dd 37%, var(--bg-darker) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 4px;
}

.skeleton-img { width: 100%; height: 160px; border-radius: 0; }

.skeleton-line { height: 13px; margin: 10px 0; }
.skeleton-line-sm { width: 35%; }
.skeleton-line-md { width: 65%; }
.skeleton-line-lg { width: 90%; }
.skeleton-line-center { margin-left: auto; margin-right: auto; }

@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll progress bar */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 200;
  transition: width 0.1s linear;
}

/* Omezení animací pro uživatele, kteří je nechtějí */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--border-strong);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .service-row,
  .service-row.reverse {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .service-row-index { width: auto; font-size: 2rem; }

  .service-row.reverse .service-row-body,
  .service-row.reverse .service-row-body p {
    text-align: left;
    margin-left: 0;
  }

  .hero-logo { height: 150px; }
}
