/* SERVICE DETAIL PAGE — shared styles for services/[slug].html */

:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f3f5f7;
  --surface-3: #eaf4fc;
  --surface-tint: #dcedff;
  --accent: #0871ea;
  --accent-hover: #0663d0;
  --accent-deep: #256dc2;
  --accent-glow: rgba(8,113,234,0.10);
  --text: #18181b;
  --text-muted: #52525b;
  --text-dim: #71717a;
  --border: #e4e4e7;
  --border-soft: #f3f5f7;
  --radius: 10px;
  --radius-lg: 16px;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'system-ui', 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.65;
}

h1 { font-size: 44px; font-weight: 700; line-height: 1.12; letter-spacing: -1px; color: var(--text); }
h2 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; color: var(--text); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text); }
p { font-size: 16px; line-height: 1.7; color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { max-width: 920px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
@media (min-width: 768px) { .header-inner { padding: 0 40px; } }

.logo { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.back-link {
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 6px;
  transition: all 0.2s;
}
.back-link:hover { color: var(--accent); background: var(--surface-2); }
.back-link svg { width: 16px; height: 16px; }

/* HERO */
.service-hero {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--bg) 80%);
}
.service-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-headline {
  font-size: 18px; color: var(--text-muted);
  line-height: 1.6; margin-top: 18px;
  max-width: 720px;
}
@media (max-width: 700px) {
  h1 { font-size: 32px; letter-spacing: -0.6px; }
  .service-hero { padding: 40px 0 28px; }
}

/* SECTIONS */
.service-section { padding: 48px 0; }
.section-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.4px; margin-bottom: 20px;
  line-height: 1.28;
}
.section-prose p {
  font-size: 16.5px; color: var(--text);
  line-height: 1.75; margin-bottom: 16px;
  max-width: 720px;
}
.section-prose p:last-child { margin-bottom: 0; }
.section-prose strong { color: var(--text); font-weight: 600; }

/* WHAT THIS INVOLVES — bullet list */
.involves-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 760px;
}
.involves-list li {
  position: relative; padding-left: 28px;
  font-size: 16px; color: var(--text); line-height: 1.65;
}
.involves-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230871ea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* ENGAGEMENTS GRID — Option B: wide horizontal cards (logo left, text right) */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.eng-card {
  display: flex; flex-direction: row; align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.2s;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.eng-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(8,113,234,0.10);
  transform: translateY(-2px);
  color: var(--text);
}
.eng-card-logo-tile {
  flex: 0 0 112px; height: 112px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 6px;
  overflow: hidden;
}
.eng-card-logo {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block;
}
.eng-card-logo-fallback {
  width: 100%; height: 100%;
  border-radius: 8px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.eng-card-text { flex: 1; min-width: 0; }
.eng-card-name {
  font-size: 15px; font-weight: 600; line-height: 1.3;
  color: var(--text);
}
.eng-card-meta {
  font-size: 12.5px; color: var(--text-muted);
  margin-top: 4px;
}

/* TOOLS GRID — Option 2 layout (bumped sizes for service page readability) */
.svc-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.svc-tool {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  flex: 0 0 180px;
  min-width: 0;
  transition: all 0.2s;
}
a.svc-tool { text-decoration: none; color: inherit; }
a.svc-tool:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(8,113,234,0.10);
  transform: translateY(-2px);
  color: inherit;
}
.svc-tool-icon {
  height: 64px; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.svc-tool-icon img {
  height: 56px; width: auto; max-width: 100%;
  object-fit: contain; display: block; border-radius: 6px;
}
.svc-tool-name {
  font-size: 13px; font-weight: 600;
  color: var(--text); line-height: 1.3;
}

/* CERT THUMBNAILS — match portfolio cert-grid sizing */
.svc-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .svc-cert-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 600px)  { .svc-cert-grid { grid-template-columns: 1fr; gap: 14px; } }
.svc-cert {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.2s;
}
.svc-cert:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(8,113,234,0.10);
  transform: translateY(-2px);
}
.svc-cert-img {
  width: 100%; aspect-ratio: 4/3;
  background: #fafafa;
  display: block;
  overflow: hidden;
}
.svc-cert-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.svc-cert-name {
  padding: 12px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--text); line-height: 1.35;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

/* SOFT FOOTER LINE */
.soft-footer {
  padding: 36px 0 20px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  margin-top: 24px;
}
.soft-footer p {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6;
}
.soft-footer a { font-weight: 600; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  background: var(--surface);
  margin-top: 32px;
  text-align: center;
}
footer p { font-size: 13px; color: var(--text-dim); }

/* ===== REDESIGN EXTENSION (preview, additive) — matches homepage language ===== */
html{scroll-padding-top:84px;}
@media (prefers-reduced-motion: no-preference){ html{scroll-behavior:smooth;} }
a:focus-visible,button:focus-visible,.back-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px;}
.service-headline{text-wrap:balance;}
.section-title{position:relative;}
.section-title::after{content:"";display:block;height:3px;width:54px;margin-top:14px;border-radius:2px;background:linear-gradient(90deg,var(--accent),#d4882a);}
@media(hover:hover) and (pointer:fine){
  .eng-card,.svc-tool,.svc-cert{transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s,border-color .3s;}
  .eng-card:hover,.svc-tool:hover,.svc-cert:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(8,40,90,.10);}
}
.service-hero{position:relative;overflow:hidden;}
.service-hero>*{position:relative;z-index:1;}
.service-hero::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.7;
  background:radial-gradient(42% 60% at 12% 8%,rgba(8,113,234,.10),transparent 70%),radial-gradient(36% 50% at 92% 0%,rgba(212,136,42,.08),transparent 70%);}
/* Scroll reveal — gated so unsupported browsers (and reduced-motion) never hide content */
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .service-section{opacity:0;animation:svcReveal linear both;animation-timeline:view();animation-range:entry 0% entry 38%;}
    @keyframes svcReveal{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
  }
}
/* ===== end extension ===== */

/* Breadcrumb (SEO + orientation) */
.breadcrumb{max-width:920px;margin:0 auto;padding:18px 24px 0;font-size:13px;color:#71717a;display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.breadcrumb a{color:#71717a;text-decoration:none;}
.breadcrumb a:hover{color:var(--accent);}
.breadcrumb span[aria-current]{color:#18181b;}
