/* ===========================
   REFERENCIE – referencie.css [PASTEL EDITION]
   =========================== */

.ref-hero {
  min-height: 52vh;
  padding: 130px 2rem 80px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
}
.ref-hero-content { position: relative; z-index: 1; }
.ref-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--ink); margin-bottom: 1rem;
  animation: fadeUp .7s ease both;
}
.ref-hero p {
  color: var(--muted); font-size: 1.1rem; line-height: 1.7;
  animation: fadeUp .7s .2s ease both;
}
.ref-hero .badge { animation: fadeUp .7s .1s ease both; }

/* GALLERY */
.ref-gallery {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 2rem 90px;
  position: relative; z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; margin-top: 2rem;
}

.gallery-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(44,36,22,0.06);
  transition: transform .3s, box-shadow .3s;
}
.gallery-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 24px 60px rgba(44,36,22,0.13);
}

.gallery-img {
  height: 240px; position: relative; overflow: hidden;
  background: var(--cream);
}
.gallery-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s;
}
.gallery-card:hover .gallery-img img { transform: scale(1.06); }

.placeholder-img {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(135deg, var(--cream), var(--cream2));
  border-bottom: 2px dashed rgba(244,132,95,0.25);
}
.pi-icon { font-size: 3rem; }
.pi-text { font-size: .9rem; color: var(--muted); text-align: center; line-height: 1.5; font-weight: 600; }
.pi-hint {
  font-size: .75rem; color: #c2b5a5;
  background: rgba(44,36,22,0.06);
  padding: .2rem .6rem; border-radius: 6px; font-family: monospace;
}

.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(44,36,22,0.55));
  padding: 1.5rem 1rem .8rem;
  font-weight: 700; font-size: .9rem;
  color: #fff;
  transform: translateY(4px); opacity: 0;
  transition: opacity .3s, transform .3s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; transform: translateY(0); }

.gallery-info { padding: 1.5rem; }
.gallery-info h3 { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin-bottom: .6rem; }
.gallery-info p { font-size: .91rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }

.gallery-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .85rem; }
.tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .5px;
  padding: .25rem .78rem; border-radius: 50px; text-transform: uppercase;
  border: 1.5px solid transparent;
}
.tag-nabytek  { background: var(--honey-pale); color: #a07800; border-color: rgba(245,200,66,0.4); }
.tag-instal   { background: var(--sage-pale);  color: #3d7a63; border-color: rgba(126,184,160,0.4); }
.tag-elektro  { background: var(--coral-pale); color: #c05535; border-color: rgba(244,132,95,0.4); }
.tag-pc       { background: var(--lav-pale);   color: #6b3fa0; border-color: rgba(169,139,203,0.4); }

.gallery-stars { font-size: 1.05rem; margin-bottom: .5rem; }
.gallery-review {
  font-size: .85rem; color: var(--muted); font-style: italic; line-height: 1.55;
  border-left: 3px solid var(--coral-soft);
  padding-left: .85rem;
}

/* CTA */
.ref-cta {
  background: linear-gradient(135deg, var(--coral-pale), var(--sky-pale));
  border-top: 1.5px solid rgba(244,132,95,0.18);
  padding: 90px 2rem; text-align: center;
  position: relative; overflow: hidden; z-index: 1;
}
.ref-cta::before {
  content: '';
  position: absolute; right: -60px; bottom: -60px;
  width: 300px; height: 300px;
  border: 35px solid rgba(244,132,95,0.1);
  border-radius: 50%; pointer-events: none;
}
.ref-cta-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.ref-cta h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin-bottom: 1rem; }
.ref-cta p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }

/* ══════════════════════════
   RESPONSIVE – referencie
══════════════════════════ */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ref-hero { padding: 100px 1.2rem 50px; }
  .ref-hero h1 { font-size: 2.6rem; }
  .ref-gallery { padding: 40px 1.2rem 60px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .gallery-info { padding: 1.2rem; }
  .ref-cta { padding: 60px 1.2rem; }
}
