/* ==========================================
   SERVICIU DETAIL PAGE CSS
   ========================================== */

.srvd-section {
  background: #0d0d0d;
  padding-bottom: 40px;
}

/* ── Content block ── */
.srvd-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 48px;
}

/* Icon */
.srvd-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139,0,0,0.15), rgba(201,168,76,0.1));
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 24px;
}

/* Description */
.srvd-desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 24px;
}

/* Avans notice — top position */
.srvd-avans-top {
  margin-bottom: 32px;
}

/* Avans notice */
.srvd-avans {
  background: linear-gradient(135deg, rgba(139,0,0,0.15), rgba(201,168,76,0.08));
  border: 2px solid rgba(201,168,76,0.5);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: srvdGlow 3s ease-in-out infinite;
}
@keyframes srvdGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.15); }
  50%      { box-shadow: 0 0 35px rgba(201,168,76,0.35); }
}
.srvd-avans i {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}
.srvd-avans p {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.srvd-avans strong {
  color: var(--primary);
}

/* ── Price table ── */
.srvd-prices-wrap {
  margin-bottom: 32px;
}
.srvd-prices-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.srvd-prices-title i {
  color: var(--primary);
  margin-right: 8px;
}
.srvd-prices {
  width: 100%;
  border-collapse: collapse;
}
.srvd-prices th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: rgba(201,168,76,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.srvd-prices td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-gray);
}
.srvd-prices td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.srvd-prices tr:hover td {
  background: rgba(201,168,76,0.03);
}
/* ── Grupuri de preturi (categorii in chenare separate) ── */
.srvd-price-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.srvd-price-group {
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 14px;
  background: rgba(201,168,76,0.03);
  padding: 6px 18px 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.srvd-price-group-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  padding: 12px 0 10px;
  margin: 0;
  border-bottom: 2px solid rgba(201,168,76,0.2);
}
.srvd-price-group .srvd-prices td {
  border-bottom: 1px solid var(--border);
}
.srvd-price-group .srvd-prices tr:last-child td {
  border-bottom: none;
}

/* ── CTA buttons ── */
.srvd-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-srvd-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-srvd-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}
.btn-srvd-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--primary);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-srvd-tel:hover {
  background: rgba(201,168,76,0.08);
  transform: translateY(-2px);
}

/* ── Gallery section ── */
.srvd-gallery-section {
  margin-bottom: 40px;
}
.srvd-gallery-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.srvd-gallery-title i {
  color: var(--primary);
  margin-right: 8px;
}
.srvd-gallery-title span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
}

.srvd-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.srvd-thumb {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  background: rgba(0,0,0,0.3);
}
.srvd-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(201,168,76,0.2);
}
.srvd-thumb img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.88);
  transition: filter 0.3s ease;
}
.srvd-thumb:hover img {
  filter: brightness(1);
}

/* ── Back link ── */
.srvd-back {
  text-align: center;
  margin-bottom: 20px;
}
.btn-srvd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--border);
  color: var(--text-gray);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-srvd-back:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(201,168,76,0.05);
}

/* ── Lightbox ── */
.srvd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.srvd-lightbox.active {
  display: flex;
}
.srvd-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
}
.srvd-lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.srvd-lb-close:hover {
  background: rgba(201,168,76,0.3);
}
.srvd-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.srvd-lb-nav:hover {
  background: rgba(201,168,76,0.3);
}
.srvd-lb-prev { left: 16px; }
.srvd-lb-next { right: 16px; }
.srvd-lb-counter {
  font-size: 13px;
  color: rgba(201,168,76,0.5);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .srvd-content {
    padding: 28px 20px;
  }
  .srvd-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .srvd-content {
    padding: 24px 16px;
  }
  .srvd-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .srvd-thumb {
    border-radius: 8px;
  }
  .srvd-avans {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .srvd-cta {
    flex-direction: column;
  }
  .btn-srvd-wa,
  .btn-srvd-tel {
    justify-content: center;
    width: 100%;
  }
  .srvd-prices td,
  .srvd-prices th {
    padding: 10px 10px;
    font-size: 13px;
  }
  .srvd-lb-prev { left: 8px; }
  .srvd-lb-next { right: 8px; }
  .srvd-lb-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
