/* ============================================================
   TSconsult — shared styles for service detail pages
   Matches the design language of index.html (navy/steel palette).
   ============================================================ */

:root{
  --navy-950:#070f1a;
  --navy-900:#0b1b2c;
  --navy-800:#142a42;
  --navy-700:#1c3a57;
  --steel-600:#2c5f8a;
  --steel-500:#3d76a6;
  --steel-400:#5e93bf;
  --steel-300:#8fb3d1;
  --steel-200:#c7dbea;
  --offwhite:#f3f5f4;
  --paper:#ffffff;
  --ink:#101620;
  --ink-muted:#52606d;
  --line:#dde4ea;
  --line-dark:rgba(199,219,234,0.16);

  --display:'Space Grotesk', sans-serif;
  --body:'Inter', sans-serif;
  --mono:'JetBrains Mono', monospace;

  --ease: cubic-bezier(.16,.84,.44,1);
  --container: 1240px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:auto; }
body{
  font-family: var(--body);
  color: var(--ink);
  background: var(--offwhite);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
input, select{ font-family:inherit; }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 40px; }
section{ position:relative; }

::selection{ background:var(--steel-500); color:#fff; }
:focus-visible{ outline:2px solid var(--steel-400); outline-offset:3px; }

.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--steel-500);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{ content:''; width:28px; height:1px; background:var(--steel-500); }
.eyebrow.on-dark{ color:var(--steel-300); }
.eyebrow.on-dark::before{ background:var(--steel-300); }

h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:600;
  letter-spacing:-0.01em;
  line-height:1.05;
}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 30px;
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.05em;
  text-transform:uppercase;
  border-radius:999px;
  transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s;
  white-space:nowrap;
}
.btn-solid{ background:var(--steel-600); color:#fff; }
.btn-solid:hover{ background:var(--navy-900); transform:translateY(-2px); }
.btn-outline{ border:1px solid var(--line-dark); color:var(--offwhite); }
.btn-outline:hover{ border-color:var(--steel-300); background:rgba(255,255,255,.06); transform:translateY(-2px); }
.btn-outline.light{ border:1px solid var(--line); color:var(--ink); }
.btn-outline.light:hover{ border-color:var(--steel-600); background:rgba(44,95,138,.06); }

/* ============ HEADER ============ */
header{
  position:fixed; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 40px;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom:1px solid transparent;
}
header.scrolled{
  background:rgba(7,15,26,.82);
  backdrop-filter: blur(14px);
  padding:14px 40px;
  border-color: var(--line-dark);
}
.logo-mark{ display:flex; align-items:center; gap:12px; }
.logo-mark img{ height:54px; width:auto; }

nav.main-nav{ display:flex; align-items:center; gap:clamp(18px, 2vw, 34px); }
@media (max-width: 1180px){ nav.main-nav a{ font-size:11.5px; letter-spacing:.05em; } }
@media (max-width: 1080px){ nav.main-nav{ display:none; } .menu-toggle{ display:flex; } }
nav.main-nav a{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color: var(--steel-200);
  position:relative;
  padding:4px 0;
}
nav.main-nav a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--steel-300); transition:width .35s var(--ease);
}
nav.main-nav a:hover::after, nav.main-nav a.active::after{ width:100%; }
nav.main-nav a.active{ color:#fff; }

.header-actions{ display:flex; align-items:center; gap:18px; }
.menu-toggle{ display:none; flex-direction:column; gap:5px; width:26px; z-index:300; }
.menu-toggle span{ height:1.5px; width:100%; background:#fff; transition:.3s var(--ease); }

/* mobile overlay */
.mobile-overlay{
  position:fixed; inset:0; background:var(--navy-950); z-index:250;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px;
  transform:translateY(-100%); transition:transform .5s var(--ease);
}
.mobile-overlay.open{ transform:translateY(0); }
.mobile-overlay a{ font-family:var(--display); font-size:30px; color:#fff; }

/* ============ SERVICE HERO ============ */
.svc-hero{
  min-height:92svh;
  background: radial-gradient(120% 100% at 80% 0%, #11223a 0%, var(--navy-950) 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color:#fff;
  display:flex; align-items:center;
  overflow:hidden;
  padding:160px 40px 90px;
}
.svc-hero-inner{
  position:relative; z-index:2;
  max-width:var(--container); margin:0 auto; width:100%;
  display:grid; grid-template-columns: 1.05fr .95fr; gap:70px; align-items:center;
}
.svc-breadcrumb{
  font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--steel-300); margin-bottom:26px; display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.svc-breadcrumb a{ color:var(--steel-300); transition:color .3s; }
.svc-breadcrumb a:hover{ color:#fff; }
.svc-breadcrumb .sep{ opacity:.5; }
.svc-num{
  font-family:var(--mono); font-size:13px; letter-spacing:.2em; color:var(--steel-400);
  margin-bottom:18px;
}
.svc-hero h1{
  font-size:clamp(36px, 5.2vw, 66px);
  line-height:1.04; color:#fff; margin-bottom:24px;
}
.svc-hero .lead{
  max-width:520px; color:var(--steel-200); font-size:17px; line-height:1.75; margin-bottom:36px;
}
.svc-hero-cta{ display:flex; gap:16px; flex-wrap:wrap; }
.svc-hero-visual{ position:relative; }
.svc-hero-visual svg{ width:100%; height:auto; display:block; }

/* ============ GENERIC SECTION ============ */
.svc-section{ padding:120px 0; }
.svc-section.light{ background:var(--paper); }
.svc-section.offwhite{ background:var(--offwhite); }
.svc-section.dark{ background:var(--navy-950); color:#fff; }

.section-head{ max-width:720px; margin-bottom:64px; }
.section-head .eyebrow{ margin-bottom:18px; }
.section-head h2{ font-size:clamp(28px,3.6vw,44px); margin-bottom:22px; }
.section-head.on-dark h2{ color:#fff; }
.section-head p{ color:var(--ink-muted); font-size:16px; line-height:1.8; }
.section-head.on-dark p{ color:var(--steel-200); }

/* overview two-column */
.svc-overview{ display:grid; grid-template-columns: 1fr 1fr; gap:70px; align-items:start; }
.svc-overview .lede{ font-size:clamp(20px,2.2vw,26px); line-height:1.4; color:var(--ink); font-family:var(--display); font-weight:500; }
.svc-overview .lede .accent{ color:var(--steel-600); }
.svc-overview .body p{ color:var(--ink-muted); font-size:15.5px; line-height:1.85; margin-bottom:18px; }
.svc-overview .body p:last-child{ margin-bottom:0; }

/* capability cards */
.svc-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.svc-card{
  border:1px solid var(--line); border-radius:16px; padding:30px 28px 34px;
  background:var(--paper); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.svc-section.offwhite .svc-card{ background:var(--paper); }
.svc-card:hover{ transform:translateY(-4px); border-color:var(--steel-300); box-shadow:0 18px 40px rgba(16,22,32,.07); }
.svc-card .ico{
  width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:rgba(44,95,138,.08); color:var(--steel-600); margin-bottom:22px;
}
.svc-card h3{ font-size:19px; font-weight:600; margin-bottom:10px; }
.svc-card p{ color:var(--ink-muted); font-size:14.5px; line-height:1.65; }

/* process steps */
.svc-process{ display:grid; grid-template-columns: repeat(5, 1fr); gap:0; counter-reset:step; }
.svc-step{ position:relative; padding:0 26px 0 0; }
.svc-step::before{
  counter-increment:step; content:counter(step,decimal-leading-zero);
  font-family:var(--mono); font-size:13px; color:var(--steel-500);
  display:block; margin-bottom:18px;
}
.svc-step::after{
  content:''; position:absolute; top:6px; left:0; right:0; height:1px;
  background:var(--line-dark);
}
.svc-section.dark .svc-step h3{ color:#fff; }
.svc-step h3{ font-size:17px; font-weight:600; margin-bottom:10px; line-height:1.2; }
.svc-step p{ font-size:13.5px; line-height:1.6; color:var(--steel-300); }
.svc-section.light .svc-step p, .svc-section.offwhite .svc-step p{ color:var(--ink-muted); }
.svc-section.light .svc-step::after, .svc-section.offwhite .svc-step::after{ background:var(--line); }

/* deliverables checklist */
.svc-deliverables{ display:grid; grid-template-columns: 1fr 1fr; gap:0 60px; }
.check-item{
  display:flex; align-items:center; gap:16px;
  padding:20px 0; border-top:1px solid var(--line-dark);
}
.svc-section.light .check-item, .svc-section.offwhite .check-item{ border-top-color:var(--line); }
.check-item .ico{
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  border:1px solid var(--steel-400);
  display:flex; align-items:center; justify-content:center;
}
.check-item span{ font-size:15.5px; }
.svc-section.dark .check-item span{ color:#e6eef5; }

/* meta strip / tools */
.svc-meta-strip{ display:flex; flex-wrap:wrap; gap:12px; margin-top:8px; }
.svc-chip{
  font-family:var(--mono); font-size:12px; letter-spacing:.03em;
  padding:9px 16px; border:1px solid var(--line); border-radius:999px; color:var(--ink-muted);
}
.svc-section.dark .svc-chip{ border-color:var(--line-dark); color:var(--steel-200); }

/* split feature (image/visual + text) */
.svc-split{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center; }
.svc-split .visual{ border-radius:18px; overflow:hidden; }
.svc-split .visual svg{ width:100%; height:auto; display:block; }
.svc-split .visual img{ width:100%; height:auto; display:block; }
.svc-split h2{ font-size:clamp(26px,3.2vw,40px); margin-bottom:22px; }
.svc-split p{ color:var(--ink-muted); font-size:15.5px; line-height:1.85; margin-bottom:18px; }

/* related services */
.related-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.related-card{
  border:1px solid var(--line-dark); border-radius:16px; padding:28px 26px;
  display:flex; flex-direction:column; gap:12px; min-height:170px;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.related-card .num{ font-family:var(--mono); font-size:12px; color:var(--steel-400); }
.related-card h3{ font-size:19px; font-weight:600; color:#fff; margin-top:auto; }
.related-card .go{ font-family:var(--mono); font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--steel-300); display:flex; align-items:center; gap:8px; }
.related-card:hover{ transform:translateY(-4px); border-color:var(--steel-400); background:rgba(255,255,255,.03); }

/* CTA band */
.svc-cta{
  background: radial-gradient(120% 140% at 80% 0%, #11223a 0%, var(--navy-950) 60%), var(--navy-950);
  color:#fff; text-align:center; padding:120px 40px;
}
.svc-cta h2{ font-size:clamp(30px,4vw,52px); margin-bottom:22px; }
.svc-cta p{ max-width:520px; margin:0 auto 38px; color:var(--steel-200); font-size:16px; line-height:1.75; }
.svc-cta .cta-row{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ============ FOOTER ============ */
footer{
  background:var(--navy-950); color:var(--steel-300);
  padding:40px 0; border-top:1px solid var(--line-dark);
}
.footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px; }
.footer-row p{ font-family:var(--mono); font-size:12px; letter-spacing:.04em; }
.social-icons{ display:flex; gap:16px; }
.social-icons a{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center; transition:.3s;
}
.social-icons a:hover{ background:var(--steel-600); border-color:var(--steel-600); }

/* reveal */
.reveal{ opacity:0; transform:translateY(28px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  nav.main-nav{ display:none; }
  .menu-toggle{ display:flex; }
  .wrap{ padding:0 24px; }
  .svc-hero{ padding:130px 24px 80px; }
  .svc-hero-inner{ grid-template-columns:1fr; gap:48px; }
  .svc-hero-visual{ order:-1; max-width:460px; }
  .svc-overview, .svc-deliverables, .svc-split{ grid-template-columns:1fr; gap:40px; }
  .svc-cards{ grid-template-columns:1fr 1fr; }
  .svc-process{ grid-template-columns:1fr 1fr; gap:36px 24px; }
  .related-grid{ grid-template-columns:1fr; }
  header, header.scrolled{ padding:18px 24px; }
  .header-actions .btn-solid{ display:none; }
  .svc-section{ padding:90px 0; }
}
@media (max-width: 560px){
  .svc-cards{ grid-template-columns:1fr; }
  .svc-process{ grid-template-columns:1fr; }
}

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