/*
Theme Name: Rudolf Services
Author: Rudolf
Description: Firemní šablona pro Rudolf-Services s.r.o.
Version: 1.0
*/
    :root { --max: 1100px; }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.5; color: #322783; }
    a { color: inherit; text-decoration: none; }
    .wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }



    header { background: #ffffff; color: #f08213; position: sticky; top: 0; z-index: 10; }
    .navrow { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; flex-wrap: wrap; }
    .brand { font-weight: 800; }
    nav ul { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; flex-wrap: wrap; }
    nav a { padding: 8px 12px; border-radius: 10px; }
    nav a:hover { background: rgba(255,255,255,.12); }
    .cta-btn { background: #f08213; color: #322783; padding: 10px 14px; border-radius: 12px; font-weight: 700; }

    .hero { padding: 72px; background: linear-gradient(180deg,#322783,#111827); color: #fff; }
    .hero h1 { font-size: 40px; margin: 0 0 14px; line-height: 1.15; }
    .hero p { max-width: 720px; color: #cbd5e1; margin: 0 0 22px; }
    .hero .tags { display: flex; gap: 10px; flex-wrap: wrap; }
    .tag { background: rgba(255,255,255,.12); padding: 6px 10px; border-radius: 999px; font-size: 13px; }

    section { padding: 56px 0; }
    h2 { margin: 0 0 14px; font-size: 26px; }
    .muted { color: #475569; }

    .projects { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
    .project { border: 1px solid #e5e7eb; border-radius: 18px; padding: 18px; background: #fff; }
    .project h3 { margin: 0 0 6px; }
    .project .meta { font-size: 13px; color: #64748b; margin-bottom: 10px; }
    .project p { margin: 0 0 10px; color: #475569; font-size: 14px; }
    .project a { font-size: 14px; font-weight: 600; color: #0b1220; }

    .split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .box { border: 1px solid #e5e7eb; border-radius: 18px; padding: 18px; background: #fff; }
    .box h3 { margin: 0 0 8px; }

    .services { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
    .service { border-left: 4px solid #f08213; padding-left: 12px; }

    footer { background: #322783; color: #cbd5e1; }
    .footergrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; padding: 36px 0; }
    footer h4 { color: #fff; margin: 0 0 10px; }
    footer ul { list-style: none; padding: 0; margin: 0; }
    footer li { margin: 8px 0; }
    .bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 12px 0; font-size: 13px;}

    .steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
    .step { border: solid 1px #0b1220; border-radius: 16px; padding: 14px; background: #fff; }
    .step b { display: block; margin-bottom: 6px; }

    @media (max-width: 900px) {
      .projects { grid-template-columns: 1fr; }
      .split { grid-template-columns: 1fr; }
      .services { grid-template-columns: 1fr; }
      .footergrid { grid-template-columns: 1fr; }
				
    }
    header .brand img
    {
          height: 40px !important;
          width: auto !important;
          max-width: 200px !important;
          display: block !important;

      }



.auto-gallery {
display: grid;
  grid-template-columns: repeat(3, 20%); /* pevná šířka */
  grid-template-rows: repeat(2, 150px);   /* pevná výška */
  gap: 16px;
  justify-content: center; /* vycentruje */
  margin: 40px auto;
}

.auto-gallery a {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 10px;
}

.auto-gallery a:hover img {
  transform: scale(1.08);
  filter: brightness(0.8);
}

.auto-gallery a::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  opacity: 0;
  transition: opacity .3s ease;
}

.auto-gallery a:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .auto-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}


.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  cursor: pointer;
}

.auto-gallery img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
	padding:10px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.auto-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  filter: brightness(0.95);
}

.projekty {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.projekty-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.projekt-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background: #f7f7f7;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  max-width: 900px;
  width: 100%;
}

.projekt-card:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.projekt-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.projekt-content {
  flex: 1;
  min-width: 0; /* důležité pro zalamování */
}

.projekt-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.projekt-content p {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}


.projekt-detail {
  max-width: 800px;
  margin: 60px auto 40px;
  padding: 0 20px;
}

.projekt-detail h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.projekt-detail p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
}

.projekt-detail ul,
.projekt-detail ol {
  margin: 20px 0 20px 20px;
}

.projekt-detail li {
  margin-bottom: 8px;
}

.projekt-detail {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 30px;
}


/* obal formuláře */
.kontakr-form {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* label */
.kontakt-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* input + textarea */
.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  background: white;
  transition: all 0.2s ease;
  margin-bottom: 18px;
}

/* focus efekt */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* tlačítko */
.wpcf7 input[type="submit"] {
  background: linear-gradient(135deg, #f08213, #f08213);
  color: #322783;
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* hover */
.wpcf7 input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.25);
}

/* zprávy */
.wpcf7-response-output {
  border-radius: 10px;
  margin-top: 10px;
}

