/* ============================================================
   Scanova Services — Inspection Mosaic Showcase
   Brand: #121212 (ink) · #FED325 (gold)
   ============================================================ */

.scanova-services {
  --sv-ink: #121212;
  --sv-ink-soft: #1a1a1a;
  --sv-gold: #FED325;
  --sv-white: #ffffff;
  --sv-muted: rgba(255, 255, 255, 0.68);
  --sv-line: rgba(254, 211, 37, 0.22);
  --sv-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(254, 211, 37, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 85%, rgba(254, 211, 37, 0.06), transparent 50%),
    linear-gradient(165deg, #121212 0%, #18160f 48%, #121212 100%);
  color: var(--sv-white);
  padding: clamp(72px, 11vw, 140px) 0;
  overflow: hidden;
}

.scanova-services .sv-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent 0,
      transparent 46px,
      rgba(254, 211, 37, 0.035) 46px,
      rgba(254, 211, 37, 0.035) 47px
    );
  mask-image: linear-gradient(180deg, black 10%, transparent 92%);
}

.scanova-services .sv-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ---------- Header ---------- */
.scanova-services .sv-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.scanova-services .sv-brand {
  display: block;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--sv-gold);
  margin-bottom: 18px;
}

.scanova-services .sv-title {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--sv-white) !important;
  margin: 0 0 14px;
}

.scanova-services .sv-subtitle {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
  color: var(--sv-muted);
}

.scanova-services .sv-header-action {
  justify-self: end;
  text-align: end;
}

.scanova-services .sv-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--sv-gold);
  color: var(--sv-ink);
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.35s var(--sv-ease), box-shadow 0.35s ease;
}

.scanova-services .sv-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(254, 211, 37, 0.28);
  color: var(--sv-ink);
}

.scanova-services .sv-cta-btn:focus-visible {
  outline: 2px solid var(--sv-gold);
  outline-offset: 3px;
}

.scanova-services .sv-cta-btn i {
  transition: transform 0.3s var(--sv-ease);
}

.scanova-services .sv-cta-btn:hover i {
  transform: translateX(3px);
}

[dir="rtl"] .scanova-services .sv-header-action {
  justify-self: start;
  text-align: start;
}

[dir="rtl"] .scanova-services .sv-cta-btn:hover i {
  transform: translateX(-3px);
}

/* ---------- Mosaic grid ---------- */
.scanova-services .sv-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr) minmax(180px, auto);
  gap: 14px;
  min-height: 560px;
}

.scanova-services .sv-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-block-size: 180px;
  padding: clamp(20px, 2.4vw, 32px);
  overflow: hidden;
  text-decoration: none;
  color: var(--sv-white);
  border: 1px solid var(--sv-line);
  border-radius: 6px;
  background-color: var(--sv-ink-soft);
  background-image: var(--sv-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition:
    border-color 0.35s ease,
    transform 0.45s var(--sv-ease),
    background-size 0.7s var(--sv-ease);
  content-visibility: auto;
  contain-intrinsic-size: 280px 220px;
}

.scanova-services .sv-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(18, 18, 18, 0.1) 0%,
      rgba(18, 18, 18, 0.35) 48%,
      rgba(18, 18, 18, 0.88) 100%
    );
  pointer-events: none;
}

.scanova-services .sv-tile--a {
  grid-column: 1 / span 7;
  grid-row: 1 / span 3;
  min-block-size: 560px;
}

.scanova-services .sv-tile--b {
  grid-column: 8 / span 5;
  grid-row: 1;
}

.scanova-services .sv-tile--c {
  grid-column: 8 / span 5;
  grid-row: 2;
}

.scanova-services .sv-tile--d {
  grid-column: 8 / span 3;
  grid-row: 3;
}

.scanova-services .sv-tile--e {
  grid-column: 11 / span 2;
  grid-row: 3;
}

/* Optional zoom layer mirrors the card background on hover */
.scanova-services .sv-tile-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--sv-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.7s var(--sv-ease);
  pointer-events: none;
}

.scanova-services .sv-tile:hover .sv-tile-media,
.scanova-services .sv-tile:focus-visible .sv-tile-media {
  transform: scale(1.08);
}

.scanova-services .sv-tile:hover,
.scanova-services .sv-tile:focus-visible {
  border-color: var(--sv-gold);
  transform: translateY(-3px);
  z-index: 2;
}

.scanova-services .sv-tile:focus-visible {
  outline: 2px solid var(--sv-gold);
  outline-offset: 3px;
}

.scanova-services .sv-tile-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scanova-services .sv-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scanova-services .sv-tile-num {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sv-gold);
}

.scanova-services .sv-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--sv-gold);
  color: var(--sv-ink);
  border-radius: 4px;
  font-size: 18px;
  flex-shrink: 0;
}

.scanova-services .sv-tile--a .sv-tile-icon {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.scanova-services .sv-tile-title {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sv-white) !important;
  margin: 0;
}

.scanova-services .sv-tile--a .sv-tile-title {
  font-size: clamp(26px, 3.4vw, 40px);
  max-width: 14ch;
}

.scanova-services .sv-tile-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sv-muted);
  max-width: 36ch;
}

.scanova-services .sv-tile--e .sv-tile-desc {
  display: none;
}

.scanova-services .sv-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sv-gold);
  transition: gap 0.3s var(--sv-ease);
}

.scanova-services .sv-tile:hover .sv-tile-cta,
.scanova-services .sv-tile:focus-visible .sv-tile-cta {
  gap: 14px;
}

[dir="rtl"] .scanova-services .sv-tile-cta i {
  transform: scaleX(-1);
}

/* Scroll-driven reveal (progressive enhancement) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .scanova-services .sv-tile {
      animation: sv-tile-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }

    .scanova-services .sv-header > * {
      animation: sv-tile-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
  }
}

@keyframes sv-tile-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .scanova-services .sv-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .scanova-services .sv-header-action {
    justify-self: start;
    text-align: start;
  }

  .scanova-services .sv-mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    min-height: 0;
  }

  .scanova-services .sv-tile--a {
    grid-column: 1 / span 6;
    grid-row: auto;
    min-block-size: 360px;
  }

  .scanova-services .sv-tile--b,
  .scanova-services .sv-tile--c,
  .scanova-services .sv-tile--d,
  .scanova-services .sv-tile--e {
    grid-column: span 3;
    grid-row: auto;
    min-block-size: 220px;
  }

  .scanova-services .sv-tile--e .sv-tile-desc {
    display: block;
  }
}

@media (max-width: 640px) {
  .scanova-services .sv-mosaic {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scanova-services .sv-tile--a,
  .scanova-services .sv-tile--b,
  .scanova-services .sv-tile--c,
  .scanova-services .sv-tile--d,
  .scanova-services .sv-tile--e {
    grid-column: 1;
    min-block-size: 210px;
  }

  .scanova-services .sv-tile--a {
    min-block-size: 300px;
  }

  .scanova-services .sv-tile-desc {
    display: none;
  }

  .scanova-services .sv-tile--a .sv-tile-desc {
    display: block;
  }
}

@media (pointer: coarse) {
  .scanova-services .sv-cta-btn {
    min-block-size: 48px;
  }

  .scanova-services .sv-tile {
    min-block-size: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scanova-services .sv-tile,
  .scanova-services .sv-tile-media,
  .scanova-services .sv-tile-cta,
  .scanova-services .sv-cta-btn,
  .scanova-services .sv-cta-btn i {
    transition: none !important;
    animation: none !important;
  }
}


/* ============================================================
   Service Details Page
   ============================================================ */
.svd-page {
  --svd-ink: #121212;
  --svd-gold: #FED325;
  --svd-muted: rgba(255, 255, 255, 0.65);
  --svd-border: rgba(254, 211, 37, 0.15);
  background: var(--svd-ink);
}

/* Hero */
.svd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-bottom: 1px solid var(--svd-border);
}

.svd-hero-image {
  position: relative;
  overflow: hidden;
}

.svd-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.svd-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--svd-ink) 100%);
}

[dir="rtl"] .svd-hero-image::after {
  background: linear-gradient(270deg, transparent 60%, var(--svd-ink) 100%);
}

.svd-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
}

.svd-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--svd-gold);
  margin-bottom: 20px;
}

.svd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
}

.svd-breadcrumb a {
  color: var(--svd-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.svd-breadcrumb a:hover {
  color: var(--svd-gold);
}

.svd-breadcrumb span:last-child {
  color: var(--svd-gold);
}

.svd-hero-content h1,
.svd-hero-content #details-title {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.1;
  color: #ffffff !important;
  margin-bottom: 20px;
}

.svd-hero-content #full-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--svd-muted);
  margin-bottom: 32px;
}

.svd-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.svd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--svd-gold);
  color: var(--svd-ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254, 211, 37, 0.3);
  color: var(--svd-ink);
}

.svd-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--svd-border);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.svd-btn-ghost:hover {
  border-color: var(--svd-gold);
  background: rgba(254, 211, 37, 0.08);
  color: #ffffff;
}

/* Body layout */
.svd-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 4vw, 48px);
}

/* Sidebar */
.svd-sidebar {
  padding-right: 40px;
  border-right: 1px solid var(--svd-border);
}

[dir="rtl"] .svd-sidebar {
  padding-right: 0;
  padding-left: 40px;
  border-right: none;
  border-left: 1px solid var(--svd-border);
}

.svd-sidebar h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svd-gold) !important;
  margin-bottom: 20px;
}

.svd-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svd-nav li {
  margin-bottom: 4px;
}

.svd-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--svd-muted);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.svd-nav a:hover {
  background: rgba(254, 211, 37, 0.08);
  color: #ffffff;
}

.svd-nav a.active {
  background: var(--svd-gold);
  color: var(--svd-ink);
  font-weight: 700;
}

.svd-nav-num {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  min-width: 20px;
}

.svd-nav a.active .svd-nav-num {
  opacity: 1;
}

/* Main content */
.svd-main {
  padding-left: clamp(32px, 5vw, 64px);
}

[dir="rtl"] .svd-main {
  padding-left: 0;
  padding-right: clamp(32px, 5vw, 64px);
}

.svd-section {
  margin-bottom: clamp(48px, 8vw, 72px);
}

.svd-section:last-child {
  margin-bottom: 0;
}

.svd-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: clamp(22px, 3vw, 28px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 28px;
}

.svd-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--svd-border);
}

/* Benefits grid */
.svd-benefits-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.svd-benefits-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--svd-border);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--svd-muted);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.svd-benefits-grid li::before {
  content: '\eb7b';
  font-family: 'remixicon' !important;
  font-size: 18px;
  color: var(--svd-gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.svd-benefits-grid li:hover {
  border-color: rgba(254, 211, 37, 0.4);
  background: rgba(254, 211, 37, 0.05);
}

/* Features grid */
.svd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.svd-feature-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(254, 211, 37, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--svd-border);
  border-radius: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.svd-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(254, 211, 37, 0.35);
}

.svd-feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--svd-gold);
  color: var(--svd-ink);
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  margin-bottom: 14px;
}

.svd-feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--svd-muted);
  margin: 0;
}

/* Details responsive */
@media (max-width: 900px) {
  .svd-hero {
    grid-template-columns: 1fr;
  }
  .svd-hero-image::after {
    background: linear-gradient(180deg, transparent 50%, var(--svd-ink) 100%);
  }
  .svd-body {
    grid-template-columns: 1fr;
  }
  .svd-sidebar {
    padding-right: 0;
    padding-left: 0;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--svd-border);
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  [dir="rtl"] .svd-sidebar {
    padding-left: 0;
    border-left: none;
  }
  .svd-main {
    padding-left: 0;
    padding-right: 0;
  }
  [dir="rtl"] .svd-main {
    padding-right: 0;
  }
  .svd-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .svd-nav li {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svd-feature-card,
  .svd-btn-primary,
  .svd-btn-ghost,
  .svd-benefits-grid li {
    transition: none !important;
  }
}
