:root {
  --theme-primary: #2c3e50;       /* Dark Slate Blue - more sophisticated */
  --theme-accent: #f39c12;        /* Richer Yellow/Orange - was #FFB400 */
  --theme-accent-secondary: #e67e22; /* Deeper Orange - was #F08C00 */
  --theme-bg-main: #f7f9fb;       /* Very Light Gray/Off-white - cleaner than F4F4F4 */
  --theme-bg-card: #FFFFFF;       /* White for cards */
  --theme-bg-card-alt: #f0f2f5;   /* Lighter Gray for service cards - slightly cooler */
  --theme-text-light: #FFFFFF;    /* White text */
  --theme-text-dark: #34495e;     /* Darker, slightly desaturated blue-gray for text */
  --theme-text-medium: #7f8c8d;   /* Medium gray text - good for secondary info */
  --theme-border: #dfe4ea;        /* Lighter, softer border color */
  --card-radius: 10px;            /* Slightly reduced radius for a more modern, crisp feel */
  --shadow: 0 5px 20px rgba(44, 62, 80, 0.1); /* Softer, more natural shadow */
  --theme-primary-rgb: 44, 62, 80; /* RGB for #2c3e50, used in modal background */
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--theme-text-dark);
  background: var(--theme-bg-main);
}
header {
  background: linear-gradient(135deg, var(--theme-primary) 0%, #34495e 100%); /* Sophisticated gradient */
  color: var(--theme-text-light);
  padding: 3rem 0 2rem 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  clip-path: ellipse(130% 100% at 50% 0%);
}
header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
header p {
  margin: 0;
  font-size: 1.15rem;
  opacity: 0.9;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  background: var(--theme-bg-card);
  border-bottom: 1px solid var(--theme-border);
  padding: 0.9rem 1.6rem 0.9rem 1.6rem; /* trochu širší pro kontakt */
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}
.nav-menu a {
  color: var(--theme-text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  transition: background-color .2s, color .2s;
}
.nav-menu a.active, .nav-menu a:hover {
  background-color: var(--theme-accent);
  color: var(--theme-text-light);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 1.01rem;
  font-weight: 600;
  color: var(--theme-primary);
}
.nav-contact a {
  color: var(--theme-accent-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.nav-contact a:hover {
  color: var(--theme-accent);
  text-decoration: underline;
}
.nav-separator {
  color: var(--theme-border);
  font-size: 1.2em;
  margin: 0 0.2em;
}

@media (max-width:900px){
  nav {
    padding: 0.9rem 0.5rem;
    gap: 1.3rem;
  }
  .nav-menu {
    gap: 1.2rem;
  }
}
@media (max-width:700px){
  nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.7rem 0.2rem;
  }
  .nav-menu {
    justify-content: center;
    gap: 1.1rem;
    flex-wrap: wrap;
  }
  .nav-contact {
    justify-content: center;
    margin-top: 0.25rem;
    flex-wrap: wrap;
    font-size: 0.98rem;
    gap: 0.5rem;
  }
}

main {
  max-width: 1100px;
  margin: 2.5rem auto;
  background: var(--theme-bg-card);
  padding: 2.5rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  position: relative;
}

/* ... (previous CSS rules) ... */

/* HERO SECTION STYLES */
.hero-section {
  width: 100vw;
  min-height: 420px;
  position: relative;
  padding: 0;
  margin: 0;
  text-align: center;
  color: var(--theme-text-light);
  background-image: url('../overlay.png'); /* tvůj obrázek */
  background-size: cover;             /* !!! hlavní změna */
  background-position: center 70%, center center;
  background-repeat: no-repeat;
  background-attachment: fixed;        /* nebo scroll na mobilech */
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(44, 62, 80, 0.6); /* Dark overlay (using --theme-primary-rgb with alpha) for text readability */
  z-index: 1;
  border-radius: inherit; /* Inherit border radius if any from parent */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 6rem 2rem 5rem 2rem; /* nahoře, vpravo, dole, vlevo */
}


.hero-section h2 {
  font-size: 2.8rem; /* Larger heading for hero */
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--theme-text-light); /* Ensure heading is light */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* Subtle shadow for depth */
}

.hero-section .intro-text {
  font-size: 1.2rem; /* Slightly larger intro text */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9); /* Slightly off-white for softness */
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-section .cta-button {
  padding: 1em 2.2em; /* Slightly larger CTA */
  font-size: 1.15rem;
  background-color: var(--theme-accent); /* Use primary accent */
  color: var(--theme-text-light); /* Light text on accent */
}
.hero-section .cta-button:hover, .hero-section .cta-button:focus {
  background-color: var(--theme-accent-secondary); /* Darken or change on hover */
  color: var(--theme-text-light);
  transform: translateY(-3px) scale(1.05); /* Add a slight scale for more pop */
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
/* Adjustments to MAIN if hero is the first child */
main > .hero-section:first-child {
  /* If main has padding, we might need to negate it for the hero to be full-width if desired */
  /* This depends on your overall layout. For now, the hero section has its own padding. */
  /* You might also want to remove top/bottom border-radius from 'main' if hero is first/last */
}

/* Ensure sections after the hero have appropriate top margin */
#sluzby {
  margin-top: 4rem; /* Add space between hero and next section */
}


/* ... (rest of your CSS) ... */

/* INTRO SECTION STYLES */
.intro-section {
  text-align: center;
  padding: 1rem 0 2.5rem 0;
  margin-bottom: 3rem;
}
.intro-section h2 {
  color: var(--theme-primary);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.intro-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--theme-text-medium);
  max-width: 780px;
  margin: 0 auto 2rem auto;
}
.cta-button {
  display: inline-block;
  background-color: var(--theme-accent-secondary);
  color: var(--theme-text-light);
  padding: 0.9em 2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.cta-button:hover, .cta-button:focus {
  background-color: var(--theme-accent);
  color: var(--theme-text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--theme-accent);
  border-radius: 2px;
  margin: 2rem auto 2.5rem auto;
}
section:not(:last-child) { margin-bottom: 4rem; }
h2 { /* Standard section h2 */
  color: var(--theme-primary);
  margin: 0 0 0.8em 0;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  letter-spacing: 0.3px;
  text-align: center;
}

/* SERVICES */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--theme-bg-card-alt);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  position: relative;
  border: 1px solid transparent;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 6px 25px rgba(var(--theme-primary-rgb), 0.12);
  border-color: var(--theme-accent);
  transform: translateY(-5px);
  z-index: 10;
}
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.2rem;
  display: block;
}
.service-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--theme-primary);
  margin-bottom: 0.6em;
}
.service-text {
  color: var(--theme-text-medium);
  font-size: 1rem;
  line-height: 1.65;
}

/* GALLERY */
.gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem;
}
.gallery-img-wrap {
  overflow: hidden;
  border-radius: 8px;
  background: var(--theme-bg-card-alt);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s ease;
}
.gallery-img-wrap video.gallery-video-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  display: block;
  background: #eee;
  pointer-events: none;
}
.video-thumb-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  pointer-events: none;
}

.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-play-overlay:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.gallery-img-wrap:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}
.gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.gallery-img-wrap:hover img {
  transform: scale(1.05);
}
@media (max-width: 550px){
  .gallery img {
    height: 90px;
  }
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(var(--theme-primary-rgb), 0.92);
  justify-content: center;
  align-items: center;
  animation: fadeIn .38s;
}
.modal.active { display: flex; }
.modal-content {
  max-width: 88vw; max-height: 82vh;
  background: var(--theme-bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 8px 54px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popIn .18s;
}
.modal-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  object-fit: contain;
  background: var(--theme-bg-card-alt);
}
.modal-caption {
  margin-top: 18px;
  text-align: center;
  color: #222;
  font-size: 1.1rem;
  font-weight: 400;
  background: rgba(255,255,255,0.97);
  padding: 12px 24px;
  border-radius: 8px;
  max-width: 80vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  display: inline-block;
}
#modal .modal-caption {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.modal-close {
  position: absolute;
  top: 30px; right: 42px;
  color: var(--theme-text-light);
  font-size: 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--theme-accent); }
@keyframes fadeIn { from{ opacity:0; } to { opacity:1; } }
@keyframes popIn { from{transform: scale(0.91);} to{transform: scale(1);} }

/* CONTACT */
.contact {
  background: #fffaf0;
  padding: 2em 2.5em;
  border-radius: var(--card-radius);
  font-size: 1.08em;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--theme-accent);
  text-align: center;
}
.contact b { color: var(--theme-primary); }
.contact a {
  color: var(--theme-accent-secondary);
  text-decoration:none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.contact a:hover {
  color: var(--theme-accent);
  text-decoration: underline;
}

/* FOOTER */
.footer {
  text-align: center;
  color: var(--theme-text-medium);
  font-size: 0.95em;
  margin: 3rem 0 1.5rem 0;
}

/* MEDIA QUERIES */
@media (max-width: 900px){
  main { padding: 2rem 1rem; }
  .intro-section { padding: 1rem 1rem 2rem 1rem; }
}
@media (max-width: 700px){
  .services-container { grid-template-columns: 1fr; gap: 1.8rem; }
  main { padding: 1.5rem 0.5rem;}
  .intro-section { padding: 0.5rem 0.5rem 1.5rem 0.5rem; }
  section:not(:last-child) { margin-bottom: 2.5rem; }
}
@media (max-width: 500px){
  header h1 { font-size: 2.2rem; } /* Adjusted from 2rem */
  header p { font-size: 1.05rem; } /* Adjusted from 1rem */
  header { clip-path: ellipse(150% 100% at 50% 0%); }
  .intro-section h2 { font-size: 1.9rem; } /* Adjusted from 1.8rem */
  .intro-text { font-size: 1.2rem; }
  .modal-content { max-width: 98vw; }
  .modal-img { max-width: 98vw;}
  .contact { padding: 1.5em 0.8em; } /* Adjusted from 1.2em 0.6em */
}

.parapet-highlight::before {
  content: '';
  position: absolute;
  top: -40px; right: -70px;
  width: 170px; height: 110px;
  background: radial-gradient(ellipse at top right, #fff9eccc 0%, #fffbe800 70%);
  opacity: 0.48;
  pointer-events: none;
}

.parapet-highlight .service-icon svg rect,
.parapet-highlight .service-icon svg polygon,
.parapet-highlight .service-icon svg path {
  filter: drop-shadow(0 1.5px 4px #ffe6ad66);
}

.parapet-highlight .service-title {
  font-size: 1.37rem;
  font-weight: 800;
  color: #d89621;
  letter-spacing: 0.02em;
  text-shadow: 0 1.5px 0 #fff4da;
}
.parapet-highlight .service-text {
  font-size: 1.12rem;
  color: #946a1e;
  margin-top: 0.37em;
  font-weight: 500;
  text-shadow: 0 1px 0 #fff6e6;
}
.parapet-decor-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 16px;
  padding: 10px 0 8px 0;
  justify-items: center;
}

.parapet-decor-gallery img {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border: 2px solid #f5c375;
  background: #fff9e2;
  border-radius: 6px;
  box-shadow: 0 1.5px 8px #f7e4bc55;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  display: block;
}

.parapet-decor-gallery img:hover {
  box-shadow: 0 4px 18px #f4ba2d33, 0 2px 16px #fff5c766;
  border-color: #fac65d;
}

.parapet-highlight {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background:
    linear-gradient(120deg, #fffbe8 70%, #fae0b0 100%),
    linear-gradient(94deg, var(--theme-bg-card-alt) 65%, #fffbe8 100%);
  border-radius: 18px;
  box-shadow: 0 8px 38px rgba(243,156,18,0.11), 0 1.5px 0px #ffe7b8 inset;
  border: 1px solid #f5c375;
  padding: 2.6rem 2.5rem 2.4rem 2.5rem;
  margin-bottom: 3.1rem;
  align-items: stretch;
  position: relative;
  /* Optional shine overlay */
  overflow: hidden;
}

.parapet-highlight::before {
  content: '';
  position: absolute;
  top: -40px; right: -70px;
  width: 170px; height: 110px;
  background: radial-gradient(ellipse at top right, #fff9eccc 0%, #fffbe800 70%);
  opacity: 0.48;
  pointer-events: none;
}

/* Ikona parapetu může být také mírně “dozlata” */
.parapet-highlight .service-icon svg rect,
.parapet-highlight .service-icon svg polygon,
.parapet-highlight .service-icon svg path {
  filter: drop-shadow(0 1.5px 4px #ffe6ad66);
}

/* Ostatní prvky pro čistotu */
.parapet-highlight .service-title {
  font-size: 1.37rem;
  font-weight: 800;
  color: #d89621;
  letter-spacing: 0.02em;
  text-shadow: 0 1.5px 0 #fff4da;
}
.parapet-highlight .service-text {
  font-size: 1.12rem;
  color: #946a1e;
  margin-top: 0.37em;
  font-weight: 500;
  text-shadow: 0 1px 0 #fff6e6;
}
.parapet-decor-gallery img {
  border: 2px solid #f5c375;
  background: #fff9e2;
  box-shadow: 0 1.5px 8px #f7e4bc55;
}
.parapet-decor-gallery img:hover {
  box-shadow: 0 4px 18px #f4ba2d33, 0 2px 16px #fff5c766;
  border-color: #fac65d;
}

.parapet-main {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (max-width:700px) {
  .parapet-main { flex-direction: column; align-items: center; text-align: center; }
  .parapet-highlight { padding: 1.2rem 0.6rem; }
}

.parapet-highlight .service-icon {
  width: 60px; height: 60px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.parapet-highlight .service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--theme-primary);
}
.parapet-highlight .service-text {
  font-size: 1.1rem;
  color: var(--theme-text-dark);
  margin-top: 0.3em;
}

.parapet-main {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (max-width:700px) {
  .parapet-main { flex-direction: column; align-items: center; text-align: center; }
  .parapet-highlight { padding: 1.2rem 0.6rem; }
}

.parapet-highlight .service-icon {
  width: 60px; height: 60px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.parapet-highlight .service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--theme-primary);
}
.parapet-highlight .service-text {
  font-size: 1.1rem;
  color: var(--theme-text-dark);
  margin-top: 0.3em;
}

/* Ostatní služby menší */
.services-container .service-card {
  min-height: 225px;
}
@media (max-width:500px){
  .parapet-decor-gallery { gap: 0.45rem; }
  .parapet-decor-gallery img { width: 46px; height: 46px; }
}


