/*
  Core Microsystems Inc.
  File: /css/service-detail.css
  Version: v1.0
  Updated: 2026-03-08
  Notes:
  - Shared styles for all individual service detail pages
*/

/* ===== Hero ===== */
.svc-hero {
  background: var(--hero-bg);
  background: -webkit-gradient(linear, left top, right bottom,
    from(var(--blue-900)),
    to(var(--blue-500)));
  color: #ffffff;
  position: relative;
  z-index: auto;
}
.svc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.svc-hero .container {
  position: relative;
  z-index: 1;
}
.svc-hero h1,
.svc-hero p {
  color: inherit !important;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.4rem;
}
.breadcrumb a {
  color: rgba(255,255,255,.80);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* ===== Intro two-col ===== */
.svc-intro {
  background: #fff;
}
.svc-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
.svc-intro-copy h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 900;
  color: #0b1220;
}
.svc-intro-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
}
.svc-intro-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.svc-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

/* ===== What We Do / Deliverables ===== */
.svc-what {
  background: var(--bg-soft);
}
.svc-section-head {
  text-align: center;
  margin-bottom: 2.8rem;
}
.svc-section-head h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 900;
  color: #0b1220;
}
.svc-section-head p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
}

/* Deliverables grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.deliverable-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.deliverable-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47,164,198,.45);
  box-shadow: var(--shadow);
}
.deliverable-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(47,164,198,.10);
  border: 1px solid rgba(47,164,198,.20);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.deliverable-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter:
    invert(39%)
    sepia(79%)
    saturate(420%)
    hue-rotate(165deg)
    brightness(92%)
    contrast(92%);
}
.deliverable-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.08rem;
  font-weight: 900;
  color: #0b1220;
}
.deliverable-card p {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== Process / How We Work ===== */
.svc-process {
  background: #fff;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-top: 1.2rem;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(47,164,198,.25);
  letter-spacing: -.04em;
  margin-bottom: .6rem;
}
.process-step h3 {
  margin: 0 0 .45rem;
  font-size: 1.08rem;
  font-weight: 900;
  color: #0b1220;
}
.process-step p {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}
/* Connector line between steps */
.process-steps {
  position: relative;
}
.process-step + .process-step::after {
  content: '';
  position: absolute;
  left: -0.9rem;
  top: 2.4rem;
  width: 1px;
  height: 50px;
  background: rgba(47,164,198,.20);
}

/* ===== Why Core Microsystems ===== */
.svc-why {
  background: var(--bg-soft);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.why-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.why-check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(47,164,198,.12);
  border: 1px solid rgba(47,164,198,.30);
  display: grid;
  place-items: center;
  color: var(--blue-600);
  font-size: 1rem;
  font-weight: 900;
}
.why-item-body h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 900;
  color: #0b1220;
}
.why-item-body p {
  margin: 0;
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== CTA Band ===== */
.svc-cta {
  background: var(--blue-950);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.svc-cta h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 900;
  color: #fff;
}
.svc-cta p {
  margin: 0 auto 2rem;
  max-width: 600px;
  color: rgba(255,255,255,.80);
}
.svc-cta .btn-primary {
  background: var(--blue-500);
  font-weight: 700;
  padding: .95rem 2rem;
}
.svc-cta .btn-ghost {
  border-color: rgba(255,255,255,.50);
  font-weight: 700;
  padding: .95rem 2rem;
}
.svc-cta .btn-ghost:hover { border-color: #fff; }

/* ===== Related Services ===== */
.svc-related {
  background: var(--bg-soft);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.related-card-img {
  height: 160px;
  overflow: hidden;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}
.related-card:hover .related-card-img img {
  transform: scale(1.06);
}
.related-card-body {
  padding: 1.2rem 1.4rem 1.5rem;
}
.related-card-body h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0b1220;
}
.related-card-body p {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: var(--muted);
}
.related-card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 800;
  font-size: .88rem;
  color: var(--blue-800);
  text-decoration: none;
}
.related-card-link::after {
  content: "→";
  display: inline-block;
  transition: transform 200ms ease;
}
.related-card:hover .related-card-link::after {
  transform: translateX(5px);
}

/* ===== FAQ ===== */
.svc-faq {
  background: #fff;
}
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color .18s ease;
}
.faq-item:has(.faq-body:not([hidden])) {
  border-color: rgba(47,164,198,.40);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #0b1220;
  cursor: pointer;
  transition: background .15s ease;
}
.faq-question:hover {
  background: rgba(47,164,198,.05);
}
.faq-chevron {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(47,164,198,.12);
  border: 1px solid rgba(47,164,198,.25);
  display: grid;
  place-items: center;
  font-size: .75rem;
  color: var(--blue-600);
  transition: transform .25s ease, background .15s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  background: rgba(47,164,198,.20);
}
.faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
}
.faq-body[hidden] {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .svc-intro-grid { grid-template-columns: 1fr; }
  .deliverables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .deliverables-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
