/* ══════════════════════════════════════════════════════════════
   SHARED SERVICE-PAGE SYSTEM
   Used by: networking.html, seo-optimization.html, ecommerce-solutions.html
   Mirrors the erp.html page pattern (hero / problem / included / process
   timeline / why-us / industries / faq / cta / related-reading) as
   reusable classes so new service pages stay visually consistent with
   the rest of the site without duplicating ~700 lines of inline CSS
   per page. Do not inline variables that belong in design-tokens.css.
   ══════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.svc-hero {
  background: linear-gradient(160deg, var(--clr-surface-1) 0%, #ffffff 55%);
  padding: calc(80px + var(--space-20)) 0 var(--space-16);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--clr-border);
}
.svc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,77,181,0.055) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.svc-hero::after {
  content: attr(data-watermark);
  position: absolute; bottom: -0.08em; right: -0.04em;
  font-family: var(--font-display); font-size: clamp(10rem, 22vw, 24rem);
  line-height: 1; letter-spacing: -0.04em;
  color: rgba(26,77,181,0.05); pointer-events: none; user-select: none;
  white-space: nowrap;
}
.svc-hero > .container { position: relative; z-index: 2; max-width: 900px; }
.svc-hero__eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--clr-cyan);
  margin-bottom: var(--space-6);
}
.svc-hero__eyebrow span { display: inline-block; width: 36px; height: 1.5px; background: var(--clr-cyan); }
.svc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.94; letter-spacing: 0.01em;
  color: var(--clr-text); margin: 0 0 var(--space-8);
}
.svc-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--clr-amber) 0%, var(--clr-cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.svc-hero__sub {
  color: var(--clr-text-muted); font-size: var(--text-lg); line-height: 1.75;
  max-width: 580px; margin-bottom: var(--space-12);
}
.svc-hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-16); }
.btn-svc-primary {
  background: var(--clr-amber); color: #fff;
  font-weight: 700; border: 2px solid var(--clr-amber);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-svc-primary:hover {
  background: var(--clr-amber-dim); border-color: var(--clr-amber-dim);
  transform: translateY(-2px); box-shadow: var(--shadow-amber);
}
.btn-svc-ghost {
  background: transparent; color: var(--clr-text);
  border: 1.5px solid var(--clr-border-hi);
}
.btn-svc-ghost:hover { border-color: var(--clr-amber); color: var(--clr-amber); background: rgba(26,77,181,0.04); }

.svc-hero__stats {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: start; gap: 0;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-10);
}
.svc-hero__stat { padding-right: var(--space-12); border-right: 1px solid var(--clr-border); }
.svc-hero__stat:last-child { border-right: none; padding-right: 0; }
.svc-hero__stat:not(:first-child) { padding-left: var(--space-12); }
.svc-hero__stat-num {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1; letter-spacing: 0.01em; color: var(--clr-amber); display: block;
}
.svc-hero__stat-lbl {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--clr-text-muted); margin-top: var(--space-1);
  display: block;
}
@media (max-width: 600px) {
  .svc-hero__stats { grid-template-columns: 1fr; gap: var(--space-5); }
  .svc-hero__stat { border-right: none; padding-left: 0 !important; padding-right: 0; }
  .svc-hero__stat:not(:last-child) { border-bottom: 1px solid var(--clr-border); padding-bottom: var(--space-5); }
}

/* ── PROBLEM — bold numbered rows ── */
.svc-problem { padding: var(--space-24) 0; background: #fff; }
.svc-problem-list { display: flex; flex-direction: column; border-top: 2px solid var(--clr-text); margin-top: var(--space-14); }
.svc-problem-item {
  display: grid; grid-template-columns: 110px 1fr;
  gap: var(--space-10); align-items: flex-start;
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  transition: padding-left 0.25s ease, background 0.25s ease;
}
.svc-problem-item:last-child { border-bottom: none; }
.svc-problem-item:hover { background: var(--clr-surface-0); padding-left: var(--space-5); padding-right: var(--space-5); border-radius: var(--radius-lg); }
.svc-problem-num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--clr-amber) 0%, var(--clr-cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-align: right; padding-top: 4px;
}
.svc-problem-body h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: 0.03em; color: var(--clr-text); line-height: 1.1; margin-bottom: var(--space-3);
}
.svc-problem-body p { color: var(--clr-text-muted); font-size: var(--text-base); line-height: 1.80; max-width: 580px; text-align: justify; }
@media (max-width: 600px) {
  .svc-problem-item { grid-template-columns: 64px 1fr; gap: var(--space-5); }
  .svc-problem-num { font-size: 3.5rem; }
}

/* ── WHAT'S INCLUDED — 4-col bordered icon grid ── */
.svc-included { padding: var(--space-24) 0; background: #fff; border-top: 1px solid var(--clr-border); }
.svc-included-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--clr-border);
  border: 1px solid var(--clr-border); border-radius: var(--radius-xl);
  overflow: hidden; margin-top: var(--space-14);
}
@media (max-width: 1024px) { .svc-included-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .svc-included-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-included-cell {
  background: #fff; padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4);
  position: relative; overflow: hidden;
  transition: background 0.25s ease;
}
.svc-included-cell::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--clr-amber), var(--clr-cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.30s ease;
}
.svc-included-cell:hover { background: var(--clr-surface-0); }
.svc-included-cell:hover::after { transform: scaleX(1); }
.svc-included-icon {
  width: 52px; height: 52px;
  background: rgba(26,77,181,0.07); border: 1px solid rgba(26,77,181,0.13);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.svc-included-cell:hover .svc-included-icon { background: rgba(26,77,181,0.13); border-color: rgba(26,77,181,0.24); }
.svc-included-icon svg { width: 22px; height: 22px; stroke: var(--clr-amber); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-included-name { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: 0.03em; color: var(--clr-text); line-height: 1.15; }
.svc-included-desc { font-size: var(--text-sm); color: var(--clr-text-muted); line-height: 1.6; }

/* ── PROCESS TIMELINE — vertical ── */
.svc-process { background: var(--clr-surface-0); padding: var(--space-24) 0; border-top: 1px solid var(--clr-border); }
.svc-timeline { max-width: 860px; margin: var(--space-14) auto 0; position: relative; }
.svc-timeline::before {
  content: '';
  position: absolute; left: 28px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, #1A4DB5 0%, #0097BE 60%, rgba(0,151,190,0.15) 100%);
}
@media (max-width: 640px) { .svc-timeline::before { left: 20px; } }
.svc-tl-item { display: grid; grid-template-columns: 58px 1fr; gap: var(--space-8); margin-bottom: var(--space-7); align-items: flex-start; }
.svc-tl-item:last-child { margin-bottom: 0; }
.svc-tl-dot {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--clr-amber); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.06em; color: #fff;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 6px var(--clr-surface-0), 0 0 0 8px rgba(26,77,181,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-tl-item:hover .svc-tl-dot { transform: scale(1.10); box-shadow: 0 0 0 6px var(--clr-surface-0), 0 0 0 10px rgba(26,77,181,0.30); }
.svc-tl-item:nth-child(2) .svc-tl-dot { background: var(--clr-cyan); }
.svc-tl-item:nth-child(3) .svc-tl-dot { background: linear-gradient(135deg, var(--clr-amber), var(--clr-cyan)); }
.svc-tl-item:nth-child(4) .svc-tl-dot { background: var(--clr-amber); }
.svc-tl-item:nth-child(5) .svc-tl-dot { background: #0B1829; border: 2px solid rgba(255,255,255,0.3); }
.svc-tl-body {
  background: #fff; border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: var(--space-8) var(--space-9);
  position: relative; overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.svc-tl-body::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--clr-amber), var(--clr-cyan));
  opacity: 0; transition: opacity 0.25s ease;
}
.svc-tl-item:hover .svc-tl-body { border-color: rgba(26,77,181,0.18); box-shadow: 0 6px 28px rgba(26,77,181,0.09); transform: translateX(5px); }
.svc-tl-item:hover .svc-tl-body::before { opacity: 1; }
.svc-tl-phase { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-cyan); margin-bottom: var(--space-2); }
.svc-tl-body h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: 0.04em; color: var(--clr-text); margin-bottom: var(--space-3); }
.svc-tl-body p { color: var(--clr-text-muted); font-size: var(--text-base); line-height: 1.8; margin: 0; text-align: justify; }
@media (max-width: 640px) {
  .svc-tl-item { grid-template-columns: 42px 1fr; gap: var(--space-4); }
  .svc-tl-dot { width: 42px; height: 42px; font-size: 0.65rem; }
  .svc-tl-body { padding: var(--space-6) var(--space-5); }
}

/* ── WHY CHOOSE US — light 2×2 editorial ── */
.svc-why { background: var(--clr-surface-0); padding: var(--space-24) 0; border-top: 1px solid var(--clr-border); position: relative; overflow: hidden; }
.svc-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-14); }
@media (max-width: 767px) { .svc-why-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.svc-why-item {
  padding: var(--space-10) var(--space-10);
  background: #fff; border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.svc-why-item:hover { border-color: rgba(26,77,181,0.28); box-shadow: 0 8px 32px rgba(26,77,181,0.08); transform: translateY(-3px); }
.svc-why-anchor {
  font-family: var(--font-display); font-size: clamp(6rem, 10vw, 10rem);
  line-height: 1; letter-spacing: -0.03em; color: rgba(26,77,181,0.05);
  position: absolute; top: var(--space-4); right: var(--space-4);
  pointer-events: none; user-select: none;
}
.svc-why-icon {
  width: 56px; height: 56px;
  background: rgba(26,77,181,0.07); border: 1px solid rgba(26,77,181,0.14);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-7);
  position: relative; z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.svc-why-item:hover .svc-why-icon { background: rgba(26,77,181,0.13); border-color: rgba(26,77,181,0.26); }
.svc-why-icon svg { width: 26px; height: 26px; stroke: var(--clr-amber); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-why-item h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.04em; color: var(--clr-text); line-height: 1.1;
  margin-bottom: var(--space-4); position: relative; z-index: 1;
}
.svc-why-item p { color: var(--clr-text-muted); font-size: var(--text-base); line-height: 1.80; position: relative; z-index: 1; text-align: justify; }
@media (max-width: 600px) { .svc-why-item { padding: var(--space-8) var(--space-6); } }

/* ── INDUSTRIES — wrapped pill grid ── */
.svc-industries { padding: var(--space-20) 0; background: var(--clr-surface-0); border-top: 1px solid var(--clr-border); }
.svc-industries-wrap { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-10); justify-content: center; }
.svc-industry-pill {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: #fff; border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm); font-weight: 500; color: var(--clr-text);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.20s ease, box-shadow 0.20s ease;
  cursor: default;
}
.svc-industry-pill:hover { border-color: rgba(26,77,181,0.28); background: rgba(26,77,181,0.04); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,77,181,0.10); }
.svc-industry-icon { font-size: 1.15rem; flex-shrink: 0; }

/* ── CTA — brand blue gradient ── */
.svc-cta {
  padding: var(--space-28) 0; text-align: center;
  background: linear-gradient(140deg, #0A2E82 0%, #1A4DB5 40%, #0881B3 75%, #0097BE 100%);
  position: relative; overflow: hidden;
}
.svc-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.040) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.svc-cta::after {
  content: attr(data-watermark);
  position: absolute; bottom: -0.1em; right: -0.04em;
  font-family: var(--font-display); font-size: clamp(8rem, 18vw, 18rem);
  line-height: 1; letter-spacing: -0.04em;
  color: rgba(255,255,255,0.05); pointer-events: none; user-select: none;
  white-space: nowrap;
}
.svc-cta > .container { position: relative; z-index: 2; }
.svc-cta h2 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.94; letter-spacing: 0.01em; color: #fff; margin-bottom: var(--space-5);
}
.svc-cta p { color: rgba(255,255,255,0.72); font-size: var(--text-lg); line-height: 1.70; max-width: 540px; margin: 0 auto var(--space-10); }
.btn-cta-white { background: #fff; color: var(--clr-amber); border: 2px solid #fff; font-weight: 700; }
.btn-cta-white:hover { background: rgba(255,255,255,0.92); }
.btn-cta-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.42); }
.btn-cta-outline:hover { border-color: #fff; background: rgba(255,255,255,0.09); }

/* ── FAQ ── */
.svc-faq { padding: var(--space-24) 0; background: #fff; }
.svc-faq-inner { max-width: 780px; margin: var(--space-14) auto 0; }

/* ── RELATED READING — card grid ── */
.svc-related { background: var(--clr-surface-0); padding: var(--space-24) 0; border-top: 1px solid var(--clr-border); }
.svc-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-10); }
@media (max-width: 900px) { .svc-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .svc-related-grid { grid-template-columns: 1fr; } }
.svc-reading-card {
  background: #fff; border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.svc-reading-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(11,24,41,0.12); border-color: var(--clr-amber); }
.svc-reading-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; gap: var(--space-3); }
.svc-reading-card__cat {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-amber); border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm); padding: 2px var(--space-2); width: fit-content;
}
.svc-reading-card__title { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; color: var(--clr-text); }
.svc-reading-card:hover .svc-reading-card__title { color: var(--clr-amber); }
.svc-reading-card__excerpt { font-size: var(--text-sm); color: var(--clr-text-muted); line-height: 1.65; flex: 1; }
.svc-reading-card__link { display: inline-block; font-size: var(--text-sm); font-weight: 600; color: var(--clr-amber); margin-top: var(--space-2); transition: letter-spacing 0.20s ease; }
.svc-reading-card:hover .svc-reading-card__link { letter-spacing: 0.03em; }

/* ── DESKTOP SERVICES DROPDOWN (navbar) ── */
.navbar__links { position: relative; }
.navbar__link-item { position: relative; }
.navbar__dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(11,24,41,0.14);
  padding: var(--space-2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1002;
}
.navbar__link-item:hover .navbar__dropdown-panel,
.navbar__link-item:focus-within .navbar__dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.navbar__dropdown-panel a {
  display: block; padding: var(--space-3) var(--space-4) !important;
  font-size: var(--text-sm); color: var(--clr-text-muted); border-radius: var(--radius-sm);
  white-space: nowrap;
}
.navbar__dropdown-panel a:hover { background: var(--clr-surface-0); color: var(--clr-amber); }
.navbar__dropdown-panel .navbar__dropdown-divider { height: 1px; background: var(--clr-border); margin: var(--space-2) var(--space-1); }
