/* Service detail pages: Invero-style layout, scoped to detail pages only */

body.invero-service-detail {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #222a26;
  background: #ffffff;
  line-height: 1.55;
  letter-spacing: -0.3px;
}

body.invero-service-detail .container {
  max-width: 1320px;
}

body.invero-service-detail a {
  text-decoration: none;
  color: inherit;
  transition: 0.25s;
}

body.invero-service-detail .kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #222a26;
  margin-bottom: 1rem;
}

body.invero-service-detail h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -2.6px;
  font-weight: 550;
  margin: 0 0 1rem 0;
  color: #222a26;
}

body.invero-service-detail h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  font-weight: 650;
}

body.invero-service-detail h3 {
  font-size: 1.25rem;
  letter-spacing: -0.7px;
  margin: 1.75rem 0 0.65rem 0;
  font-weight: 650;
}

body.invero-service-detail p {
  margin: 0 0 1rem 0;
  color: #555555;
  font-size: 1.06rem;
  font-weight: 500;
}

/* Hero */
body.invero-service-detail .service-hero {
  padding: 2rem 0 3rem;
}

body.invero-service-detail .service-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 981px) {
  body.invero-service-detail .service-hero .hero-grid.hero-grid--reverse > :first-child {
    order: 2;
  }
  body.invero-service-detail .service-hero .hero-grid.hero-grid--reverse > :nth-child(2) {
    order: 1;
  }
}

body.invero-service-detail .service-hero .lede {
  max-width: 70ch;
  margin-bottom: 1.25rem;
}

body.invero-service-detail .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.invero-service-detail .hero-tags li {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

body.invero-service-detail .hero-media {
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f4;
  min-height: 320px;
}

body.invero-service-detail .hero-media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Side media: 2-up images (auto-collapses for portrait) */
body.invero-service-detail .hero-media.hero-media--pair {
  display: flex;
  padding: 10px;
}

body.invero-service-detail .hero-media.hero-media--pair .hero-media-pair {
  width: 100%;
  flex: 1;
  display: grid;
  /* Stack landscape images vertically to reduce dead space */
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
}

body.invero-service-detail .hero-media.hero-media--pair img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

body.invero-service-detail .hero-media.hero-media--pair.hero-media--triple .hero-media-pair {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

body.invero-service-detail .hero-media.hero-media--pair.is-portrait .hero-media-pair {
  grid-template-rows: 1fr;
}

body.invero-service-detail .hero-media.hero-media--pair.is-portrait img:nth-child(2) {
  display: none;
}

/* Overview / body content */
body.invero-service-detail .service-overview {
  padding: 0 0 4rem;
}

body.invero-service-detail .overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: start;
}

body.invero-service-detail .card {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #ffffff;
  padding: 1.5rem;
}

body.invero-service-detail .card p {
  margin-bottom: 0.75rem;
}

body.invero-service-detail .step-list {
  margin: 0.25rem 0 1rem 1.25rem;
  padding: 0;
}

body.invero-service-detail .step-list li {
  margin: 0.75rem 0;
  color: #555555;
  font-size: 1.02rem;
  font-weight: 550;
}

body.invero-service-detail .step-list strong {
  color: #222a26;
}

body.invero-service-detail .what-you-get {
  margin: 0.5rem 0 0 1.1rem;
}

body.invero-service-detail .what-you-get li {
  margin: 0.5rem 0;
  color: #555555;
  font-size: 1.02rem;
  font-weight: 550;
}

/* Process */
body.invero-service-detail .service-process {
  padding: 4rem 0;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
}

body.invero-service-detail .section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

body.invero-service-detail .muted {
  color: #6b6b6b;
  font-weight: 550;
  margin: 0;
}

body.invero-service-detail .process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.invero-service-detail .process-card {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 1.25rem;
  background: #ffffff;
}

body.invero-service-detail .process-card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #222a26;
  font-weight: 700;
}

body.invero-service-detail .process-card h3 {
  margin-top: 0.7rem;
}

/* FAQ */
body.invero-service-detail .service-faq {
  padding: 4rem 0 5rem;
}

body.invero-service-detail .faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

body.invero-service-detail details {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  background: #ffffff;
}

body.invero-service-detail summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #222a26;
  list-style: none;
}

body.invero-service-detail summary::-webkit-details-marker {
  display: none;
}

body.invero-service-detail details[open] summary {
  margin-bottom: 0.5rem;
}

/* CTA (match Services CTA style, but scoped) */
body.invero-service-detail .services-cta {
  padding: 5rem 0 6rem;
}

body.invero-service-detail .services-cta .cta-shell {
  background: #111111;
  color: #ffffff;
  border-radius: 10px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

body.invero-service-detail .services-cta .cta-shell .kicker {
  color: rgba(255, 255, 255, 0.85);
}

body.invero-service-detail .services-cta h2 {
  margin: 0.25rem 0 0;
  color: #ffffff;
}

body.invero-service-detail .services-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

body.invero-service-detail .services-cta .cta-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
}

body.invero-service-detail .services-cta .cta-link:hover {
  opacity: 0.9;
}

body.invero-service-detail .services-cta .cta-link svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 980px) {
  body.invero-service-detail .service-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  body.invero-service-detail .overview-grid {
    grid-template-columns: 1fr;
  }

  /* On mobile, stack the 2-up images for legibility */
  body.invero-service-detail .hero-media.hero-media--pair .hero-media-pair {
    grid-template-columns: 1fr;
  }

  body.invero-service-detail .process-grid {
    grid-template-columns: 1fr;
  }

  body.invero-service-detail .services-cta .cta-shell {
    grid-template-columns: 1fr;
  }

  body.invero-service-detail .services-cta .cta-link {
    justify-self: start;
  }
}

