/* =============================================
   REALIZÁCIE – Page Styles
   Závisí na style.css + sluzby.css
   ============================================= */

/* ===== PROJECTS SECTION ===== */
.rlz-section {
  padding: 100px 32px;
  background: var(--dark-1, #0b1420);
}

.rlz-container {
  max-width: 1200px;
  margin: 0 auto;
}

.rlz-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.rlz-intro .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.rlz-intro h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.rlz-intro p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 0;
}

/* ===== PROJECT CARD ===== */
.rlz-project {
  margin-bottom: 80px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
}

.rlz-project:last-child {
  margin-bottom: 0;
}

/* Project header bar */
.rlz-project-header {
  padding: 36px 44px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.rlz-project-number {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary, #2563eb) 0%, #0891b2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

.rlz-project-meta {
  flex: 1;
}

.rlz-project-meta h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.rlz-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rlz-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.rlz-badge--type {
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  color: #67e8f9;
}

.rlz-badge--location {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
}

.rlz-badge--year {
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: #93c5fd;
}

/* Project body */
.rlz-project-body {
  padding: 36px 44px 44px;
}

.rlz-project-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 780px;
  margin: 0 0 36px;
}

/* Photo grid */
.rlz-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 240px 180px;
  gap: 10px;
  border-radius: 14px;
  overflow: hidden;
}

/* Featured photo spans 2 cols and 2 rows */
.rlz-photo:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.rlz-photo {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

.rlz-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rlz-photo:hover img {
  transform: scale(1.07);
}

.rlz-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.rlz-photo:hover::after {
  background-color: rgba(6,182,212,0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}

/* ===== LIGHTBOX ===== */
.rlz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rlz-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.rlz-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 28, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rlz-lightbox__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 160px);
}

.rlz-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.rlz-lightbox__close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.rlz-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

.rlz-lightbox__counter {
  margin-top: 14px;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.rlz-lightbox__nav {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rlz-lightbox__nav:hover:not(:disabled) {
  background: rgba(6,182,212,0.2);
  border-color: rgba(6,182,212,0.4);
  color: #fff;
}

.rlz-lightbox__nav:disabled {
  opacity: 0.2;
  cursor: default;
}

@media (max-width: 600px) {
  .rlz-lightbox {
    gap: 8px;
    padding: 16px;
  }

  .rlz-lightbox__frame {
    max-width: calc(100vw - 100px);
  }

  .rlz-lightbox__nav {
    width: 36px;
    height: 36px;
  }
}

/* ===== CTA STRIP ===== */
.rlz-cta {
  padding: 80px 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rlz-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(6,182,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.rlz-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.rlz-cta h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.rlz-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0 0 36px;
}

.rlz-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .rlz-project-header {
    padding: 28px 28px 24px;
  }

  .rlz-project-body {
    padding: 28px 28px 32px;
  }

  .rlz-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 200px 160px;
  }

  .rlz-photo:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 600px) {
  .rlz-section {
    padding: 60px 20px;
  }

  .rlz-project-header {
    padding: 24px 20px 20px;
    flex-direction: column;
    gap: 16px;
  }

  .rlz-project-body {
    padding: 20px 20px 28px;
  }

  .rlz-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 160px);
  }

  .rlz-photo:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }
}
