/* ============================================================
   HexaHire Solution — Service Page Styles
   Token system:
   Color   — bg #0B0E14, surface #131826, border #232B3D,
             text #E7EAF0, muted #8993A8,
             accent-violet #7C6CF6, accent-cyan #35D0C4
   Type    — Display: 'Space Grotesk', Body: 'Inter',
             Mono/eyebrow: 'JetBrains Mono'
   Motif   — system-log "status pill" eyebrows (MATCHED / DEPLOYED
             style ticker already used on the homepage), reused
             here as section labels for continuity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --bg: #0B0E14;
  --surface: #131826;
  --surface-2: #171E2E;
  --border: #232B3D;
  --text: #E7EAF0;
  --muted: #8993A8;
  --accent: #7C6CF6;
  --accent-2: #35D0C4;
  --radius: 10px;
  --max: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header nav a:hover { color: var(--text); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: #6a5aeb; text-decoration: none; }

@media (max-width: 760px) {
  .site-header nav { display: none; }
}

/* ---------- Performance: images (lazy-load, responsive by default) ---------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Any <img> added later should include loading="lazy" and width/height attributes
   in markup to prevent layout shift — enforced at the HTML level, not CSS. */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span[aria-current] { color: var(--text); }

/* ---------- Premium page hero (matches homepage design language, no 3D) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 20px;
  background:
    radial-gradient(ellipse 700px 400px at 15% -20%, rgba(124,108,246,0.22), transparent 60%),
    radial-gradient(ellipse 500px 350px at 95% 10%, rgba(53,208,196,0.13), transparent 60%);
}
.page-hero .hero-orb-sm {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.3; z-index: 0;
  animation: float-sm 12s ease-in-out infinite;
}
.page-hero .orb-a { width: 260px; height: 260px; background: var(--accent); top: -80px; left: -60px; }
.page-hero .orb-b { width: 200px; height: 200px; background: var(--accent-2); top: -40px; right: 5%; animation-delay: -5s; }
@keyframes float-sm {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(20px, -18px); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Content banner images (illustrations, not stock photos) ---------- */
.content-banner {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.content-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Glass wrap for FAQ / table / case-study blocks ---------- */
.glass-wrap {
  background: rgba(19, 24, 38, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 24px 24px;
  backdrop-filter: blur(10px);
}

/* ---------- Main content ---------- */
.service-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 96px;
}

.service-page h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  margin: 0 0 28px;
  background: linear-gradient(90deg, #fff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; z-index: 1;
}

.service-page h1::before {
  content: "SERVICE";
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin-bottom: 14px;
  -webkit-text-fill-color: var(--accent-2);
}

.service-page h2 {
  font-size: 1.4rem;
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.service-page h1 + h2 { border-top: none; padding-top: 0; margin-top: 0; }

.service-page p { color: var(--text); margin: 0 0 16px; }

.service-page strong { color: #fff; }

.service-page ul, .service-page ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.service-page li { margin-bottom: 8px; color: var(--text); }

/* Key takeaways block — the "status pill" motif reused as a definition box */
.service-page p:has(> strong:first-child:only-child) + ul {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 18px 20px 4px;
  list-style: none;
}
.service-page p:has(> strong:first-child:only-child) + ul li { padding-left: 0; }
.service-page p:has(> strong:first-child:only-child) + ul li::before {
  content: "→";
  color: var(--accent-2);
  margin-right: 8px;
}

/* ---------- Tables (comparisons) ---------- */
.service-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 28px;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-page th, .service-page td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.service-page th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  background: var(--surface-2);
  text-transform: uppercase;
}

.service-page tr:last-child td { border-bottom: none; }

/* ---------- Numbered process steps (01/02/03 - real sequence) ---------- */
.service-page ol > li {
  padding-left: 4px;
}

/* ---------- Links to other services ---------- */
.service-page a {
  border-bottom: 1px solid transparent;
}
.service-page a:hover { border-bottom-color: var(--accent-2); }

/* CTA line at bottom */
.service-page > p:last-of-type:has(strong) {
  margin-top: 40px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
}

.site-footer strong {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-size: 1rem;
}

.site-footer p { color: var(--muted); margin-top: 8px; }

.site-footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}

.site-footer .footer-col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .footer-col a { color: var(--text); }

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--muted); margin-left: 6px; }

@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
}
