/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #4caf7d;
  --green-dark: #388e5e;
  --green-light:#e8f5ee;
  --teal:       #26a69a;
  --text:       #2c3e30;
  --text-light: #5a6e60;
  --white:      #ffffff;
  --bg:         #f7faf8;
  --border:     #dceee4;
  --shadow:     0 2px 12px rgba(76,175,125,.12);
  --radius:     6px;
  --font-main:  'Open Sans', sans-serif;
  --font-head:  'Merriweather', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--teal); }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Banner dovolené ──────────────────────────────────────── */
#vacation-banner {
  background: #fff3cd;
  border-bottom: 2px solid #f0c040;
  color: #7a5c00;
  text-align: center;
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 600;
  display: none; /* řídí PHP */
}
#vacation-banner.visible { display: block; }
#vacation-banner .banner-close {
  float: right;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  opacity: .6;
  background: none;
  border: none;
  color: inherit;
}
#vacation-banner .banner-close:hover { opacity: 1; }

/* ── Header ───────────────────────────────────────────────── */
#site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.logo-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
}
.logo-accent { color: var(--teal); }
.logo-sub {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
}
.header-phone {
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-dark);
  white-space: nowrap;
}
.header-phone::before { content: '📞 '; }

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
nav a {
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
  transition: color .2s;
}
nav a:hover { color: var(--green); }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 250px 0 200px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--teal) 100%);
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 60, 35, 0.55);
  z-index: 1;
  pointer-events: none;
}
#hero .container {
  position: relative;
  z-index: 2;
}
#hero::before { display: none; }
#hero .container { position: relative; }
#hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 16px;
  white-space: pre-line;
}
#hero p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 560px;
  margin: 0 auto 32px;
}
.btn-hero {
  display: inline-block;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  color: var(--green-dark);
}

/* ── Sekce obecně ─────────────────────────────────────────── */
section { padding: 64px 0; }
section:nth-child(even) { background: var(--bg); }

.section-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.section-lead {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: .97rem;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 10px 0 32px;
}

/* ── Služby ───────────────────────────────────────────── */
#services .services-list ul {
  list-style: none;
  columns: 2;
  column-gap: 48px;
}
#services .services-list li {
  break-inside: avoid;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: .97rem;
}
#services .services-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: .7rem;
  top: 11px;
}

@media (max-width: 600px) {
  #services .services-list ul {
    columns: 1;
  }
}

/* ── Vybavení — CSS taby ──────────────────────────────── */
.equipment-tabs {
  position: relative;
}
.equipment-tabs input[type="radio"] {
  display: none;
}

/* Tab labels */
.equipment-tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border);
}
.equipment-tab-labels label {
  padding: 10px 20px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background .15s, color .15s;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
}
.equipment-tab-labels label:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* Aktivní tab — pro každý radio zvlášť */
<?php foreach ($blocks['equipment'] as $i => $item): ?>
#etab-<?= $i ?>:checked ~ .equipment-tab-labels label:nth-child(<?= $i + 1 ?>) {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--border);
  border-bottom-color: var(--white);
}
#etab-<?= $i ?>:checked ~ .equipment-tab-panels .equipment-panel:nth-child(<?= $i + 1 ?>) {
  display: flex;
}
<?php endforeach; ?>

/* Panely */
.equipment-tab-panels {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
}
.equipment-panel {
  display: none;
  gap: 32px;
  padding: 32px;
  align-items: flex-start;
}
.equipment-panel img {
  max-width: 400px;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.equipment-panel-text h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.equipment-panel-text p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.6;
  padding-bottom: 12px;
}

@media (max-width: 640px) {
  .equipment-panel {
    flex-direction: column;
  }
  .equipment-panel img {
    width: 100%;
    height: 200px;
  }
}

.eq-ul{
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.eq-li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.2;
  border-bottom: 1px solid var(--border);
}
.eq-li:last-child {
  border-bottom: none;
}
.eq-li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: .7rem;
  top: 10px;
}



/* ── O nás ────────────────────────────────────────────────── */
#about .about-inner {
  max-width: 100%;
}
#about p { margin-bottom: 16px; color: var(--text-light); }

/* ── Kontakt ──────────────────────────────────────────────── */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: .95rem;
}
.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }
.contact-item a { color: var(--text); font-weight: 600; }
.contact-item a:hover { color: var(--green); }

.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--green-dark); }
.hours-closed { color: #c0392b; }

/* ── Footer ───────────────────────────────────────────────── */
#site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 28px 0;
  font-size: .88rem;
  text-align: center;
}
#site-footer a { color: rgba(255,255,255,.5); }
#site-footer a:hover { color: var(--white); }
#site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Responzivita ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  #hero { padding: 80px 0 70px; }
  .section-title { font-size: 1.4rem; }
}

@media (max-width: 768px) {
  #site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 24px;
    gap: 10px;
  }
  .site-logo { font-size: 1.2rem; }
  nav ul { gap: 14px; }
  nav a { font-size: .8rem; }
  .header-phone { font-size: .9rem; }

  #hero { padding: 60px 0 50px; }
  #hero h1 { font-size: 1.6rem; }
  #hero p { font-size: 1rem; }

  #services .services-list { columns: 1; }

  #contact .contact-grid { grid-template-columns: 1fr; }

  .card { padding: 20px; }

  #site-footer .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  nav { display: none; } /* nahradit hamburger menu později */

  #hero { padding: 50px 0 40px; }
  #hero h1 { font-size: 1.35rem; }
  .btn-hero { padding: 12px 28px; font-size: .9rem; }

  .contact-card { padding: 20px 16px; }
  .hours-table { font-size: .88rem; }

  section { padding: 44px 0; }
}

.nav-active { color: var(--green) !important; }

#calendar-section { padding: 48px 0 64px; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.header-hours {
  font-size: .78rem;
  color: var(--text-light);
  white-space: nowrap;
}

.color-accent {
	color: #b53d0e;
}

