/* ============================================================
   RPG SECURITY GROUP — Service Page Styles
   Direction A: Military Precision (Oswald + Inter)
   ============================================================ */

/* ── Direction A: Oswald for service page headings ── */
.svc-title,
.svc-section-title,
.svc-related-title,
.svc-big-phone,
.svc-contact-card-header,
.svc-info-box h3 {
  font-family: 'Oswald', 'Segoe UI', sans-serif;
}

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: rgba(5,9,20,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span:last-child { color: var(--text-light); }
.bc-sep { opacity: 0.4; }

/* ── Hero Serviciu ── */
.svc-hero {
  position: relative;
  padding: calc(var(--nav-height) + 56px) 0 72px;
  overflow: hidden;
  text-align: center;
}
.svc-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.svc-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  background: rgba(0,212,255,0.10);
  border: 1px solid rgba(0,212,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.svc-hero-icon svg { width: 36px; height: 36px; stroke: var(--cyan); }

.svc-tag {
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}
.svc-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--white);
  max-width: 720px;
}
.svc-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}
.svc-hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.svc-cta-btn {
  font-size: 0.9rem;
  padding: 14px 32px;
}
.svc-phone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  transition: border-color 0.3s, color 0.3s;
}
.svc-phone-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.svc-phone-btn svg   { stroke: currentColor; }

/* ── Content Grid ── */
.svc-content { padding-top: 72px; padding-bottom: 72px; }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

/* ── Main Content ── */
.svc-block { margin-bottom: 52px; }
.svc-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.svc-body-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.97rem;
}
.svc-body-text p:last-child { margin-bottom: 0; }

/* Benefits list */
.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}
.benefit-check {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}
.benefit-check svg { stroke: var(--cyan); }

/* Target block */
.svc-target-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 28px 32px;
}
.svc-target-text {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── Sidebar ── */
.svc-sidebar { position: sticky; top: calc(var(--nav-height) + 60px); }

.svc-contact-card {
  background: rgba(26,58,143,0.20);
  border: 1px solid rgba(0,212,255,0.20);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.svc-contact-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}
.svc-contact-card-header svg { stroke: var(--cyan); }
.svc-big-phone {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.svc-big-phone:hover { color: var(--cyan); }
.svc-contact-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.svc-info-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 24px;
}
.svc-info-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.svc-info-list { display: flex; flex-direction: column; gap: 10px; }
.svc-info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.svc-info-list svg { stroke: var(--cyan); flex: none; }

/* ── Related Services ── */
.svc-related {
  position: relative;
  padding: 64px 0;
  text-align: center;
}
.svc-related-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 36px;
}
.rel-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.rel-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  color: var(--text-light);
}
.rel-card:hover {
  border-color: rgba(0,212,255,0.30);
  background: rgba(0,212,255,0.04);
  transform: translateY(-3px);
}
.rel-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rel-card-icon svg { stroke: var(--cyan); width: 20px; height: 20px; }
.rel-card-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.rel-card-arrow { color: var(--cyan); font-size: 1.1rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-sidebar { position: static; }
  .rel-cards-grid { grid-template-columns: 1fr 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc-title { font-size: 1.8rem; }
  .rel-cards-grid { grid-template-columns: 1fr; }
  .svc-content { padding-top: 40px; padding-bottom: 40px; }
  .svc-target-block { padding: 20px; }
}

/* ── Hero cu fundal foto specific serviciului ── */
.svc-hero.has-photo-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.svc-hero.has-photo-bg .bg-overlay {
  background: rgba(5, 9, 20, 0.72);
}

/* ── Galerie foto serviciu ── */
.svc-gallery {
  padding: 64px 0;
  background: #080e20;
  border-top: 1px solid rgba(0,212,255,0.08);
}
.svc-gallery-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.svc-gallery-line {
  width: 48px; height: 3px;
  background: var(--cyan, #00d4ff);
  border-radius: 2px;
  margin-bottom: 32px;
}
.svc-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.svc-photo-item {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: #0d1533;
}
.svc-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  opacity: 0.85;
}
.svc-photo-item:hover img { transform: scale(1.06); opacity: 1; }
.svc-photo-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  background: rgba(0,212,255,0.15);
  transition: opacity 0.3s;
}
.svc-photo-item:hover::after { opacity: 1; }

/* ── Lightbox galerie ── */
.svc-lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.svc-lb-overlay.active { display: flex; }
.svc-lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
}
.svc-lb-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1;
}
.svc-lb-prev, .svc-lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  font-size: 2rem; padding: 12px 18px;
  cursor: pointer; border-radius: 4px;
  transition: background 0.2s;
}
.svc-lb-prev:hover, .svc-lb-next:hover { background: rgba(0,212,255,0.3); }
.svc-lb-prev { left: 20px; }
.svc-lb-next { right: 20px; }
.svc-lb-counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .svc-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-gallery { padding: 40px 0; }
}

/* ============================================================
   LIGHT THEME OVERRIDES — service-page.css
   ============================================================ */
html[data-theme="light"] .breadcrumb-bar {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .breadcrumb a { color: #475569; }
html[data-theme="light"] .breadcrumb span:last-child { color: #0f172a; }

/* NOTE: .svc-hero background handled by the specific .has-photo-bg / :not(.has-photo-bg)
   rules below. No general override here — the shorthand would wipe the photo URL. */
html[data-theme="light"] .svc-tag   { color: #0099bb; }
html[data-theme="light"] .svc-title { color: #0f172a; }
html[data-theme="light"] .svc-lead  { color: #1e293b !important; }

html[data-theme="light"] .svc-hero-icon {
  background: rgba(0,153,187,0.10);
  border-color: rgba(0,153,187,0.25);
}
html[data-theme="light"] .svc-hero-icon svg { stroke: #0099bb; }

html[data-theme="light"] .svc-body { background: #f0f4fb; }
html[data-theme="light"] .svc-section-title {
  color: #0f172a;
  border-bottom-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .svc-body-text p { color: #475569; }
html[data-theme="light"] .svc-body-text li { color: #334155; }
html[data-theme="light"] .svc-body-text h3 { color: #0f172a; }

html[data-theme="light"] .svc-contact-card {
  background: rgba(0,153,187,0.06);
  border-color: rgba(0,153,187,0.22);
}
html[data-theme="light"] .svc-contact-card-header { color: #0099bb; }
html[data-theme="light"] .svc-big-phone { color: #0f172a; }
html[data-theme="light"] .svc-contact-card p { color: #475569; }

html[data-theme="light"] .svc-info-box {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.09);
}
html[data-theme="light"] .svc-info-box h3 { color: #0f172a; }
html[data-theme="light"] .svc-info-list li { color: #475569; }
html[data-theme="light"] .svc-info-list svg { stroke: #0099bb; }

html[data-theme="light"] .svc-related { background: #e8edf6; }
html[data-theme="light"] .svc-related-title { color: #0f172a; }
html[data-theme="light"] .rel-card {
  background: #fff;
  border-color: rgba(0,0,0,0.09);
  color: #334155;
}
html[data-theme="light"] .rel-card:hover {
  border-color: rgba(0,153,187,0.3);
  background: rgba(0,153,187,0.04);
}
html[data-theme="light"] .rel-card-icon { color: #0099bb; }
html[data-theme="light"] .rel-card-name { color: #0f172a; }
html[data-theme="light"] .rel-card-arrow { color: #0099bb; }

html[data-theme="light"] .svc-gallery { background: #e2e9f5; border-top-color: rgba(0,153,187,0.12); }
html[data-theme="light"] .svc-gallery-title { color: #0f172a; }
html[data-theme="light"] .svc-photo-item { background: #c8d8ea; }

html[data-theme="light"] .svc-lb-overlay { background: rgba(0,0,0,0.88); }
html[data-theme="light"] .svc-lb-close { color: #fff; }
html[data-theme="light"] .svc-lb-prev,
html[data-theme="light"] .svc-lb-next { color: rgba(255,255,255,0.7); }

/* Article pages (art-* classes from inline styles) */
html[data-theme="light"] .art-hero {
  background: linear-gradient(180deg, #dce6f5 0%, #f0f4fb 100%) !important;
  border-bottom: 1px solid rgba(0,153,187,0.12);
}
html[data-theme="light"] .art-back { color: #0099bb; }
html[data-theme="light"] .art-cat-badge {
  background: rgba(0,153,187,0.10);
  border-color: rgba(0,153,187,0.25);
  color: #0099bb;
}
html[data-theme="light"] .art-title   { color: #0f172a; }
html[data-theme="light"] .art-meta    { color: #64748b; }
html[data-theme="light"] .art-cover   { opacity: 0.9; }
html[data-theme="light"] .art-body    { background: #f0f4fb; }
html[data-theme="light"] .art-body h2 { color: #0f172a; border-bottom-color: rgba(0,0,0,0.08); }
html[data-theme="light"] .art-body h3 { color: #1e293b; }
html[data-theme="light"] .art-body p  { color: #334155; }
html[data-theme="light"] .art-body li { color: #334155; }
html[data-theme="light"] .art-body a  { color: #0099bb; }
html[data-theme="light"] .art-faq {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.09);
}
html[data-theme="light"] .art-faq-q { color: #0f172a; }
html[data-theme="light"] .art-faq p  { color: #475569; }
html[data-theme="light"] .art-cta-box {
  background: rgba(0,153,187,0.07);
  border-color: rgba(0,153,187,0.22);
}
html[data-theme="light"] .art-cta-box h3 { color: #0099bb; }
html[data-theme="light"] .art-cta-box p  { color: #475569; }

/* Light mode hero backgrounds:
   - .has-photo-bg: CSS gradient !important (from style.css .svc-hero.section-navy rule)
     overrides the inline photo URL — photo hidden, gradient shows, overlay transparent.
   - :not(.has-photo-bg): gradient applies naturally from .section-navy rule. */
html[data-theme="light"] .svc-hero.has-photo-bg .bg-overlay {
  background: transparent !important;
}
html[data-theme="light"] .svc-hero:not(.has-photo-bg) .bg-overlay {
  background: rgba(220,230,245,0.40) !important;
}

/* Nu există secțiuni non-svc-hero cu has-photo-bg pe site;
   dacă apar, gradientul din .section-navy (style.css) le acoperă automat. */
