/* ═══════════════════════════════════════════════
   NEXER TECHNOLOGY — services.css
   Styles for individual service detail pages.
   Loaded only on service pages, not sitewide.
   ═══════════════════════════════════════════════ */


/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.svc-hero {
  padding: 7rem 3rem 5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.svc-kicker {
  font-size: 0.65rem; letter-spacing: 0.28em;
  text-transform: uppercase; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.svc-kicker::before {
  content: ''; width: 2rem; height: 1px; background: currentColor;
}

.svc-hero h1 {
  font-weight: 900; font-style: italic;
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.9; letter-spacing: -0.03em;
  color: var(--white); max-width: 820px; margin-bottom: 2rem;
}

.svc-intro {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted); line-height: 1.75;
  max-width: 680px; font-weight: 300;
}


/* ─────────────────────────────────────────────
   BODY WRAPPER
───────────────────────────────────────────── */
.svc-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
}


/* ─────────────────────────────────────────────
   INTRO TEXT BLOCK
───────────────────────────────────────────── */
.svc-lead {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.svc-lead h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--white);
  position: sticky; top: 7rem;
}

.svc-paragraphs p {
  font-size: 0.97rem; color: var(--muted);
  line-height: 1.9; margin-bottom: 1.4rem;
}
.svc-paragraphs p:last-child { margin-bottom: 0; }


/* ─────────────────────────────────────────────
   PLATFORM BADGES  (ERP page)
───────────────────────────────────────────── */
.svc-platforms {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.svc-platform-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
  background: var(--surface2);
  border: 1px solid var(--rule);
  padding: 0.5rem 1.1rem;
}

.platform-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   FEATURES GRID
───────────────────────────────────────────── */
.svc-features-section {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.svc-features-label {
  font-size: 0.65rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.svc-features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-feat-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  align-items: stretch;
  transition: background 0.2s;
  text-decoration: none;
}
.svc-feat-row:first-child { border-top: 1px solid var(--rule); }
.svc-feat-row:hover { background: var(--surface2); }

.svc-feat-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--rule);
  padding: 1.8rem 1rem;
  flex-shrink: 0;
}

.svc-feat-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.svc-feat-row:hover .svc-feat-icon-img { opacity: 1; }

.svc-feat-icon-placeholder {
  width: 36px; height: 36px;
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
/* Crosshair lines to signal "icon goes here" */
.svc-feat-icon-placeholder::before,
.svc-feat-icon-placeholder::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.1);
}
.svc-feat-icon-placeholder::before { width: 1px; height: 60%; }
.svc-feat-icon-placeholder::after  { width: 60%; height: 1px; }

.svc-feat-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.8rem 2rem;
}

.svc-feat-body h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1rem;
  color: var(--white); line-height: 1.2;
}

.svc-feat-body p {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.8;
}


/* ─────────────────────────────────────────────
   WHY NEXER
───────────────────────────────────────────── */
.svc-why-section {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.svc-why-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Image column */
.svc-why-image {
  position: sticky; top: 7rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.svc-why-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.svc-why-image:hover img { transform: scale(1.03); }

/* Placeholder shown when image is missing */
.svc-why-image.img-placeholder {
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
}
.svc-why-image.img-placeholder::after {
  content: 'Image coming soon';
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}

/* Text column */
.svc-why-kicker {
  font-size: 0.65rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.2rem;
}

.svc-why-text {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.9;
}

/* Points column */
.svc-why-points {
  list-style: none;
  display: flex; flex-direction: column; gap: 0;
  padding-top: 0.4rem;
}

.svc-why-points li {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.88rem; color: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.svc-why-points li:first-child { border-top: 1px solid var(--rule); }

.why-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}


/* ─────────────────────────────────────────────
   BLOG REFERENCE
───────────────────────────────────────────── */
.svc-blog-ref {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.blog-ref-label {
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}

.blog-ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}
.blog-ref-grid .blog-ref-card {
  border: none;
  border-right: 1px solid var(--rule);
}
.blog-ref-grid .blog-ref-card:last-child {
  border-right: none;
}

.blog-ref-card {
  display: block; text-decoration: none;
  padding: 2.5rem;
  border: 1px solid var(--rule);
  transition: background 0.25s, border-color 0.25s;
  max-width: 700px;
}
.blog-ref-card:hover { background: var(--surface2); border-color: rgba(255,255,255,0.2); }

.blog-ref-tag {
  display: inline-block;
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; margin-bottom: 1rem;
}

.blog-ref-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.3rem;
  color: var(--white); line-height: 1.2;
  margin-bottom: 0.8rem;
}

.blog-ref-card p {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 1.2rem;
}

.blog-ref-meta {
  font-size: 0.68rem; color: var(--muted);
  margin-bottom: 0.5rem;
}
.blog-ref-meta span { color: var(--muted); }

.blog-ref-arrow {
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  transition: letter-spacing 0.2s;
}
.blog-ref-card:hover .blog-ref-meta {
  font-size: 0.68rem; color: var(--muted);
  margin-bottom: 0.5rem;
}
.blog-ref-meta span { color: var(--muted); }

.blog-ref-arrow { letter-spacing: 0.18em; }


/* ─────────────────────────────────────────────
   CTA BAR
───────────────────────────────────────────── */
.svc-cta-bar {
  margin-top: 5rem;
  padding: 3rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.svc-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.svc-cta-bar h3 {
  font-weight: 700; font-size: 1.4rem;
  color: var(--white); margin-bottom: 0.5rem;
  line-height: 1.2;
}

.svc-cta-bar p {
  font-size: 0.85rem; color: var(--muted);
}

.svc-cta-bar .btn-fill { flex-shrink: 0; white-space: nowrap; }


/* ─────────────────────────────────────────────
   LOCALIZATION — Country sections
───────────────────────────────────────────── */
.loc-countries-intro {
  font-size: 0.9rem; color: var(--muted);
  line-height: 1.75; padding: 3rem 0 1rem;
  border-top: 1px solid var(--rule);
}

.loc-countries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.loc-country {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}
.loc-country:last-child { border-bottom: none; }

.loc-country-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.loc-flag {
  width: 42px; height: 28px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}

.loc-flag-placeholder {
  width: 42px; height: 28px;
  background: var(--surface2);
  border: 1px dashed var(--rule);
  border-radius: 2px;
  flex-shrink: 0;
}

.loc-country-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.loc-country-intro {
  font-size: 0.9rem; color: var(--muted);
  line-height: 1.8; margin-bottom: 2.5rem;
  max-width: 820px;
}

.loc-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-left: 1px solid var(--rule);
}

.loc-topic {
  padding: 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.loc-topic:hover { background: var(--surface2); }

/* Remove bottom border on last row */
.loc-topic:nth-last-child(-n+2):nth-child(odd),
.loc-topic:nth-last-child(1) { border-bottom: none; }
.loc-topic:last-child { border-bottom: none; }

.loc-topic-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 0.98rem;
  line-height: 1.2; margin-bottom: 0.8rem;
}

.loc-topic-desc {
  font-size: 0.83rem; color: var(--muted);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {

  .svc-hero { padding: 5rem 1.5rem 3rem; }

  .svc-body { padding: 0 1.5rem 4rem; }

  .svc-lead {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }
  .svc-lead h2 { position: static; }

  .svc-feat-row { grid-template-columns: 56px 1fr; }
  .loc-topics { grid-template-columns: 1fr; }
  .blog-ref-grid { grid-template-columns: 1fr; }
  .blog-ref-grid .blog-ref-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .blog-ref-grid .blog-ref-card:last-child { border-bottom: none; }
  .loc-topic:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--rule); }
  .loc-topic:last-child { border-bottom: none; }
  .svc-feat-icon-col { padding: 1.2rem 0.8rem; }
  .svc-feat-body { padding: 1.2rem 1.2rem; }

  .svc-why-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .svc-why-image {
    position: static;
    aspect-ratio: 16 / 9;
  }

  .svc-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}
